Skip to main content
POST
/
api
/
v1
/
members
/
{userId}
/
payout-accounts
curl --request POST \
  --url https://app.mlm-platform.com/api/v1/members/{userId}/payout-accounts \
  --header 'Content-Type: application/json' \
  --header 'x-tenant-api-key: <api-key>' \
  --data '
{
  "methodType": "bank_hk",
  "currency": "HKD",
  "bankAccount": {
    "accountHolderName": "Chan Tai Man",
    "bankCode": "004",
    "branchCode": "123",
    "accountNumber": "12345678901"
  },
  "isPrimary": true
}
'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"methodType": "<string>",
"category": "<string>",
"displayName": "<string>",
"countryCode": "<string>",
"currency": "<string>",
"providerType": "<string>",
"isPrimary": true,
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-tenant-api-key
string
header
required

Tenant API key for authentication. Keys are scoped to specific environments (LIVE or SANDBOX). Obtain keys from the admin dashboard.

Path Parameters

userId
string<uuid>
required

Body

application/json
methodType
string
required

Payout method ID. Must match a value from GET /api/v1/payout-methods?country=XX response methods[].id.

currency
string
required

ISO 4217 currency code. Must match the selected payout method.

Required string length: 3
bankAccount
object

Bank account details. Required fields depend on the selected methodType. Use GET /api/v1/payout-methods?country=XX to get field definitions for each method.

Common fields by country:

  • HK: bankCode, branchCode, accountNumber
  • US: routingNumber, accountNumber
  • GB: sortCode, accountNumber
  • EU (SEPA): iban
details
object
deprecated

Deprecated: Use bankAccount instead. Provider-agnostic key/value map of method-specific fields. Keys and validation rules are defined by the selected payout method's fields[] from GET /api/v1/payout-methods.

accountHolderName
string
deprecated

Deprecated: Use bankAccount.accountHolderName instead. Name of the payout account holder as registered with the provider.

isPrimary
boolean

If true, marks this account as the member's primary payout account

Response

Created payout account

id
string<uuid>
methodType
string
category
string
displayName
string
countryCode
string
currency
string
providerType
string
isPrimary
boolean
isActive
boolean
createdAt
string<date-time>
updatedAt
string<date-time>