Skip to content
developers

Pay-in

Create a Bre-B key

POST/v1/bre-b/keysSandbox · coming soon

Base URL
Sandboxhttps://sandbox.zulu.com.co/v1
Not in production yet: it arrives with this same signature. Try it in the sandbox.

Registers 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.

Authentication

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

Request

Headers

  • Idempotency-KeystringoptionalSandbox · coming soon
    Idempotency key (up to 255 characters), valid for 24 hours per workspace. Repeating the call with the same key and body returns the original response with Idempotent-Replayed: true; a different body answers 422 and, while the first call is still running, 409. Production ignores it today: every call creates a new resource.
    max. 255 charactersExample: "7f9c2ba4-e88f-4c6e-9d43-6a8b8f0f5d21"

Body

  • keystringrequired
    The key to register: @ followed by 1 to 30 letters or digits (@acmepagos). @zulu… is reserved.
    min. 1 charactersmax. 31 charactersExample: "@acmepagos"

Responses

  • 201Key created.

    Body
    • idstring (uuid)required
      Key id.
      Example: "3f6c2a9e-8d41-4b7a-9c1e-2f5d7a8b9c0d"
    • keystringrequired
      The key.
      Example: "@acmepagos"
    • statusstringrequired
      Key status.

      Values

      • ACTIVEActive: receives payments.
      • ACTIVE_BY_CLIENTActive, reactivated by its holder after a suspension: receives payments.
      • BLOCKED_BY_ZULUBlocked by zulu: does not receive payments.
      • BLOCKED_BY_CLIENTSuspended by its holder: does not receive payments.
    • createdAtstring (date-time)required
      Creation time (UTC).
      Example: "2026-11-24T15:04:05.123Z"
  • 400Invalid request: the body is not JSON, a field has another type or fails its validation.

  • 401The access token is missing, invalid or expired.

  • 403The `X-API-Key` is missing, invalid or does not match the token.

  • 409Conflict with the current state.

  • 422The operation can not be processed; nothing is recorded.

  • 429Too many requests: wait the seconds in `Retry-After`.

  • 500Internal error.

Errors

The exact causes this operation can answer, from the error catalog. Compare error and the HTTP status; the cause text is stable but meant for people.

HTTPerrorcauseDescription
400BadRequestApiErrorerror in struct validationOne or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed.
400BadRequestApiErrorinvalid json body: %sThe body is not valid JSON, or a field has the wrong type (a string where a number goes, for example). Answered before the fields are validated.
409ResourceConflictApiErroridempotency key "%s" is still being processedAnother call with the same Idempotency-Key is still running. Retry in a few seconds to receive its response.
409ResourceConflictApiErrorbre-b key "%s" already existsYou already registered that key.
422UnprocessableEntityApiErroridempotency key "%s" was used with a different requestThe Idempotency-Key was already used in the last 24 hours with a different body or operation. Use a new key for every distinct operation.
422UnprocessableEntityApiErrorthe workspace already has %d bre-b keysYou reached the workspace maximum of keys. Delete one to create another.
422UnprocessableEntityApiErrorbre-b key "%s" is reservedKeys starting with @zulu and the sandbox test data are reserved.

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

Examples

A new key201

Request

curl https://sandbox.zulu.com.co/v1/bre-b/keys \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "@acmepagos"
}'

Response 201

{
  "id": "9b2d7e14-3c5a-4f8e-a1b6-2d4c6e8f0a13",
  "key": "@acmepagos",
  "status": "ACTIVE",
  "createdAt": "2026-11-24T15:04:05.123Z"
}
Key without `@`400

Request

curl https://sandbox.zulu.com.co/v1/bre-b/keys \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "acmepagos"
}'

Response 400

{
  "error": "BadRequestApiError",
  "cause": "error in struct validation",
  "values": {
    "key": "failed validation on the \"startswith\" tag with value required \"@\""
  }
}
Key already registered409

Request

curl https://sandbox.zulu.com.co/v1/bre-b/keys \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "@acmepagos"
}'

Response 409

{
  "error": "ResourceConflictApiError",
  "cause": "bre-b key \"@acmepagos\" already exists"
}
Reserved key422

Request

curl https://sandbox.zulu.com.co/v1/bre-b/keys \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "@zulupagos"
}'

Response 422

{
  "error": "UnprocessableEntityApiError",
  "cause": "bre-b key \"@zulupagos\" is reserved"
}