Skip to main content

1. Account Inquiry

Brief Description:
  • Query the balance of the account corresponding to the current business.
URL: The currency is a path parameter, which should be replaced by the currency you want to query, for example, for USD: /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.
URL: Your provided URL, Please configure it in HaiPay’s backend or pass it in the request parameters.
Strongly Recommended
To ensure the extensibility and compatibility of the interface, please follow the callback parameters reception method outlined below:
  1. Do not declare a specific POJO object to receive callback parameters.
  2. Must use a generic data structure (like JSONObject, Map, etc.) to parse parameters.
  3. This design ensures that if we later extend the callback fields, it will not affect your signature verification logic.
Reason: Keeping a loosely coupled design can prevent signature verification failures due to the addition or removal of fields.
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. 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.
URL: /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
URL: /common/quote/v1/exchange-rate Parameters: Return data parameter description
Last modified on July 13, 2026