Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).
Simulates someone paying a link (PAID) or the bank refusing the payment (REFUSED). An approved payment creates the deposit, credits your balance and sends the RECHARGE_LINKS and DEPOSITS webhooks. On open-amount links send the amount the payer "typed". Exists only in the sandbox.
Authentication
Request
Path parameters
- Link slug.
slugstringrequiredExample: "7QmVt3KpXz"
Headers
- Idempotency key (up to 255 characters), valid for 24 hours per workspace. Repeating the call with the same key and body returns the original response with
Idempotency-KeystringoptionalSandbox · coming soonIdempotent-Replayed: true; a different body answers 422 and, while the first call is still running, 409. Production ignores it today: every call creates a new resource.max. 255 charactersExample: "7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21"
Body
- Payment outcome.
outcomestringrequiredValues
- PAIDThe payment is approved: the deposit is created.
- REFUSEDThe bank refuses the payment.
- Amount the payer "typed": required on open-amount links; on fixed-amount links, omit it or send the same one.
amountintegeroptional> 0Example: 250000 - Simulated payer. Whatever you omit is filled with deterministic synthetic data.
payerobjectoptionalShow 4 fields
- Full name or company name.
fullNamestringoptionalmax. 120 charactersExample: "Marta Ruiz" - Document type.
documentTypestringoptionalmax. 10 charactersExample: "CC" - Document number.
documentNumberstringoptionalmax. 20 charactersExample: "52123456" - Payer's bank.
bankNamestringoptionalmax. 80 charactersExample: "Banco Davivienda"
- Refusal reason, only with
failureReasonstringoptionalREFUSED.max. 120 charactersExample: "Fondos insuficientes"
Responses
200Payment simulated.
Body
- A PSE payment link.
rechargeLinkobjectrequiredShow 11 fields
- Public identifier of the link (Base58, 10 characters).
slugstringrequiredExample: "7QmVt3KpXz" - Your reference (the one you sent, or the slug when you sent none). The deposit the link produces carries it.
referencestringrequiredExample: "FAC-2026-0042" - Fixed amount (COP);
amountinteger | nullrequirednullwhen the payer types it.Example: 250000 - Concept the payer sees.
conceptstring | nullrequiredExample: "Cuota de noviembre" - Payment method.
paymentMethodstringrequiredValues
- PSEPSE (debit from any Colombian bank).
- Link status.
statusstringrequiredValues
- CREATEDCreated; nobody opened it yet.
- AWAITING_PAYMENTThe payer opened the checkout; the payment is in progress.
- PAIDPaid: the deposit is in your balance.
- REFUSEDThe bank refused the payment; the payer may retry.
- EXPIREDExpired unpaid.
- CANCELLEDYou cancelled it.
- Payment page to share (a fake checkout in the sandbox).
checkoutUrlstringrequiredExample: "https://developers.zulu.com.co/checkout/7QmVt3KpXz" - Expiry (UTC);
expiresAtstring (date-time) | nullrequirednullwhen it never expires.Example: "2026-11-27T15:04:05.123Z" - Payment time (UTC);
paidAtstring (date-time) | nullrequirednulluntil paid.Example: null - Reason of the last refusal;
failureReasonstring | nullrequirednullwhen there was none.Example: null - Creation time (UTC).
createdAtstring (date-time)requiredExample: "2026-11-24T15:04:05.123Z"
- The deposit created;
depositany | nullrequirednullwhen the payment was refused.Show 8 fields
- Deposit id:
depositIdstringrequiredSBX-MOV-CREDIT-{uuid}in the sandbox.Example: "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f" - How it arrived.
methodstringrequiredValues
- PSEPayment of a PSE link.
- BRE_BBre-B transfer to one of your keys.
- BRE_B_QRPayment of one of your Bre-B QR codes.
- Amount credited (COP, whole pesos).
amountintegerrequiredExample: 250000 - Always
currencystringrequiredCOP.Always "COP" - What it belongs to: the link's
referencestringrequiredreference(PSE), the key that received it (Bre-B) or the QR'sreference(or its id).Example: "@acmepagos" - Network id (PSE CUS or Bre-B transfer id). Synthetic in the sandbox.
externalIdstringrequiredExample: "SBXBREB2611241504052K9Q" - Payer of the deposit. In the sandbox the data is synthetic (or what you send to the simulator).
payerobjectrequiredShow 4 fields
- Full name or company name.
fullNamestringrequiredExample: "Marta Ruiz" - Document type.
documentTypestringrequiredExample: "CC" - Document number.
documentNumberstringrequiredExample: "52123456" - Bank the payer paid from.
bankNamestringrequiredExample: "Banco Davivienda"
- Arrival (UTC).
createdAtstring (date-time)requiredExample: "2026-11-24T15:04:05.123Z"
400Invalid request: the body is not JSON, a field has another type or fails its validation.
401The access token is missing, invalid or expired.
403The `X-API-Key` is missing, invalid or does not match the token.
404The resource does not exist.
409Conflict with the current state.
422The operation can not be processed; nothing is recorded.
429Too many requests: wait the seconds in `Retry-After`.
500Internal error.
Errors
The exact causes this operation can answer, from the error catalog. Compare error and the HTTP status; the cause text is stable but meant for people.
| HTTP | error | cause | Description |
|---|---|---|---|
| 400 | BadRequestApiError | error in struct validation | One or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed. |
| 400 | BadRequestApiError | invalid json body: %s | The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example). Answered before the fields are validated. |
| 404 | NotFoundApiError | recharge link "%s" not found | No link with that slug exists in your workspace. |
| 409 | ResourceConflictApiError | idempotency key "%s" is still being processed | Another call with the same Idempotency-Key is still running. Retry in a few seconds to receive its response. |
| 422 | UnprocessableEntityApiError | idempotency key "%s" was used with a different request | The Idempotency-Key was already used in the last 24 hours with a different body or operation. Use a new key for every distinct operation. |
| 422 | UnprocessableEntityApiError | recharge link "%s" is %s | The link's status does not allow the operation (a PAID or EXPIRED link can no longer be cancelled or paid). |
| 422 | UnprocessableEntityApiError | recharge link "%s" has no fixed amount: amount is required | The link has an open amount: the simulator needs the amount the payer "typed". |
| 422 | UnprocessableEntityApiError | amount %d does not match the amount of recharge link "%s" | The link has a fixed amount and the amount sent differs. Omit it or send the same one. |
| 422 | UnprocessableEntityApiError | amount %d is outside the allowed range of %d to %d | The amount is outside the range allowed for PSE links. |
Also, like every authenticated endpoint: 401 Unauthorized, 403 Forbidden, 429 Too Many Requests (with Retry-After) and 500.
Examples
Approved payment200
Request
curl https://sandbox.zulu.com.co/v1/sandbox/recharge-links/7QmVt3KpXz/pay \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"outcome": "PAID",
"payer": {
"fullName": "Marta Ruiz",
"documentType": "CC",
"documentNumber": "52123456",
"bankName": "Banco Davivienda"
}
}'Response 200
{
"rechargeLink": {
"slug": "7QmVt3KpXz",
"reference": "FAC-2026-0042",
"amount": 250000,
"concept": "Cuota de noviembre",
"paymentMethod": "PSE",
"status": "PAID",
"checkoutUrl": "https://developers.zulu.com.co/checkout/7QmVt3KpXz",
"expiresAt": "2026-11-27T15:04:05.123Z",
"paidAt": "2026-11-24T16:10:00.000Z",
"failureReason": null,
"createdAt": "2026-11-24T15:04:05.123Z"
},
"deposit": {
"depositId": "SBX-MOV-CREDIT-8a4e1c2b-7d3f-4b6a-9e5c-0f1d2a3b4c5d",
"method": "PSE",
"amount": 250000,
"currency": "COP",
"reference": "FAC-2026-0042",
"externalId": "SBXPSE2611241610001A7K",
"payer": {
"fullName": "Marta Ruiz",
"documentType": "CC",
"documentNumber": "52123456",
"bankName": "Banco Davivienda"
},
"createdAt": "2026-11-24T16:10:00.000Z"
}
}Payment refused by the bank200
Request
curl https://sandbox.zulu.com.co/v1/sandbox/recharge-links/7QmVt3KpXz/pay \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"outcome": "REFUSED",
"failureReason": "Fondos insuficientes"
}'Response 200
{
"rechargeLink": {
"slug": "7QmVt3KpXz",
"reference": "FAC-2026-0042",
"amount": 250000,
"concept": "Cuota de noviembre",
"paymentMethod": "PSE",
"status": "REFUSED",
"checkoutUrl": "https://developers.zulu.com.co/checkout/7QmVt3KpXz",
"expiresAt": "2026-11-27T15:04:05.123Z",
"paidAt": null,
"failureReason": "Fondos insuficientes",
"createdAt": "2026-11-24T15:04:05.123Z"
},
"deposit": null
}The link was already paid422
Request
curl https://sandbox.zulu.com.co/v1/sandbox/recharge-links/7QmVt3KpXz/pay \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"outcome": "PAID"
}'Response 422
{
"error": "UnprocessableEntityApiError",
"cause": "recharge link \"7QmVt3KpXz\" is PAID"
}