Onerway
POST

Create cardholder

Use this endpoint to create a cardholder before card creation.

Request

ApiKey
Issuing API key request header assigned by Onerway.
Example:
clientRequestId
Idempotent request ID.
Example:
Constraints
Range
64characters
firstName
Cardholder first name.
Constraints
Range
50characters
lastName
Cardholder last name.
Constraints
Range
20characters
email
Cardholder email address.
Constraints
Range
100characters
Rule
Must be a valid email address.
mobile
Cardholder mobile number.
Example:
Constraints
Range
20characters
mobileAreaCode
Mobile area code. Obtain the value from the Mobile area code list API.
Example:
Constraints
Range
10characters
birthday
Date of birth.
Example:
Constraints
Range
20characters
nationality
Nationality as an ISO 3166-1 alpha-2 code. Obtain the value from the Region list API.
Example:
Constraints
Range
2characters
addressRegionCode
Region or country code. Obtain the value from the Region list API.
Constraints
Range
2characters
addressStateCode
State or province code. Obtain the value from the City list API.
Constraints
Range
50characters
addressCityCode
City code. Obtain the value from the City list API.
Constraints
Range
50characters
addressDetailLine1
Address line 1.
Constraints
Range
200characters
addressDetailLine2
Address line 2.
Constraints
Range
200characters
addressPostalCode
Postal code.
Constraints
Range
20characters
remark
Remark.
Example:
Constraints
Range
200characters

Request example

curl -X POST 'https://sandbox-issuer.onerway.com/api/v1/merchant/cardholder/createCardholder' \
  -H 'ApiKey: replace_with_issuing_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "addressCityCode": "SZ",
  "addressDetailLine1": "Example address line 1",
  "addressPostalCode": "518000",
  "addressRegionCode": "CN",
  "addressStateCode": "GD",
  "birthday": "1990-01-01",
  "clientRequestId": "REQ_CH_20260101_001",
  "email": "example_cardholder@example.com",
  "firstName": "Alex",
  "lastName": "Chen",
  "mobile": "13800138000",
  "mobileAreaCode": "+86",
  "nationality": "CN"
}'

Response

respCode
Business response code. 20000 means success.
respMsg
Response message.
Cardholder information.

Response example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "cardholderId": 300001,
    "firstName": "Alex",
    "lastName": "Chen",
    "email": "example_cardholder@example.com",
    "mobile": "13800138000",
    "mobileAreaCode": "+86",
    "birthday": "1990-01-01",
    "nationality": "CN",
    "addressRegionCode": "CN",
    "addressStateCode": "GD",
    "addressCityCode": "SZ",
    "addressDetailLine1": "Example address line 1",
    "addressDetailLine2": null,
    "addressPostalCode": "518000",
    "remark": null
  }
}
No error responses are documented for this endpoint.