POST
Update cardholder
Use this endpoint to update an existing cardholder's profile information.
Request
ApiKeyIssuing API key request header assigned by Onerway.
Example:
replace_with_issuing_api_keycardholderIdCardholder ID to update.
Example:
300001firstNameCardholder first name.
Constraints
- Range
50characters
lastNameCardholder last name.
Constraints
- Range
20characters
emailCardholder email address.
Constraints
- Range
100characters
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
addressCountryCodeRegion 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/updateCardholder' \
-H 'ApiKey: replace_with_issuing_api_key' \
-H 'Content-Type: application/json' \
--data-raw '{
"addressCityCode": "GZ",
"addressCountryCode": "CN",
"addressDetailLine1": "Example address line 1",
"addressPostalCode": "510000",
"addressStateCode": "GD",
"cardholderId": 300001,
"email": "example_cardholder@example.com",
"firstName": "Alex",
"lastName": "Chen"
}'Response
respCodeBusiness response code.
20000 means success.respMsgResponse message.
data{ cardholderId, firstName, ... }Updated cardholder information.
{
"respCode": "20000",
"respMsg": "success",
"data": {
"cardholderId": 300001,
"firstName": "Alex",
"lastName": "Chen",
"email": "example_cardholder@example.com",
"mobile": null,
"mobileAreaCode": null,
"birthDay": null,
"nationality": "CN",
"addressRegionCode": "CN",
"addressStateCode": "GD",
"addressCityCode": "GZ",
"addressDetailLine1": "Example address line 1",
"addressDetailLine2": null,
"addressPostalCode": "510000",
"remark": null
}
}No error responses are documented for this endpoint.