Accounts
Register Bank Account
Registers an external bank account for your company or for one of your users. The account is created with status in_review and can be used once Kravata approves it (accepted).
Request
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | Bearer <access> obtained from POST /api/token. |
| clientId | Query | Yes | Your client ID, from GET /api/infoClient. Requests without it are rejected with 401. |
| userId | Query | No | Register the account for one of your users instead of your company. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| accountNickname | string | Yes | Alias to identify the account (max 50 characters). |
| accountNumber | string | Yes | Account number (max 50 characters). For breb, the Bre-B key. |
| accountType | string | Yes | ahorros (savings), corriente (checking) or breb (Colombia’s Bre-B instant payment key). |
| accountHolderName | string | No | Name of the account holder. Defaults to accountNickname. |
| bankId | integer | Yes, except for breb | Bank ID from GET /api/parameters/banks. For breb it is resolved automatically from the key. |
| currencyId | string | Only if the currency is not COP | 3-letter currency code, e.g. MXN or USD. Send it together with countryId. |
| countryId | integer | Only if the currency is not COP | Country of the account. Send it together with currencyId. |
| metadata | array | Depends on the currency | List of ('metadataName', 'metadataValue'). MXN accounts require CABLE (CLABE number) and USD accounts require ABBA (ABA routing number). You can add MEMO as a transfer reference. |
Response
The registered account: id, status (in_review), accountNickname, accountHolderName, accountType, accountNumber, bankId, bank, countryFiatId, metadata, isCustodial and registerDate.
Errors
| Status | When |
|---|---|
| 400 | Invalid body, account already registered, or invalid country/currency combination. |
| 401 | Missing token or clientId. |
POST
Register Bank Account
Authorizations
Access token from POST /api/token (valid 5 minutes).
Body
application/json