Webhooks Events
Order Status Changed
Event will be triggered when Order Status changed.
Request Body
{
"order": {
"id": "08d585b1-86c6-496d-b493-ab17a574fdd6",
"currency": "UAH",
"value": "200",
"expected_amount": "200",
"status": "DECLINED",
"external_order_id": "423se231-f351-234g-g324-g35gd3452f45",
"created_at": "2022-03-22 14:01:34",
"completed_at": null,
"acquiring_url": "https://merchant.pay.whitepay.com/fiat-order/08d585b1-86c6-496d-b493-ab17a574fdd6",
"is_internal": false
},
"event_type": "order::declined"
}
Transaction Status Changed
Event will be triggered when Transaction Status changed.
Request Body
{
"transaction": {
"id": "4176141e-bd97-4f13-a71a-6547a230cf4a",
"order_id": "283585b1-16c6-496d-b493-ab17a574ffd6",
"external_order_id": "INV-123",
"stock_orders": [
{
"amount": "200",
"status": "CLOSED",
"pair": "USDT_UAH",
"date": "2022-03-22",
"time": "14:03:37",
"exchange_rate": "31.84713375796178343949",
"created_at": "2022-03-22 14:03:37"
}
],
"currency": "UAH",
"value": "200",
"status": "COMPLETE",
"hash": "cpi_V9EvsfSdGQ2xKNCx",
"created_at": "2022-03-22 14:03:34",
"completed_at": "2022-03-22 14:03:34"
},
"event_type": "transaction::completed"
}
Withdrawal Complete/Declined
Description - Event will be triggered when Withdrawal status changes to COMPLETE or CANCELLED
Request Body
{
"transaction": {
"id": "4176141e-bd97-4f13-a71a-6547a230cf4a",
"order_id": "283585b1-16c6-496d-b493-ab17a574ffd6",
"external_order_id": "INV-123",
"stock_orders": [],
"currency": "USDT",
"value": "11",
"is_internal": false,
"status": "CANCELLED",
"hash": "null",
"created_at": "2022-03-22 10:09:34",
"completed_at": null
},
"event_type": "withdrawal::declined"
}
Webhooks Settings
After webhook token generation you will be able to configure trigger events.
Orders
- Order is completed - is sent when order have changed its status to COMPLETE
- Order is declined - is sent when order have changed its status to DECLINED
- Order is partially paid - is sent when order have changed its status to PARTIALLY_FULFILLED
- Final amount was received - is sent when final amount was received and exchanging of received amount into balance currency was finished
Transactions & Withdrawals
- Transaction is completed - is sent when transaction have changed its status to COMPLETE
- Transaction is declined - is sent when transaction have changed its status to DECLINED
- Transaction exchange is completed - is sent when transaction amount exchange operation was finished
- Withdrawal is completed - is sent when withdrawal status is changed to COMPLETE
- Withdrawal is declined - is sent when withdrawal status is changed to CANCELLED