POST
Create cardholder
Use this endpoint to create a cardholder before card creation.
Request
ApiKeyIssuing API key request header assigned by Onerway.
Example:
replace_with_issuing_api_keyclientRequestIdIdempotent request ID.
Example:
REQ_CH_20260101_001Constraints
- Range
64characters
firstNameCardholder first name.
Constraints
- Range
50characters
lastNameCardholder last name.
Constraints
- Range
20characters
emailCardholder email address.
Constraints
- Range
100characters- Rule
- Must be a valid email address.
mobileCardholder mobile number.
Example:
13800138000Constraints
- Range
20characters
mobileAreaCodeMobile area code. Obtain the value from the Mobile area code list API.
Example:
+86Constraints
- Range
10characters
birthdayDate of birth.
Example:
1990-01-01Constraints
- Range
20characters
nationalityNationality as an ISO 3166-1 alpha-2 code. Obtain the value from the Region list API.
Example:
CNConstraints
- Range
2characters
addressRegionCodeRegion or country code. Obtain the value from the Region list API.
Constraints
- Range
2characters
addressStateCodeState or province code. Obtain the value from the City list API.
Constraints
- Range
50characters
addressDetailLine1Address line 1.
Constraints
- Range
200characters
addressDetailLine2Address line 2.
Constraints
- Range
200characters
addressPostalCodePostal code.
Constraints
- Range
20characters
remarkRemark.
Example:
example remarkConstraints
- Range
200characters
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
respCodeBusiness response code.
20000 means success.respMsgResponse message.
data{ cardholderId, firstName, ... }Cardholder information.
{
"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.