Skip to main content

Setting the Issuer's Primary Bank Account

This endpoint promotes an existing issuer bank account to primary (is_default: true). The account previously marked as primary automatically becomes is_default: false.


Swapping the issuer's primary bank account​

An issuer may have several registered bank accounts, but only one is marked as primary. To correct a primary account with incorrect data (digit, branch, ISPB), use the flow below.

Prerequisite

The issuer must be in in_filling status. After that status, the primary account cannot be changed — this is intentional, since the primary account is referenced by financial operations.

Swap flow (3 calls)​

  1. POST .../bank_account → creates the new (correct) account.
  2. POST .../bank_account/{key}/set_default → promotes the new account to primary.
  3. DELETE .../bank_account/{old_key} → removes the old account.

The same ordering restriction applies: since deleting the primary account is not allowed, promotion must come before removal. Reversing the order returns HTTP 400 / ISS0000012.


Request​

ENDPOINT
/issuer_management/issuer/ISSUER-KEY/bank_account/BANK-ACCOUNT-KEY/set_default
METHOD
POST

Path Params​

FieldTypeDescriptionCharacters
ISSUER-KEYstringUnique issuer key (UUID v4).36
BANK-ACCOUNT-KEYstringUnique key of the bank account to be promoted to primary (UUID v4).36

Request Body​

No content is sent in the request body.


Response​

STATUS
204

Account promoted to primary. No content is returned in the response body.


Errors​

HTTPCodeScenario
400ISS0000011Issuer is not in in_filling.
403ISS000011Tenant does not have access to this issuer.
404ISS000005bank_account_key not found for this issuer.
404ISS000009issuer_key not found.