Payment Webhook
HTTP Method: POST
Endpoint URL: /payment
Description: Notifies your server about creation or status changes of a payment.
Security: Requires the X-HMAC
header.
Request Body (JSON):
{
"id": "285d8dce-7663-4580-ba7f-8afb2f2d3292",
"transactions": [
{
"paymentId": "285d8dce-7663-4580-ba7f-8afb2f2d3292",
"txnId": "0xe7238caa68382485141be0443d6ba7efd0bd9f6bac5a624bd059acc53af1bf1d19",
"receivedAmount": "20.00",
"asset": {
"short": "USDT",
"name": "Tether",
"logoUrl": "https://cryptologos.cc/logos/tether-usdt-logo.png",
"network": "tron"
},
"destTag": null,
"addressFrom": "0x5D8D9C7f68A46634BCEaD2a6FF166A0BdFb08540",
"addressTo": "0x5D8D9C7f68A46634BCEaD2a6FF166A0BdFb08540",
"date": "2017-07-21T17:32:28Z"
}
],
"amount": "100.00",
"totalReceivedAmount": "20.00",
"asset": {
"short": "USDT",
"name": "Tether",
"logoUrl": "https://cryptologos.cc/logos/tether-usdt-logo.png",
"network": "tron"
},
"addressTo": "0x5D8D9C7f68A46634BCEaD2a6FF166A0BdFb08540",
"confirmsNeeded": 10,
"timeout": 9000,
"checkoutUrl": "https://www.merchant.com/",
"status": "OPEN",
"customer": {
"id": 12312312,
"name": "John Dou",
"email": "[email protected]"
},
"merchant": {
"id": "285d8dce-7663-4580-ba7f-8afb2f2d3292",
"name": "Company Name",
"siteUrl": "company.com",
"logoUrl": "https://example.com/logo.svg",
"email": "[email protected]"
},
"invoice": "INV-001",
"paymentRedirectUrl": "https://a-pay-system.com/en/invoice?id=285d8dce-7663-4580-ba7f-8afb2f2d3292",
"createdAt": "2017-07-21T17:32:28Z",
"updatedAt": "2017-07-21T17:32:28Z"
}
Response: HTTP 200 OK with empty body.