Developer Docs
English
English
Endpoints to add, query and choose the default among your organisation's beneficiary accounts (IBANs).
The first beneficiary account is registered during onboarding and is automatically configured as the organisation's default account. Further accounts are added from the Dashboard or through the API, as explained in Adding a beneficiary account.
Each beneficiary account has a unique identifier called creditorAccountUuid, used to indicate which account will receive the funds associated with an operation.
The creditorAccountUuid can optionally be sent when registering Pagafactu or Zertipay operations. If not specified, Zertiban will automatically use the beneficiary account flagged as default (isDefault=true) for the organisation.
WARNING
Only beneficiary accounts in ACTIVE status can be used to generate new operations or receive payments.
Every endpoint on this page supports two kinds of consumer. In both cases the organisation being acted on goes in the x-tenant-id header:
| Consumer | Token | x-tenant-id |
|---|---|---|
| Direct integration | The one from your own API credential | Your organisation's UUID |
| Collaborator (Partner/Agent) | Its delegated token on the client | The UUID of the client organisation it manages |
A collaborator can only act on the organisations it manages: for any other, the API answers 403.
POST/business-creditor-account/v1/business-creditor-account-verifications
Adding a beneficiary account requires verifying with the bank that its holder is the organisation. To do so, the holder authorises a €0.01 PSD2 verification payment from the account to be added; the amount is always refunded. The full process is:
uuid and a gateway url.url, where they choose their bank and authorise the verification payment.The outcome is only delivered by webhook: see Beneficiary account events.
The organisation must be active
Accounts can only be added to organisations in ACTIVE status. Otherwise the API answers 409 with the code BUSINESS-CREDITOR-ACCOUNT-BUSINESS-NOT-ACTIVE.
curl -X POST "https://api-sandbox.zertiban.com/business-creditor-account/v1/business-creditor-account-verifications" \
-H "Authorization: Bearer {access_token}" \
-H "x-tenant-id: {businessUuid}" \
-H "Content-Type: application/json" \
-d '{
"alias": "Collections account",
"isDefault": true
}'The body is optional.
| Field | Type | Description |
|---|---|---|
alias | String | Alias of the future account. Between 1 and 50 characters |
isDefault | Boolean | Whether the account should become the organisation's default once added. Defaults to false |
201 response {
"uuid": "b8f1c0d2-6a3e-4f19-9c47-2d51e0a7b6f3",
"url": "https://verify.zertiban.com/v1/pis/1a2b3c4d"
}| Field | Type | Description |
|---|---|---|
uuid | UUID | Identifier of the request, not of the account. It is the one carried in resource.uuid of the CREDITOR_ACCOUNT_VERIFICATION_* webhooks |
url | URI | Gateway to redirect the holder to so they can authorise the verification payment |
The new account's creditorAccountUuid arrives in resource.creditorAccount.uuid of the CREDITOR_ACCOUNT_VERIFICATION_COMPLETED webhook.
If a collaborator creates the request with its delegated token, the request is attributed to it and it also receives the outcome webhooks, alongside the organisation.
| Code | When |
|---|---|
201 | Request created |
400 | Invalid request (for example, an alias longer than 50 characters) |
403 | Forbidden, including a collaborator that does not manage the x-tenant-id organisation |
409 | The organisation is not active (BUSINESS-CREDITOR-ACCOUNT-BUSINESS-NOT-ACTIVE) |
500 | Internal error |
{
"timestamp": 1743097669507,
"status": 409,
"errors": [
{
"code": "BUSINESS-CREDITOR-ACCOUNT-BUSINESS-NOT-ACTIVE",
"message": "The business is not active"
}
]
}GET/business-creditor-account/v1/business-creditor-accounts
curl "https://api-sandbox.zertiban.com/business-creditor-account/v1/business-creditor-accounts?offset=0&limit=10" \
-H "Authorization: Bearer {access_token}" \
-H "x-tenant-id: {businessUuid}"| Parameter | Type | Default | Description |
|---|---|---|---|
offset | int | 0 | Starting position |
limit | int | — | Results per page |
q_status | enum (ACTIVE / DISABLED) | — | Filters by status. Omitted returns all. Invalid enum → 400 |
q_isDefault | boolean | — | Filters by whether the account is the default. Omitted returns all. Unparseable value → 400 |
Default behaviour
If no filters are applied, the endpoint returns all registered beneficiary accounts, including those in DISABLED status.
A collaborator sees every account of the organisation it manages, not only the ones it added.
200 response {
"total": 2,
"results": [
{
"uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"accountNumber": "ES91 2100 0418 ***** 4567",
"type": "IBAN",
"alias": "Cuenta principal cobros",
"status": "ACTIVE",
"isDefault": true,
"aspsp": {
"uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"commercialName": "CaixaBank",
"icon": "https://..."
}
}
]
}GET/business-creditor-account/v1/business-creditor-accounts/{uuid}
curl "https://api-sandbox.zertiban.com/business-creditor-account/v1/business-creditor-accounts/{uuid}" \
-H "Authorization: Bearer {access_token}" \
-H "x-tenant-id: {businessUuid}"200 response {
"uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"accountNumber": "ES91 2100 0418 ***** 4567",
"type": "IBAN",
"alias": "Cuenta principal cobros",
"status": "ACTIVE",
"isDefault": true,
"aspsp": {
"uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"commercialName": "CaixaBank"
}
}| Field | Type | Description |
|---|---|---|
uuid | UUID | creditorAccountUuid used to associate operations with a specific beneficiary account |
accountNumber | String | Masked account number |
type | String | Account type. Possible value: IBAN |
alias | String | Identifying name configured for the account |
status | String | Account status (ACTIVE / DISABLED). Only ACTIVE accounts accept payments |
isDefault | Boolean | Indicates whether this is the organisation's default beneficiary account |
aspsp.commercialName | String | Commercial name of the banking entity |
| Code | When |
|---|---|
200 | List or detail returned |
400 | Invalid request (for example, a q_status outside the enum) |
403 | Forbidden, including a collaborator that does not manage the x-tenant-id organisation |
404 | Detail only: the account does not exist or does not belong to the organisation |
500 | Internal error |
PATCH/business-creditor-account/v1/business-creditor-accounts/{uuid}/default
Sets an account as the organisation's default: the one Zertiban uses when you register an operation without a creditorAccountUuid. The previous default is unset automatically.
409.404).curl -X PATCH "https://api-sandbox.zertiban.com/business-creditor-account/v1/business-creditor-accounts/{uuid}/default" \
-H "Authorization: Bearer {access_token}" \
-H "x-tenant-id: {businessUuid}"The response is 204 with no body.
| Code | When |
|---|---|
204 | Account set as default |
400 | Invalid request |
403 | Forbidden, including a collaborator that does not manage the x-tenant-id organisation |
404 | The account does not exist or does not belong to the organisation (BUSINESS-CREDITOR-ACCOUNT-NOT-FOUND) |
409 | The account is disabled (BUSINESS-CREDITOR-ACCOUNT-DISABLED) |
500 | Internal error |