Skip to Content
HomeLink Hub
Users & Profile

Save payout bank details

PUT
/api/v1/user/bank-details

Access: Bearer token required.

Partially updates the bank account the user is paid out to; only the fields sent are changed. The values are stored as given: this endpoint does not verify the account with the bank. The intended flow is GET /user/banks to pick a bank, POST /user/bank-details/verify to resolve the account name, then this call with the confirmed values. Payouts are routed on bankCode, not bankName, so always send the code from the bank list. The response echoes the full saved details including the account number; fields never set are omitted.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Request Body

application/json
  1. body
bankName?string

Display name of the bank, up to 100 characters.

Lengthlength <= 100
bankCode?string

The bank's code from GET /user/banks, up to 10 characters. Required for payouts to be routable.

Lengthlength <= 10
accountHolderName?string

Name on the account, ideally as returned by POST /user/bank-details/verify. Up to 100 characters.

Lengthlength <= 100
accountNumber?string

Bank account number (10-digit NUBAN for Nigerian banks). Up to 50 characters.

Lengthlength <= 50
swiftIban?string

SWIFT code or IBAN, up to 34 characters. Optional.

Lengthlength <= 34

Response Body

Bank details saved

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PUT 'http://localhost:4000/api/v1/user/bank-details' \  -H 'Content-Type: application/json' \  -d '{  "bankName": "Guaranty Trust Bank",  "bankCode": "058",  "accountHolderName": "ADAEZE OKONKWO",  "accountNumber": "0123456789"}'
Example Response
{  "status": 200,  "success": true,  "message": "Bank details updated.",  "data": {    "bankDetails": {      "bankName": "Guaranty Trust Bank",      "bankCode": "058",      "accountHolderName": "ADAEZE OKONKWO",      "accountNumber": "0123456789"    }  }}