team
parameter.payment
: Creates a PUE (Pago en Una sola Exhibición) invoice immediatelypayment_and_complement
: Creates a PPD invoice and payment complementnone
: No automation, registers payment onlypayment_form
field specifies the Mexican SAT payment form code:01
(cash), 02
(check), 03
(electronic transfer), 04
(credit card), etc.curl --location --request POST 'https://api.gigstack.io/v2/payments/register?team' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"client": {
"id": "client_1234567890"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"exchange_rate": 1,
"payment_form": "03",
"items": [
{
"id": "service_1234567890",
"quantity": 1,
"unit_price": 1000
}
]
}'
{
"message": "Payment registered successfully",
"data": {
"id": "payment_1234567890",
"client": {
"id": "client_1234567890",
"name": "Juan Pérez García",
"email": "juan.perez@ejemplo.com",
"tax_id": "PEGJ800101ABC"
},
"status": "succeeded",
"currency": "MXN",
"exchange_rate": 1,
"payment_form": "03",
"total": 1160,
"subtotal": 1000,
"taxes": 160,
"discount": 0,
"items": [
{
"id": "service_1234567890",
"description": "Professional consulting services",
"quantity": 1,
"unit_price": 1000,
"product_key": "80141503",
"unit_key": "E48"
}
],
"invoices": [
"invoice_1234567890"
],
"created_at": 1677651234,
"succeeded_at": 1677651234,
"payment_processor": "api",
"livemode": true,
"team": "team_1234567890",
"owner": "user_1234567890"
}
}