limit (integer, 1-100) - Number of results per page (default: 10)next (string) - Pagination cursor for next pageteam (string) - gigstack Connect: Target team ID{
"message": "Payments retrieved successfully",
"data": [
{
"id": "payment_1234567890",
"client": {
"id": "client_1234567890",
"name": "Juan Pérez García",
"tax_id": "PEGJ800101ABC"
},
"status": "succeeded",
"total": 1160.0,
"subtotal": 1000.0,
"taxes": 160.0,
"currency": "MXN",
"payment_form": "03",
"invoices": ["invoice_1234567890"],
"created_at": 1677651234,
"succeeded_at": 1677651234,
"payment_processor": "stripe",
"short_url": "https://pay.gigstack.io/p/abc123"
}
],
"has_more": false,
"total_results": 1
}payment_form field (Mexican SAT payment form code)pue_invoice - Create PUE (Pago en Una sola Exhibición) invoice immediatelyppd_invoice_and_complement - Create PPD invoice and payment complementnone - No automation, register payment only{
"client": {
"id": "client_1234567890"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"exchange_rate": 1.0,
"payment_form": "03",
"items": [
{
"id": "service_1234567890",
"quantity": 2,
"unit_price": 1000.0
}
],
"metadata": {
"order_id": "ORD-12345",
"customer_reference": "REF-789"
}
}01 - Cash02 - Check03 - Electronic transfer04 - Credit card05 - Electronic money06 - Digital money99 - To be definedcard - Credit/debit card payments (requires Stripe integration)spei - Mexican bank transfer (SPEI)oxxo - OXXO convenience store payments (requires Stripe integration)stripe-spei - Customer balance payments (requires Stripe integration)card, oxxo, and stripe-spei payment methods are only available when your team has Stripe connected.{
"client": {
"id": "client_1234567890"
},
"currency": "MXN",
"items": [
{
"id": "service_1234567890",
"quantity": 1
}
],
"automation_type": "pue_invoice",
"allowed_payment_methods": ["card", "bank", "oxxo"],
"send_email": true,
"emails": ["client@example.com"],
"idempotency_key": "payment-request-12345",
"metadata": {
"invoice_number": "INV-2024-001"
}
}{
"message": "Payment request created successfully",
"data": {
"id": "payment_1234567890",
"short_url": "https://pay.gigstack.io/p/abc123",
"status": "requires_payment_method",
"total": 11600.0
}
}{
"amount": 500.0,
"reason": "Partial refund for service adjustment",
"items": [
{
"id": "service_1234567890",
"quantity": 1
}
]
}| Status | Description |
|---|---|
requires_payment_method | Waiting for payment method |
succeeded | Payment completed successfully |
canceled | Payment canceled |
{
"client": {
"id": "client_1234567890"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"payment_form": "04",
"items": [
{
"id": "service_001",
"quantity": 2,
"unit_price": 1000.0
},
{
"description": "Installation service",
"quantity": 1,
"unit_price": 500.0,
"product_key": "72121400",
"unit_key": "E48",
"taxes": [
{
"type": "IVA",
"rate": 0.16
}
]
},
{
"description": "Express shipping",
"quantity": 1,
"unit_price": 200.0,
"product_key": "78102200",
"unit_key": "E48",
"taxes": [
{
"type": "IVA",
"rate": 0.16
}
]
}
]
}{
"client": {
"id": "client_1234567890"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"payment_form": "03",
"items": [
{
"description": "Professional services",
"quantity": 1,
"unit_price": 10000.0,
"product_key": "80141503",
"unit_key": "E48",
"taxes": [
{
"type": "IVA",
"rate": 0.16,
"withholding": false
},
{
"type": "ISR",
"rate": 0.1,
"withholding": true
},
{
"type": "IVA",
"rate": 0.106667,
"withholding": true
}
]
}
]
}{
"client": {
"id": "client_1234567890"
},
"currency": "MXN",
"items": [
{
"id": "service_1234567890",
"quantity": 1
}
],
"automation_type": "ppd_invoice_and_complement",
"allowed_payment_methods": ["card", "bank"],
"send_email": true,
"emails": ["client@example.com"],
"invoice_config": {
"serie": "B",
"folio": "456"
},
"metadata": {
"project_id": "PROJ-2024-001",
"department": "Engineering"
}
}{
"client": {
"id": "client_1234567890"
},
"automation_type": "pue_invoice",
"currency": "USD",
"exchange_rate": 18.5,
"payment_form": "03",
"items": [
{
"description": "International consulting",
"quantity": 10,
"unit_price": 100.0,
"product_key": "80141503",
"unit_key": "HUR",
"taxes": [
{
"type": "IVA",
"rate": 0.0,
"factor": "Exento"
}
]
}
]
}transfer_data, the team and livemode fields are automatically extracted from the authentication token. Developers do not need to send these fields in the request body.{
"client": {
"id": "client_1234567890"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"payment_form": "03",
"items": [
{
"description": "Professional consulting services",
"quantity": 1,
"unit_price": 1000.0,
"product_key": "80141503",
"unit_key": "E48",
"taxes": [
{
"type": "IVA",
"rate": 0.16
}
]
}
],
"transfer_data": {
"master": 60,
"connect": "ABC123456789",
"master_to": "client",
"connect_to": "client"
}
}master (number, 0-100) - Percentage of the payment for the master teamconnect (string) - Tax ID (RFC) or Team ID of the connect team. If not found, a new team will be createdmaster_to (string: 'client' | 'connect') - Client assignment for master payment:client: Use the original client from the requestconnect: Create the connect team as a client for the master paymentconnect_to (string: 'client' | 'master') - Client assignment for connect payment:client: Use the original client from the requestmaster: Create the master team as a client for the connect paymentconnect_custom_config (object, optional) - Customize items in the connect payment:product_key (string) - SAT product key for connect payment itemsunit_key (string) - SAT unit key for connect payment itemscustom_description (string) - Custom description for connect payment itemscustom_price (number) - Fixed amount for connect payment (overrides percentage calculation)taxes (array) - Custom tax configuration for connect payment items{
"message": "Split payment registered successfully",
"data": {
"splitReference": "split_abc123xyz",
"masterPaymentId": "payment_master_123",
"connectPaymentId": "payment_connect_456",
"masterAmount": 696.0,
"connectAmount": 464.0,
"totalAmount": 1160.0,
"masterPayment": {
"id": "payment_master_123",
"client": "client_1234567890",
"amount": 696.0,
"team": "team_master_123",
"splitRole": "master"
},
"connectPayment": {
"id": "payment_connect_456",
"client": "client_connect_789",
"amount": 464.0,
"team": "team_connect_456",
"splitRole": "connect"
},
"connectTeam": {
"id": "team_connect_456",
"tax_id": "EMP800101ABC",
"legal_name": "Empresa Ejemplo SA de CV",
"created": true,
"onboardingUrl": "https://api.gigstack.com/onboarding/team_connect_456?token=abc123"
}
}
}onboardingUrl that can be sent to the merchant to complete their team setup.{
"client": {
"search": {
"on_key": "tax_id",
"on_value": "PEGJ800101ABC",
"auto_create": true
},
"name": "Juan Pérez García",
"email": "juan.perez@ejemplo.com",
"tax_id": "PEGJ800101ABC",
"tax_system": "601"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"payment_form": "03",
"items": [
{
"description": "Platform service with marketplace split",
"quantity": 1,
"unit_price": 1000.0,
"product_key": "80141503",
"unit_key": "E48",
"taxes": [
{
"type": "IVA",
"rate": 0.16
}
]
}
],
"transfer_data": {
"master": 30,
"connect": "EMP800101ABC",
"master_to": "client",
"connect_to": "master",
"connect_custom_config": {
"product_key": "01010101",
"unit_key": "E48",
"custom_description": "Professional consulting services",
"taxes": [
{
"key": "002",
"name": "IVA",
"type": "federal",
"tax_mode": "tax",
"percentage": 16
}
]
}
}
}custom_price. This is useful when you want to charge a flat platform fee regardless of the transaction amount.{
"client": {
"id": "client_1234567890"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"payment_form": "03",
"items": [
{
"description": "Product sale",
"quantity": 1,
"unit_price": 1000.0,
"product_key": "80141503",
"unit_key": "E48",
"taxes": [
{
"type": "IVA",
"rate": 0.16
}
]
}
],
"transfer_data": {
"master": 0,
"connect": "EMP800101ABC",
"master_to": "client",
"connect_to": "master",
"connect_custom_config": {
"custom_price": 50.00,
"custom_description": "Platform service fee"
}
}
}custom_price is set, it overrides the percentage calculationcustom_price amount (e.g., $50)master percentage field is ignored when using custom_price{
"message": "Split payment registered successfully",
"data": {
"splitReference": "split_abc123xyz",
"masterPaymentId": "payment_master_123",
"connectPaymentId": "payment_connect_456",
"masterAmount": 1110.00,
"connectAmount": 50.00,
"totalAmount": 1160.00,
"usedCustomPrice": true
}
}{
"message": "Client not found",
"error": "The specified client does not exist"
}{
"message": "Invalid item",
"error": "Service service_xyz not found"
}{
"message": "Payment already succeeded",
"error": "Cannot modify a completed payment"
}{
"message": "Refund failed",
"error": "Refund amount exceeds payment total"
}{
"message": "Invoice creation failed",
"error": "Missing required tax configuration"
}{
"message": "Payment registration failed",
"error": "Client fiscal information validation failed. RFC is invalid or client is in EFOS blacklist."
}