notifyTopup
Use this API to send the top-up result to the merchant asynchronously. With this API call, the needed information is stored in JSON.
Structure
A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see:
Note: Set the data type of each field (except array) as String. This means that you must use double quotation marks (" ") to enclose the field value. Examples:
- If the data type of a field is Integer and its value is 20, set it as "20".
- If the data type of a field is Boolean and its value is
true
, set it as "true".
Request parameters
Field | Data type | Required | Description | Examples |
notifyType | Yes | The type of notification. | TOPUP_RESULT/TOPUP_PROCESS | |
topupId | String | No | DWS internal top-up ID. More information about this field:
| 20220303194010800100165270282977819 |
topupRequestId | String | No | The merchant top-up ID/ order ID. More information about this field:
| 20990501203220303486416376910 |
topupAmount | No | { "currency": "THB", "value": "349600" } | ||
topupDetailSummaries | List<TopupDetailSummary> | No | List of payment details for this top-up. | { "customerId": "****************", "extendInfo": "{\"payProvider\":\"KASITHBK\",\"authCode\":\"047407\",\"cardIndexNo\":\"2019070119027100165906606897704\",\"maskedCardNo\":\"439137******2494\"}", "paymentAmount": { "currency": "THB", "value": "349600" }, "paymentMethodType": "MIXEDCARD" } |
completeTime | Date |