IPNs (Instant Payment Notifications) are sent to the notify_url provided by merchants when creating the invoice, when order status is changed to paid, confirmed and complete.
1.Notification sent by UniPayment is in POST Method.
2.Body is a JSON-formatted string (content-Type: application/json)
Example
{
"app_id": "94273135-a935-4753-937b-c293987d44c8",
"invoice_id": "67af9a33-09d9-4d57-b9af-b5e20836c886",
"order_id": "ORDER_123456",
"price_amount": 10.86,
"price_currency": "USD",
"network": "NETWORK_TRX",
"address": "TFmHeEqTrUQ4mFRewsc9YwYzgeLaA3oqAy",
"pay_currency": "USDT",
"pay_amount": 10.86,
"exchange_rate": 1.0,
"paid_amount": 0.0,
"confirmed_amount": 0.0,
"create_time": "2022-02-28T08:22:07.745779Z",
"expiration_time": "2022-02-28T08:52:08.235153Z",
"status": "New",
"error_status": "None",
"transactions": null,
"notify_id": "084e4c26-b589-4746-84ba-70e883e75057",
"sign": "bba8a38b3389770777829efc7fc309d3",
"sign_type": "MD5",
"notify_time": "2022-02-28T08:22:16.755499Z"
}
Description
Name | Type | Description |
---|---|---|
app_id | string | Merchant Payment App ID. |
invoice_id | string | UniPayment Invoice ID. |
price_amount | float | Same as request. |
price_currency | string | Same as request. |
pay_amount | float | This is the amount buyer will send the crypto payment. |
pay_currency | string | Crypto currency buyer will send the payment |
network | string | BlockChain from which buyer will send the payment |
address | address | The address |
exchange_rate | float | The exchange rate from pay_currency to price_currency. |
paid_amount | float | The amount of cryptocurrency (defined by pay_currency) paid by the buyer. |
confirmed_amount | float | The amount of cryptocurrency (defined by pay_currency) confirmed by the blockchain network. |
create_time | datetime | Invoice creation time. |
expiration_time | datetime | Invoice expiration time. |
status | string | Invoice status.See InvoiceStatus |
error_status | string | Invoice error status.See InvoiceErrorStatus |
transactions | object array | |
notify_id | string | Notification unique Id. |
notify_time | datetime | Notification send time. |