> For the complete documentation index, see [llms.txt](https://piqpay.gitbook.io/merchant-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piqpay.gitbook.io/merchant-integration/callback/callback-subscription.md). Agents can also search and read this documentation through its [MCP server](https://piqpay.gitbook.io/merchant-integration/~gitbook/mcp).

# Callback subscription

To receive callbacks you need to set up the Subscriptions on the brand (Businessoffice > "Merchant brands" > click on the necessary brand > "Subscriptions" > “Create subscription” button).&#x20;

<figure><img src="https://1042123308-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff4O0FIZSI5ccv1dDSaqx%2Fuploads%2FGJUlrzYwrELLlXBGN2Hi%2Funknown.png?alt=media&amp;token=ec0e6099-eb3f-47d7-874b-40118749718d" alt=""><figcaption></figcaption></figure>

After that you will get the callbacks for created orders and payouts. You can also specify a URL in the callbackUrl field in the request body. In this case, the callback will be sent to it, not to the URL specified in the "Subscriptions" tab. However, despite this, you still need to have a callback subscription in your Businessoffice account.

To answer the callback, you should reply with status 200 and any short message (for example, success: true). Otherwise, we will send you a callback 4 times (each 20 seconds) or until you send back a response with a 200 status.

We send callbacks from the following IP addresses. You can whitelist them on your server if needed.

| DEV  | 51.17.52.88                                                   |
| ---- | ------------------------------------------------------------- |
| PROD | <p>51.17.160.132</p><p>154.205.145.213 </p><p>38.54.42.66</p> |
