Skip to content
developers

Simulators

Advance a transaction

POST/v1/sandbox/transactions/{transactionId}/advanceSandbox only

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

Skips the simulated wait: moves a transaction to the next status of its flow, or to the status you ask for (SENT, COMPLETED or REJECTED). REJECTED reverses the debit. Every change sends the TRANSACTIONS webhook. A COMPLETED or REJECTED transaction never changes again, and a conversion never goes through SENT. 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

  • transactionIdstringrequired
    Transaction id.
    Example: "SBX-OR-NPTRFI261124K7Q2M9-X4"

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

  • statusstringoptional
    Status to move it to. Without status, it moves to the next one of its flow.

    Values

    • SENTSent to the bank (ACH or manual withdrawals only).
    • COMPLETEDCompleted.
    • REJECTEDRejected (reverses the debit).
  • rejectionReasonstringoptional
    Reason, only with status: REJECTED.
    max. 120 charactersExample: "Cuenta embargada"

Responses

  • 200The transaction in its new status.

    Body

    One of these shapes

    Shape TransferTransaction

    A withdrawal.

    • transactionIdstringrequired
      Identifier of the transaction (the order id in zulu). In the sandbox: SBX-OR-{SO|NP}TRFI{YYMMDD}{6}-{2}.
      Example: "SBX-OR-NPTRFI261124K7Q2M9-X4"
    • typestringrequired
      Withdrawal.
      Always "TRANSFER"
    • statusstringrequired
      Current status.

      Values

      • CREATEDCreated. For a Bre-B withdrawal, the transfer is in flight.
      • IN_PROGRESSIn progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.
      • SENTThe money was sent to the beneficiary's bank. Withdrawals only (never FX).
      • COMPLETEDCompleted.
      • REJECTEDRejected. The sandbox reverses the debit automatically; in production operations reverses it.
    • methodstringrequired
      How the money was sent.

      Values

      • BRE_BBre-B: breBKey was sent and the amount is within the Bre-B maximum.
      • ACHOnline ACH: a bank with an ACH code, whole pesos and within the current caps.
      • MANUALManual payment: in any other case, or when the online transfer could not go out. Not an error.
    • amountnumberrequired
      Amount withdrawn (COP, up to 2 decimals).
      Example: 150000
    • currencystringrequired
      Always COP.
      Always "COP"
    • feenumberrequired
      Dispersion fee, debited on top of the amount.
      Example: 0
    • notestring | nullrequired
      The withdrawal note, if sent.
      Example: "Pago factura 1234"
    • destinationobjectrequired
      Where the money went.
      Show 9 fields
      • entityTypestringrequired
        Beneficiary type.

        Values

        • personNatural person (an individual).
        • companyCompany (legal entity).
      • documentTypestringrequired
        Document type.
        Example: "CC"
      • documentNumberstringrequired
        Document number.
        Example: "1020304050"
      • namestringrequired
        Full name or company name, as registered.
        Example: "LUIS GÓMEZ"
      • bankCodestring | nullrequired
        ACH code of the bank; null when unknown.
        Example: "0007"
      • bankNamestring | nullrequired
        Bank name; null when unknown.
        Example: "Bancolombia"
      • accountTypestringrequired
        Account type (normalized).

        Values

        • ahorrosSavings account.
        • corrienteChecking account.
      • accountNumberstringrequired
        Account number.
        Example: "0012345678"
      • breBKeystring | nullrequired
        Bre-B key used; null when none was sent.
        Example: null
    • rejectionReasonstring | nullrequired
      Rejection reason; null except when REJECTED.
      Example: null
    • statusHistoryarray<object>required
      Status changes, oldest first.
      Show 2 fields
      • statusstringrequired
        Status reached.

        Values

        • CREATEDCreated. For a Bre-B withdrawal, the transfer is in flight.
        • IN_PROGRESSIn progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.
        • SENTThe money was sent to the beneficiary's bank. Withdrawals only (never FX).
        • COMPLETEDCompleted.
        • REJECTEDRejected. The sandbox reverses the debit automatically; in production operations reverses it.
      • atstring (date-time)required
        When it changed (UTC).
        Example: "2026-11-24T15:04:05.123Z"
    • createdAtstring (date-time)required
      Creation time (UTC).
      Example: "2026-11-24T15:04:05.123Z"
    • updatedAtstring (date-time)required
      Last update (UTC).
      Example: "2026-11-24T15:05:05.456Z"

    Shape FxTransaction

    A conversion.

    • transactionIdstringrequired
      Identifier of the transaction (the order id in zulu). In the sandbox: SBX-OR-{SO|NP}TRFI{YYMMDD}{6}-{2}.
      Example: "SBX-OR-NPTRFI261124K7Q2M9-X4"
    • typestringrequired
      Conversion.
      Always "FX"
    • statusstringrequired
      Current status (never SENT).

      Values

      • CREATEDCreated. For a Bre-B withdrawal, the transfer is in flight.
      • IN_PROGRESSIn progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.
      • SENTThe money was sent to the beneficiary's bank. Withdrawals only (never FX).
      • COMPLETEDCompleted.
      • REJECTEDRejected. The sandbox reverses the debit automatically; in production operations reverses it.
    • amountnumberrequired
      Origin amount debited.
      Example: 4000000
    • currencystringrequired
      Origin currency.

      Values

      • COPColombian peso (whole pesos).
      • USDUS dollar (up to 2 decimals).
    • feenumberrequired
      Always 0: the margin is in the factor.
      Example: 0
    • fxobjectrequired
      Both sides of the conversion.
      Show 9 fields
      • quotestringrequired
        Quote used.
        Example: "EQ-COPXUSDX-261124150405-SBX7Q"
      • originCurrencystringrequired
        Currency debited.

        Values

        • COPColombian peso (whole pesos).
        • USDUS dollar (up to 2 decimals).
      • originAmountnumberrequired
        Amount debited.
        Example: 4000000
      • destinationCurrencystringrequired
        Currency credited.

        Values

        • COPColombian peso (whole pesos).
        • USDUS dollar (up to 2 decimals).
      • destinationAmountnumberrequired
        Amount credited at settlement.
        Example: 1006.62
      • factornumberrequired
        Quote factor (COP per USD).
        Example: 3973.7
      • factorFormulastringrequired
        Factor formula.
        Always "COP/USD"Example: "COP/USD"
      • settlementTermstringrequired
        Settlement term.

        Values

        • SAME_DAYSettles the same business day (before the 13:00 cutoff).
        • NEXT_DAYSettles the next business day.
        • SECOND_DAYSettles on the second business day.
      • settlementDatestring (date)required
        Settlement business day (Bogotá).
        Example: "2026-11-24"
    • rejectionReasonstring | nullrequired
      Rejection reason; null except when REJECTED.
      Example: null
    • statusHistoryarray<object>required
      Status changes, oldest first.
      Show 2 fields
      • statusstringrequired
        Status reached.

        Values

        • CREATEDCreated. For a Bre-B withdrawal, the transfer is in flight.
        • IN_PROGRESSIn progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.
        • SENTThe money was sent to the beneficiary's bank. Withdrawals only (never FX).
        • COMPLETEDCompleted.
        • REJECTEDRejected. The sandbox reverses the debit automatically; in production operations reverses it.
      • atstring (date-time)required
        When it changed (UTC).
        Example: "2026-11-24T15:04:05.123Z"
    • createdAtstring (date-time)required
      Creation time (UTC).
      Example: "2026-11-24T15:04:05.123Z"
    • updatedAtstring (date-time)required
      Last update (UTC).
      Example: "2026-11-24T15:05:05.456Z"
  • 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.
