notifyTransfer
Antom sends notifications of the transfer result with this interface. You can set up the URL for receiving transfer notifications by specifying the transferToDetail.transferNotifyUrl field or from portal configuration when calling createTransfer API.
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
transferRequestId String REQUIRED
The unique ID assigned by the merchant to identify a transfer request.
More information:
- This field is an API idempotency field.
- Maximum length: 64 characters
transferId String REQUIRED
The unique ID assigned by Antom to identify a transfer.
More information:
- Maximum length: 64 characters
transferResult Object REQUIRED
The result of the transfer request.
transferFinishTime Datetime
The finishing time of a transfer.
More information:
- The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".
transferFromDetail Object REQUIRED
Transfer details submitted by the payer.
transferToDetail Object REQUIRED
Transfer details for the beneficiary.
businessSceneCode String
The code that represents the transfer business scenario. Valid value is:
THIRD_PARTY_TRANSFER: Account-to-account transfer (the value of payee isANTOM_BIZ_ACCOUNT).
More information:
- Maximum length: 64 characters
Response parameters
result Object REQUIRED
Indicates whether this SPI is called successfully.
Request
Response
Result processing logic
For different request results, different actions need to be taken. See the following list for details:
Result/Error codes
| Code | Value | Message | Further action |
|---|---|---|---|
| SUCCESS | S | success. | The transfer is created successfully and being processed. Call the inquiryTransfer API for the transfer result. |
| PROCESS_FAIL | F | A general business failure occurred. Do not retry. | Human intervention is usually needed. It is recommended that you contact our Technical Support Team to resolve the issue. |
| UNKNOWN_EXCEPTION | U | API failed due to unknown reason. | The service might be down, retry later. If the issue persists, contact our Technical Support Team. |
transferResult.resultCode
| Code | Value | Message | Further action |
|---|---|---|---|
| SUCCESS | S | success. | No further action is needed. |
| PROCESS_FAIL | F | A general business failure occurred. Do not retry. | Human intervention is usually needed. It is recommended that you contact our Technical Support Team to resolve the issue. |