Data dictionary
Result
Property | Data Type | Required | Description | Example |
resultStatus | String | Yes | Result status. Valid values are:
| "S" |
resultCode | String | No | Result code Maximum length: 64 characters | "PARAM_ILLEGAL" |
resultMessage | String | No | Result message that describes the result code in detail. Maximum length: 256 characters |
Amount
Property | Data Type | Required | Description | Example |
currency | String | Yes | Indicates the three-character ISO-4217 currency code.
| "USD" |
value | String | Yes | Indicates a string that encloses a positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 dollars to charge $100, a zero-decimal currency).
| "100" |
ExternalBenefitDetail
Property | Data Type | Required | Description | Example |
benefitInstanceId | String | Yes | Indicates the unique ID assigned by the ISV to identify a benefit instance.
| "abcd1234" |
benefitTemplateId | String | Yes | Indicates the unique ID assigned by the ISV to identify a benefit template.
| "202110013121247125127141241" |
amount | No | Indicates the benefit amount. | { "currency": "USD", "value": "10000" } | |
status | String | Yes | Indicates the statuses of a benefit. Valid values are:
| "ACTIVATED" |
activateTime | String | Yes | Indicates the actual time when a benefit is activated. The value follows the ISO 8601Â standard format. For example, "2019-11-27T12:01:01+08:30". | UTC+05:30: "2019-04-04T12:08:56+05:30" UTC+0: "2019-04-04T12:08:56Z" |
expireTime | String | Yes | Indicates the actual time when a benefit is expired. The value follows the ISO 8601Â standard format. For example, "2019-11-27T12:01:01+08:30". | UTC+05:30: "2019-04-04T12:08:56+05:30" UTC+0: "2019-04-04T12:08:56Z" |
benefitCode | String | No | Indicates the code value of a benefit.
| |
benefitPin | String | No | Indicates the pin value of a benefit.
| |
benefitUrl | String | No | Indicates the URL of a benefit.
| |
extendInfo | String | No | Indicates the extended information.
| "{\"k1\":\"v1\",\"k2\":\"v2\"}" |
BenefitValidPeriod
Property | Data Type | Required | Description | Example |
type | String | Yes | Indicates the types of time. Valid values are:
Maximum length: 64 characters. | "RELATIVE" |
activeTime | String | No | Indicates the activation time after collecting a benefit. The value follows the ISO 8601Â standard format. For example, "2019-11-27T12:01:01+08:30". Note: This field is required when the value of | UTC+05:30: "2019-04-04T12:08:56+05:30" UTC+0: "2019-04-04T12:08:56Z" |
expireTime | String | No | Indicates the expiration time after collecting a benefit. The value follows the ISO 8601Â standard format. For example, "2019-11-27T12:01:01+08:30". Note: This field is required when the value of | UTC+05:30: "2019-04-04T12:08:56+05:30" UTC+0: "2019-04-04T12:08:56Z" |
activeSeconds | Integer | No | Indicates the number of seconds from the time a benefit is collected to the time the benefit is activated. The format must be an Integer. For example, 2592000 indicates 30 days (30*24*60*60 seconds). Note: This field is required when the value of | 2592000 |
expireSeconds | Integer | No | Indicates the number of seconds from the time a benefit is activated to the time the benefit is expired. The format must be an Integer. For example, 2592000 indicates 30 days (30*24*60*60 seconds). Note: This field is required when the value of | 2592000 |
BenefitBudget
Property | Data Type | Required | Description | Example |
type | String | Yes | Indicates the types of benefit budget. Valid values are:
For example, "COUNT". | "COUNT" |
amount | No | Indicates the amount of benefit budget. Note: This field is required when the value of | ||
count | Integer | No | Indicates the quantity of benefit budget. For example, "100". Note: This field is required when the value of | 100 |
MerchantInfo
Property | Data Type | Required | Description | Example |
merchantId | String | Yes | Indicates the unique ID assigned by the ISV to identify a merchant. Maximum length: 64 characters | |
name | String | Yes | Indicates the merchant's name. Maximum length: 128 characters | "Burger King" |
logoImage | Yes | Indicates the logo image of the merchant. | ||
mcc | String | No | Indicates Merchant Category Code. Maximum length: 32 characters |
Image
Property | Data Type | Required | Description |
type | String | Yes | Indicates the types of images. Valid values are:
|
content | String | Yes | Indicates the content of the image, including base64 string or image URL. The requirements of base64 string:
The requirement of image URL:
|
BenefitContent
Property | Data Type | Required | Description | Example |
type | String | Yes | Indicates the types of benefits. Valid values are:
| |
thresholdAmount | No | Indicates the minimum amount required to enjoy a benefit. You can enjoy the benefit if your purchase reaches the threshold amount. For example, a voucher saves 10 yuan on every 200 yuan, Note: This field is required when the value of | ||
amount | No | Indicates the benefit amount. Note: This field is required when the value of
| ||
ratio | String | No | Indicates the percentage of the discount.
For example, 12 percent off means the discount ratio is "0.88". Note: This field is required when the value of | "0.88" |
giftDescription | String | No | Indicates the description of gifts. For example, "Get a gift".
Note: This field is required when the value of | "Get a gift" |
BenefitCollectRule
Property | Data Type | Required | Description | Example |
type | String | Yes | Indicates the frequencies to collect the benefit. Valid values are:
| |
count | Integer | Yes | Indicates the specific number of times to collect the benefit with different collection frequencies (
|