Data dictionary
Amount
Field | Data type | Required | Description |
currency | String | Yes | The 3-character currency code that follows ISO-4217 standard. Maximum length: 3 characters |
value | Integer | Yes | Indicates the charged amount, which is in currency's smallest unit. That is, 100 cents to charge 1.00 dollar, or 100 dollar to charge 100 dollar, a zero-decimal currency. Value range: 0-2147483647 |
CardField
For notifyCardRegistration and updateCardDetail
Field | Data type | Required | Description | Example |
fieldCode | String | Yes | The personal information provided by the user in the following scenarios:
Valid values are:
| "USER_NAME" |
fieldValue | String | Yes | The specific value of the card information specified in the above fieldCode parameter.
Notes:
| { "fieldCode": "GENDER", "fieldValue": "M" } |
For other APIs
Field | Data type | Required | Description | Example |
fieldCode | String | Yes | Indicates the card details defined by the merchant when the user registers the membership card, which is specified in the cardFields parameter in the issueCard API or the inquireCardDetail API. Valid values are:
| "POINT" |
fieldValue | String | Yes | Indicates the specific value of the card information specified in the above fieldCode parameter.
Note:
| { "fieldCode": "BALANCE", "fieldValue": { "value": 100, "currency": "SGD" } } |
AssetDetail
Field | Data type | Required | Description |
assetType | String | Yes | Indicates the type of the membership assets. Valid values are:
|
assetValue | String | Yes | Indicates the value of the membership assets. Note: POINT , assetValue indicates the amount details related to the reward points, which is in JSON format containing the following fields:BALANCE , assetValue indicates the amount details related to the balance, which is in JSON format containing an Amount object.BENEFIT , assetValue indicates the amount details related to the benefit, which is in JSON format containing an Array<BenefitDetail> object. The maximum size of the array is 30 elements.See Sample response in the inquireMemberAssets API for sample implementation. |
BenefitDetail
Field | Data type | Required | Description |
benefitInstanceId | String | Yes | Indicates the unique ID assigned by the merchant to identify a benefit instance. Maximum length: 64 characters |
status | String | Yes | Indicates the status of a benefit. Valid values are:
|
amount | No | Indicates the benefit amount. | |
createdTime | String | Yes | Indicates the actual time when a benefit is created. The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:30". |
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". |
benefitTitle | Yes | Indicates the title of the benefit. | |
useRules | Yes | Indicates the usage rules of the benefit. | |
useScenarios | Yes | Indicates the usage scenarios of the benefit. | |
iconUrl | String | Yes | Indicates the icon URL of the benefit. Maximum length: 256 characters |
benefitUrl | String | No | Indicates that the user can redeem the benefit with a URL. Maximum length: 256 characters |
extendInfo | String | No | Indicates the extended information of the benefit.
|
MultiLanguageText
Field | Data type | Required | Description | Example |
languageValues | Map<String,String> | Yes | Indicates the key-value pairs of the multi-language content. The key is the language code, such as
| { "en-US": "KFC", "zh-CN": "肯德基" } |
defaultLanguage | String | No | Indicates the language code of the default language, such as
Note: When a defaultLanguage value is provided, languageValues must contain data of the default language. | "en-US" |
Result
Field | Data type | Required | Description |
resultStatus | String | No | Result status. Valid values are:
|
resultCode | String | No | Result code Maximum length: 64 characters. |
resultMessage | String | No | Result message that describes the result code in detail. Maximum length: 256 characters. |
LoginIdentity
Field | Data type | Required | Description |
identityType | String | Yes | The type of the user's identity. Valid values are:
|
identityNo | String | Yes | The identity number. If the value of identityType is |