Skip to content
developers

Payout

Resolve a Bre-B key

GET/v1/bre-b/keys/{key}Sandbox · 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.

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

Authentication

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

Request

Path parameters

  • keystringrequired
    The key, URL-encoded (@acme → %40acme; use encodeURIComponent).
    Example: "@luisgomez"

Responses

  • 200The key exists.

    Body
    • keystringrequired
      The key looked up.
      Example: "@luisgomez"
    • keyTypestringrequired
      Key type.

      Values

      • DOCUMENTDocument number (GOU code 1).
      • PHONEMobile number (GOU code 2).
      • EMAILE-mail address (GOU code 3).
      • ALPHAAlphanumeric handle starting with @ (GOU code 4).
      • MERCHANTMerchant code (GOU code 5).
    • statusstringrequired
      Key status: only an active key receives payments.

      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.
    • fullNamestringrequired
      Holder: full name or company name.
      Example: "Luis Gómez"
    • entityTypestringrequired
      Holder type.

      Values

      • personNatural person (an individual).
      • companyCompany (legal entity).
    • documentTypestringrequired
      Holder's document type.
      Example: "CC"
    • documentNumberstringrequired
      Holder's document number.
      Example: "1020304050"
    • bankCodestringrequired
      ACH code of the account's bank.
      Example: "0007"
    • bankNamestringrequired
      Account's bank.
      Example: "Bancolombia"
    • accountTypestringrequired
      Type of the linked account.

      Values

      • ahorrosSavings account.
      • corrienteChecking account.
    • accountNumberstringrequired
      Number of the linked account.
      Example: "0012345678"
    • bankOrgIdstringrequired
      Tax id (NIT) of the key's bank.
      Example: "890903938"
    • bankCamerastringrequired
      Clearing house.
      Example: "TFY"
  • 401The access token is missing, invalid or expired.

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

  • 404The resource does not exist.

  • 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
404NotFoundApiErrorbre-b key "%s" not foundThe key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: @notfound.

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

Examples

Active alphanumeric key200

Request

curl https://sandbox.zulu.com.co/v1/bre-b/keys/%40luisgomez \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 200

{
  "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 key (`@bloqueada`)200

Request

curl https://sandbox.zulu.com.co/v1/bre-b/keys/%40bloqueada \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 200

{
  "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"
}
Unknown key (`@notfound`)404

Request

curl https://sandbox.zulu.com.co/v1/bre-b/keys/%40notfound \
  -H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
  -H "X-API-Key: $ZULU_API_KEY"

Response 404

{
  "error": "NotFoundApiError",
  "cause": "bre-b key \"@notfound\" not found"
}