When creating pay-in or payout orders, you can specify callback_url. When an order reaches a final status (success or failed), we send a notification to this URL.
How it works
- Order reaches final status → we send GET request to your
callback_url - The callback is a signal only — it tells you to fetch the order details
- Your server should call
GET /order_detailswithidorexternal_idto get the full order data
The callback does not contain order data. Always fetch the current state via /order_details API.
Callback URL
Set callback_url when initializing pay-in or payout:
Code
You can include your external_order_id in the URL (e.g. as a query parameter) so that when the callback arrives, you know which order to fetch via /order_details?external_id=....
Retry policy
If your server returns an error (5xx, timeout, connection refused) or does not respond, we retry the callback each 5 minutes with limit in 20 requests.
Your callback endpoint must respond with 2xx quickly. If it times out or returns an error, the callback will be retried.
Implementation example
Your callback handler should:
- Return
200 OKas soon as possible (e.g. acknowledge receipt) - Process the update asynchronously — fetch
/order_detailsand update your system - Be idempotent — the same callback may be delivered multiple times due to retries
Code