404NotFoundApiErrortransaction "%s" not foundNo transaction with that id exists in your workspace.
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.
422UnprocessableEntityApiErrortransaction "%s" cannot move from %s to %sThe requested status does not follow the current one (a COMPLETED transaction never changes again, and FX never goes through SENT).

Also, like every authenticated endpoint: 401 Unauthorized, 403 Forbidden, 429 Too Many Requests (with Retry-After) and 500.

Examples

To the next status200

Request

curl https://sandbox.zulu.com.co/v1/sandbox/transactions/SBX-OR-NPTRFI261124K7Q2M9-X4/advance \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response 200

{
  "transactionId": "SBX-OR-NPTRFI261124K7Q2M9-X4",
  "type": "TRANSFER",
  "status": "SENT",
  "method": "ACH",
  "amount": 150000,
  "currency": "COP",
  "fee": 0,
  "note": "Pago factura 1234",
  "destination": {
    "entityType": "person",
    "documentType": "CC",
    "documentNumber": "1020304050",
    "name": "LUIS GÓMEZ",
    "bankCode": "0007",
    "bankName": "Bancolombia",
    "accountType": "ahorros",
    "accountNumber": "0012345678",
    "breBKey": null
  },
  "rejectionReason": null,
  "statusHistory": [
    {
      "status": "IN_PROGRESS",
      "at": "2026-11-24T15:04:05.123Z"
    },
    {
      "status": "SENT",
      "at": "2026-11-24T15:04:10.000Z"
    }
  ],
  "createdAt": "2026-11-24T15:04:05.123Z",
  "updatedAt": "2026-11-24T15:04:10.000Z"
}
Reject a withdrawal200

Request

curl https://sandbox.zulu.com.co/v1/sandbox/transactions/SBX-OR-NPTRFI261124K7Q2M9-X4/advance \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "REJECTED",
  "rejectionReason": "Cuenta embargada"
}'

Response 200

{
  "transactionId": "SBX-OR-NPTRFI261124K7Q2M9-X4",
  "type": "TRANSFER",
  "status": "REJECTED",
  "method": "ACH",
  "amount": 150000,
  "currency": "COP",
  "fee": 0,
  "note": "Pago factura 1234",
  "destination": {
    "entityType": "person",
    "documentType": "CC",
    "documentNumber": "1020304050",
    "name": "LUIS GÓMEZ",
    "bankCode": "0007",
    "bankName": "Bancolombia",
    "accountType": "ahorros",
    "accountNumber": "0012345678",
    "breBKey": null
  },
  "rejectionReason": "Cuenta embargada",
  "statusHistory": [
    {
      "status": "IN_PROGRESS",
      "at": "2026-11-24T15:04:05.123Z"
    },
    {
      "status": "SENT",
      "at": "2026-11-24T15:04:10.000Z"
    },
    {
      "status": "REJECTED",
      "at": "2026-11-24T15:04:12.000Z"
    }
  ],
  "createdAt": "2026-11-24T15:04:05.123Z",
  "updatedAt": "2026-11-24T15:04:12.000Z"
}
An already completed transaction422

Request

curl https://sandbox.zulu.com.co/v1/sandbox/transactions/SBX-OR-NPTRFI261124K7Q2M9-X4/advance \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "SENT"
}'

Response 422

{
  "error": "UnprocessableEntityApiError",
  "cause": "transaction \"SBX-OR-NPTRFI261124K7Q2M9-X4\" cannot move from COMPLETED to SENT"
}