code to determine success or failure.
Response Structure
Basic Examples
Success response:Multilingual Support
Themsg field supports multilingual responses, controlled via the Language request header:
Example:
Special Cases
1. List Interfaces
Thedata of list interfaces is an object containing a list array:
2. Card Privacy Information Interface
The responsedata is an encrypted string, which the merchant must decrypt using MerchantEncryptUtil:
3. Parameter Validation Failure
When parameter validation fails,msg is prefixed with the snake_case field name in the format field_name validation message.
Examples:
cardholder_no invalid parameter— Required field validation failed.phone_code invalid parameter— Country code format error or contains a+sign.city only supports English input— Address field English validation failed.address_info.city invalid parameter— Nested object field validation failed.
HTTP Status Codes
Error Code Ranges
See “Appendix” → “Error Codes”.
Field Name Conventions
All JSON field names are in snake_case (consistent with interface parameters). Examples:cardholder_no— Cardholder order numbercard_last_no— Last four digits of card numbertotal_balance— Total account balanceconsume_no— Consumption order number
