1. Account Inquiry
Brief Description:- Query the balance of the account corresponding to the current business.
/usd/account/ledger.
Currencies use the international standard code, three-letter uppercase code, refer to: Wikipedia-ISO_4217
/{currency}/account/ledger
Parameters:
Response Data:
2. Asynchronous Notification
Brief Description:- When the customer’s collection is successful or failed, we will push the order status. If the first notification fails, it will retry every 5 minutes, up to 5 times.
Your provided URL, Please configure it in HaiPay’s backend or pass it in the request parameters.
Collection Callback Parameters:
Payout Callback Parameters:
Collection Link Order Callback Parameters:
Note:
After receiving the webhook event, please return HTTP Status Code 200 when the business process succeeds to indicate that the notification was received successfully. Otherwise, the system will consider the notification failed and retry up to 5 times.
3. Statement File Link Retrieval
Description:- The file format is the same as the one exported from the merchant backend. The data for the day will be generated the next day after 1:00 PM.
/common/document/download
Parameters:
Response Data:
Field Descriptions
Collection
- Error: Collection exception
- Not Started: Not started
- Paying: Collecting
- Success: Collection successful
- Failed: Collection failed
- Payment Part Success: Partial collection
- Payment Excess Success: Excess collection
Payout
- Submit Error: Submission exception
- Error: Payout exception
- Not Started: Not started
- Pending: Payout in progress
- Success: Payout successful
- Failed: Payout failed
Notification Status
- Not Start: Not notified
- Success: Notification successful
- Failed: Notification failed
- Error: Notification exception
Settlement Status
- Error: Exception pending confirmation
- Not Start: Not started
- Settling: Settling
- Success: Settlement successful
- Settlement Failed (Reversed): Settlement failed (reversed)
4. Payout Order Voucher
URL:/common/voucher
Parameters:
Response Data:
- The base64 encoded image of the voucher.
5. Real-Time Exchange Rate Query
Description:- Query exchange rates for converting USD to other currencies, only USD settlement payment methods are supported
/common/quote/v1/exchange-rate
Parameters:
Return data parameter description

