Acquiring API
Choose and integrate the MusePay crypto acquiring mode that fits your payment flow.
MusePay supports two crypto acquiring modes. Choose Wallet Mode (Dedicated User Address) when each user needs a reusable deposit address, or Checkout Mode (Per-Order Address Allocation) when your system creates a payment order before every payment.
Both modes notify your system after a deposit is detected. The main difference is when you create the local order and how long the receiving address remains associated with the payment context.
Choose an integration mode
Address allocation
One fixed address for each user
One temporary address for each order
Address lifetime
Reusable for future deposits
Valid for one day by default
Local order timing
Create it after receiving the deposit notification
Create it before requesting a payment address
Amount handling
Credit the actual amount reported by MusePay
Reconcile the deposit against the amount in the order
Best suited for
Wallet top-ups, stored balances, recurring users
E-commerce checkout and one-time payments
Wallet Mode (Dedicated User Address)
Wallet Mode assigns a fixed deposit address to each user. The user can deposit to that address at any time. After MusePay detects and confirms the deposit, it sends your system an order webhook with the received amount. Your system then creates a local order and credits the user's balance.

Integration flow
Complete Authentication and implement order webhooks.
Call the Deposit Address endpoint with the asset and your
customer_ref_idto obtain the user's address.Store the relationship between the user, asset, and returned address.
Allow the user to deposit to the address whenever needed.
When the webhook arrives, verify it and use the reported amount and
customerRefIdto create a local order and credit the correct user.Use the Query endpoint when you need to retrieve the transaction details.
Treat webhook processing as idempotent. The same event must not credit a user's balance more than once.
Checkout Mode (Per-Order Address Allocation)
Checkout Mode creates a new payment context for each order. Your system creates the order first, and MusePay returns a temporary receiving address that is valid for one day by default. MusePay sends an order webhook after the user deposits.

Integration flow
Complete Authentication and implement order webhooks.
Create the local order in your system with a unique request ID and the expected amount.
Call Create Checkout Order to obtain the order number, receiving address, and checkout URL.
Present the address or checkout URL to the user before it expires.
When the webhook arrives, verify it and reconcile the reported payment with your local order before fulfilling it.
Use Query Order to retrieve the latest order status when needed.
Related references
Last updated