Skip to main content
All API responses use a unified JSON structure. The HTTP status code is generally 200; use the response body’s code to determine success or failure.

Response Structure

Basic Examples

Success response:
Failure response:

Multilingual Support

The msg field supports multilingual responses, controlled via the Language request header: Example:

Special Cases

1. List Interfaces

The data of list interfaces is an object containing a list array:

2. Card Privacy Information Interface

The response data is an encrypted string, which the merchant must decrypt using MerchantEncryptUtil:
After decryption, the following JSON structure is obtained:

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 number
  • card_last_no — Last four digits of card number
  • total_balance — Total account balance
  • consume_no — Consumption order number

Timestamp Format

All time fields in responses are Unix millisecond timestamps (13 digits). Example:
Conversion example (JavaScript):