Retrieve a Payment Order

This API is used to retrieve detailed information about a specific stablecoin payment order by its order ID. Merchants can use this interface to check the current payment status, on-chain transaction details, and relevant timestamps.

Common use cases include:

  • Verifying user payment results

  • Order status validation

  • Financial reconciliation and auditing


  • Request Header: X-BH-TOKEN: ******

  • Request Header: Content-Type: application/json

  • Request Method: GET

  • Request Path: /v2/payments/order

  • Authorization Required: Yes


Request Parameters

The request query should include the following parameters:

  • orderId: Order ID.


Request Example


Response Parameters

The response will contain the following parameters:

  • userId: User identifier.

  • merchantId: Merchant identifier.

  • reference: Reference number.

  • orderId: Order identifier.

  • walletId: Wallet identifier.

  • walletName: Wallet name.

  • paymentLink: Payment URL.

  • depositAmount: Amount to be deposited.

  • feeAmount: Transaction fee.

  • receivedAmount: Amount actually received.

  • currency: Currency type.

  • network: Blockchain network.

  • txHash: Blockchain transaction hash.

  • status: Order status.

  • commitTime: Order creation timestamp.

  • processTime: Processing timestamp.

  • confirmTime: Confirmation timestamp.

  • cancelTime: Cancellation timestamp.

  • expireTime: Expiration timestamp.

  • fromAddress: Sender wallet address.

  • toAddress: Receiver wallet address.

  • remark: Additional remark.

  • payCount: Payment count.

  • linkId: Payment link identifier.


Response Example


Notes

  • The orderId must correspond to an existing payment order under the merchant account.

  • The status field reflects the current processing state of the payment order.

  • Blockchain-related information such as txHash, fromAddress, and toAddress will be available once the on-chain transaction is detected.

  • Timestamps are returned in Unix milliseconds.

Last updated