> 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-examples.md). Agents can also search and read this documentation through its [MCP server](https://piqpay.gitbook.io/merchant-integration/~gitbook/mcp).

# Callback examples

**Order callbacks**

<details>

<summary>Order creation callback</summary>

{ "type": "PAYMENT\_ORDER\_CREATED", "id": "5197ba74-5gdd-42f1-88ca-426c043b9669", "orderId": "627787d1-2320-dd4y-b7c0-39cb38630957", "merchantId": "e84edf23-4b1b-9488-a51f-3b3f2b326dec", "storeId": "900a81a9-fe96-4ae1-hjsf-b3f96552d71d", "clientId": "105672556", "externalId": "Hl7p9PHt844qLRwpUTK", "amount": { "minorAmount": 40000, "currency": "PKR" }, "method": "PMC\_S2P\_JAZZCASH", "createdAt": "2026-07-27T04:19:06.568Z", "callbackUrl": "<https://example.com>" }

</details>

<details>

<summary>Order expiration callback</summary>

{ "type": "PAYMENT\_ORDER\_EXPIRED", "id": "4d8e2852-579b-3grd-8f57-ac0c0984bb78", "orderId": "3d219311-42dad-4e12-a6a2-1d529b73b13d", "merchantId": "fe599aba-556hk-4f63-b999-e77ccb726547", "storeId": "3eaeeb37-ee9b-4710-5s77-20eb65e4c4c2", "clientId": "13085srth37", "externalId": "22744678757", "amount": { "minorAmount": 200000, "currency": "BDT" }, "method": "PMC\_S2P\_BKASH", "createdAt": "2026-07-27T04:12:31.753Z", "expiredAt": "2026-07-27T04:17:41.094Z", "callbackUrl": "<https://example.com>" }

</details>

<details>

<summary>Order completion callback</summary>

{ "type": "PAYMENT\_ORDER\_COMPLETED", "id": "c39b703d-275d-4cfa-a9ff-5020be36a2c3", "orderId": "e4rf3-20bf-47c4-be60-aeaf4e62650b", "merchantId": "54bdkf9-a9bc-f7dd-b999-e77ccb726547", "storeId": "3eaeeb37-ee9b-4710-9c11-hgd73gdkd", "clientId": "10987548457", "clientAccount": "N0181580", "externalId": "22341225517", "amount": { "minorAmount": 250000, "currency": "BDT" }, "method": "PMC\_S2P\_NAGAD", "originAmount": { "minorAmount": 250000, "currency": "BDT" }, "isAmountChanged": false, "exchangedAmount": { "minorAmount": 230000, "currency": "BDT" }, "rates": { "marketRate": { "currencyPair": { "base": "BDT", "counter": "BDT" }, "timestamp": "2026-07-27T04:00:18.503Z", "bid": "1", "ask": "1" }, "settleRateBid": "1.09" }, "fees": { "settleFee": "0.0725" }, "createdAt": "2026-07-27T04:00:18.317Z", "completedAt": "2026-07-27T04:01:28.042Z", "callbackUrl": "<https://example.com>", "receiptNumber": "N014480" }

</details>

<details>

<summary>Order cancellation callback</summary>

{ "type": "PAYMENT\_ORDER\_CANCELLED", "id": "dda442c7-gfi3-4772-856e-8bf8b5ae219e", "orderId": "35592f59-8d15-56fk-9401-7a3eea1f0dfe", "merchantId": "e84edf23-64ka-4923-a51f-3b3f2b326dec", "storeId": "900a81a9-fe96-4ae1-54jg-b3f96552d71d", "clientId": "504572", "externalId": "HaXxyZsIA5iFkf8JR1tF8", "amount": { "minorAmount": 200000, "currency": "PKR" }, "method": "PMC\_S2P\_JAZZCASH", "createdAt": "2026-07-27T04:21:22.541Z", "cancelledAt": "2026-07-27T04:21:43.321Z", "rates": { "marketRate": { "currencyPair": { "base": "PKR", "counter": "PKR" }, "timestamp": "2026-07-27T04:21:22.600Z", "bid": "1", "ask": "1" }, "settleRateBid": "1.03" }, "callbackUrl": "<https://example.com>" }

</details>

**​Payout callbacks**

<details>

<summary>Payout creation callback</summary>

{ "type": "PAYOUT\_CREATED", "id": "4add738d-9d7b-4429979-89f1-faddec67028b", "payoutId": "0969f8f0-68cc-4343-980b-dc3e35538355", "merchantId": "6a4e1a2b-666g-4d25-8324-027433820cf5", "storeId": "0e6e2423-5046-y5bn-b8e3-91b9bc78e938", "clientId": "69a332b4sg668c61a3", "externalId": "99815665-7724-483e-9b54-353f9b62e0cf", "amount": { "minorAmount": 700000, "currency": "RUB" }, "method": "PMC\_S2P\_CARD", "createdAt": "2026-07-27T04:09:25.826Z" }

</details>

<details>

<summary>Payout expiration callback</summary>

{ "type": "PAYOUT\_EXPIRED", "id": "e4e0b4fe-4553-4e88-b04a-293ec28cf824", "payoutId": "0f8afca2-45fs-40b9-8a37-204a41dfd7aa", "merchantId": "6a4e1a2b-665j-4d25-8324-027433820cf5", "storeId": "0e6e2423-5046-rrad-b8e3-91b9bc78e938", "clientId": "61c4af4gd57a44", "externalId": "50fac021-c13a-5zxx-84d0-14d06f012eb3", "amount": { "minorAmount": 700000, "currency": "RUB" }, "method": "PMC\_S2P\_CARD", "createdAt": "2026-07-26T18:34:29.781Z", "expiredAt": "2026-07-27T02:34:31.532Z" }

</details>

<details>

<summary>Payout completion callback</summary>

{ "type": "PAYOUT\_COMPLETED", "id": "45gdgd-d54d-4ee7-88d3-95a35c0cc7c7", "payoutId": "46t4dv-ae45-49d7-b54e-16416e80a96f", "merchantId": "34a4aa23-44fsa-40c5-8056-092ddcaf7e2a", "storeId": "c8429e15-2ad5-44eq-bd7c-16cc23b7f9c7", "clientId": "37134433218", "externalId": "019fa1c1-4694-6300-a500-7c29709c3715", "amount": { "minorAmount": 100000, "currency": "BDT" }, "method": "PMC\_S2P\_BKASH", "originAmount": { "minorAmount": 100000, "currency": "BDT" }, "isAmountChanged": false, "exchangedAmount": { "minorAmount": 103250, "currency": "BDT" }, "rates": { "marketRate": { "currencyPair": { "base": "BDT", "counter": "BDT" }, "timestamp": "2026-07-27T04:07:11.977Z", "bid": "1", "ask": "1" }, "settleRate": "0.97" }, "fees": { "settleFee": "0.0725" }, "createdAt": "2026-07-27T04:07:06.288Z", "completedAt": "2026-07-27T04:07:36.373Z", "callbackUrl": "<https://example.com>" }

</details>

<details>

<summary>Payout cancellation callback</summary>

{ "type": "PAYOUT\_CANCELLED", "id": "8571107f-4fsa-40f9-b04d-cdfb24545f3f", "payoutId": "927951f8-4413-43e2-9caf-73235b09bb20", "merchantId": "34a4aa23-dgdg-40c5-8056-092ddcaf7e2a", "storeId": "c8429e15-2ad5-44ad-bd7c-16cc23b7f9c7", "clientId": "347387614", "externalId": "019fa1c1-75ga-75b9-830e-8e207c5c2eb1", "amount": { "minorAmount": 1000000, "currency": "BDT" }, "method": "PMC\_S2P\_BKASH", "createdAt": "2026-07-27T04:07:01.123Z", "cancelledAt": "2026-07-27T04:08:01.990Z", "reason": "Automatically canceled", "callbackUrl": "<https://example.com>" }

</details>
