Skip to content
developers

Simulators

Simulate a PSE link payment

POST/v1/sandbox/recharge-links/{slug}/paySandbox only

Base URL
Sandboxhttps://sandbox.zulu.com.co/v1
A test helper: it only exists in the sandbox.

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

Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).

Request

Path parameters

  • slugstringrequired
    Link slug.
    Example: "7QmVt3KpXz"

Headers

  • Idempotency-KeystringoptionalSandbox · coming soon
    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 Idempotent-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

  • outcomestringrequired
    Payment outcome.

    Values

    • PAIDThe payment is approved: the deposit is created.
    • REFUSEDThe bank refuses the payment.
  • amountintegeroptional
    Amount the payer "typed": required on open-amount links; on fixed-amount links, omit it or send the same one.
    > 0Example: 250000
  • payerobjectoptional
    Simulated payer. Whatever you omit is filled with deterministic synthetic data.
    Show 4 fields
    • fullNamestringoptional
      Full name or company name.
      max. 120 charactersExample: "Marta Ruiz"
    • documentTypestringoptional
      Document type.
      max. 10 charactersExample: "CC"
    • documentNumberstringoptional
      Document number.
      max. 20 charactersExample: "52123456"
    • bankNamestringoptional
      Payer's bank.
      max. 80 charactersExample: "Banco Davivienda"
  • failureReasonstringoptional
    Refusal reason, only with REFUSED.
    max. 120 charactersExample: "Fondos insuficientes"

Responses

  • 200Payment simulated.

    Body
    • rechargeLinkobjectrequired
      A PSE payment link.
      Show 11 fields
      • slugstringrequired
        Public identifier of the link (Base58, 10 characters).
        Example: "7QmVt3KpXz"
      • referencestringrequired
        Your reference (the one you sent, or the slug when you sent none). The deposit the link produces carries it.
        Example: "FAC-2026-0042"
      • amountinteger | nullrequired
        Fixed amount (COP); null when the payer types it.
        Example: 250000
      • conceptstring | nullrequired
        Concept the payer sees.
        Example: "Cuota de noviembre"
      • paymentMethodstringrequired
        Payment method.

        Values

        • PSEPSE (debit from any Colombian bank).
      • statusstringrequired
        Link status.

        Values

        • 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.
      • checkoutUrlstringrequired
        Payment page to share (a fake checkout in the sandbox).
        Example: "https://developers.zulu.com.co/checkout/7QmVt3KpXz"
      • expiresAtstring (date-time) | nullrequired
        Expiry (UTC); null when it never expires.
        Example: "2026-11-27T15:04:05.123Z"
      • paidAtstring (date-time) | nullrequired
        Payment time (UTC); null until paid.
        Example: null
      • failureReasonstring | nullrequired
        Reason of the last refusal; null when there was none.
        Example: null
      • createdAtstring (date-time)required
        Creation time (UTC).
        Example: "2026-11-24T15:04:05.123Z"
    • depositany | nullrequired
      The deposit created; null when the payment was refused.
      Show 8 fields
      • depositIdstringrequired
        Deposit id: SBX-MOV-CREDIT-{uuid} in the sandbox.
        Example: "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f"
      • methodstringrequired
        How it arrived.

        Values

        • 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.
      • amountintegerrequired
        Amount credited (COP, whole pesos).
        Example: 250000
      • currencystringrequired
        Always COP.
        Always "COP"
      • referencestringrequired
        What it belongs to: the link's reference (PSE), the key that received it (Bre-B) or the QR's reference (or its id).
        Example: "@acmepagos"
      • externalIdstringrequired
        Network id (PSE CUS or Bre-B transfer id). Synthetic in the sandbox.
        Example: "SBXBREB2611241504052K9Q"
      • payerobjectrequired
        Payer of the deposit. In the sandbox the data is synthetic (or what you send to the simulator).
        Show 4 fields
        • fullNamestringrequired
          Full name or company name.
          Example: "Marta Ruiz"
        • documentTypestringrequired
          Document type.
          Example: "CC"
        • documentNumberstringrequired
          Document number.
          Example: "52123456"
        • bankNamestringrequired
          Bank the payer paid from.
          Example: "Banco Davivienda"
      • createdAtstring (date-time)required
        Arrival (UTC).
        Example: "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.

HTTPerrorcauseDescription
400BadRequestApiErrorerror in struct validationOne or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed.
400BadRequestApiErrorinvalid json body: %sThe 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.
409ResourceConflictApiErroridempotency key "%s" is still being processedAnother call with the same Idempotency-Key is still running. Retry in a few seconds to receive its response.
422UnprocessableEntityApiErroridempotency key "%s" was used with a different requestThe Idempotency-Key was already used in the last 24 hours with a different body or operation. Use a new key for every distinct operation.

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"
}