{
  "openapi": "3.1.0",
  "info": {
    "title": "zulu API",
    "version": "0.1.0",
    "description": "The zulu API: collect with PSE, Bre-B and QR, convert USD↔COP and pay out by Bre-B or ACH in Colombia.\n\n**Environments.** The sandbox (`https://sandbox.zulu.com.co/v1`) simulates the whole API and moves no real money. Production (`https://api.zulutransfer.com/v1`) serves today the operations labeled **Production**; those labeled **Sandbox · coming to production** arrive with the same signature.\n\n**Authentication.** `POST /auth/token` exchanges `client_id` and `client_secret` for a one-hour access token; every other endpoint needs `Authorization: Bearer <token>` (401 when missing) and `X-API-Key` (403).\n\n**Errors.** `{error, cause, message?, values?}`; on validation 400s, `values` carries one message per field. The token endpoint answers OAuth2 errors `{error, error_description}` and the gateway `{message}`.\n\n**Conventions.** camelCase; amounts as JSON numbers (COP in whole pesos, except `/transfer`, up to 2 decimals; USD up to 2 decimals); RFC 3339 UTC timestamps; lists `{data, page, size, pages, count, total}`.",
    "x-zulu-upstream": {
      "repo": "zuluapp/zulu-external-api",
      "path": "docs/public-readme.yaml",
      "sha": "6625562704bed0533b2e4eabdce26c2e9d58af05"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.zulu.com.co/v1",
      "description": "Sandbox: simulated API, no real money."
    }
  ],
  "tags": [
    {
      "name": "auth",
      "description": "OAuth2 `client_credentials`: exchange your `client_id` and `client_secret` for a one-hour access token and send it as `Authorization: Bearer` together with your `X-API-Key`.",
      "x-displayName": "Authentication"
    },
    {
      "name": "pay-in",
      "description": "Receive money into your COP balance: PSE payment links, Bre-B keys and Bre-B QR codes, and the deposits they produce.",
      "x-displayName": "Pay-in"
    },
    {
      "name": "fx",
      "description": "Convert between USD and COP: request a 30-second quote and execute it once, settling the same, the next or the second business day.",
      "x-displayName": "FX"
    },
    {
      "name": "payout",
      "description": "Withdraw COP balance to bank accounts in Colombia: zulu picks Bre-B, online ACH or manual payment. Resolve Bre-B keys before paying.",
      "x-displayName": "Payout"
    },
    {
      "name": "account",
      "description": "Your balances, your current limits and the transaction history (withdrawals and conversions).",
      "x-displayName": "Account"
    },
    {
      "name": "catalogs",
      "description": "The banks and document types the other endpoints accept.",
      "x-displayName": "Catalogs"
    },
    {
      "name": "sandbox",
      "description": "Tools that only exist in the sandbox: they simulate third-party payments, advance transactions and top up balances so you can test every flow end to end.",
      "x-displayName": "Simulators"
    }
  ],
  "paths": {
    "/auth/token": {
      "post": {
        "operationId": "getToken",
        "summary": "Get an access token",
        "description": "**Production** · live on https://api.zulutransfer.com/v1 and simulated in the sandbox.\n\nIssues an OAuth2 access token (`client_credentials` grant) from the client credentials. Requires neither `X-API-Key` nor `Authorization`.\n\nThe token is a JWT signed with RS256, sent as `Authorization: Bearer <access_token>` on every other endpoint together with your `X-API-Key`. It expires in `expires_in` seconds (one hour): **reuse it until it expires** and only then request another; do not request a token per call.",
        "tags": [
          "auth"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          },
          {
            "url": "https://api.zulutransfer.com/v1",
            "description": "Production."
          }
        ],
        "security": [],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/get-token"
        },
        "x-zulu-availability": "PRODUCTION",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "OAUTH_INVALID_CLIENT",
          "OAUTH_CLIENT_DISABLED",
          "OAUTH_RATE_LIMITED",
          "INTERNAL"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "example": "YOUR_CLIENT_ID",
                    "description": "Client identifier. In the sandbox, the one of your dashboard credentials; in production, the one zulu hands over through a secure channel."
                  },
                  "client_secret": {
                    "type": "string",
                    "minLength": 1,
                    "example": "********",
                    "description": "Client secret. Treat it like a password: never in a frontend or a repository."
                  }
                },
                "required": [
                  "client_id",
                  "client_secret"
                ],
                "description": "Client credentials."
              },
              "examples": {
                "token": {
                  "summary": "Valid credentials",
                  "value": {
                    "client_id": "YOUR_CLIENT_ID",
                    "client_secret": "YOUR_CLIENT_SECRET"
                  }
                },
                "missingCredentials": {
                  "summary": "Body without credentials",
                  "value": {}
                },
                "invalidCredentials": {
                  "summary": "Wrong secret",
                  "value": {
                    "client_id": "YOUR_CLIENT_ID",
                    "client_secret": "not-the-secret"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Token issued.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                },
                "examples": {
                  "token": {
                    "summary": "Valid credentials",
                    "value": {
                      "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
                      "token_type": "Bearer",
                      "expires_in": 3600
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`client_id` or `client_secret` is missing, or the body is not valid JSON.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "missingCredentials": {
                    "summary": "Body without credentials",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "client_id": "failed validation on the \"required\" tag",
                        "client_secret": "failed validation on the \"required\" tag"
                      }
                    }
                  },
                  "INVALID_JSON": {
                    "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid credentials.\n\n- `Unauthorized`: The `client_id` or the `client_secret` is not valid.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthAccessDenied"
                },
                "examples": {
                  "invalidCredentials": {
                    "summary": "Wrong secret",
                    "value": {
                      "error": "access_denied",
                      "error_description": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The client is not enabled to use the API.\n\n- `Client is not authorized to access this API`: The credentials are valid but the client is not enabled to use the API (revoked credential or suspended workspace).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthAccessDenied"
                },
                "examples": {
                  "OAUTH_CLIENT_DISABLED": {
                    "summary": "The credentials are valid but the client is not enabled to use the API (revoked credential or suspended workspace)",
                    "value": {
                      "error": "access_denied",
                      "error_description": "Client is not authorized to access this API"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many token requests. Reuse the current token until it expires.\n\n- `Too many requests`: Too many token requests. Reuse the current token until it expires (`expires_in`).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthTooManyRequests"
                },
                "examples": {
                  "OAUTH_RATE_LIMITED": {
                    "summary": "Too many token requests",
                    "value": {
                      "error": "too_many_requests",
                      "error_description": "Too many requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/recharge-links": {
      "post": {
        "operationId": "createRechargeLink",
        "summary": "Create a PSE payment link",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nCreates a PSE payment link to share: whoever pays it funds your COP balance. With `amount` the amount is fixed; without it, the payer types it at checkout. Without `expiresInHours` the link never expires. You may hold up to 15 active links. In the sandbox the checkout is fake and the payment is simulated with `POST /v1/sandbox/recharge-links/{slug}/pay`; every status change sends the `RECHARGE_LINKS` webhook and the payment, the `DEPOSITS` webhook.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/create-recharge-link"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "RECHARGE_LINK_LIMIT",
          "RECHARGE_LINK_AMOUNT_RANGE"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "example": 250000,
                    "description": "Fixed COP amount (whole pesos, 100,000 to 1,000,000,000). Omit it or send `null` to let the payer type it.",
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "concept": {
                    "type": "string",
                    "maxLength": 60,
                    "example": "Cuota de noviembre",
                    "description": "Concept the payer sees (up to 60 characters)."
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 25,
                    "example": "FAC-2026-0042",
                    "description": "Your reconciliation reference (up to 25 characters)."
                  },
                  "paymentMethod": {
                    "type": "string",
                    "enum": [
                      "PSE"
                    ],
                    "example": "PSE",
                    "description": "Payment method.\n\n- `PSE`: PSE (debit from any Colombian bank).",
                    "x-enumDescriptions": {
                      "PSE": "PSE (debit from any Colombian bank)."
                    }
                  },
                  "expiresInHours": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 720,
                    "example": 72,
                    "description": "Hours until it expires (1 to 720). Without it, the link never expires."
                  }
                },
                "required": [
                  "paymentMethod"
                ],
                "description": "The link to create."
              },
              "examples": {
                "fixedAmount": {
                  "summary": "Fixed amount, expires in 72 hours",
                  "value": {
                    "amount": 250000,
                    "concept": "Cuota de noviembre",
                    "reference": "FAC-2026-0042",
                    "paymentMethod": "PSE",
                    "expiresInHours": 72
                  }
                },
                "openAmount": {
                  "summary": "Open amount, no expiry",
                  "value": {
                    "paymentMethod": "PSE",
                    "concept": "Abono a tu cuenta"
                  }
                },
                "missingPaymentMethod": {
                  "summary": "No payment method",
                  "value": {
                    "amount": 250000
                  }
                },
                "amountTooLow": {
                  "summary": "Amount below the minimum",
                  "value": {
                    "amount": 50000,
                    "paymentMethod": "PSE"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Link created.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RechargeLink"
                },
                "examples": {
                  "fixedAmount": {
                    "summary": "Fixed amount, expires in 72 hours",
                    "value": {
                      "slug": "7QmVt3KpXz",
                      "reference": "FAC-2026-0042",
                      "amount": 250000,
                      "concept": "Cuota de noviembre",
                      "paymentMethod": "PSE",
                      "status": "CREATED",
                      "checkoutUrl": "https://developers.zulu.com.co/checkout/7QmVt3KpXz",
                      "expiresAt": "2026-11-27T15:04:05.123Z",
                      "paidAt": null,
                      "failureReason": null,
                      "createdAt": "2026-11-24T15:04:05.123Z"
                    }
                  },
                  "openAmount": {
                    "summary": "Open amount, no expiry",
                    "value": {
                      "slug": "Hn4PzR8wQe",
                      "reference": "Hn4PzR8wQe",
                      "amount": null,
                      "concept": "Abono a tu cuenta",
                      "paymentMethod": "PSE",
                      "status": "CREATED",
                      "checkoutUrl": "https://developers.zulu.com.co/checkout/Hn4PzR8wQe",
                      "expiresAt": null,
                      "paidAt": null,
                      "failureReason": null,
                      "createdAt": "2026-11-24T15:04:05.123Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "missingPaymentMethod": {
                    "summary": "No payment method",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "paymentMethod": "failed validation on the \"required\" tag"
                      }
                    }
                  },
                  "INVALID_JSON": {
                    "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `the workspace already has 15 active recharge links`: You already hold the maximum of active links (`CREATED` or `AWAITING_PAYMENT`). Cancel one or wait until it is paid or expires.\n- `amount 50000 is outside the allowed range of 100000 to 1000000000`: The amount is outside the range allowed for PSE links.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "amountTooLow": {
                    "summary": "Amount below the minimum",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 50000 is outside the allowed range of 100000 to 1000000000"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "RECHARGE_LINK_LIMIT": {
                    "summary": "You already hold the maximum of active links (`CREATED` or `AWAITING_PAYMENT`)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the workspace already has 15 active recharge links"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      },
      "get": {
        "operationId": "listRechargeLinks",
        "summary": "List payment links",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nLists your PSE payment links, newest first by default. Filter by `status` and search by slug, reference or concept.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/list-recharge-links"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_QUERY",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "example": 1
            },
            "description": "Page, from 1."
          },
          {
            "in": "query",
            "name": "size",
            "schema": {
              "default": 10,
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "example": 10
            },
            "description": "Items per page, from 1 to 100."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Searches the slug, the reference and the concept."
          },
          {
            "in": "query",
            "name": "dateFrom",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-11-01"
            },
            "description": "From this date (inclusive), Bogotá time."
          },
          {
            "in": "query",
            "name": "dateTo",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-11-30"
            },
            "description": "Up to this date (inclusive), Bogotá time."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "createdAt",
              "type": "string",
              "enum": [
                "createdAt",
                "expiresAt",
                "amount"
              ],
              "x-enumDescriptions": {
                "createdAt": "Creation time.",
                "expiresAt": "Expiry.",
                "amount": "Amount."
              }
            },
            "description": "Field to sort by (default `createdAt`).\n\n- `createdAt`: Creation time.\n- `expiresAt`: Expiry.\n- `amount`: Amount."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "DESC",
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ],
              "x-enumDescriptions": {
                "ASC": "Ascending.",
                "DESC": "Descending (default)."
              }
            },
            "description": "Sort direction.\n\n- `ASC`: Ascending.\n- `DESC`: Descending (default)."
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string",
              "enum": [
                "CREATED",
                "AWAITING_PAYMENT",
                "PAID",
                "REFUSED",
                "EXPIRED",
                "CANCELLED"
              ],
              "x-enumDescriptions": {
                "CREATED": "Created; nobody opened it yet.",
                "AWAITING_PAYMENT": "The payer opened the checkout; the payment is in progress.",
                "PAID": "Paid: the deposit is in your balance.",
                "REFUSED": "The bank refused the payment; the payer may retry.",
                "EXPIRED": "Expired unpaid.",
                "CANCELLED": "You cancelled it."
              }
            },
            "description": "Only this status.\n\n- `CREATED`: Created; nobody opened it yet.\n- `AWAITING_PAYMENT`: The payer opened the checkout; the payment is in progress.\n- `PAID`: Paid: the deposit is in your balance.\n- `REFUSED`: The bank refused the payment; the payer may retry.\n- `EXPIRED`: Expired unpaid.\n- `CANCELLED`: You cancelled it."
          }
        ],
        "responses": {
          "200": {
            "description": "A page of links.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RechargeLinkList"
                },
                "examples": {
                  "open": {
                    "summary": "Links awaiting payment",
                    "value": {
                      "data": [
                        {
                          "slug": "7QmVt3KpXz",
                          "reference": "FAC-2026-0042",
                          "amount": 250000,
                          "concept": "Cuota de noviembre",
                          "paymentMethod": "PSE",
                          "status": "CREATED",
                          "checkoutUrl": "https://developers.zulu.com.co/checkout/7QmVt3KpXz",
                          "expiresAt": "2026-11-27T15:04:05.123Z",
                          "paidAt": null,
                          "failureReason": null,
                          "createdAt": "2026-11-24T15:04:05.123Z"
                        }
                      ],
                      "page": 1,
                      "size": 10,
                      "pages": 1,
                      "count": 1,
                      "total": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid value for \"page\": strconv.ParseInt: parsing \"abc\": invalid syntax`: A URL parameter can not be converted to its type (for example `page=abc`).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "invalidPage": {
                    "summary": "Non-numeric page",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid value for \"page\": strconv.ParseInt: parsing \"abc\": invalid syntax"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/recharge-links/{slug}": {
      "get": {
        "operationId": "getRechargeLink",
        "summary": "Get a payment link",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns a PSE payment link with its status. To learn about every change without polling, set up the `RECHARGE_LINKS` webhook.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/get-recharge-link"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "RECHARGE_LINK_NOT_FOUND"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "schema": {
              "type": "string",
              "example": "7QmVt3KpXz"
            },
            "required": true,
            "description": "Link slug."
          }
        ],
        "responses": {
          "200": {
            "description": "The link.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RechargeLink"
                },
                "examples": {
                  "paid": {
                    "summary": "A paid link",
                    "value": {
                      "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"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `recharge link \"7QmVt3KpXz\" not found`: No link with that slug exists in your workspace.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "notFound": {
                    "summary": "Unknown slug",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "recharge link \"ZZZZZZZZZZ\" not found"
                    }
                  },
                  "RECHARGE_LINK_NOT_FOUND": {
                    "summary": "No link with that slug exists in your workspace",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "recharge link \"7QmVt3KpXz\" not found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      },
      "delete": {
        "operationId": "cancelRechargeLink",
        "summary": "Cancel a payment link",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nCancels a link that was not paid yet: it becomes `CANCELLED` and stops taking payments (answers 204). Cancelling an already cancelled link also answers 204; a `PAID` or `EXPIRED` one answers 422. A PSE payment already in flight at the bank is still credited.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/cancel-recharge-link"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "RECHARGE_LINK_NOT_FOUND",
          "RECHARGE_LINK_STATE"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "schema": {
              "type": "string",
              "example": "7QmVt3KpXz"
            },
            "required": true,
            "description": "Link slug."
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/NoContent"
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "$ref": "#/components/responses/RechargeLinkNotFound"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `recharge link \"7QmVt3KpXz\" is PAID`: The link's status does not allow the operation (a `PAID` or `EXPIRED` link can no longer be cancelled or paid).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "alreadyPaid": {
                    "summary": "An already paid link",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "recharge link \"7QmVt3KpXz\" is PAID"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/bre-b/keys": {
      "get": {
        "operationId": "listBreBKeys",
        "summary": "List your Bre-B keys",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns the workspace's Bre-B keys (up to 5). A Bre-B transfer to any of them credits your COP balance and sends the `DEPOSITS` webhook.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/list-bre-b-keys"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "responses": {
          "200": {
            "description": "Your keys.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BreBKey"
                  },
                  "description": "Your keys, oldest first."
                },
                "examples": {
                  "keys": {
                    "summary": "One active key",
                    "value": [
                      {
                        "id": "9b2d7e14-3c5a-4f8e-a1b6-2d4c6e8f0a13",
                        "key": "@acmepagos",
                        "status": "ACTIVE",
                        "createdAt": "2026-11-24T15:04:05.123Z"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      },
      "post": {
        "operationId": "createBreBKey",
        "summary": "Create a Bre-B key",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nRegisters an alphanumeric key to receive Bre-B transfers into your COP balance: `@` followed by 1 to 30 letters or digits. Keys starting with `@zulu` and the sandbox test data are reserved. Up to 5 keys per workspace.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/create-bre-b-key"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "BRE_B_KEY_EXISTS",
          "BRE_B_KEY_LIMIT",
          "BRE_B_KEY_RESERVED"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 31,
                    "allOf": [
                      {
                        "pattern": "^@.*"
                      },
                      {
                        "pattern": "^@[A-Za-z0-9]{1,30}$"
                      }
                    ],
                    "example": "@acmepagos",
                    "description": "The key to register: `@` followed by 1 to 30 letters or digits (`@acmepagos`). `@zulu…` is reserved."
                  }
                },
                "required": [
                  "key"
                ],
                "description": "The key to create."
              },
              "examples": {
                "created": {
                  "summary": "A new key",
                  "value": {
                    "key": "@acmepagos"
                  }
                },
                "missingAt": {
                  "summary": "Key without `@`",
                  "value": {
                    "key": "acmepagos"
                  }
                },
                "duplicate": {
                  "summary": "Key already registered",
                  "value": {
                    "key": "@acmepagos"
                  }
                },
                "reserved": {
                  "summary": "Reserved key",
                  "value": {
                    "key": "@zulupagos"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Key created.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreBKey"
                },
                "examples": {
                  "created": {
                    "summary": "A new key",
                    "value": {
                      "id": "9b2d7e14-3c5a-4f8e-a1b6-2d4c6e8f0a13",
                      "key": "@acmepagos",
                      "status": "ACTIVE",
                      "createdAt": "2026-11-24T15:04:05.123Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "missingAt": {
                    "summary": "Key without `@`",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "key": "failed validation on the \"startswith\" tag with value required \"@\""
                      }
                    }
                  },
                  "VALIDATION": {
                    "summary": "One or more fields fail their validation",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "key": "failed validation on the \"required\" tag"
                      }
                    }
                  },
                  "INVALID_JSON": {
                    "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "409": {
            "description": "Conflict with the current state.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" is still being processed`: Another call with the same `Idempotency-Key` is still running. Retry in a few seconds to receive its response.\n- `bre-b key \"@acmepagos\" already exists`: You already registered that key.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceConflictApiError"
                },
                "examples": {
                  "duplicate": {
                    "summary": "Key already registered",
                    "value": {
                      "error": "ResourceConflictApiError",
                      "cause": "bre-b key \"@acmepagos\" already exists"
                    }
                  },
                  "IDEMPOTENCY_IN_FLIGHT": {
                    "summary": "Another call with the same `Idempotency-Key` is still running",
                    "value": {
                      "error": "ResourceConflictApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" is still being processed"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `the workspace already has 5 bre-b keys`: You reached the workspace maximum of keys. Delete one to create another.\n- `bre-b key \"@zulupagos\" is reserved`: Keys starting with `@zulu` and the sandbox test data are reserved.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "reserved": {
                    "summary": "Reserved key",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "bre-b key \"@zulupagos\" is reserved"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "BRE_B_KEY_LIMIT": {
                    "summary": "You reached the workspace maximum of keys",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the workspace already has 5 bre-b keys"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/bre-b/keys/{key}": {
      "delete": {
        "operationId": "deleteBreBKey",
        "summary": "Delete a Bre-B key",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nDeregisters one of your keys: it stops receiving transfers and frees its slot. QR codes tied to it stop taking payments. Send the key URL-encoded (`%40acmepagos`).",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/delete-bre-b-key"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "BRE_B_KEY_NOT_FOUND"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "schema": {
              "type": "string",
              "example": "@luisgomez"
            },
            "required": true,
            "description": "The key, URL-encoded (`@acme` → `%40acme`; use `encodeURIComponent`)."
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/NoContent"
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `bre-b key \"@notfound\" not found`: The key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: `@notfound`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "notYours": {
                    "summary": "A key that is not yours",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "bre-b key \"@otrallave\" not found"
                    }
                  },
                  "BRE_B_KEY_NOT_FOUND": {
                    "summary": "The key does not exist (in your workspace, or in the Bre-B directory when resolving it)",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "bre-b key \"@notfound\" not found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      },
      "get": {
        "operationId": "resolveBreBKey",
        "summary": "Resolve a Bre-B key",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nLooks a key up in the Bre-B directory (mobile, e-mail, document, merchant code or handle) and returns its holder and linked account: everything `POST /v1/transfer` needs in `destination`, `breBKey` included. Send the key URL-encoded (`@luisgomez` → `%40luisgomez`). Only an `ACTIVE` or `ACTIVE_BY_CLIENT` key receives payments. In the sandbox, `@notfound` answers 404, `@bloqueada` comes back blocked and any other key resolves to a deterministic synthetic holder.",
        "tags": [
          "payout"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/resolve-bre-b-key"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "BRE_B_KEY_NOT_FOUND"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "schema": {
              "type": "string",
              "example": "@luisgomez"
            },
            "required": true,
            "description": "The key, URL-encoded (`@acme` → `%40acme`; use `encodeURIComponent`)."
          }
        ],
        "responses": {
          "200": {
            "description": "The key exists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyResolution"
                },
                "examples": {
                  "resolved": {
                    "summary": "Active alphanumeric key",
                    "value": {
                      "key": "@luisgomez",
                      "keyType": "ALPHA",
                      "status": "ACTIVE",
                      "fullName": "Santiago Vargas",
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1383497382",
                      "bankCode": "0032",
                      "bankName": "Banco Caja Social Bcsc",
                      "accountType": "ahorros",
                      "accountNumber": "0009641366",
                      "bankOrgId": "860007335",
                      "bankCamera": "TFY"
                    }
                  },
                  "blocked": {
                    "summary": "Blocked key (`@bloqueada`)",
                    "value": {
                      "key": "@bloqueada",
                      "keyType": "ALPHA",
                      "status": "BLOCKED_BY_ZULU",
                      "fullName": "Juan Martínez",
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1372501175",
                      "bankCode": "0013",
                      "bankName": "BBVA",
                      "accountType": "ahorros",
                      "accountNumber": "0044515786",
                      "bankOrgId": "860003020",
                      "bankCamera": "TFY"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `bre-b key \"@notfound\" not found`: The key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: `@notfound`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "notFound": {
                    "summary": "Unknown key (`@notfound`)",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "bre-b key \"@notfound\" not found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/bre-b/qr-codes": {
      "post": {
        "operationId": "createQrCode",
        "summary": "Create a Bre-B QR code",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nCreates a Bre-B QR code tied to one of your keys. With `amount` it is dynamic (one payment of that amount, expiring after 60 minutes by default); without `amount` it is static (the payer types the amount and it takes several payments). `payload` is the EMVCo content to render your own image; `imageUrl`, a ready PNG. In the sandbox the QR uses a non-routable GUID and can never be paid for real: simulate the payment with `POST /v1/sandbox/bre-b/qr-codes/{id}/pay`.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/create-qr-code"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "BRE_B_KEY_NOT_FOUND",
          "BRE_B_KEY_BLOCKED",
          "BRE_B_NO_ACTIVE_KEY",
          "BRE_B_AMOUNT_ABOVE_MAXIMUM"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "maxLength": 31,
                    "example": "@acmepagos",
                    "description": "Your key that receives the payment. Without it, your oldest active key."
                  },
                  "amount": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "example": 85000,
                    "description": "COP amount (whole pesos, up to 12,110,000). With an amount the QR is dynamic."
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 25,
                    "example": "PED-1093",
                    "description": "Your reference (up to 25 characters)."
                  },
                  "expiresInMinutes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10080,
                    "example": 60,
                    "description": "Minutes until it expires (1 to 10,080). Default 60 for a dynamic QR; a static QR without it never expires."
                  }
                },
                "description": "The QR code to create."
              },
              "examples": {
                "dynamic": {
                  "summary": "Dynamic QR for 85,000 COP",
                  "value": {
                    "key": "@acmepagos",
                    "amount": 85000,
                    "reference": "PED-1093"
                  }
                },
                "static": {
                  "summary": "Static QR without amount",
                  "value": {}
                },
                "noActiveKey": {
                  "summary": "Workspace without active keys",
                  "value": {
                    "amount": 85000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "QR code created.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QrCode"
                },
                "examples": {
                  "dynamic": {
                    "summary": "Dynamic QR for 85,000 COP",
                    "value": {
                      "id": "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d",
                      "type": "DYNAMIC",
                      "key": "@acmepagos",
                      "amount": 85000,
                      "reference": "PED-1093",
                      "payload": "00020101021226330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705405850005802CO5912SANDBOX ACME6006BOGOTA62120508PED-1093630427D6",
                      "imageUrl": "https://developers.zulu.com.co/qr/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d.svg",
                      "status": "ACTIVE",
                      "expiresAt": "2026-11-24T16:04:05.123Z"
                    }
                  },
                  "static": {
                    "summary": "Static QR without amount",
                    "value": {
                      "id": "6e1f4a7c-2b9d-4c3e-8f5a-7d0b1c2e3f40",
                      "type": "STATIC",
                      "key": "@acmepagos",
                      "amount": null,
                      "reference": null,
                      "payload": "00020101021126330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705802CO5912SANDBOX ACME6006BOGOTA63046DFC",
                      "imageUrl": "https://developers.zulu.com.co/qr/6e1f4a7c-2b9d-4c3e-8f5a-7d0b1c2e3f40.svg",
                      "status": "ACTIVE",
                      "expiresAt": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "$ref": "#/components/responses/BreBKeyNotFound"
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `bre-b key \"@acmepagos\" is blocked`: The key is blocked and does not receive payments.\n- `the workspace does not have an active bre-b key`: To create a QR without `key`, the workspace needs at least one active key (`POST /v1/bre-b/keys`).\n- `amount 15000000 is above the bre-b maximum of 12110000`: Bre-B accepts up to 12,110,000 COP per transfer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "noActiveKey": {
                    "summary": "Workspace without active keys",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the workspace does not have an active bre-b key"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "BRE_B_KEY_BLOCKED": {
                    "summary": "The key is blocked and does not receive payments",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "bre-b key \"@acmepagos\" is blocked"
                    }
                  },
                  "BRE_B_AMOUNT_ABOVE_MAXIMUM": {
                    "summary": "Bre-B accepts up to 12,110,000 COP per transfer",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 15000000 is above the bre-b maximum of 12110000"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/bre-b/qr-codes/{id}": {
      "get": {
        "operationId": "getQrCode",
        "summary": "Get a QR code",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns a Bre-B QR code with its status: `ACTIVE` while it takes payments, `PAID` once a dynamic QR was paid, `EXPIRED` when it expires. Every payment creates a deposit (`GET /v1/deposits?reference=…`).",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/get-qr-code"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "QR_CODE_NOT_FOUND"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "example": "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d"
            },
            "required": true,
            "description": "QR code id."
          }
        ],
        "responses": {
          "200": {
            "description": "The QR code.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QrCode"
                },
                "examples": {
                  "paid": {
                    "summary": "A paid dynamic QR",
                    "value": {
                      "id": "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d",
                      "type": "DYNAMIC",
                      "key": "@acmepagos",
                      "amount": 85000,
                      "reference": "PED-1093",
                      "payload": "00020101021226330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705405850005802CO5912SANDBOX ACME6006BOGOTA62120508PED-1093630427D6",
                      "imageUrl": "https://developers.zulu.com.co/qr/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d.svg",
                      "status": "PAID",
                      "expiresAt": "2026-11-24T16:04:05.123Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" not found`: No QR code with that id exists in your workspace.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "notFound": {
                    "summary": "Unknown id",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "qr code \"00000000-0000-4000-8000-000000000000\" not found"
                    }
                  },
                  "QR_CODE_NOT_FOUND": {
                    "summary": "No QR code with that id exists in your workspace",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" not found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/deposits": {
      "get": {
        "operationId": "listDeposits",
        "summary": "List deposits",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nLists the money that arrived into your COP balance: paid PSE links, Bre-B transfers to your keys and paid QR codes. Filter by `method` and reconcile with `reference` (the link's reference, the receiving key or the QR's reference).",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/list-deposits"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_QUERY",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "example": 1
            },
            "description": "Page, from 1."
          },
          {
            "in": "query",
            "name": "size",
            "schema": {
              "default": 10,
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "example": 10
            },
            "description": "Items per page, from 1 to 100."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Searches the id, the reference and the payer."
          },
          {
            "in": "query",
            "name": "dateFrom",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-11-01"
            },
            "description": "From this date (inclusive), Bogotá time."
          },
          {
            "in": "query",
            "name": "dateTo",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-11-30"
            },
            "description": "Up to this date (inclusive), Bogotá time."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "createdAt",
              "type": "string",
              "enum": [
                "createdAt",
                "amount"
              ],
              "x-enumDescriptions": {
                "createdAt": "Arrival time.",
                "amount": "Amount."
              }
            },
            "description": "Field to sort by (default `createdAt`).\n\n- `createdAt`: Arrival time.\n- `amount`: Amount."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "DESC",
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ],
              "x-enumDescriptions": {
                "ASC": "Ascending.",
                "DESC": "Descending (default)."
              }
            },
            "description": "Sort direction.\n\n- `ASC`: Ascending.\n- `DESC`: Descending (default)."
          },
          {
            "in": "query",
            "name": "method",
            "schema": {
              "type": "string",
              "enum": [
                "PSE",
                "BRE_B",
                "BRE_B_QR"
              ],
              "x-enumDescriptions": {
                "PSE": "Payment of a PSE link.",
                "BRE_B": "Bre-B transfer to one of your keys.",
                "BRE_B_QR": "Payment of one of your Bre-B QR codes."
              }
            },
            "description": "Only this method.\n\n- `PSE`: Payment of a PSE link.\n- `BRE_B`: Bre-B transfer to one of your keys.\n- `BRE_B_QR`: Payment of one of your Bre-B QR codes."
          },
          {
            "in": "query",
            "name": "reference",
            "schema": {
              "type": "string",
              "maxLength": 60,
              "example": "@acmepagos"
            },
            "description": "Only this exact reference."
          }
        ],
        "responses": {
          "200": {
            "description": "A page of deposits.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepositList"
                },
                "examples": {
                  "all": {
                    "summary": "The day's deposits",
                    "value": {
                      "data": [
                        {
                          "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"
                        },
                        {
                          "depositId": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f",
                          "method": "BRE_B",
                          "amount": 250000,
                          "currency": "COP",
                          "reference": "@acmepagos",
                          "externalId": "SBXBREB2611241504052K9Q",
                          "payer": {
                            "fullName": "Marta Ruiz",
                            "documentType": "CC",
                            "documentNumber": "52123456",
                            "bankName": "Banco Davivienda"
                          },
                          "createdAt": "2026-11-24T15:04:05.123Z"
                        }
                      ],
                      "page": 1,
                      "size": 10,
                      "pages": 1,
                      "count": 2,
                      "total": 2
                    }
                  },
                  "byReference": {
                    "summary": "Reconcile an invoice",
                    "value": {
                      "data": [
                        {
                          "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"
                        }
                      ],
                      "page": 1,
                      "size": 10,
                      "pages": 1,
                      "count": 1,
                      "total": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid value for \"page\": strconv.ParseInt: parsing \"abc\": invalid syntax`: A URL parameter can not be converted to its type (for example `page=abc`).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "invalidDate": {
                    "summary": "Malformed date",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "dateFrom": "failed validation on the \"date_format\" tag with value required \"YYYY-MM-DD\""
                      }
                    }
                  },
                  "INVALID_QUERY": {
                    "summary": "A URL parameter can not be converted to its type (for example `page=abc`)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid value for \"page\": strconv.ParseInt: parsing \"abc\": invalid syntax"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/deposits/{depositId}": {
      "get": {
        "operationId": "getDeposit",
        "summary": "Get a deposit",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns a deposit with its payer and reference. The id arrives in the `DEPOSITS` webhook.",
        "tags": [
          "pay-in"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/get-deposit"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "DEPOSIT_NOT_FOUND"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "depositId",
            "schema": {
              "type": "string",
              "example": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f"
            },
            "required": true,
            "description": "Deposit id."
          }
        ],
        "responses": {
          "200": {
            "description": "The deposit.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deposit"
                },
                "examples": {
                  "breB": {
                    "summary": "A received Bre-B transfer",
                    "value": {
                      "depositId": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f",
                      "method": "BRE_B",
                      "amount": 250000,
                      "currency": "COP",
                      "reference": "@acmepagos",
                      "externalId": "SBXBREB2611241504052K9Q",
                      "payer": {
                        "fullName": "Marta Ruiz",
                        "documentType": "CC",
                        "documentNumber": "52123456",
                        "bankName": "Banco Davivienda"
                      },
                      "createdAt": "2026-11-24T15:04:05.123Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `deposit \"SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f\" not found`: No deposit with that id exists in your workspace.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "notFound": {
                    "summary": "Unknown id",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "deposit \"SBX-MOV-CREDIT-00000000-0000-4000-8000-000000000000\" not found"
                    }
                  },
                  "DEPOSIT_NOT_FOUND": {
                    "summary": "No deposit with that id exists in your workspace",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "deposit \"SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f\" not found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/quotes": {
      "get": {
        "operationId": "getQuote",
        "summary": "Quote a conversion",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nCreates a USD↔COP quote that expires after 30 seconds and serves a single conversion (`POST /v1/transactions`). `factor` is always COP per USD: buying USD (COP→USD) it includes zulu's spread, and so does selling them (USD→COP). The term (`SAME_DAY`, `NEXT_DAY`, `SECOND_DAY`) sets the settlement date; `SAME_DAY` only until 13:00 under `REAL` hours. In the sandbox the rate is synthetic: not a real quote.",
        "tags": [
          "fx"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/get-quote"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "RATE_NOT_FOUND",
          "FX_MARKET_CLOSED",
          "FX_SAME_DAY_CUTOFF"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string",
              "enum": [
                "COP",
                "USD"
              ],
              "example": "COP",
              "x-enumDescriptions": {
                "COP": "Colombian peso (whole pesos).",
                "USD": "US dollar (up to 2 decimals)."
              }
            },
            "required": true,
            "description": "Origin currency (the one you hand over).\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals)."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string",
              "enum": [
                "COP",
                "USD"
              ],
              "example": "USD",
              "x-enumDescriptions": {
                "COP": "Colombian peso (whole pesos).",
                "USD": "US dollar (up to 2 decimals)."
              }
            },
            "required": true,
            "description": "Destination currency (the one you receive).\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals)."
          },
          {
            "in": "query",
            "name": "settlementTerm",
            "schema": {
              "default": "SAME_DAY",
              "type": "string",
              "enum": [
                "SAME_DAY",
                "NEXT_DAY",
                "SECOND_DAY"
              ],
              "example": "SAME_DAY",
              "x-enumDescriptions": {
                "SAME_DAY": "Settles the same business day (before the 13:00 cutoff).",
                "NEXT_DAY": "Settles the next business day.",
                "SECOND_DAY": "Settles on the second business day."
              }
            },
            "description": "Settlement term (default `SAME_DAY`).\n\n- `SAME_DAY`: Settles the same business day (before the 13:00 cutoff).\n- `NEXT_DAY`: Settles the next business day.\n- `SECOND_DAY`: Settles on the second business day."
          }
        ],
        "responses": {
          "200": {
            "description": "Quote issued.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Quote"
                },
                "examples": {
                  "buyUsd": {
                    "summary": "Buy USD with COP, same day",
                    "value": {
                      "quote": "EQ-COPXUSDX-261124150405-SBX7Q",
                      "expiresAt": "2026-11-24T15:04:35.123Z",
                      "from": {
                        "country": "COL",
                        "currency": {
                          "code": "COP",
                          "decimals": 0
                        }
                      },
                      "to": {
                        "country": "USA",
                        "currency": {
                          "code": "USD",
                          "decimals": 2
                        }
                      },
                      "factor": 3973.7,
                      "factorFormula": "COP/USD",
                      "settlementTerm": "SAME_DAY",
                      "settlementDate": "2026-11-24"
                    }
                  },
                  "sellUsd": {
                    "summary": "Sell USD for COP, same day",
                    "value": {
                      "quote": "EQ-USDXCOPX-261124150405-SBX3M",
                      "expiresAt": "2026-11-24T15:04:35.123Z",
                      "from": {
                        "country": "USA",
                        "currency": {
                          "code": "USD",
                          "decimals": 2
                        }
                      },
                      "to": {
                        "country": "COL",
                        "currency": {
                          "code": "COP",
                          "decimals": 0
                        }
                      },
                      "factor": 3926.3,
                      "factorFormula": "COP/USD",
                      "settlementTerm": "SAME_DAY",
                      "settlementDate": "2026-11-24"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "sameCurrency": {
                    "summary": "The same currency on both sides",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "from": "failed validation on the \"not_equal_to\" tag with value required \"To\"",
                        "to": "failed validation on the \"not_equal_to\" tag with value required \"From\""
                      }
                    }
                  },
                  "missingCurrencies": {
                    "summary": "No currencies",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "from": "failed validation on the \"required\" tag",
                        "to": "failed validation on the \"required\" tag"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `rate \"COP->USD\" not found`: There is no rate configured for that currency pair.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "RATE_NOT_FOUND": {
                    "summary": "There is no rate configured for that currency pair",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "rate \"COP->USD\" not found"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `the fx market is closed`: The FX market is closed (`REAL` hours: 08:05–15:30 on Bogotá business days). The sandbox defaults to `ALWAYS_OPEN`.\n- `SAME_DAY settlement is not available after 13:00`: After the cutoff `SAME_DAY` is not available; quote `NEXT_DAY` or `SECOND_DAY`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "FX_MARKET_CLOSED": {
                    "summary": "The FX market is closed (`REAL` hours: 08:05–15:30 on Bogotá business days)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the fx market is closed"
                    }
                  },
                  "FX_SAME_DAY_CUTOFF": {
                    "summary": "After the cutoff `SAME_DAY` is not available; quote `NEXT_DAY` or `SECOND_DAY`",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "SAME_DAY settlement is not available after 13:00"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/transactions": {
      "post": {
        "operationId": "createFxTransaction",
        "summary": "Convert with a quote",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nExecutes a current quote: debits the origin currency from your balance and credits the destination one on the settlement date. Send `originAmount` **or** `destinationAmount`; the other side is computed with the factor. If you send both, they must match exactly.\n\nRounding (f₂ = factor × 100): COP→USD, cents = round(pesos × 10⁴ / f₂); USD→COP, pesos = round(cents × f₂ / 10⁴). With `destinationAmount` the origin is rounded up so you never receive less than asked. Both sides must stay within the limits of `GET /v1/limits`.\n\nThe conversion stays `IN_PROGRESS` until settlement and then becomes `COMPLETED`; it never goes through `SENT`.",
        "tags": [
          "fx"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/create-fx-transaction"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "QUOTE_NOT_FOUND",
          "QUOTE_EXPIRED",
          "QUOTE_ALREADY_USED",
          "FX_AMOUNTS_MISMATCH",
          "FX_INSUFFICIENT_BALANCE",
          "FX_AMOUNT_BELOW_MINIMUM",
          "FX_AMOUNT_ABOVE_MAXIMUM",
          "AMOUNT_PRECISION"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quote": {
                    "type": "string",
                    "minLength": 30,
                    "maxLength": 30,
                    "example": "EQ-COPXUSDX-261124150405-SBX7Q",
                    "description": "Quote id (`GET /v1/quotes`), 30 characters long."
                  },
                  "originAmount": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "example": 4000000,
                    "description": "Amount to debit in the origin currency. Required when `destinationAmount` is not sent."
                  },
                  "destinationAmount": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "example": 1006.62,
                    "description": "Amount to receive in the destination currency. Required when `originAmount` is not sent."
                  }
                },
                "required": [
                  "quote"
                ],
                "description": "The quote to execute and one of its two amounts."
              },
              "examples": {
                "byOrigin": {
                  "summary": "Convert 4,000,000 COP to USD",
                  "value": {
                    "quote": "EQ-COPXUSDX-261124150405-SBX7Q",
                    "originAmount": 4000000
                  }
                },
                "byDestination": {
                  "summary": "Receive exactly 1,000 USD",
                  "value": {
                    "quote": "EQ-COPXUSDX-261124150405-SBX7Q",
                    "destinationAmount": 1000
                  }
                },
                "missingAmounts": {
                  "summary": "No amount at all",
                  "value": {
                    "quote": "EQ-COPXUSDX-261124150405-SBX7Q"
                  }
                },
                "expiredQuote": {
                  "summary": "Expired quote",
                  "value": {
                    "quote": "EQ-COPXUSDX-261124150405-SBX7Q",
                    "originAmount": 4000000
                  }
                },
                "amountsMismatch": {
                  "summary": "Two amounts that do not match",
                  "value": {
                    "quote": "EQ-COPXUSDX-261124150405-SBX7Q",
                    "originAmount": 4000000,
                    "destinationAmount": 1010
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Conversion created.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FxTransactionCreated"
                },
                "examples": {
                  "byOrigin": {
                    "summary": "Convert 4,000,000 COP to USD",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124W8D3QF-2K",
                      "type": "FX",
                      "status": "IN_PROGRESS",
                      "originCurrency": "COP",
                      "originAmount": 4000000,
                      "destinationCurrency": "USD",
                      "destinationAmount": 1006.62,
                      "factor": 3973.7,
                      "factorFormula": "COP/USD",
                      "settlementTerm": "SAME_DAY",
                      "settlementDate": "2026-11-24"
                    }
                  },
                  "byDestination": {
                    "summary": "Receive exactly 1,000 USD",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124W8D3QF-2K",
                      "type": "FX",
                      "status": "IN_PROGRESS",
                      "originCurrency": "COP",
                      "originAmount": 3973700,
                      "destinationCurrency": "USD",
                      "destinationAmount": 1000,
                      "factor": 3973.7,
                      "factorFormula": "COP/USD",
                      "settlementTerm": "SAME_DAY",
                      "settlementDate": "2026-11-24"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "missingAmounts": {
                    "summary": "No amount at all",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "destinationAmount": "failed validation on the \"required_without\" tag with value required \"OriginAmount\"",
                        "originAmount": "failed validation on the \"required_without\" tag with value required \"DestinationAmount\""
                      }
                    }
                  },
                  "VALIDATION": {
                    "summary": "One or more fields fail their validation",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "destinationAmount": "failed validation on the \"required_without\" tag with value required \"OriginAmount\"",
                        "originAmount": "failed validation on the \"required_without\" tag with value required \"DestinationAmount\"",
                        "quote": "failed validation on the \"required\" tag"
                      }
                    }
                  },
                  "INVALID_JSON": {
                    "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `quote \"EQ-COPXUSDX-261124150405-SBX7Q\" not found`: No quote with that id exists in your workspace.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "QUOTE_NOT_FOUND": {
                    "summary": "No quote with that id exists in your workspace",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "quote \"EQ-COPXUSDX-261124150405-SBX7Q\" not found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `quote \"EQ-COPXUSDX-261124150405-SBX7Q\" is expired`: The quote expired (it lives 30 seconds). Request a new one.\n- `quote \"EQ-COPXUSDX-261124150405-SBX7Q\" has already been used`: Each quote serves a single conversion.\n- `origin or destination amount wasn't calculated with factor \"3973.7\"`: You sent `originAmount` and `destinationAmount` and they do not match the quote's factor. Send only one of them.\n- `insufficient COP balance to convert 4000000.00`: The balance of the origin currency is not enough.\n- `USD amount 0.50 is below the minimum of 1.00`: One side of the conversion is below the minimum (`GET /v1/limits`).\n- `USD amount 1500000.00 is above the maximum of 1000000.00`: One side of the conversion exceeds the maximum (`GET /v1/limits`).\n- `amount 1500.5 has too many decimals for COP (max 0)`: The amount has more decimals than its currency allows: COP in whole pesos, USD up to 2 decimals.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "expiredQuote": {
                    "summary": "Expired quote",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "quote \"EQ-COPXUSDX-261124150405-SBX7Q\" is expired"
                    }
                  },
                  "amountsMismatch": {
                    "summary": "Two amounts that do not match",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "origin or destination amount wasn't calculated with factor \"3973.7\""
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "QUOTE_ALREADY_USED": {
                    "summary": "Each quote serves a single conversion",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "quote \"EQ-COPXUSDX-261124150405-SBX7Q\" has already been used"
                    }
                  },
                  "FX_INSUFFICIENT_BALANCE": {
                    "summary": "The balance of the origin currency is not enough",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "insufficient COP balance to convert 4000000.00"
                    }
                  },
                  "FX_AMOUNT_BELOW_MINIMUM": {
                    "summary": "One side of the conversion is below the minimum (`GET /v1/limits`)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "USD amount 0.50 is below the minimum of 1.00"
                    }
                  },
                  "FX_AMOUNT_ABOVE_MAXIMUM": {
                    "summary": "One side of the conversion exceeds the maximum (`GET /v1/limits`)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "USD amount 1500000.00 is above the maximum of 1000000.00"
                    }
                  },
                  "AMOUNT_PRECISION": {
                    "summary": "The amount has more decimals than its currency allows: COP in whole pesos, USD up to 2 decimals",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 1500.5 has too many decimals for COP (max 0)"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      },
      "get": {
        "operationId": "listTransactions",
        "summary": "List transactions",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nLists the workspace's withdrawals and conversions, newest first by default. Filter by `type`, `status`, `method` and `currency`, search with `search` and bound by Bogotá dates with `dateFrom`/`dateTo`.",
        "tags": [
          "account"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/list-transactions"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_QUERY",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "example": 1
            },
            "description": "Page, from 1."
          },
          {
            "in": "query",
            "name": "size",
            "schema": {
              "default": 10,
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "example": 10
            },
            "description": "Items per page, from 1 to 100."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Searches the id, the note, the document and the beneficiary name."
          },
          {
            "in": "query",
            "name": "dateFrom",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-11-01"
            },
            "description": "From this date (inclusive), Bogotá time."
          },
          {
            "in": "query",
            "name": "dateTo",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-11-30"
            },
            "description": "Up to this date (inclusive), Bogotá time."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "createdAt",
              "type": "string",
              "enum": [
                "createdAt",
                "updatedAt",
                "amount"
              ],
              "x-enumDescriptions": {
                "createdAt": "Creation time.",
                "updatedAt": "Last update.",
                "amount": "Amount."
              }
            },
            "description": "Field to sort by (default `createdAt`).\n\n- `createdAt`: Creation time.\n- `updatedAt`: Last update.\n- `amount`: Amount."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "DESC",
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ],
              "x-enumDescriptions": {
                "ASC": "Ascending.",
                "DESC": "Descending (default)."
              }
            },
            "description": "Sort direction.\n\n- `ASC`: Ascending.\n- `DESC`: Descending (default)."
          },
          {
            "in": "query",
            "name": "type",
            "schema": {
              "type": "string",
              "enum": [
                "TRANSFER",
                "FX"
              ],
              "x-enumDescriptions": {
                "TRANSFER": "COP balance withdrawal (`POST /v1/transfer`).",
                "FX": "USD↔COP conversion (`POST /v1/transactions`)."
              }
            },
            "description": "Only this type.\n\n- `TRANSFER`: COP balance withdrawal (`POST /v1/transfer`).\n- `FX`: USD↔COP conversion (`POST /v1/transactions`)."
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string",
              "enum": [
                "CREATED",
                "IN_PROGRESS",
                "SENT",
                "COMPLETED",
                "REJECTED"
              ],
              "x-enumDescriptions": {
                "CREATED": "Created. For a Bre-B withdrawal, the transfer is in flight.",
                "IN_PROGRESS": "In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.",
                "SENT": "The money was sent to the beneficiary's bank. Withdrawals only (never FX).",
                "COMPLETED": "Completed.",
                "REJECTED": "Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
              }
            },
            "description": "Only this status.\n\n- `CREATED`: Created. For a Bre-B withdrawal, the transfer is in flight.\n- `IN_PROGRESS`: In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.\n- `SENT`: The money was sent to the beneficiary's bank. Withdrawals only (never FX).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
          },
          {
            "in": "query",
            "name": "method",
            "schema": {
              "type": "string",
              "enum": [
                "BRE_B",
                "ACH",
                "MANUAL"
              ],
              "x-enumDescriptions": {
                "BRE_B": "Bre-B: `breBKey` was sent and the amount is within the Bre-B maximum.",
                "ACH": "Online ACH: a bank with an ACH code, whole pesos and within the current caps.",
                "MANUAL": "Manual payment: in any other case, or when the online transfer could not go out. Not an error."
              }
            },
            "description": "Only this method (withdrawals).\n\n- `BRE_B`: Bre-B: `breBKey` was sent and the amount is within the Bre-B maximum.\n- `ACH`: Online ACH: a bank with an ACH code, whole pesos and within the current caps.\n- `MANUAL`: Manual payment: in any other case, or when the online transfer could not go out. Not an error."
          },
          {
            "in": "query",
            "name": "currency",
            "schema": {
              "type": "string",
              "enum": [
                "COP",
                "USD"
              ],
              "x-enumDescriptions": {
                "COP": "Colombian peso (whole pesos).",
                "USD": "US dollar (up to 2 decimals)."
              }
            },
            "description": "Only this currency.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals)."
          }
        ],
        "responses": {
          "200": {
            "description": "A page of transactions.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionList"
                },
                "examples": {
                  "firstPage": {
                    "summary": "First page",
                    "value": {
                      "data": [
                        {
                          "transactionId": "SBX-OR-NPTRFI261124W8D3QF-2K",
                          "type": "FX",
                          "status": "IN_PROGRESS",
                          "amount": 4000000,
                          "currency": "COP",
                          "fee": 0,
                          "fx": {
                            "quote": "EQ-COPXUSDX-261124150405-SBX7Q",
                            "originCurrency": "COP",
                            "originAmount": 4000000,
                            "destinationCurrency": "USD",
                            "destinationAmount": 1006.62,
                            "factor": 3973.7,
                            "factorFormula": "COP/USD",
                            "settlementTerm": "SAME_DAY",
                            "settlementDate": "2026-11-24"
                          },
                          "rejectionReason": null,
                          "statusHistory": [
                            {
                              "status": "IN_PROGRESS",
                              "at": "2026-11-24T15:04:20.456Z"
                            }
                          ],
                          "createdAt": "2026-11-24T15:04:20.456Z",
                          "updatedAt": "2026-11-24T15:04:20.456Z"
                        },
                        {
                          "transactionId": "SBX-OR-NPTRFI261124K7Q2M9-X4",
                          "type": "TRANSFER",
                          "status": "COMPLETED",
                          "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:35.123Z"
                            },
                            {
                              "status": "COMPLETED",
                              "at": "2026-11-24T15:05:05.123Z"
                            }
                          ],
                          "createdAt": "2026-11-24T15:04:05.123Z",
                          "updatedAt": "2026-11-24T15:05:05.123Z"
                        }
                      ],
                      "page": 1,
                      "size": 10,
                      "pages": 1,
                      "count": 2,
                      "total": 2
                    }
                  },
                  "completedWithdrawals": {
                    "summary": "Completed withdrawals only",
                    "value": {
                      "data": [
                        {
                          "transactionId": "SBX-OR-NPTRFI261124K7Q2M9-X4",
                          "type": "TRANSFER",
                          "status": "COMPLETED",
                          "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:35.123Z"
                            },
                            {
                              "status": "COMPLETED",
                              "at": "2026-11-24T15:05:05.123Z"
                            }
                          ],
                          "createdAt": "2026-11-24T15:04:05.123Z",
                          "updatedAt": "2026-11-24T15:05:05.123Z"
                        }
                      ],
                      "page": 1,
                      "size": 10,
                      "pages": 1,
                      "count": 1,
                      "total": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid value for \"page\": strconv.ParseInt: parsing \"abc\": invalid syntax`: A URL parameter can not be converted to its type (for example `page=abc`).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "pageTooLarge": {
                    "summary": "Page size out of range",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "size": "failed validation on the \"lte\" tag with value required \"100\""
                      }
                    }
                  },
                  "INVALID_QUERY": {
                    "summary": "A URL parameter can not be converted to its type (for example `page=abc`)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid value for \"page\": strconv.ParseInt: parsing \"abc\": invalid syntax"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/transfer": {
      "post": {
        "operationId": "createTransfer",
        "summary": "Withdraw COP balance",
        "description": "**Production** · live on https://api.zulutransfer.com/v1 and simulated in the sandbox.\n\nWithdraws COP balance to a bank account in Colombia, your own or a third party's.\n\n**Balance holder.** Comes from the access token: the withdrawal is debited from the COP account of your credentials' user. It is never sent in the body.\n\n**Beneficiary.** Identified by document type and number. It may be the holder itself (one of its accounts) or a third party:\n\n- If already registered, it must be verified and its name must match the one sent (format, accents and order are tolerated).\n- If not registered, it is registered with the data sent (names or company name).\n- If the bank account is not registered for the beneficiary, it is registered.\n\n**Payout method.** zulu picks how the money goes out and reports it in `method`:\n\n- `BRE_B`: when `breBKey` is sent and the amount is within the Bre-B maximum (12,110,000 COP).\n- `ACH`: online transfer, when the beneficiary's bank (`bankCode`) is known and supported, the amount is in whole pesos and within the current caps (`GET /v1/limits`).\n- `MANUAL`: in any other case, or when the online transfer could not go out. The withdrawal stays in progress and zulu pays it through the traditional channel; it is not an error.\n\n**Balance.** The amount (plus the dispersion fee, when one applies) is debited from the COP balance when the withdrawal is created. If the balance is not enough, the withdrawal is refused and nothing is recorded.\n\n**Statuses.** `status` uses the same vocabulary in every response and webhook:\n\n| Status | Meaning |\n|---|---|\n| `CREATED` | Withdrawal created; the Bre-B transfer is in flight. |\n| `IN_PROGRESS` | Withdrawal being paid (ACH or manual). |\n| `SENT` | The money was sent to the beneficiary's bank. |\n| `COMPLETED` | Withdrawal completed. |\n| `REJECTED` | Withdrawal rejected. |\n\n**Retries.** Every call creates a new withdrawal. On a 5xx or a timeout, do not retry blindly: check its status before sending it again so the payment is not duplicated. In the sandbox you can send `Idempotency-Key` (coming to production).",
        "tags": [
          "payout"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          },
          {
            "url": "https://api.zulutransfer.com/v1",
            "description": "Production."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/create-transfer"
        },
        "x-zulu-availability": "PRODUCTION",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "USER_NOT_VERIFIED",
          "ORIGIN_ENTITY_NOT_FOUND",
          "BENEFICIARY_NOT_VERIFIED",
          "BENEFICIARY_NAME_MISMATCH",
          "INSUFFICIENT_BALANCE",
          "COP_ACCOUNT_NOT_FOUND",
          "BANK_NOT_SUPPORTED",
          "ACCOUNT_TYPE_NOT_SUPPORTED",
          "DOCUMENT_TYPE_NOT_SUPPORTED",
          "DESTINATION_FIELD_INVALID",
          "WITHDRAWAL_FAILED"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "example": 150000,
                    "description": "COP amount to withdraw, greater than 0. To go out by online ACH it must be in whole pesos; it is rounded to cents."
                  },
                  "note": {
                    "type": "string",
                    "example": "Pago factura 1234",
                    "description": "Free-text comment recorded on the withdrawal."
                  },
                  "destination": {
                    "type": "object",
                    "properties": {
                      "entityType": {
                        "type": "string",
                        "enum": [
                          "person",
                          "company"
                        ],
                        "example": "person",
                        "description": "Beneficiary type.\n\n- `person`: Natural person (an individual).\n- `company`: Company (legal entity).",
                        "x-enumDescriptions": {
                          "person": "Natural person (an individual).",
                          "company": "Company (legal entity)."
                        }
                      },
                      "documentType": {
                        "type": "string",
                        "minLength": 1,
                        "example": "CC",
                        "description": "Beneficiary document type (for example `CC`, `CE`, `PPT`, `PAS` or `NIT`; `GET /v1/document-types`)."
                      },
                      "documentNumber": {
                        "type": "string",
                        "minLength": 1,
                        "example": "1020304050",
                        "description": "Document number. For companies the NIT is accepted with or without its check digit."
                      },
                      "firstName": {
                        "type": "string",
                        "example": "Luis",
                        "description": "First name(s). Required when `entityType` is `person`."
                      },
                      "middleName": {
                        "type": "string",
                        "description": "Middle name."
                      },
                      "lastName": {
                        "type": "string",
                        "example": "Gómez",
                        "description": "Last name. Required when `entityType` is `person`."
                      },
                      "secondLastName": {
                        "type": "string",
                        "description": "Second last name."
                      },
                      "companyName": {
                        "type": "string",
                        "example": "Acme S.A.S.",
                        "description": "Company name. Required when `entityType` is `company`."
                      },
                      "bankAccount": {
                        "type": "object",
                        "properties": {
                          "bankCode": {
                            "type": "string",
                            "example": "0807",
                            "description": "Bank code (4-digit ACH code, `GET /v1/banks`). Required for the withdrawal to go out by ACH; Bre-B and manual payment do not need it. When omitted and the account is not registered with its bank in zulu, a withdrawal without `breBKey` stays `MANUAL`."
                          },
                          "accountType": {
                            "type": "string",
                            "enum": [
                              "ahorros",
                              "corriente",
                              "savings",
                              "saving",
                              "checking"
                            ],
                            "example": "ahorros",
                            "description": "Account type. `savings`/`saving` mean `ahorros` and `checking` means `corriente`.\n\n- `ahorros`: Savings account.\n- `corriente`: Checking account.\n- `savings`: Alias of `ahorros`.\n- `saving`: Alias of `ahorros`.\n- `checking`: Alias of `corriente`.",
                            "x-enumDescriptions": {
                              "ahorros": "Savings account.",
                              "corriente": "Checking account.",
                              "savings": "Alias of `ahorros`.",
                              "saving": "Alias of `ahorros`.",
                              "checking": "Alias of `corriente`."
                            }
                          },
                          "accountNumber": {
                            "type": "string",
                            "minLength": 1,
                            "example": "0012345678",
                            "description": "Account number. Leading zeros are significant."
                          }
                        },
                        "required": [
                          "accountType",
                          "accountNumber"
                        ],
                        "description": "Colombian (COP) bank account of the beneficiary."
                      },
                      "breBKey": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "example": "@luisgomez",
                            "description": "The Bre-B key."
                          },
                          "keyType": {
                            "type": "string",
                            "minLength": 1,
                            "example": "ALPHA",
                            "description": "Key type. The public vocabulary (`ALPHA`, `PHONE`, `EMAIL`, `DOCUMENT`, `MERCHANT`) and GOU's codes (`1` document … `5` merchant) are accepted; `resolveBreBKey` returns it ready to send."
                          },
                          "bankOrgId": {
                            "type": "string",
                            "minLength": 1,
                            "example": "890903938",
                            "description": "Tax id (NIT) of the key's bank."
                          },
                          "bankCamera": {
                            "type": "string",
                            "minLength": 1,
                            "example": "TFY",
                            "description": "Clearing house of the key."
                          }
                        },
                        "required": [
                          "key",
                          "keyType",
                          "bankOrgId",
                          "bankCamera"
                        ],
                        "description": "Bre-B key of the account sent in `bankAccount`. Optional: when sent and the amount is within the Bre-B maximum, the withdrawal goes out by Bre-B. The key's account number and type are taken from `bankAccount`, so it must be the account the key points to. When sent, all of its fields are required. Get all four with `GET /v1/bre-b/keys/{key}`."
                      }
                    },
                    "required": [
                      "entityType",
                      "documentType",
                      "documentNumber",
                      "bankAccount"
                    ],
                    "description": "Beneficiary of the withdrawal and the account the money goes to. If already registered, it must be verified and its name must match the one sent (format, accents and order are tolerated); otherwise it is registered with this data.",
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "entityType": {
                              "const": "person"
                            }
                          },
                          "required": [
                            "entityType"
                          ]
                        },
                        "then": {
                          "required": [
                            "firstName",
                            "lastName"
                          ]
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "entityType": {
                              "const": "company"
                            }
                          },
                          "required": [
                            "entityType"
                          ]
                        },
                        "then": {
                          "required": [
                            "companyName"
                          ]
                        }
                      }
                    ]
                  }
                },
                "required": [
                  "amount",
                  "destination"
                ],
                "description": "COP balance withdrawal."
              },
              "examples": {
                "ach": {
                  "summary": "A person's bank account (ACH)",
                  "value": {
                    "amount": 150000,
                    "note": "Pago factura 1234",
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "breB": {
                  "summary": "A person's Bre-B key",
                  "value": {
                    "amount": 50000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      },
                      "breBKey": {
                        "key": "@luisgomez",
                        "keyType": "ALPHA",
                        "bankOrgId": "890903938",
                        "bankCamera": "TFY"
                      }
                    }
                  }
                },
                "company": {
                  "summary": "A company's bank account",
                  "value": {
                    "amount": 2500000,
                    "destination": {
                      "entityType": "company",
                      "documentType": "NIT",
                      "documentNumber": "900123456",
                      "companyName": "Acme S.A.S.",
                      "bankAccount": {
                        "bankCode": "0051",
                        "accountType": "corriente",
                        "accountNumber": "4567890123"
                      }
                    }
                  }
                },
                "manual": {
                  "summary": "An amount with cents: manual payment",
                  "value": {
                    "amount": 150000.5,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "breBFallback": {
                  "summary": "A Bre-B transfer that fails (test data `@failbreb`)",
                  "value": {
                    "amount": 50000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      },
                      "breBKey": {
                        "key": "@failbreb",
                        "keyType": "ALPHA",
                        "bankOrgId": "890903938",
                        "bankCamera": "TFY"
                      }
                    }
                  }
                },
                "invalidAccountType": {
                  "summary": "Unsupported account type",
                  "value": {
                    "amount": 150000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "cuenta",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "missingNames": {
                  "summary": "A person without names",
                  "value": {
                    "amount": 150000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "amountAsText": {
                  "summary": "Amount sent as text",
                  "value": {
                    "amount": "150000",
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "userNotVerified": {
                  "summary": "Unverified user",
                  "value": {
                    "amount": 150000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "beneficiaryNotVerified": {
                  "summary": "Unverified beneficiary (`1111111111`)",
                  "value": {
                    "amount": 150000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1111111111",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "nameMismatch": {
                  "summary": "Name other than the registered one (`2222222222`)",
                  "value": {
                    "amount": 150000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "2222222222",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "insufficientBalance": {
                  "summary": "Insufficient balance",
                  "value": {
                    "amount": 150000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "0007",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                },
                "unsupportedBank": {
                  "summary": "Unsupported bank (`9999`)",
                  "value": {
                    "amount": 150000,
                    "destination": {
                      "entityType": "person",
                      "documentType": "CC",
                      "documentNumber": "1020304050",
                      "firstName": "Luis",
                      "lastName": "Gómez",
                      "bankAccount": {
                        "bankCode": "9999",
                        "accountType": "ahorros",
                        "accountNumber": "0012345678"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Withdrawal created.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferCreated"
                },
                "examples": {
                  "ach": {
                    "summary": "A person's bank account (ACH)",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124K7Q2M9-X4",
                      "status": "IN_PROGRESS",
                      "method": "ACH"
                    }
                  },
                  "breB": {
                    "summary": "A person's Bre-B key",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI2611243HWD8T-6P",
                      "status": "CREATED",
                      "method": "BRE_B"
                    }
                  },
                  "company": {
                    "summary": "A company's bank account",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124M2ZK4R-Q8",
                      "status": "IN_PROGRESS",
                      "method": "ACH"
                    }
                  },
                  "manual": {
                    "summary": "An amount with cents: manual payment",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124T5V8B1-3N",
                      "status": "IN_PROGRESS",
                      "method": "MANUAL"
                    }
                  },
                  "breBFallback": {
                    "summary": "A Bre-B transfer that fails (test data `@failbreb`)",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124C4F7H2-9R",
                      "status": "CREATED",
                      "method": "MANUAL"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body or missing fields (including those of `breBKey` when it is sent).\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "invalidAccountType": {
                    "summary": "Unsupported account type",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "destination.bankAccount.accountType": "failed validation on the \"oneof\" tag with value required \"ahorros corriente savings saving checking\""
                      }
                    }
                  },
                  "missingNames": {
                    "summary": "A person without names",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "destination.firstName": "failed validation on the \"required_if\" tag with value required \"EntityType person\"",
                        "destination.lastName": "failed validation on the \"required_if\" tag with value required \"EntityType person\""
                      }
                    }
                  },
                  "amountAsText": {
                    "summary": "Amount sent as text",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  },
                  "VALIDATION": {
                    "summary": "One or more fields fail their validation",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "amount": "failed validation on the \"required\" tag",
                        "destination": "failed validation on the \"required\" tag"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "description": "The `X-API-Key` is not valid (gateway), or the user of the credentials is not verified.\n\n- `Forbidden`: The `X-API-Key` is missing, unknown, revoked or does not belong to the credentials of the token.\n- `the user is not verified`: The user behind the credentials is not verified. In the sandbox: the workspace \"verified\" setting.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/GatewayForbidden"
                    },
                    {
                      "$ref": "#/components/schemas/ForbiddenApiError"
                    }
                  ]
                },
                "examples": {
                  "userNotVerified": {
                    "summary": "Unverified user",
                    "value": {
                      "error": "ForbiddenApiError",
                      "cause": "the user is not verified"
                    }
                  },
                  "GATEWAY_FORBIDDEN": {
                    "summary": "The `X-API-Key` is missing, unknown, revoked or does not belong to the credentials of the token",
                    "value": {
                      "message": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `the user does not have an entity to withdraw from`: The user has no entity to withdraw from.\n- `the beneficiary with document \"1111111111\" is not verified`: The beneficiary registered with that document is not verified. Test data: document `1111111111`.\n- `the name does not match the beneficiary registered with document \"2222222222\"`: The name sent shares no word with the registered beneficiary's (format, accents and order are tolerated). Test data: document `2222222222`, registered as \"Ana Pérez\".\n- `insufficient COP balance to withdraw 150000.00`: The COP balance does not cover the amount plus the dispersion fee. The figure in the message is that sum.\n- `the user does not have a COP balance account`: The user has no COP balance account. In the sandbox: the workspace \"COP account\" setting.\n- `bank with code \"9999\" is not supported`: The `bankCode` is not an available bank (see `GET /v1/banks`). Test data: `9999`.\n- `account type \"cuenta\" is not supported`: Unsupported account type. Body validation stops it first (400), so in practice it does not appear.\n- `document type \"XYZ\" is not supported`: The `documentType` of a beneficiary being registered is not in the catalog (`GET /v1/document-types`) or does not apply to its entity type (`NIT` is for companies). It is checked on registration, like the bank; an already registered beneficiary keeps its document.\n- `destination field \"bankAccount.accountNumber\" is not valid`: A value being registered can not be stored: the account must have 1 to 20 digits (spaces and hyphens are ignored), the document 1 to 20 characters, and names can not be blank (up to 80 characters; the company name up to 200). The message names the field.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "beneficiaryNotVerified": {
                    "summary": "Unverified beneficiary (`1111111111`)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the beneficiary with document \"1111111111\" is not verified"
                    }
                  },
                  "nameMismatch": {
                    "summary": "Name other than the registered one (`2222222222`)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the name does not match the beneficiary registered with document \"2222222222\""
                    }
                  },
                  "insufficientBalance": {
                    "summary": "Insufficient balance",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "insufficient COP balance to withdraw 150000.00"
                    }
                  },
                  "unsupportedBank": {
                    "summary": "Unsupported bank (`9999`)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "bank with code \"9999\" is not supported"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "ORIGIN_ENTITY_NOT_FOUND": {
                    "summary": "The user has no entity to withdraw from",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the user does not have an entity to withdraw from"
                    }
                  },
                  "COP_ACCOUNT_NOT_FOUND": {
                    "summary": "The user has no COP balance account",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the user does not have a COP balance account"
                    }
                  },
                  "ACCOUNT_TYPE_NOT_SUPPORTED": {
                    "summary": "Unsupported account type",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "account type \"cuenta\" is not supported"
                    }
                  },
                  "DOCUMENT_TYPE_NOT_SUPPORTED": {
                    "summary": "The `documentType` of a beneficiary being registered is not in the catalog (`GET /v1/document-types`) or does not apply to its entity type (`NIT` is for companies)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "document type \"XYZ\" is not supported"
                    }
                  },
                  "DESTINATION_FIELD_INVALID": {
                    "summary": "A value being registered can not be stored: the account must have 1 to 20 digits (spaces and hyphens are ignored), the document 1 to 20 characters, and names can not be blank (up to 80 characters; the company name up to 200)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "destination field \"bankAccount.accountNumber\" is not valid"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "description": "Internal error. Check the withdrawal's status before retrying.\n\n- `[code:1] unexpected error`: Internal error. On operations that move money, check the state before retrying so the operation is not duplicated.\n- `unexpected error creating withdrawal order`: The withdrawal failed at an internal step. Check the withdrawal before retrying so the payment is not duplicated.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerApiError"
                },
                "examples": {
                  "INTERNAL": {
                    "summary": "Internal error",
                    "value": {
                      "error": "InternalServerApiError",
                      "cause": "[code:1] unexpected error"
                    }
                  },
                  "WITHDRAWAL_FAILED": {
                    "summary": "The withdrawal failed at an internal step",
                    "value": {
                      "error": "InternalServerApiError",
                      "cause": "unexpected error creating withdrawal order"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/transactions/{transactionId}": {
      "get": {
        "operationId": "getTransaction",
        "summary": "Get a transaction",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns a withdrawal or a conversion with its current status and status history. Use it before retrying a withdrawal that answered 5xx or timed out. To learn about every change without polling, set up the `TRANSACTIONS` webhook.",
        "tags": [
          "account"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/get-transaction"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "TRANSACTION_NOT_FOUND"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "transactionId",
            "schema": {
              "type": "string",
              "example": "SBX-OR-NPTRFI261124K7Q2M9-X4"
            },
            "required": true,
            "description": "Transaction id."
          }
        ],
        "responses": {
          "200": {
            "description": "The transaction.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transaction"
                },
                "examples": {
                  "withdrawal": {
                    "summary": "A completed ACH withdrawal",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124K7Q2M9-X4",
                      "type": "TRANSFER",
                      "status": "COMPLETED",
                      "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:35.123Z"
                        },
                        {
                          "status": "COMPLETED",
                          "at": "2026-11-24T15:05:05.123Z"
                        }
                      ],
                      "createdAt": "2026-11-24T15:04:05.123Z",
                      "updatedAt": "2026-11-24T15:05:05.123Z"
                    }
                  },
                  "conversion": {
                    "summary": "A COP→USD conversion awaiting settlement",
                    "value": {
                      "transactionId": "SBX-OR-NPTRFI261124W8D3QF-2K",
                      "type": "FX",
                      "status": "IN_PROGRESS",
                      "amount": 4000000,
                      "currency": "COP",
                      "fee": 0,
                      "fx": {
                        "quote": "EQ-COPXUSDX-261124150405-SBX7Q",
                        "originCurrency": "COP",
                        "originAmount": 4000000,
                        "destinationCurrency": "USD",
                        "destinationAmount": 1006.62,
                        "factor": 3973.7,
                        "factorFormula": "COP/USD",
                        "settlementTerm": "SAME_DAY",
                        "settlementDate": "2026-11-24"
                      },
                      "rejectionReason": null,
                      "statusHistory": [
                        {
                          "status": "IN_PROGRESS",
                          "at": "2026-11-24T15:04:20.456Z"
                        }
                      ],
                      "createdAt": "2026-11-24T15:04:20.456Z",
                      "updatedAt": "2026-11-24T15:04:20.456Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `transaction \"SBX-OR-NPTRFI261124K7Q2M9-X4\" not found`: No transaction with that id exists in your workspace.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "notFound": {
                    "summary": "Unknown id",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "transaction \"SBX-OR-NPTRFI261124ZZZZZZ-00\" not found"
                    }
                  },
                  "TRANSACTION_NOT_FOUND": {
                    "summary": "No transaction with that id exists in your workspace",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "transaction \"SBX-OR-NPTRFI261124K7Q2M9-X4\" not found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/balances": {
      "get": {
        "operationId": "listBalances",
        "summary": "Get balances",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns the workspace's available balance in COP and USD. A withdrawal debits its amount plus the fee when created; a conversion debits its origin when created and credits its destination at settlement; a deposit credits on arrival.",
        "tags": [
          "account"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/list-balances"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "responses": {
          "200": {
            "description": "One balance per currency.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Balance"
                  },
                  "description": "One balance per currency (COP and USD)."
                },
                "examples": {
                  "balances": {
                    "summary": "COP and USD balances",
                    "value": [
                      {
                        "currency": "COP",
                        "balance": 25000000,
                        "updatedAt": "2026-11-24T15:04:05.123Z"
                      },
                      {
                        "currency": "USD",
                        "balance": 1006.62,
                        "updatedAt": "2026-11-24T15:04:20.456Z"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/limits": {
      "get": {
        "operationId": "getLimits",
        "summary": "Get limits",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns the workspace's limits in force: the Bre-B maximum and the online ACH caps (with today's usage), which decide a withdrawal's `method`; the FX limits and hours; and those of PSE links and Bre-B keys. Exceeding an ACH cap is not an error: the withdrawal goes `MANUAL`.",
        "tags": [
          "account"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/get-limits"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "responses": {
          "200": {
            "description": "The limits in force.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Limits"
                },
                "examples": {
                  "defaults": {
                    "summary": "Sandbox default limits",
                    "value": {
                      "transfer": {
                        "breB": {
                          "maxAmount": 12110000
                        },
                        "ach": {
                          "maxAmount": 250000000,
                          "dailyCount": 10000,
                          "dailyAmount": 999999999999999,
                          "usedToday": {
                            "count": 3,
                            "amount": 4500000
                          }
                        },
                        "manual": {
                          "cutoffTime": "15:30"
                        }
                      },
                      "fx": {
                        "COP": {
                          "min": 4000,
                          "max": 4000000000
                        },
                        "USD": {
                          "min": 1,
                          "max": 1000000
                        },
                        "marketHours": {
                          "mode": "ALWAYS_OPEN",
                          "open": "08:05",
                          "close": "15:30",
                          "timezone": "America/Bogota"
                        },
                        "sameDayCutoff": "13:00"
                      },
                      "rechargeLinks": {
                        "maxActive": 15,
                        "minAmount": 100000,
                        "maxAmount": 1000000000
                      },
                      "breBKeys": {
                        "max": 5
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/banks": {
      "get": {
        "operationId": "listBanks",
        "summary": "List banks",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns the available Colombian banks with their 4-digit ACH code: the `bankCode` `POST /v1/transfer` needs to send by online ACH. A code not listed here answers 422 `bank with code \"…\" is not supported`.",
        "tags": [
          "catalogs"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/list-banks"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "responses": {
          "200": {
            "description": "Available banks.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Bank"
                  },
                  "description": "Available banks, sorted by code."
                },
                "examples": {
                  "banks": {
                    "summary": "Some banks of the catalog",
                    "value": [
                      {
                        "code": "0001",
                        "name": "Banco de Bogota"
                      },
                      {
                        "code": "0007",
                        "name": "Bancolombia"
                      },
                      {
                        "code": "0051",
                        "name": "Banco Davivienda"
                      },
                      {
                        "code": "0507",
                        "name": "Nequi"
                      },
                      {
                        "code": "0807",
                        "name": "KOA CF."
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/document-types": {
      "get": {
        "operationId": "listDocumentTypes",
        "summary": "List document types",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nReturns the document types zulu recognizes for beneficiaries and payers, sorted by code, and which entity type uses each. Filter with `entityType`. `PAS` is accepted as an alias of `PASS` (passport) and is not listed on its own.",
        "tags": [
          "catalogs"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/list-document-types"
        },
        "x-zulu-availability": "PREVIEW",
        "x-zulu-error-codes": [
          "VALIDATION",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "entityType",
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "company"
              ],
              "example": "person",
              "x-enumDescriptions": {
                "person": "Natural person (an individual).",
                "company": "Company (legal entity)."
              }
            },
            "description": "Only those of this entity type.\n\n- `person`: Natural person (an individual).\n- `company`: Company (legal entity)."
          }
        ],
        "responses": {
          "200": {
            "description": "Document types.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentType"
                  },
                  "description": "Document types."
                },
                "examples": {
                  "people": {
                    "summary": "Documents of people",
                    "value": [
                      {
                        "code": "CC",
                        "name": "Cédula de ciudadanía",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "CD",
                        "name": "Carné diplomático",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "CE",
                        "name": "Cédula de extranjería",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "PASS",
                        "name": "Pasaporte",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "PEP",
                        "name": "Permiso Especial de Permanencia",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "PPT",
                        "name": "Permiso por Protección Temporal",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "RC",
                        "name": "Registro civil",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "SC",
                        "name": "Salvoconducto de permanencia",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "TI",
                        "name": "Tarjeta de identidad",
                        "entityTypes": [
                          "person"
                        ]
                      }
                    ]
                  },
                  "all": {
                    "summary": "All",
                    "value": [
                      {
                        "code": "CC",
                        "name": "Cédula de ciudadanía",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "CD",
                        "name": "Carné diplomático",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "CE",
                        "name": "Cédula de extranjería",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "NIT",
                        "name": "Número de Identificación Tributaria (NIT)",
                        "entityTypes": [
                          "company"
                        ]
                      },
                      {
                        "code": "PASS",
                        "name": "Pasaporte",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "PEP",
                        "name": "Permiso Especial de Permanencia",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "PPT",
                        "name": "Permiso por Protección Temporal",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "RC",
                        "name": "Registro civil",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "SC",
                        "name": "Salvoconducto de permanencia",
                        "entityTypes": [
                          "person"
                        ]
                      },
                      {
                        "code": "TI",
                        "name": "Tarjeta de identidad",
                        "entityTypes": [
                          "person"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "unknownEntityType": {
                    "summary": "Unknown entity type",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "entityType": "failed validation on the \"oneof\" tag with value required \"person company\""
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/sandbox/recharge-links/{slug}/pay": {
      "post": {
        "operationId": "simulateRechargeLinkPayment",
        "summary": "Simulate a PSE link payment",
        "description": "**Sandbox only** · a test helper that does not exist in production.\n\nSimulates 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.",
        "tags": [
          "sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/simulate-recharge-link-payment"
        },
        "x-zulu-availability": "SANDBOX_ONLY",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "RECHARGE_LINK_NOT_FOUND",
          "RECHARGE_LINK_STATE",
          "RECHARGE_LINK_AMOUNT_REQUIRED",
          "RECHARGE_LINK_AMOUNT_MISMATCH",
          "RECHARGE_LINK_AMOUNT_RANGE"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "schema": {
              "type": "string",
              "example": "7QmVt3KpXz"
            },
            "required": true,
            "description": "Link slug."
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "PAID",
                      "REFUSED"
                    ],
                    "example": "PAID",
                    "description": "Payment outcome.\n\n- `PAID`: The payment is approved: the deposit is created.\n- `REFUSED`: The bank refuses the payment.",
                    "x-enumDescriptions": {
                      "PAID": "The payment is approved: the deposit is created.",
                      "REFUSED": "The bank refuses the payment."
                    }
                  },
                  "amount": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "example": 250000,
                    "description": "Amount the payer \"typed\": required on open-amount links; on fixed-amount links, omit it or send the same one."
                  },
                  "payer": {
                    "type": "object",
                    "properties": {
                      "fullName": {
                        "type": "string",
                        "maxLength": 120,
                        "example": "Marta Ruiz",
                        "description": "Full name or company name."
                      },
                      "documentType": {
                        "type": "string",
                        "maxLength": 10,
                        "example": "CC",
                        "description": "Document type."
                      },
                      "documentNumber": {
                        "type": "string",
                        "maxLength": 20,
                        "example": "52123456",
                        "description": "Document number."
                      },
                      "bankName": {
                        "type": "string",
                        "maxLength": 80,
                        "example": "Banco Davivienda",
                        "description": "Payer's bank."
                      }
                    },
                    "description": "Simulated payer. Whatever you omit is filled with deterministic synthetic data."
                  },
                  "failureReason": {
                    "type": "string",
                    "maxLength": 120,
                    "example": "Fondos insuficientes",
                    "description": "Refusal reason, only with `REFUSED`."
                  }
                },
                "required": [
                  "outcome"
                ],
                "description": "The payment to simulate."
              },
              "examples": {
                "paid": {
                  "summary": "Approved payment",
                  "value": {
                    "outcome": "PAID",
                    "payer": {
                      "fullName": "Marta Ruiz",
                      "documentType": "CC",
                      "documentNumber": "52123456",
                      "bankName": "Banco Davivienda"
                    }
                  }
                },
                "refused": {
                  "summary": "Payment refused by the bank",
                  "value": {
                    "outcome": "REFUSED",
                    "failureReason": "Fondos insuficientes"
                  }
                },
                "alreadyPaid": {
                  "summary": "The link was already paid",
                  "value": {
                    "outcome": "PAID"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment simulated.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedRechargeLinkPayment"
                },
                "examples": {
                  "paid": {
                    "summary": "Approved payment",
                    "value": {
                      "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"
                      }
                    }
                  },
                  "refused": {
                    "summary": "Payment refused by the bank",
                    "value": {
                      "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
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "VALIDATION": {
                    "summary": "One or more fields fail their validation",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "outcome": "failed validation on the \"required\" tag"
                      }
                    }
                  },
                  "INVALID_JSON": {
                    "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "$ref": "#/components/responses/RechargeLinkNotFound"
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `recharge link \"7QmVt3KpXz\" is PAID`: The link's status does not allow the operation (a `PAID` or `EXPIRED` link can no longer be cancelled or paid).\n- `recharge link \"7QmVt3KpXz\" has no fixed amount: amount is required`: The link has an open amount: the simulator needs the `amount` the payer \"typed\".\n- `amount 200000 does not match the amount of recharge link \"7QmVt3KpXz\"`: The link has a fixed amount and the `amount` sent differs. Omit it or send the same one.\n- `amount 50000 is outside the allowed range of 100000 to 1000000000`: The amount is outside the range allowed for PSE links.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "alreadyPaid": {
                    "summary": "The link was already paid",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "recharge link \"7QmVt3KpXz\" is PAID"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "RECHARGE_LINK_AMOUNT_REQUIRED": {
                    "summary": "The link has an open amount: the simulator needs the `amount` the payer \"typed\"",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "recharge link \"7QmVt3KpXz\" has no fixed amount: amount is required"
                    }
                  },
                  "RECHARGE_LINK_AMOUNT_MISMATCH": {
                    "summary": "The link has a fixed amount and the `amount` sent differs",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 200000 does not match the amount of recharge link \"7QmVt3KpXz\""
                    }
                  },
                  "RECHARGE_LINK_AMOUNT_RANGE": {
                    "summary": "The amount is outside the range allowed for PSE links",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 50000 is outside the allowed range of 100000 to 1000000000"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/sandbox/bre-b/transfers/in": {
      "post": {
        "operationId": "simulateBreBTransferIn",
        "summary": "Simulate an incoming Bre-B transfer",
        "description": "**Sandbox only** · a test helper that does not exist in production.\n\nSimulates someone sending you money by Bre-B to one of your keys: creates the deposit, credits your COP balance and sends the `DEPOSITS` webhook. Up to 12,110,000 COP. Exists only in the sandbox.",
        "tags": [
          "sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/simulate-bre-b-transfer-in"
        },
        "x-zulu-availability": "SANDBOX_ONLY",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "BRE_B_KEY_NOT_FOUND",
          "BRE_B_KEY_BLOCKED",
          "BRE_B_AMOUNT_ABOVE_MAXIMUM"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "example": "@acmepagos",
                    "description": "Your key that receives the transfer."
                  },
                  "amount": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "example": 250000,
                    "description": "COP amount (whole pesos, up to 12,110,000)."
                  },
                  "payer": {
                    "type": "object",
                    "properties": {
                      "fullName": {
                        "type": "string",
                        "maxLength": 120,
                        "example": "Marta Ruiz",
                        "description": "Full name or company name."
                      },
                      "documentType": {
                        "type": "string",
                        "maxLength": 10,
                        "example": "CC",
                        "description": "Document type."
                      },
                      "documentNumber": {
                        "type": "string",
                        "maxLength": 20,
                        "example": "52123456",
                        "description": "Document number."
                      },
                      "bankName": {
                        "type": "string",
                        "maxLength": 80,
                        "example": "Banco Davivienda",
                        "description": "Payer's bank."
                      }
                    },
                    "description": "Simulated payer. Whatever you omit is filled with deterministic synthetic data."
                  }
                },
                "required": [
                  "key",
                  "amount"
                ],
                "description": "The incoming Bre-B transfer to simulate."
              },
              "examples": {
                "received": {
                  "summary": "Receive 250,000 COP at @acmepagos",
                  "value": {
                    "key": "@acmepagos",
                    "amount": 250000,
                    "payer": {
                      "fullName": "Marta Ruiz",
                      "documentType": "CC",
                      "documentNumber": "52123456",
                      "bankName": "Banco Davivienda"
                    }
                  }
                },
                "aboveMaximum": {
                  "summary": "Amount above the Bre-B maximum",
                  "value": {
                    "key": "@acmepagos",
                    "amount": 15000000
                  }
                },
                "decimalAmount": {
                  "summary": "Amount with decimals",
                  "value": {
                    "key": "@acmepagos",
                    "amount": 250000.5
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Deposit created.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deposit"
                },
                "examples": {
                  "received": {
                    "summary": "Receive 250,000 COP at @acmepagos",
                    "value": {
                      "depositId": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f",
                      "method": "BRE_B",
                      "amount": 250000,
                      "currency": "COP",
                      "reference": "@acmepagos",
                      "externalId": "SBXBREB2611241504052K9Q",
                      "payer": {
                        "fullName": "Marta Ruiz",
                        "documentType": "CC",
                        "documentNumber": "52123456",
                        "bankName": "Banco Davivienda"
                      },
                      "createdAt": "2026-11-24T15:04:05.123Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "decimalAmount": {
                    "summary": "Amount with decimals",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal number 250000.5 into Go struct field SimulateBreBTransferInRequest.amount of type int64"
                    }
                  },
                  "VALIDATION": {
                    "summary": "One or more fields fail their validation",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "amount": "failed validation on the \"required\" tag",
                        "key": "failed validation on the \"required\" tag"
                      }
                    }
                  },
                  "INVALID_JSON": {
                    "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "$ref": "#/components/responses/BreBKeyNotFound"
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `bre-b key \"@acmepagos\" is blocked`: The key is blocked and does not receive payments.\n- `amount 15000000 is above the bre-b maximum of 12110000`: Bre-B accepts up to 12,110,000 COP per transfer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "aboveMaximum": {
                    "summary": "Amount above the Bre-B maximum",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 15000000 is above the bre-b maximum of 12110000"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "BRE_B_KEY_BLOCKED": {
                    "summary": "The key is blocked and does not receive payments",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "bre-b key \"@acmepagos\" is blocked"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/sandbox/bre-b/qr-codes/{id}/pay": {
      "post": {
        "operationId": "simulateQrCodePayment",
        "summary": "Simulate a QR code payment",
        "description": "**Sandbox only** · a test helper that does not exist in production.\n\nSimulates someone scanning and paying one of your QR codes: creates the deposit, credits your balance and sends the `DEPOSITS` webhook. A dynamic QR becomes `PAID`; a static one stays `ACTIVE` and needs the `amount` paid. Exists only in the sandbox.",
        "tags": [
          "sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/simulate-qr-code-payment"
        },
        "x-zulu-availability": "SANDBOX_ONLY",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "QR_CODE_NOT_FOUND",
          "QR_CODE_STATE",
          "QR_CODE_AMOUNT_REQUIRED",
          "QR_CODE_AMOUNT_FIXED",
          "BRE_B_AMOUNT_ABOVE_MAXIMUM"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "example": "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d"
            },
            "required": true,
            "description": "QR code id."
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "example": 40000,
                    "description": "Amount paid: required on a static QR, not allowed on a dynamic one."
                  },
                  "payer": {
                    "type": "object",
                    "properties": {
                      "fullName": {
                        "type": "string",
                        "maxLength": 120,
                        "example": "Marta Ruiz",
                        "description": "Full name or company name."
                      },
                      "documentType": {
                        "type": "string",
                        "maxLength": 10,
                        "example": "CC",
                        "description": "Document type."
                      },
                      "documentNumber": {
                        "type": "string",
                        "maxLength": 20,
                        "example": "52123456",
                        "description": "Document number."
                      },
                      "bankName": {
                        "type": "string",
                        "maxLength": 80,
                        "example": "Banco Davivienda",
                        "description": "Payer's bank."
                      }
                    },
                    "description": "Simulated payer. Whatever you omit is filled with deterministic synthetic data."
                  }
                },
                "description": "The payment to simulate."
              },
              "examples": {
                "dynamic": {
                  "summary": "Pay a dynamic QR",
                  "value": {
                    "payer": {
                      "fullName": "Marta Ruiz",
                      "documentType": "CC",
                      "documentNumber": "52123456",
                      "bankName": "Banco Davivienda"
                    }
                  }
                },
                "staticWithoutAmount": {
                  "summary": "Static QR without amount",
                  "value": {}
                },
                "expired": {
                  "summary": "Expired QR",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Deposit created.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deposit"
                },
                "examples": {
                  "dynamic": {
                    "summary": "Pay a dynamic QR",
                    "value": {
                      "depositId": "SBX-MOV-CREDIT-2c7a9e41-5b3d-4f6e-8a1c-9d0e2f4a6b8c",
                      "method": "BRE_B_QR",
                      "amount": 85000,
                      "currency": "COP",
                      "reference": "PED-1093",
                      "externalId": "SBXQR2611241510224T8M",
                      "payer": {
                        "fullName": "Marta Ruiz",
                        "documentType": "CC",
                        "documentNumber": "52123456",
                        "bankName": "Banco Davivienda"
                      },
                      "createdAt": "2026-11-24T15:10:22.000Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" not found`: No QR code with that id exists in your workspace.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "QR_CODE_NOT_FOUND": {
                    "summary": "No QR code with that id exists in your workspace",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" not found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" is EXPIRED`: The QR code no longer takes payments: it expired, or it is dynamic and was already paid.\n- `qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" is STATIC: amount is required`: A static QR has no amount: the simulator needs the payment's `amount`.\n- `qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" is DYNAMIC: its amount can not be changed`: A dynamic QR already fixes the amount: omit `amount`.\n- `amount 15000000 is above the bre-b maximum of 12110000`: Bre-B accepts up to 12,110,000 COP per transfer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "staticWithoutAmount": {
                    "summary": "Static QR without amount",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "qr code \"6e1f4a7c-2b9d-4c3e-8f5a-7d0b1c2e3f40\" is STATIC: amount is required"
                    }
                  },
                  "expired": {
                    "summary": "Expired QR",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" is EXPIRED"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "QR_CODE_AMOUNT_REQUIRED": {
                    "summary": "A static QR has no amount: the simulator needs the payment's `amount`",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" is STATIC: amount is required"
                    }
                  },
                  "QR_CODE_AMOUNT_FIXED": {
                    "summary": "A dynamic QR already fixes the amount: omit `amount`",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "qr code \"3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d\" is DYNAMIC: its amount can not be changed"
                    }
                  },
                  "BRE_B_AMOUNT_ABOVE_MAXIMUM": {
                    "summary": "Bre-B accepts up to 12,110,000 COP per transfer",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 15000000 is above the bre-b maximum of 12110000"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/sandbox/transactions/{transactionId}/advance": {
      "post": {
        "operationId": "advanceTransaction",
        "summary": "Advance a transaction",
        "description": "**Sandbox only** · a test helper that does not exist in production.\n\nSkips 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.",
        "tags": [
          "sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/advance-transaction"
        },
        "x-zulu-availability": "SANDBOX_ONLY",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "TRANSACTION_NOT_FOUND",
          "TRANSACTION_INVALID_TRANSITION"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "transactionId",
            "schema": {
              "type": "string",
              "example": "SBX-OR-NPTRFI261124K7Q2M9-X4"
            },
            "required": true,
            "description": "Transaction id."
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "SENT",
                      "COMPLETED",
                      "REJECTED"
                    ],
                    "example": "COMPLETED",
                    "description": "Status to move it to. Without `status`, it moves to the next one of its flow.\n\n- `SENT`: Sent to the bank (ACH or manual withdrawals only).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected (reverses the debit).",
                    "x-enumDescriptions": {
                      "SENT": "Sent to the bank (ACH or manual withdrawals only).",
                      "COMPLETED": "Completed.",
                      "REJECTED": "Rejected (reverses the debit)."
                    }
                  },
                  "rejectionReason": {
                    "type": "string",
                    "maxLength": 120,
                    "example": "Cuenta embargada",
                    "description": "Reason, only with `status: REJECTED`."
                  }
                },
                "description": "Which status to advance to."
              },
              "examples": {
                "next": {
                  "summary": "To the next status",
                  "value": {}
                },
                "reject": {
                  "summary": "Reject a withdrawal",
                  "value": {
                    "status": "REJECTED",
                    "rejectionReason": "Cuenta embargada"
                  }
                },
                "alreadyCompleted": {
                  "summary": "An already completed transaction",
                  "value": {
                    "status": "SENT"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The transaction in its new status.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transaction"
                },
                "examples": {
                  "next": {
                    "summary": "To the next status",
                    "value": {
                      "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": {
                    "summary": "Reject a withdrawal",
                    "value": {
                      "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"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "404": {
            "description": "The resource does not exist.\n\n- `transaction \"SBX-OR-NPTRFI261124K7Q2M9-X4\" not found`: No transaction with that id exists in your workspace.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundApiError"
                },
                "examples": {
                  "TRANSACTION_NOT_FOUND": {
                    "summary": "No transaction with that id exists in your workspace",
                    "value": {
                      "error": "NotFoundApiError",
                      "cause": "transaction \"SBX-OR-NPTRFI261124K7Q2M9-X4\" not found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `transaction \"SBX-OR-NPTRFI261124K7Q2M9-X4\" cannot move from COMPLETED to SENT`: The requested status does not follow the current one (a `COMPLETED` transaction never changes again, and FX never goes through `SENT`).",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "alreadyCompleted": {
                    "summary": "An already completed transaction",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "transaction \"SBX-OR-NPTRFI261124K7Q2M9-X4\" cannot move from COMPLETED to SENT"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/sandbox/balances/top-up": {
      "post": {
        "operationId": "topUpBalance",
        "summary": "Top up the simulated balance",
        "description": "**Sandbox only** · a test helper that does not exist in production.\n\nCredits simulated COP or USD balance to test withdrawals and conversions. COP in whole pesos, USD up to 2 decimals; each currency's balance has a cap (10,000,000,000 COP and 10,000,000 USD). Exists only in the sandbox.",
        "tags": [
          "sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.zulu.com.co/v1",
            "description": "Sandbox: simulated API, no real money."
          }
        ],
        "security": [
          {
            "bearerAuth": [],
            "apiKey": []
          }
        ],
        "externalDocs": {
          "url": "https://developers.zulu.com.co/en/reference/top-up-balance"
        },
        "x-zulu-availability": "SANDBOX_ONLY",
        "x-zulu-error-codes": [
          "VALIDATION",
          "INVALID_JSON",
          "GATEWAY_UNAUTHORIZED",
          "GATEWAY_FORBIDDEN",
          "GATEWAY_TOO_MANY_REQUESTS",
          "INTERNAL",
          "IDEMPOTENCY_MISMATCH",
          "IDEMPOTENCY_IN_FLIGHT",
          "TOP_UP_CAP",
          "AMOUNT_PRECISION"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "enum": [
                      "COP",
                      "USD"
                    ],
                    "example": "COP",
                    "description": "Currency to top up.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
                    "x-enumDescriptions": {
                      "COP": "Colombian peso (whole pesos).",
                      "USD": "US dollar (up to 2 decimals)."
                    }
                  },
                  "amount": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "example": 50000000,
                    "description": "Amount to credit: COP in whole pesos, USD up to 2 decimals."
                  }
                },
                "required": [
                  "currency",
                  "amount"
                ],
                "description": "Simulated balance top-up."
              },
              "examples": {
                "cop": {
                  "summary": "Top up 50,000,000 COP",
                  "value": {
                    "currency": "COP",
                    "amount": 50000000
                  }
                },
                "copWithCents": {
                  "summary": "COP with cents",
                  "value": {
                    "currency": "COP",
                    "amount": 1500.5
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated balance.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "type": "string",
                  "const": "true",
                  "example": "true"
                },
                "description": "Present only when the response replays an earlier call with the same `Idempotency-Key`.",
                "x-zulu-availability": "PREVIEW"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                },
                "examples": {
                  "cop": {
                    "summary": "Top up 50,000,000 COP",
                    "value": {
                      "currency": "COP",
                      "balance": 75000000,
                      "updatedAt": "2026-11-24T15:04:05.123Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestApiError"
                },
                "examples": {
                  "VALIDATION": {
                    "summary": "One or more fields fail their validation",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "error in struct validation",
                      "values": {
                        "amount": "failed validation on the \"required\" tag",
                        "currency": "failed validation on the \"required\" tag"
                      }
                    }
                  },
                  "INVALID_JSON": {
                    "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                    "value": {
                      "error": "BadRequestApiError",
                      "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/GatewayUnauthorized"
          },
          "403": {
            "$ref": "#/components/responses/GatewayForbidden"
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInFlight"
          },
          "422": {
            "description": "The operation can not be processed; nothing is recorded.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" 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.\n- `the top-up would leave the COP balance above the sandbox cap of 10000000000.00`: The simulated balance has a cap per currency (10,000,000,000 COP and 10,000,000 USD).\n- `amount 1500.5 has too many decimals for COP (max 0)`: The amount has more decimals than its currency allows: COP in whole pesos, USD up to 2 decimals.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityApiError"
                },
                "examples": {
                  "copWithCents": {
                    "summary": "COP with cents",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "amount 1500.5 has too many decimals for COP (max 0)"
                    }
                  },
                  "IDEMPOTENCY_MISMATCH": {
                    "summary": "The `Idempotency-Key` was already used in the last 24 hours with a different body or operation",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" was used with a different request"
                    }
                  },
                  "TOP_UP_CAP": {
                    "summary": "The simulated balance has a cap per currency (10,000,000,000 COP and 10,000,000 USD)",
                    "value": {
                      "error": "UnprocessableEntityApiError",
                      "cause": "the top-up would leave the COP balance above the sandbox cap of 10000000000.00"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/GatewayTooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    }
  },
  "webhooks": {
    "TRANSACTIONS": {
      "post": {
        "summary": "Transaction status change",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nSent every time a withdrawal or a conversion changes status (`IN_PROGRESS`, `SENT`, `COMPLETED`, `REJECTED`…). It is production's shape (`{transactionId, status}`); whether production sends it for `POST /v1/transfer` is not decided yet, hence the Sandbox label.\n\nSuccess = exactly HTTP 200. On failure it retries after 30 s, 2 min, 10 min, 1 h and 6 h; then the delivery is `DEAD`. An endpoint is disabled after 50 consecutive failures. Each type has one URL and up to 5 static headers, set in the dashboard.\n\nSignature: `v1=` + hex(HMAC-SHA256(secret, \"zulu-webhook/v1\\n\" + id + \"\\n\" + timestamp + \"\\n\" + hex(SHA-256(raw body))))`. The secret is used as UTF-8 bytes. Compare in constant time and reject timestamps more than 300 s away.",
        "x-zulu-availability": "PREVIEW",
        "parameters": [
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Event id (UUID). It is the same on every retry: use it to avoid processing it twice.",
            "x-zulu-availability": "PREVIEW"
          },
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Timestamp",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Unix seconds of the attempt. Reject the webhook when it is more than 300 s away from your clock.",
            "x-zulu-availability": "PREVIEW"
          },
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Signature",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "`v1=<hex>`: HMAC-SHA256 with your secret over `zulu-webhook/v1\\n{id}\\n{timestamp}\\n{sha256 of the body}`.",
            "x-zulu-availability": "PREVIEW"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionsWebhookPayload"
              },
              "examples": {
                "TRANSACTIONS": {
                  "summary": "A completed ACH withdrawal",
                  "value": {
                    "status": "COMPLETED",
                    "transactionId": "SBX-OR-NPTRFI261124K7Q2M9-X4"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Received. Only an exact 200 counts as delivered."
          }
        }
      }
    },
    "DEPOSITS": {
      "post": {
        "summary": "A deposit arrived",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nSent when money arrives into your COP balance: a paid PSE link, a Bre-B transfer to your key or a paid QR code.\n\nSuccess = exactly HTTP 200. On failure it retries after 30 s, 2 min, 10 min, 1 h and 6 h; then the delivery is `DEAD`. An endpoint is disabled after 50 consecutive failures. Each type has one URL and up to 5 static headers, set in the dashboard.\n\nSignature: `v1=` + hex(HMAC-SHA256(secret, \"zulu-webhook/v1\\n\" + id + \"\\n\" + timestamp + \"\\n\" + hex(SHA-256(raw body))))`. The secret is used as UTF-8 bytes. Compare in constant time and reject timestamps more than 300 s away.",
        "x-zulu-availability": "PREVIEW",
        "parameters": [
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Event id (UUID). It is the same on every retry: use it to avoid processing it twice.",
            "x-zulu-availability": "PREVIEW"
          },
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Timestamp",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Unix seconds of the attempt. Reject the webhook when it is more than 300 s away from your clock.",
            "x-zulu-availability": "PREVIEW"
          },
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Signature",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "`v1=<hex>`: HMAC-SHA256 with your secret over `zulu-webhook/v1\\n{id}\\n{timestamp}\\n{sha256 of the body}`.",
            "x-zulu-availability": "PREVIEW"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DepositsWebhookPayload"
              },
              "examples": {
                "DEPOSITS": {
                  "summary": "A Bre-B transfer to @acmepagos",
                  "value": {
                    "amount": 250000,
                    "currency": "COP",
                    "depositId": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f",
                    "method": "BRE_B",
                    "reference": "@acmepagos"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Received. Only an exact 200 counts as delivered."
          }
        }
      }
    },
    "RECHARGE_LINKS": {
      "post": {
        "summary": "Payment link status change",
        "description": "**Sandbox · coming to production** · simulated in the sandbox with this exact signature.\n\nSent when a PSE link changes status (`AWAITING_PAYMENT`, `PAID`, `REFUSED`, `EXPIRED`, `CANCELLED`).\n\nSuccess = exactly HTTP 200. On failure it retries after 30 s, 2 min, 10 min, 1 h and 6 h; then the delivery is `DEAD`. An endpoint is disabled after 50 consecutive failures. Each type has one URL and up to 5 static headers, set in the dashboard.\n\nSignature: `v1=` + hex(HMAC-SHA256(secret, \"zulu-webhook/v1\\n\" + id + \"\\n\" + timestamp + \"\\n\" + hex(SHA-256(raw body))))`. The secret is used as UTF-8 bytes. Compare in constant time and reject timestamps more than 300 s away.",
        "x-zulu-availability": "PREVIEW",
        "parameters": [
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Event id (UUID). It is the same on every retry: use it to avoid processing it twice.",
            "x-zulu-availability": "PREVIEW"
          },
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Timestamp",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Unix seconds of the attempt. Reject the webhook when it is more than 300 s away from your clock.",
            "x-zulu-availability": "PREVIEW"
          },
          {
            "in": "header",
            "name": "X-Zulu-Webhook-Signature",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "`v1=<hex>`: HMAC-SHA256 with your secret over `zulu-webhook/v1\\n{id}\\n{timestamp}\\n{sha256 of the body}`.",
            "x-zulu-availability": "PREVIEW"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RechargeLinksWebhookPayload"
              },
              "examples": {
                "RECHARGE_LINKS": {
                  "summary": "A paid link",
                  "value": {
                    "slug": "7QmVt3KpXz",
                    "status": "PAID"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Received. Only an exact 200 counts as delivered."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "TransactionsWebhookPayload": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "SENT",
              "COMPLETED",
              "REJECTED"
            ],
            "example": "COMPLETED",
            "description": "New status.\n\n- `CREATED`: Created. For a Bre-B withdrawal, the transfer is in flight.\n- `IN_PROGRESS`: In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.\n- `SENT`: The money was sent to the beneficiary's bank. Withdrawals only (never FX).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected. The sandbox reverses the debit automatically; in production operations reverses it.",
            "x-enumDescriptions": {
              "CREATED": "Created. For a Bre-B withdrawal, the transfer is in flight.",
              "IN_PROGRESS": "In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.",
              "SENT": "The money was sent to the beneficiary's bank. Withdrawals only (never FX).",
              "COMPLETED": "Completed.",
              "REJECTED": "Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
            }
          },
          "transactionId": {
            "type": "string",
            "example": "SBX-OR-NPTRFI261124K7Q2M9-X4",
            "description": "The transaction that changed."
          }
        },
        "required": [
          "status",
          "transactionId"
        ],
        "description": "Status change of a transaction (withdrawal or conversion)."
      },
      "DepositsWebhookPayload": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "example": 250000,
            "description": "Amount credited (COP)."
          },
          "currency": {
            "type": "string",
            "const": "COP",
            "description": "Always `COP`."
          },
          "depositId": {
            "type": "string",
            "example": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f",
            "description": "The deposit (`GET /v1/deposits/{depositId}`)."
          },
          "method": {
            "type": "string",
            "enum": [
              "PSE",
              "BRE_B",
              "BRE_B_QR"
            ],
            "example": "BRE_B",
            "description": "How it arrived.\n\n- `PSE`: Payment of a PSE link.\n- `BRE_B`: Bre-B transfer to one of your keys.\n- `BRE_B_QR`: Payment of one of your Bre-B QR codes.",
            "x-enumDescriptions": {
              "PSE": "Payment of a PSE link.",
              "BRE_B": "Bre-B transfer to one of your keys.",
              "BRE_B_QR": "Payment of one of your Bre-B QR codes."
            }
          },
          "reference": {
            "type": "string",
            "example": "@acmepagos",
            "description": "What it belongs to (see `Deposit.reference`)."
          }
        },
        "required": [
          "amount",
          "currency",
          "depositId",
          "method",
          "reference"
        ],
        "description": "A deposit arrived."
      },
      "RechargeLinksWebhookPayload": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "example": "7QmVt3KpXz",
            "description": "The link that changed."
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "AWAITING_PAYMENT",
              "PAID",
              "REFUSED",
              "EXPIRED",
              "CANCELLED"
            ],
            "example": "PAID",
            "description": "New status.\n\n- `CREATED`: Created; nobody opened it yet.\n- `AWAITING_PAYMENT`: The payer opened the checkout; the payment is in progress.\n- `PAID`: Paid: the deposit is in your balance.\n- `REFUSED`: The bank refused the payment; the payer may retry.\n- `EXPIRED`: Expired unpaid.\n- `CANCELLED`: You cancelled it.",
            "x-enumDescriptions": {
              "CREATED": "Created; nobody opened it yet.",
              "AWAITING_PAYMENT": "The payer opened the checkout; the payment is in progress.",
              "PAID": "Paid: the deposit is in your balance.",
              "REFUSED": "The bank refused the payment; the payer may retry.",
              "EXPIRED": "Expired unpaid.",
              "CANCELLED": "You cancelled it."
            }
          }
        },
        "required": [
          "slug",
          "status"
        ],
        "description": "Status change of a payment link."
      },
      "TokenResponse": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "example": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
            "description": "JWT signed with RS256. Send it as `Authorization: Bearer <access_token>`."
          },
          "token_type": {
            "type": "string",
            "const": "Bearer",
            "example": "Bearer",
            "description": "Always `Bearer`."
          },
          "expires_in": {
            "type": "integer",
            "example": 3600,
            "description": "Seconds the token is valid (3600). Reuse it until it expires; do not request a token per call."
          },
          "scope": {
            "type": "string",
            "description": "Granted scopes. May be absent."
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in"
        ],
        "description": "Issued access token."
      },
      "BadRequestApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "BadRequestApiError",
            "description": "Error code (go-libs literal)."
          },
          "cause": {
            "type": "string",
            "description": "Error detail. The texts are listed in the error catalog and are stable."
          },
          "message": {
            "type": "string",
            "description": "Human-facing message. Production does not send it today; it is reserved."
          },
          "values": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "destination.bankAccount.accountType": "failed validation on the \"oneof\" tag with value required \"ahorros corriente savings saving checking\""
            },
            "description": "Validation 400s only: one message per field, keyed by the field's JSON path, naming the Go validator that failed (`failed validation on the \"required\" tag`)."
          }
        },
        "required": [
          "error",
          "cause"
        ],
        "description": "API error (BadRequestApiError). Invalid request."
      },
      "OAuthAccessDenied": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "access_denied",
            "description": "OAuth2 error code."
          },
          "error_description": {
            "type": "string",
            "description": "Error detail."
          }
        },
        "required": [
          "error",
          "error_description"
        ],
        "description": "OAuth2 error (`access_denied`)."
      },
      "OAuthTooManyRequests": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "too_many_requests",
            "description": "OAuth2 error code."
          },
          "error_description": {
            "type": "string",
            "description": "Error detail."
          }
        },
        "required": [
          "error",
          "error_description"
        ],
        "description": "OAuth2 error (`too_many_requests`)."
      },
      "InternalServerApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "InternalServerApiError",
            "description": "Error code (go-libs literal)."
          },
          "cause": {
            "type": "string",
            "description": "Error detail. The texts are listed in the error catalog and are stable."
          },
          "message": {
            "type": "string",
            "description": "Human-facing message. Production does not send it today; it is reserved."
          },
          "values": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "destination.bankAccount.accountType": "failed validation on the \"oneof\" tag with value required \"ahorros corriente savings saving checking\""
            },
            "description": "Validation 400s only: one message per field, keyed by the field's JSON path, naming the Go validator that failed (`failed validation on the \"required\" tag`)."
          }
        },
        "required": [
          "error",
          "cause"
        ],
        "description": "API error (InternalServerApiError). Internal error."
      },
      "RechargeLink": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "example": "7QmVt3KpXz",
            "description": "Public identifier of the link (Base58, 10 characters)."
          },
          "reference": {
            "type": "string",
            "example": "FAC-2026-0042",
            "description": "Your reference (the one you sent, or the slug when you sent none). The deposit the link produces carries it."
          },
          "amount": {
            "example": 250000,
            "description": "Fixed amount (COP); `null` when the payer types it.",
            "type": [
              "integer",
              "null"
            ]
          },
          "concept": {
            "example": "Cuota de noviembre",
            "description": "Concept the payer sees.",
            "type": [
              "string",
              "null"
            ]
          },
          "paymentMethod": {
            "type": "string",
            "enum": [
              "PSE"
            ],
            "example": "PSE",
            "description": "Payment method.\n\n- `PSE`: PSE (debit from any Colombian bank).",
            "x-enumDescriptions": {
              "PSE": "PSE (debit from any Colombian bank)."
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "AWAITING_PAYMENT",
              "PAID",
              "REFUSED",
              "EXPIRED",
              "CANCELLED"
            ],
            "example": "CREATED",
            "description": "Link status.\n\n- `CREATED`: Created; nobody opened it yet.\n- `AWAITING_PAYMENT`: The payer opened the checkout; the payment is in progress.\n- `PAID`: Paid: the deposit is in your balance.\n- `REFUSED`: The bank refused the payment; the payer may retry.\n- `EXPIRED`: Expired unpaid.\n- `CANCELLED`: You cancelled it.",
            "x-enumDescriptions": {
              "CREATED": "Created; nobody opened it yet.",
              "AWAITING_PAYMENT": "The payer opened the checkout; the payment is in progress.",
              "PAID": "Paid: the deposit is in your balance.",
              "REFUSED": "The bank refused the payment; the payer may retry.",
              "EXPIRED": "Expired unpaid.",
              "CANCELLED": "You cancelled it."
            }
          },
          "checkoutUrl": {
            "type": "string",
            "example": "https://developers.zulu.com.co/checkout/7QmVt3KpXz",
            "description": "Payment page to share (a fake checkout in the sandbox)."
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "example": "2026-11-27T15:04:05.123Z",
            "description": "Expiry (UTC); `null` when it never expires."
          },
          "paidAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "example": null,
            "description": "Payment time (UTC); `null` until paid."
          },
          "failureReason": {
            "example": null,
            "description": "Reason of the last refusal; `null` when there was none.",
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:05.123Z",
            "description": "Creation time (UTC)."
          }
        },
        "required": [
          "slug",
          "reference",
          "amount",
          "concept",
          "paymentMethod",
          "status",
          "checkoutUrl",
          "expiresAt",
          "paidAt",
          "failureReason",
          "createdAt"
        ],
        "description": "A PSE payment link."
      },
      "GatewayUnauthorized": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "const": "Unauthorized",
            "description": "Gateway message."
          }
        },
        "required": [
          "message"
        ],
        "description": "Gateway response (`Unauthorized`), before the request reaches the API."
      },
      "GatewayForbidden": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "const": "Forbidden",
            "description": "Gateway message."
          }
        },
        "required": [
          "message"
        ],
        "description": "Gateway response (`Forbidden`), before the request reaches the API."
      },
      "ResourceConflictApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "ResourceConflictApiError",
            "description": "Error code (go-libs literal)."
          },
          "cause": {
            "type": "string",
            "description": "Error detail. The texts are listed in the error catalog and are stable."
          },
          "message": {
            "type": "string",
            "description": "Human-facing message. Production does not send it today; it is reserved."
          },
          "values": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "destination.bankAccount.accountType": "failed validation on the \"oneof\" tag with value required \"ahorros corriente savings saving checking\""
            },
            "description": "Validation 400s only: one message per field, keyed by the field's JSON path, naming the Go validator that failed (`failed validation on the \"required\" tag`)."
          }
        },
        "required": [
          "error",
          "cause"
        ],
        "description": "API error (ResourceConflictApiError). Conflict with the current state."
      },
      "UnprocessableEntityApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "UnprocessableEntityApiError",
            "description": "Error code (go-libs literal)."
          },
          "cause": {
            "type": "string",
            "description": "Error detail. The texts are listed in the error catalog and are stable."
          },
          "message": {
            "type": "string",
            "description": "Human-facing message. Production does not send it today; it is reserved."
          },
          "values": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "destination.bankAccount.accountType": "failed validation on the \"oneof\" tag with value required \"ahorros corriente savings saving checking\""
            },
            "description": "Validation 400s only: one message per field, keyed by the field's JSON path, naming the Go validator that failed (`failed validation on the \"required\" tag`)."
          }
        },
        "required": [
          "error",
          "cause"
        ],
        "description": "API error (UnprocessableEntityApiError). The operation can not be processed; nothing is recorded."
      },
      "GatewayTooManyRequests": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "const": "Too Many Requests",
            "description": "Gateway message."
          }
        },
        "required": [
          "message"
        ],
        "description": "Gateway response (`Too Many Requests`), before the request reaches the API."
      },
      "RechargeLinkList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RechargeLink"
            },
            "description": "The items of this page."
          },
          "page": {
            "type": "integer",
            "example": 1,
            "description": "Current page."
          },
          "size": {
            "type": "integer",
            "example": 10,
            "description": "Requested page size."
          },
          "pages": {
            "type": "integer",
            "example": 1,
            "description": "Total pages (at least 1)."
          },
          "count": {
            "type": "integer",
            "example": 1,
            "description": "Items in this page."
          },
          "total": {
            "type": "integer",
            "example": 1,
            "description": "Items across all pages."
          }
        },
        "required": [
          "data",
          "page",
          "size",
          "pages",
          "count",
          "total"
        ],
        "description": "A page of links."
      },
      "NotFoundApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "NotFoundApiError",
            "description": "Error code (go-libs literal)."
          },
          "cause": {
            "type": "string",
            "description": "Error detail. The texts are listed in the error catalog and are stable."
          },
          "message": {
            "type": "string",
            "description": "Human-facing message. Production does not send it today; it is reserved."
          },
          "values": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "destination.bankAccount.accountType": "failed validation on the \"oneof\" tag with value required \"ahorros corriente savings saving checking\""
            },
            "description": "Validation 400s only: one message per field, keyed by the field's JSON path, naming the Go validator that failed (`failed validation on the \"required\" tag`)."
          }
        },
        "required": [
          "error",
          "cause"
        ],
        "description": "API error (NotFoundApiError). The resource does not exist."
      },
      "BreBKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "example": "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d",
            "description": "Key id."
          },
          "key": {
            "type": "string",
            "example": "@acmepagos",
            "description": "The key."
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "ACTIVE_BY_CLIENT",
              "BLOCKED_BY_ZULU",
              "BLOCKED_BY_CLIENT"
            ],
            "example": "ACTIVE",
            "description": "Key status.\n\n- `ACTIVE`: Active: receives payments.\n- `ACTIVE_BY_CLIENT`: Active, reactivated by its holder after a suspension: receives payments.\n- `BLOCKED_BY_ZULU`: Blocked by zulu: does not receive payments.\n- `BLOCKED_BY_CLIENT`: Suspended by its holder: does not receive payments.",
            "x-enumDescriptions": {
              "ACTIVE": "Active: receives payments.",
              "ACTIVE_BY_CLIENT": "Active, reactivated by its holder after a suspension: receives payments.",
              "BLOCKED_BY_ZULU": "Blocked by zulu: does not receive payments.",
              "BLOCKED_BY_CLIENT": "Suspended by its holder: does not receive payments."
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:05.123Z",
            "description": "Creation time (UTC)."
          }
        },
        "required": [
          "id",
          "key",
          "status",
          "createdAt"
        ],
        "description": "One of your Bre-B keys."
      },
      "KeyResolution": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "example": "@luisgomez",
            "description": "The key looked up."
          },
          "keyType": {
            "type": "string",
            "enum": [
              "DOCUMENT",
              "PHONE",
              "EMAIL",
              "ALPHA",
              "MERCHANT"
            ],
            "example": "ALPHA",
            "description": "Key type.\n\n- `DOCUMENT`: Document number (GOU code `1`).\n- `PHONE`: Mobile number (GOU code `2`).\n- `EMAIL`: E-mail address (GOU code `3`).\n- `ALPHA`: Alphanumeric handle starting with `@` (GOU code `4`).\n- `MERCHANT`: Merchant code (GOU code `5`).",
            "x-enumDescriptions": {
              "DOCUMENT": "Document number (GOU code `1`).",
              "PHONE": "Mobile number (GOU code `2`).",
              "EMAIL": "E-mail address (GOU code `3`).",
              "ALPHA": "Alphanumeric handle starting with `@` (GOU code `4`).",
              "MERCHANT": "Merchant code (GOU code `5`)."
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "ACTIVE_BY_CLIENT",
              "BLOCKED_BY_ZULU",
              "BLOCKED_BY_CLIENT"
            ],
            "example": "ACTIVE",
            "description": "Key status: only an active key receives payments.\n\n- `ACTIVE`: Active: receives payments.\n- `ACTIVE_BY_CLIENT`: Active, reactivated by its holder after a suspension: receives payments.\n- `BLOCKED_BY_ZULU`: Blocked by zulu: does not receive payments.\n- `BLOCKED_BY_CLIENT`: Suspended by its holder: does not receive payments.",
            "x-enumDescriptions": {
              "ACTIVE": "Active: receives payments.",
              "ACTIVE_BY_CLIENT": "Active, reactivated by its holder after a suspension: receives payments.",
              "BLOCKED_BY_ZULU": "Blocked by zulu: does not receive payments.",
              "BLOCKED_BY_CLIENT": "Suspended by its holder: does not receive payments."
            }
          },
          "fullName": {
            "type": "string",
            "example": "Luis Gómez",
            "description": "Holder: full name or company name."
          },
          "entityType": {
            "type": "string",
            "enum": [
              "person",
              "company"
            ],
            "example": "person",
            "description": "Holder type.\n\n- `person`: Natural person (an individual).\n- `company`: Company (legal entity).",
            "x-enumDescriptions": {
              "person": "Natural person (an individual).",
              "company": "Company (legal entity)."
            }
          },
          "documentType": {
            "type": "string",
            "example": "CC",
            "description": "Holder's document type."
          },
          "documentNumber": {
            "type": "string",
            "example": "1020304050",
            "description": "Holder's document number."
          },
          "bankCode": {
            "type": "string",
            "example": "0007",
            "description": "ACH code of the account's bank."
          },
          "bankName": {
            "type": "string",
            "example": "Bancolombia",
            "description": "Account's bank."
          },
          "accountType": {
            "type": "string",
            "enum": [
              "ahorros",
              "corriente"
            ],
            "example": "ahorros",
            "description": "Type of the linked account.\n\n- `ahorros`: Savings account.\n- `corriente`: Checking account.",
            "x-enumDescriptions": {
              "ahorros": "Savings account.",
              "corriente": "Checking account."
            }
          },
          "accountNumber": {
            "type": "string",
            "example": "0012345678",
            "description": "Number of the linked account."
          },
          "bankOrgId": {
            "type": "string",
            "example": "890903938",
            "description": "Tax id (NIT) of the key's bank."
          },
          "bankCamera": {
            "type": "string",
            "example": "TFY",
            "description": "Clearing house."
          }
        },
        "required": [
          "key",
          "keyType",
          "status",
          "fullName",
          "entityType",
          "documentType",
          "documentNumber",
          "bankCode",
          "bankName",
          "accountType",
          "accountNumber",
          "bankOrgId",
          "bankCamera"
        ],
        "description": "Holder and account of a key: everything `POST /v1/transfer` needs in `destination` (names, document, `bankAccount` and `breBKey`)."
      },
      "QrCode": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "example": "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d",
            "description": "QR code id."
          },
          "type": {
            "type": "string",
            "enum": [
              "STATIC",
              "DYNAMIC"
            ],
            "example": "DYNAMIC",
            "description": "QR type.\n\n- `STATIC`: No amount: the payer types it; takes several payments.\n- `DYNAMIC`: Fixed amount: a single payment.",
            "x-enumDescriptions": {
              "STATIC": "No amount: the payer types it; takes several payments.",
              "DYNAMIC": "Fixed amount: a single payment."
            }
          },
          "key": {
            "type": "string",
            "example": "@acmepagos",
            "description": "Key that receives the payment."
          },
          "amount": {
            "example": 85000,
            "description": "Amount (COP); `null` on a static QR.",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference": {
            "example": "PED-1093",
            "description": "Your reference; the deposit carries it.",
            "type": [
              "string",
              "null"
            ]
          },
          "payload": {
            "type": "string",
            "example": "00020101021226330015CO.ZULU.SANDBOX0110@acmepagos5204000053031705405850005802CO5912SANDBOX ACME6006BOGOTA62120508PED-1093630427D6",
            "description": "EMVCo content of the QR (to render your own image)."
          },
          "imageUrl": {
            "type": "string",
            "example": "https://developers.zulu.com.co/qr/3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d.svg",
            "description": "SVG image of the QR code, served on the developers site (public: the id is the key)."
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "PAID",
              "EXPIRED"
            ],
            "example": "ACTIVE",
            "description": "QR status.\n\n- `ACTIVE`: Takes payments.\n- `PAID`: Dynamic and already paid.\n- `EXPIRED`: Expired.",
            "x-enumDescriptions": {
              "ACTIVE": "Takes payments.",
              "PAID": "Dynamic and already paid.",
              "EXPIRED": "Expired."
            }
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "example": "2026-11-24T16:04:05.123Z",
            "description": "Expiry (UTC); `null` when it never expires."
          }
        },
        "required": [
          "id",
          "type",
          "key",
          "amount",
          "reference",
          "payload",
          "imageUrl",
          "status",
          "expiresAt"
        ],
        "description": "A Bre-B QR code."
      },
      "DepositList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Deposit"
            },
            "description": "The items of this page."
          },
          "page": {
            "type": "integer",
            "example": 1,
            "description": "Current page."
          },
          "size": {
            "type": "integer",
            "example": 10,
            "description": "Requested page size."
          },
          "pages": {
            "type": "integer",
            "example": 1,
            "description": "Total pages (at least 1)."
          },
          "count": {
            "type": "integer",
            "example": 1,
            "description": "Items in this page."
          },
          "total": {
            "type": "integer",
            "example": 1,
            "description": "Items across all pages."
          }
        },
        "required": [
          "data",
          "page",
          "size",
          "pages",
          "count",
          "total"
        ],
        "description": "A page of deposits."
      },
      "Deposit": {
        "type": "object",
        "properties": {
          "depositId": {
            "type": "string",
            "example": "SBX-MOV-CREDIT-5d1b2f0e-6c3a-4e8b-9f7d-1a2b3c4d5e6f",
            "description": "Deposit id: `SBX-MOV-CREDIT-{uuid}` in the sandbox."
          },
          "method": {
            "type": "string",
            "enum": [
              "PSE",
              "BRE_B",
              "BRE_B_QR"
            ],
            "example": "BRE_B",
            "description": "How it arrived.\n\n- `PSE`: Payment of a PSE link.\n- `BRE_B`: Bre-B transfer to one of your keys.\n- `BRE_B_QR`: Payment of one of your Bre-B QR codes.",
            "x-enumDescriptions": {
              "PSE": "Payment of a PSE link.",
              "BRE_B": "Bre-B transfer to one of your keys.",
              "BRE_B_QR": "Payment of one of your Bre-B QR codes."
            }
          },
          "amount": {
            "type": "integer",
            "example": 250000,
            "description": "Amount credited (COP, whole pesos)."
          },
          "currency": {
            "type": "string",
            "const": "COP",
            "description": "Always `COP`."
          },
          "reference": {
            "type": "string",
            "example": "@acmepagos",
            "description": "What it belongs to: the link's `reference` (PSE), the key that received it (Bre-B) or the QR's `reference` (or its id)."
          },
          "externalId": {
            "type": "string",
            "example": "SBXBREB2611241504052K9Q",
            "description": "Network id (PSE CUS or Bre-B transfer id). Synthetic in the sandbox."
          },
          "payer": {
            "$ref": "#/components/schemas/Payer"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:05.123Z",
            "description": "Arrival (UTC)."
          }
        },
        "required": [
          "depositId",
          "method",
          "amount",
          "currency",
          "reference",
          "externalId",
          "payer",
          "createdAt"
        ],
        "description": "A deposit."
      },
      "Payer": {
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string",
            "example": "Marta Ruiz",
            "description": "Full name or company name."
          },
          "documentType": {
            "type": "string",
            "example": "CC",
            "description": "Document type."
          },
          "documentNumber": {
            "type": "string",
            "example": "52123456",
            "description": "Document number."
          },
          "bankName": {
            "type": "string",
            "example": "Banco Davivienda",
            "description": "Bank the payer paid from."
          }
        },
        "required": [
          "fullName",
          "documentType",
          "documentNumber",
          "bankName"
        ],
        "description": "Payer of the deposit. In the sandbox the data is synthetic (or what you send to the simulator)."
      },
      "Quote": {
        "type": "object",
        "properties": {
          "quote": {
            "type": "string",
            "example": "EQ-COPXUSDX-261124150405-SBX7Q",
            "description": "Quote id (30 characters): `EQ-{ORIGIN}{DESTINATION}-{YYMMDDHHMMSS}-{client}{2}`. Send it to `POST /v1/transactions`."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:35.123Z",
            "description": "Expires 30 seconds after it was issued; single use."
          },
          "from": {
            "$ref": "#/components/schemas/QuoteSide"
          },
          "to": {
            "$ref": "#/components/schemas/QuoteSide"
          },
          "factor": {
            "type": "number",
            "example": 3973.7,
            "description": "COP per USD, with 2 decimals. Synthetic in the sandbox: the workspace mid rate ± the term's spread."
          },
          "factorFormula": {
            "type": "string",
            "const": "COP/USD",
            "example": "COP/USD",
            "description": "Always `COP/USD`."
          },
          "settlementTerm": {
            "type": "string",
            "enum": [
              "SAME_DAY",
              "NEXT_DAY",
              "SECOND_DAY"
            ],
            "example": "SAME_DAY",
            "description": "Quoted term.\n\n- `SAME_DAY`: Settles the same business day (before the 13:00 cutoff).\n- `NEXT_DAY`: Settles the next business day.\n- `SECOND_DAY`: Settles on the second business day.",
            "x-enumDescriptions": {
              "SAME_DAY": "Settles the same business day (before the 13:00 cutoff).",
              "NEXT_DAY": "Settles the next business day.",
              "SECOND_DAY": "Settles on the second business day."
            }
          },
          "settlementDate": {
            "type": "string",
            "format": "date",
            "example": "2026-11-24",
            "description": "Business day it settles (Bogotá)."
          }
        },
        "required": [
          "quote",
          "expiresAt",
          "from",
          "to",
          "factor",
          "factorFormula",
          "settlementTerm",
          "settlementDate"
        ],
        "description": "FX quote."
      },
      "QuoteSide": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "enum": [
              "COL",
              "USA"
            ],
            "example": "COL",
            "description": "Country of the currency.\n\n- `COL`: Colombia (ISO 3166-1 alpha-3).\n- `USA`: United States (ISO 3166-1 alpha-3).",
            "x-enumDescriptions": {
              "COL": "Colombia (ISO 3166-1 alpha-3).",
              "USA": "United States (ISO 3166-1 alpha-3)."
            }
          },
          "currency": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "COP",
                  "USD"
                ],
                "example": "COP",
                "description": "Currency code.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
                "x-enumDescriptions": {
                  "COP": "Colombian peso (whole pesos).",
                  "USD": "US dollar (up to 2 decimals)."
                }
              },
              "decimals": {
                "type": "integer",
                "example": 0,
                "description": "Decimals of the currency (COP 0, USD 2)."
              }
            },
            "required": [
              "code",
              "decimals"
            ],
            "description": "Currency."
          }
        },
        "required": [
          "country",
          "currency"
        ],
        "description": "One side of the quote."
      },
      "FxTransactionCreated": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "example": "SBX-OR-NPTRFI261124W8D3QF-2K",
            "description": "Conversion id (see `GET /v1/transactions/{transactionId}`)."
          },
          "type": {
            "type": "string",
            "const": "FX",
            "description": "Always `FX`."
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "SENT",
              "COMPLETED",
              "REJECTED"
            ],
            "example": "IN_PROGRESS",
            "description": "Status: `IN_PROGRESS` until settlement.\n\n- `CREATED`: Created. For a Bre-B withdrawal, the transfer is in flight.\n- `IN_PROGRESS`: In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.\n- `SENT`: The money was sent to the beneficiary's bank. Withdrawals only (never FX).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected. The sandbox reverses the debit automatically; in production operations reverses it.",
            "x-enumDescriptions": {
              "CREATED": "Created. For a Bre-B withdrawal, the transfer is in flight.",
              "IN_PROGRESS": "In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.",
              "SENT": "The money was sent to the beneficiary's bank. Withdrawals only (never FX).",
              "COMPLETED": "Completed.",
              "REJECTED": "Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
            }
          },
          "originCurrency": {
            "type": "string",
            "enum": [
              "COP",
              "USD"
            ],
            "example": "COP",
            "description": "Currency debited.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
            "x-enumDescriptions": {
              "COP": "Colombian peso (whole pesos).",
              "USD": "US dollar (up to 2 decimals)."
            }
          },
          "originAmount": {
            "type": "number",
            "example": 4000000,
            "description": "Amount debited."
          },
          "destinationCurrency": {
            "type": "string",
            "enum": [
              "COP",
              "USD"
            ],
            "example": "USD",
            "description": "Currency credited.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
            "x-enumDescriptions": {
              "COP": "Colombian peso (whole pesos).",
              "USD": "US dollar (up to 2 decimals)."
            }
          },
          "destinationAmount": {
            "type": "number",
            "example": 1006.62,
            "description": "Amount credited at settlement."
          },
          "factor": {
            "type": "number",
            "example": 3973.7,
            "description": "Factor applied (COP per USD)."
          },
          "factorFormula": {
            "type": "string",
            "const": "COP/USD",
            "example": "COP/USD",
            "description": "Always `COP/USD`."
          },
          "settlementTerm": {
            "type": "string",
            "enum": [
              "SAME_DAY",
              "NEXT_DAY",
              "SECOND_DAY"
            ],
            "example": "SAME_DAY",
            "description": "Settlement term.\n\n- `SAME_DAY`: Settles the same business day (before the 13:00 cutoff).\n- `NEXT_DAY`: Settles the next business day.\n- `SECOND_DAY`: Settles on the second business day.",
            "x-enumDescriptions": {
              "SAME_DAY": "Settles the same business day (before the 13:00 cutoff).",
              "NEXT_DAY": "Settles the next business day.",
              "SECOND_DAY": "Settles on the second business day."
            }
          },
          "settlementDate": {
            "type": "string",
            "format": "date",
            "example": "2026-11-24",
            "description": "Settlement business day (Bogotá)."
          }
        },
        "required": [
          "transactionId",
          "type",
          "status",
          "originCurrency",
          "originAmount",
          "destinationCurrency",
          "destinationAmount",
          "factor",
          "factorFormula",
          "settlementTerm",
          "settlementDate"
        ],
        "description": "Conversion created."
      },
      "TransactionList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Transaction"
            },
            "description": "The items of this page."
          },
          "page": {
            "type": "integer",
            "example": 1,
            "description": "Current page."
          },
          "size": {
            "type": "integer",
            "example": 10,
            "description": "Requested page size."
          },
          "pages": {
            "type": "integer",
            "example": 1,
            "description": "Total pages (at least 1)."
          },
          "count": {
            "type": "integer",
            "example": 1,
            "description": "Items in this page."
          },
          "total": {
            "type": "integer",
            "example": 1,
            "description": "Items across all pages."
          }
        },
        "required": [
          "data",
          "page",
          "size",
          "pages",
          "count",
          "total"
        ],
        "description": "A page of transactions."
      },
      "Transaction": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/TransferTransaction"
          },
          {
            "$ref": "#/components/schemas/FxTransaction"
          }
        ],
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "TRANSFER": "#/components/schemas/TransferTransaction",
            "FX": "#/components/schemas/FxTransaction"
          }
        },
        "description": "A withdrawal or a conversion, depending on `type`."
      },
      "TransferTransaction": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "example": "SBX-OR-NPTRFI261124K7Q2M9-X4",
            "description": "Identifier of the transaction (the order id in zulu). In the sandbox: `SBX-OR-{SO|NP}TRFI{YYMMDD}{6}-{2}`."
          },
          "type": {
            "type": "string",
            "const": "TRANSFER",
            "description": "Withdrawal."
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "SENT",
              "COMPLETED",
              "REJECTED"
            ],
            "example": "IN_PROGRESS",
            "description": "Current status.\n\n- `CREATED`: Created. For a Bre-B withdrawal, the transfer is in flight.\n- `IN_PROGRESS`: In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.\n- `SENT`: The money was sent to the beneficiary's bank. Withdrawals only (never FX).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected. The sandbox reverses the debit automatically; in production operations reverses it.",
            "x-enumDescriptions": {
              "CREATED": "Created. For a Bre-B withdrawal, the transfer is in flight.",
              "IN_PROGRESS": "In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.",
              "SENT": "The money was sent to the beneficiary's bank. Withdrawals only (never FX).",
              "COMPLETED": "Completed.",
              "REJECTED": "Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
            }
          },
          "method": {
            "type": "string",
            "enum": [
              "BRE_B",
              "ACH",
              "MANUAL"
            ],
            "example": "ACH",
            "description": "How the money was sent.\n\n- `BRE_B`: Bre-B: `breBKey` was sent and the amount is within the Bre-B maximum.\n- `ACH`: Online ACH: a bank with an ACH code, whole pesos and within the current caps.\n- `MANUAL`: Manual payment: in any other case, or when the online transfer could not go out. Not an error.",
            "x-enumDescriptions": {
              "BRE_B": "Bre-B: `breBKey` was sent and the amount is within the Bre-B maximum.",
              "ACH": "Online ACH: a bank with an ACH code, whole pesos and within the current caps.",
              "MANUAL": "Manual payment: in any other case, or when the online transfer could not go out. Not an error."
            }
          },
          "amount": {
            "type": "number",
            "example": 150000,
            "description": "Amount withdrawn (COP, up to 2 decimals)."
          },
          "currency": {
            "type": "string",
            "const": "COP",
            "description": "Always `COP`."
          },
          "fee": {
            "type": "number",
            "example": 0,
            "description": "Dispersion fee, debited on top of the amount."
          },
          "note": {
            "example": "Pago factura 1234",
            "description": "The withdrawal `note`, if sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "destination": {
            "$ref": "#/components/schemas/TransactionDestination"
          },
          "rejectionReason": {
            "example": null,
            "description": "Rejection reason; `null` except when `REJECTED`.",
            "type": [
              "string",
              "null"
            ]
          },
          "statusHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusChange"
            },
            "description": "Status changes, oldest first."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:05.123Z",
            "description": "Creation time (UTC)."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:05:05.456Z",
            "description": "Last update (UTC)."
          }
        },
        "required": [
          "transactionId",
          "type",
          "status",
          "method",
          "amount",
          "currency",
          "fee",
          "note",
          "destination",
          "rejectionReason",
          "statusHistory",
          "createdAt",
          "updatedAt"
        ],
        "description": "A withdrawal."
      },
      "TransactionDestination": {
        "type": "object",
        "properties": {
          "entityType": {
            "type": "string",
            "enum": [
              "person",
              "company"
            ],
            "example": "person",
            "description": "Beneficiary type.\n\n- `person`: Natural person (an individual).\n- `company`: Company (legal entity).",
            "x-enumDescriptions": {
              "person": "Natural person (an individual).",
              "company": "Company (legal entity)."
            }
          },
          "documentType": {
            "type": "string",
            "example": "CC",
            "description": "Document type."
          },
          "documentNumber": {
            "type": "string",
            "example": "1020304050",
            "description": "Document number."
          },
          "name": {
            "type": "string",
            "example": "LUIS GÓMEZ",
            "description": "Full name or company name, as registered."
          },
          "bankCode": {
            "example": "0007",
            "description": "ACH code of the bank; `null` when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "bankName": {
            "example": "Bancolombia",
            "description": "Bank name; `null` when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "accountType": {
            "type": "string",
            "enum": [
              "ahorros",
              "corriente"
            ],
            "example": "ahorros",
            "description": "Account type (normalized).\n\n- `ahorros`: Savings account.\n- `corriente`: Checking account.",
            "x-enumDescriptions": {
              "ahorros": "Savings account.",
              "corriente": "Checking account."
            }
          },
          "accountNumber": {
            "type": "string",
            "example": "0012345678",
            "description": "Account number."
          },
          "breBKey": {
            "example": null,
            "description": "Bre-B key used; `null` when none was sent.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "entityType",
          "documentType",
          "documentNumber",
          "name",
          "bankCode",
          "bankName",
          "accountType",
          "accountNumber",
          "breBKey"
        ],
        "description": "Where the money went."
      },
      "StatusChange": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "SENT",
              "COMPLETED",
              "REJECTED"
            ],
            "example": "IN_PROGRESS",
            "description": "Status reached.\n\n- `CREATED`: Created. For a Bre-B withdrawal, the transfer is in flight.\n- `IN_PROGRESS`: In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.\n- `SENT`: The money was sent to the beneficiary's bank. Withdrawals only (never FX).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected. The sandbox reverses the debit automatically; in production operations reverses it.",
            "x-enumDescriptions": {
              "CREATED": "Created. For a Bre-B withdrawal, the transfer is in flight.",
              "IN_PROGRESS": "In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.",
              "SENT": "The money was sent to the beneficiary's bank. Withdrawals only (never FX).",
              "COMPLETED": "Completed.",
              "REJECTED": "Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
            }
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:05.123Z",
            "description": "When it changed (UTC)."
          }
        },
        "required": [
          "status",
          "at"
        ],
        "description": "One status change."
      },
      "FxTransaction": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "example": "SBX-OR-NPTRFI261124K7Q2M9-X4",
            "description": "Identifier of the transaction (the order id in zulu). In the sandbox: `SBX-OR-{SO|NP}TRFI{YYMMDD}{6}-{2}`."
          },
          "type": {
            "type": "string",
            "const": "FX",
            "description": "Conversion."
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "SENT",
              "COMPLETED",
              "REJECTED"
            ],
            "example": "IN_PROGRESS",
            "description": "Current status (never `SENT`).\n\n- `CREATED`: Created. For a Bre-B withdrawal, the transfer is in flight.\n- `IN_PROGRESS`: In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.\n- `SENT`: The money was sent to the beneficiary's bank. Withdrawals only (never FX).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected. The sandbox reverses the debit automatically; in production operations reverses it.",
            "x-enumDescriptions": {
              "CREATED": "Created. For a Bre-B withdrawal, the transfer is in flight.",
              "IN_PROGRESS": "In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.",
              "SENT": "The money was sent to the beneficiary's bank. Withdrawals only (never FX).",
              "COMPLETED": "Completed.",
              "REJECTED": "Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
            }
          },
          "amount": {
            "type": "number",
            "example": 4000000,
            "description": "Origin amount debited."
          },
          "currency": {
            "type": "string",
            "enum": [
              "COP",
              "USD"
            ],
            "example": "COP",
            "description": "Origin currency.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
            "x-enumDescriptions": {
              "COP": "Colombian peso (whole pesos).",
              "USD": "US dollar (up to 2 decimals)."
            }
          },
          "fee": {
            "type": "number",
            "example": 0,
            "description": "Always 0: the margin is in the factor."
          },
          "fx": {
            "$ref": "#/components/schemas/FxDetails"
          },
          "rejectionReason": {
            "example": null,
            "description": "Rejection reason; `null` except when `REJECTED`.",
            "type": [
              "string",
              "null"
            ]
          },
          "statusHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusChange"
            },
            "description": "Status changes, oldest first."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:05.123Z",
            "description": "Creation time (UTC)."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:05:05.456Z",
            "description": "Last update (UTC)."
          }
        },
        "required": [
          "transactionId",
          "type",
          "status",
          "amount",
          "currency",
          "fee",
          "fx",
          "rejectionReason",
          "statusHistory",
          "createdAt",
          "updatedAt"
        ],
        "description": "A conversion."
      },
      "FxDetails": {
        "type": "object",
        "properties": {
          "quote": {
            "type": "string",
            "example": "EQ-COPXUSDX-261124150405-SBX7Q",
            "description": "Quote used."
          },
          "originCurrency": {
            "type": "string",
            "enum": [
              "COP",
              "USD"
            ],
            "example": "COP",
            "description": "Currency debited.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
            "x-enumDescriptions": {
              "COP": "Colombian peso (whole pesos).",
              "USD": "US dollar (up to 2 decimals)."
            }
          },
          "originAmount": {
            "type": "number",
            "example": 4000000,
            "description": "Amount debited."
          },
          "destinationCurrency": {
            "type": "string",
            "enum": [
              "COP",
              "USD"
            ],
            "example": "USD",
            "description": "Currency credited.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
            "x-enumDescriptions": {
              "COP": "Colombian peso (whole pesos).",
              "USD": "US dollar (up to 2 decimals)."
            }
          },
          "destinationAmount": {
            "type": "number",
            "example": 1006.62,
            "description": "Amount credited at settlement."
          },
          "factor": {
            "type": "number",
            "example": 3973.7,
            "description": "Quote factor (COP per USD)."
          },
          "factorFormula": {
            "type": "string",
            "const": "COP/USD",
            "example": "COP/USD",
            "description": "Factor formula."
          },
          "settlementTerm": {
            "type": "string",
            "enum": [
              "SAME_DAY",
              "NEXT_DAY",
              "SECOND_DAY"
            ],
            "example": "SAME_DAY",
            "description": "Settlement term.\n\n- `SAME_DAY`: Settles the same business day (before the 13:00 cutoff).\n- `NEXT_DAY`: Settles the next business day.\n- `SECOND_DAY`: Settles on the second business day.",
            "x-enumDescriptions": {
              "SAME_DAY": "Settles the same business day (before the 13:00 cutoff).",
              "NEXT_DAY": "Settles the next business day.",
              "SECOND_DAY": "Settles on the second business day."
            }
          },
          "settlementDate": {
            "type": "string",
            "format": "date",
            "example": "2026-11-24",
            "description": "Settlement business day (Bogotá)."
          }
        },
        "required": [
          "quote",
          "originCurrency",
          "originAmount",
          "destinationCurrency",
          "destinationAmount",
          "factor",
          "factorFormula",
          "settlementTerm",
          "settlementDate"
        ],
        "description": "Both sides of the conversion."
      },
      "TransferCreated": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "example": "SBX-OR-NPTRFI261124K7Q2M9-X4",
            "description": "Identifier of the withdrawal in zulu (the order id). An alphanumeric code, not a UUID; in the sandbox it starts with `SBX-`."
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "SENT",
              "COMPLETED",
              "REJECTED"
            ],
            "example": "IN_PROGRESS",
            "description": "Withdrawal status.\n\n- `CREATED`: Created. For a Bre-B withdrawal, the transfer is in flight.\n- `IN_PROGRESS`: In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.\n- `SENT`: The money was sent to the beneficiary's bank. Withdrawals only (never FX).\n- `COMPLETED`: Completed.\n- `REJECTED`: Rejected. The sandbox reverses the debit automatically; in production operations reverses it.",
            "x-enumDescriptions": {
              "CREATED": "Created. For a Bre-B withdrawal, the transfer is in flight.",
              "IN_PROGRESS": "In progress: the withdrawal is being paid (ACH or manual) or the conversion awaits settlement.",
              "SENT": "The money was sent to the beneficiary's bank. Withdrawals only (never FX).",
              "COMPLETED": "Completed.",
              "REJECTED": "Rejected. The sandbox reverses the debit automatically; in production operations reverses it."
            }
          },
          "method": {
            "type": "string",
            "enum": [
              "BRE_B",
              "ACH",
              "MANUAL"
            ],
            "example": "ACH",
            "description": "How the money is sent.\n\n- `BRE_B`: Bre-B: `breBKey` was sent and the amount is within the Bre-B maximum.\n- `ACH`: Online ACH: a bank with an ACH code, whole pesos and within the current caps.\n- `MANUAL`: Manual payment: in any other case, or when the online transfer could not go out. Not an error.",
            "x-enumDescriptions": {
              "BRE_B": "Bre-B: `breBKey` was sent and the amount is within the Bre-B maximum.",
              "ACH": "Online ACH: a bank with an ACH code, whole pesos and within the current caps.",
              "MANUAL": "Manual payment: in any other case, or when the online transfer could not go out. Not an error."
            }
          }
        },
        "required": [
          "transactionId",
          "status",
          "method"
        ],
        "description": "Withdrawal created."
      },
      "ForbiddenApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "const": "ForbiddenApiError",
            "description": "Error code (go-libs literal)."
          },
          "cause": {
            "type": "string",
            "description": "Error detail. The texts are listed in the error catalog and are stable."
          },
          "message": {
            "type": "string",
            "description": "Human-facing message. Production does not send it today; it is reserved."
          },
          "values": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "destination.bankAccount.accountType": "failed validation on the \"oneof\" tag with value required \"ahorros corriente savings saving checking\""
            },
            "description": "Validation 400s only: one message per field, keyed by the field's JSON path, naming the Go validator that failed (`failed validation on the \"required\" tag`)."
          }
        },
        "required": [
          "error",
          "cause"
        ],
        "description": "API error (ForbiddenApiError). Operation not allowed."
      },
      "Balance": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "enum": [
              "COP",
              "USD"
            ],
            "example": "COP",
            "description": "Currency.\n\n- `COP`: Colombian peso (whole pesos).\n- `USD`: US dollar (up to 2 decimals).",
            "x-enumDescriptions": {
              "COP": "Colombian peso (whole pesos).",
              "USD": "US dollar (up to 2 decimals)."
            }
          },
          "balance": {
            "type": "number",
            "example": 25000000,
            "description": "Available balance."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-24T15:04:05.123Z",
            "description": "Last movement (UTC)."
          }
        },
        "required": [
          "currency",
          "balance",
          "updatedAt"
        ],
        "description": "Balance of one currency."
      },
      "Limits": {
        "type": "object",
        "properties": {
          "transfer": {
            "type": "object",
            "properties": {
              "breB": {
                "type": "object",
                "properties": {
                  "maxAmount": {
                    "type": "number",
                    "example": 12110000,
                    "description": "Maximum per Bre-B withdrawal (COP)."
                  }
                },
                "required": [
                  "maxAmount"
                ],
                "description": "Bre-B."
              },
              "ach": {
                "type": "object",
                "properties": {
                  "maxAmount": {
                    "type": "number",
                    "example": 250000000,
                    "description": "Maximum per online ACH withdrawal (COP)."
                  },
                  "dailyCount": {
                    "type": "integer",
                    "example": 10000,
                    "description": "Online ACH withdrawals per day."
                  },
                  "dailyAmount": {
                    "type": "number",
                    "example": 999999999999999,
                    "description": "Daily sum of online ACH withdrawals (COP)."
                  },
                  "usedToday": {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "example": 3,
                        "description": "Today's online ACH withdrawals."
                      },
                      "amount": {
                        "type": "number",
                        "example": 4500000,
                        "description": "Today's sum (COP)."
                      }
                    },
                    "required": [
                      "count",
                      "amount"
                    ],
                    "description": "The day's usage (Bogotá)."
                  }
                },
                "required": [
                  "maxAmount",
                  "dailyCount",
                  "dailyAmount",
                  "usedToday"
                ],
                "description": "Online ACH. Above a cap, the withdrawal goes `MANUAL` (not an error)."
              },
              "manual": {
                "type": "object",
                "properties": {
                  "cutoffTime": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "example": "15:30",
                    "description": "Daily cutoff of manual payment (HH:MM, Bogotá, business days)."
                  }
                },
                "required": [
                  "cutoffTime"
                ],
                "description": "Manual payment (traditional ACH)."
              }
            },
            "required": [
              "breB",
              "ach",
              "manual"
            ],
            "description": "Withdrawals (`POST /v1/transfer`)."
          },
          "fx": {
            "type": "object",
            "properties": {
              "COP": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number",
                    "example": 4000,
                    "description": "Minimum per conversion (COP)."
                  },
                  "max": {
                    "type": "number",
                    "example": 4000000000,
                    "description": "Maximum per conversion (COP)."
                  }
                },
                "required": [
                  "min",
                  "max"
                ],
                "description": "Limits of the COP side."
              },
              "USD": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number",
                    "example": 1,
                    "description": "Minimum per conversion (USD)."
                  },
                  "max": {
                    "type": "number",
                    "example": 1000000,
                    "description": "Maximum per conversion (USD)."
                  }
                },
                "required": [
                  "min",
                  "max"
                ],
                "description": "Limits of the USD side."
              },
              "marketHours": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "ALWAYS_OPEN",
                      "REAL"
                    ],
                    "example": "ALWAYS_OPEN",
                    "description": "Simulated hours.\n\n- `ALWAYS_OPEN`: Always open (the sandbox default, like production's test users).\n- `REAL`: Real hours: Colombian business days, from `open` to `close`.",
                    "x-enumDescriptions": {
                      "ALWAYS_OPEN": "Always open (the sandbox default, like production's test users).",
                      "REAL": "Real hours: Colombian business days, from `open` to `close`."
                    }
                  },
                  "open": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "example": "08:05",
                    "description": "Opening (HH:MM, Bogotá)."
                  },
                  "close": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "example": "15:30",
                    "description": "Closing (HH:MM, Bogotá)."
                  },
                  "timezone": {
                    "type": "string",
                    "const": "America/Bogota",
                    "description": "Time zone."
                  }
                },
                "required": [
                  "mode",
                  "open",
                  "close",
                  "timezone"
                ],
                "description": "FX market hours."
              },
              "sameDayCutoff": {
                "type": "string",
                "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                "example": "13:00",
                "description": "Last time to quote `SAME_DAY` (HH:MM, Bogotá)."
              }
            },
            "required": [
              "COP",
              "USD",
              "marketHours",
              "sameDayCutoff"
            ],
            "description": "Conversions (both sides must comply)."
          },
          "rechargeLinks": {
            "type": "object",
            "properties": {
              "maxActive": {
                "type": "integer",
                "example": 15,
                "description": "Active links at once (`CREATED` or `AWAITING_PAYMENT`)."
              },
              "minAmount": {
                "type": "number",
                "example": 100000,
                "description": "Minimum amount of a link (COP)."
              },
              "maxAmount": {
                "type": "number",
                "example": 1000000000,
                "description": "Maximum amount of a link (COP)."
              }
            },
            "required": [
              "maxActive",
              "minAmount",
              "maxAmount"
            ],
            "description": "PSE payment links."
          },
          "breBKeys": {
            "type": "object",
            "properties": {
              "max": {
                "type": "integer",
                "example": 5,
                "description": "Bre-B keys per workspace."
              }
            },
            "required": [
              "max"
            ],
            "description": "Own Bre-B keys."
          }
        },
        "required": [
          "transfer",
          "fx",
          "rechargeLinks",
          "breBKeys"
        ],
        "description": "Limits in force."
      },
      "Bank": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "0007",
            "description": "ACH code of the bank (4 digits)."
          },
          "name": {
            "type": "string",
            "example": "Bancolombia",
            "description": "Bank name."
          }
        },
        "required": [
          "code",
          "name"
        ],
        "description": "A bank."
      },
      "DocumentType": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "CC",
            "description": "Document type code."
          },
          "name": {
            "type": "string",
            "example": "Cédula de ciudadanía",
            "description": "Official name (in Spanish)."
          },
          "entityTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "person",
                "company"
              ],
              "description": "Entity type.\n\n- `person`: Natural person (an individual).\n- `company`: Company (legal entity).",
              "x-enumDescriptions": {
                "person": "Natural person (an individual).",
                "company": "Company (legal entity)."
              }
            },
            "example": [
              "person"
            ],
            "description": "Entity types that use it."
          }
        },
        "required": [
          "code",
          "name",
          "entityTypes"
        ],
        "description": "A document type."
      },
      "SimulatedRechargeLinkPayment": {
        "type": "object",
        "properties": {
          "rechargeLink": {
            "$ref": "#/components/schemas/RechargeLink"
          },
          "deposit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Deposit"
              },
              {
                "type": "null"
              }
            ],
            "description": "The deposit created; `null` when the payment was refused."
          }
        },
        "required": [
          "rechargeLink",
          "deposit"
        ],
        "description": "Result of the simulated payment."
      }
    },
    "headers": {
      "XRequestId": {
        "required": true,
        "schema": {
          "type": "string",
          "example": "0f8e2c1a-5b7d-4f3e-9a6c-2d4b8e1f7a90"
        },
        "description": "Identifier of the request. Include it when you report a problem.",
        "x-zulu-availability": "PREVIEW"
      }
    },
    "responses": {
      "Internal": {
        "description": "Internal error.\n\n- `[code:1] unexpected error`: Internal error. On operations that move money, check the state before retrying so the operation is not duplicated.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InternalServerApiError"
            },
            "examples": {
              "INTERNAL": {
                "summary": "Internal error",
                "value": {
                  "error": "InternalServerApiError",
                  "cause": "[code:1] unexpected error"
                }
              }
            }
          }
        }
      },
      "GatewayUnauthorized": {
        "description": "The access token is missing, invalid or expired.\n\n- `Unauthorized`: The `Authorization: Bearer <access_token>` header is missing, or the token is invalid or expired.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GatewayUnauthorized"
            },
            "examples": {
              "GATEWAY_UNAUTHORIZED": {
                "summary": "The `Authorization: Bearer <access_token>` header is missing, or the token is invalid or expired",
                "value": {
                  "message": "Unauthorized"
                }
              }
            }
          }
        }
      },
      "GatewayForbidden": {
        "description": "The `X-API-Key` is missing, invalid or does not match the token.\n\n- `Forbidden`: The `X-API-Key` is missing, unknown, revoked or does not belong to the credentials of the token.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GatewayForbidden"
            },
            "examples": {
              "GATEWAY_FORBIDDEN": {
                "summary": "The `X-API-Key` is missing, unknown, revoked or does not belong to the credentials of the token",
                "value": {
                  "message": "Forbidden"
                }
              }
            }
          }
        }
      },
      "IdempotencyInFlight": {
        "description": "Conflict with the current state.\n\n- `idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" is still being processed`: Another call with the same `Idempotency-Key` is still running. Retry in a few seconds to receive its response.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ResourceConflictApiError"
            },
            "examples": {
              "IDEMPOTENCY_IN_FLIGHT": {
                "summary": "Another call with the same `Idempotency-Key` is still running",
                "value": {
                  "error": "ResourceConflictApiError",
                  "cause": "idempotency key \"7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21\" is still being processed"
                }
              }
            }
          }
        }
      },
      "GatewayTooManyRequests": {
        "description": "Too many requests: wait the seconds in `Retry-After`.\n\n- `Too Many Requests`: You exceeded the request limit of your credentials. Wait the seconds in `Retry-After`.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          },
          "Retry-After": {
            "required": true,
            "schema": {
              "type": "string",
              "example": "30"
            },
            "description": "Seconds to wait before retrying.",
            "x-zulu-availability": "PREVIEW"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GatewayTooManyRequests"
            },
            "examples": {
              "GATEWAY_TOO_MANY_REQUESTS": {
                "summary": "You exceeded the request limit of your credentials",
                "value": {
                  "message": "Too Many Requests"
                }
              }
            }
          }
        }
      },
      "NoContent": {
        "description": "Done; no content.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "RechargeLinkNotFound": {
        "description": "The resource does not exist.\n\n- `recharge link \"7QmVt3KpXz\" not found`: No link with that slug exists in your workspace.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/NotFoundApiError"
            },
            "examples": {
              "RECHARGE_LINK_NOT_FOUND": {
                "summary": "No link with that slug exists in your workspace",
                "value": {
                  "error": "NotFoundApiError",
                  "cause": "recharge link \"7QmVt3KpXz\" not found"
                }
              }
            }
          }
        }
      },
      "BadRequest": {
        "description": "Invalid request: the body is not JSON, a field has another type or fails its validation.\n\n- `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.\n- `invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64`: 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.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BadRequestApiError"
            },
            "examples": {
              "INVALID_JSON": {
                "summary": "The body is not valid JSON, or a field has the wrong type (a string where a number goes, for example)",
                "value": {
                  "error": "BadRequestApiError",
                  "cause": "invalid json body: json: cannot unmarshal string into Go struct field CreateTransferOutRequest.amount of type float64"
                }
              }
            }
          }
        }
      },
      "BreBKeyNotFound": {
        "description": "The resource does not exist.\n\n- `bre-b key \"@notfound\" not found`: The key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: `@notfound`.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/XRequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/NotFoundApiError"
            },
            "examples": {
              "BRE_B_KEY_NOT_FOUND": {
                "summary": "The key does not exist (in your workspace, or in the Bre-B directory when resolving it)",
                "value": {
                  "error": "NotFoundApiError",
                  "cause": "bre-b key \"@notfound\" not found"
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "in": "header",
        "name": "Idempotency-Key",
        "schema": {
          "example": "7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21",
          "type": "string",
          "maxLength": 255
        },
        "description": "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.",
        "x-zulu-availability": "PREVIEW"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Access token from `POST /auth/token`, as `Authorization: Bearer <access_token>`. It expires in one hour: reuse it."
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your API key, in the `X-API-Key` header, together with the access token."
      }
    }
  }
}
