Create Invoice
Example
{
"msg": "",
"code": "OK",
"data": {
"invoice_id": "593fca26-b472-46a5-b1d4-a223aac95bb3",
"price_amount": "10.86",
"price_currency": "USD",
"network": "NETWORK_TRX",
"address": "TFmHeEqTrUQ4mFRewsc9YwYzgeLaA3oqAy",
"pay_amount": "10.86",
"pay_currency": "USDT",
"expiration_time": "2022-02-28T06:03:48",
"cashier_url": "https://example.com/invoice/593fca26-b472-46a5-b1d4-a223aac95bb3",
"qrcode_url": "https://example.com/qrcode/593fca26-b472-46a5-b1d4-a223aac95bb3",
"sing_type": "MD5",
"sign": "c7c9e4c0189f07cf68a8dafa61cc864d"
}
}
Description
Name | Type | Description |
---|---|---|
invoice_id | string | UniPayment Invoice ID. |
price_amount | float | Same as request. |
price_currency | string | Same as request. |
network | string | Defined blockchain network in which buyer will send the payment. |
address | string | Defined blockchain address in which buyer will send the payment |
pay_amount | float | |
pay_currency | string | Crypto currency buyer will send the payment |
exchange_rate | float | Exchange Rate between Price Currency and Pay Currency. |
expiration_time | datetime | Invoice pay window, after this time Invoice's status will changed to expired. |
casher_url | string | Web address of invoice, merchant can use this url for checkout or prepare owner checkout page using response data. |
qrcode_url | string | Web address of address |
sing_type | string | Signature Type. |
sign | Response signature. |
Query Invoice
Example
{
"msg": "",
"code": "OK",
"data": {
"models": [
{
"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,
"paid_amount": 0,
"confirmed_amount": 0,
"create_time": "2022-02-28T08:29:59",
"paid_time": null,
"confirm_time": null,
"complete_time": null,
"expiration_time": "2022-02-28T08:59:59",
"confirm_speed": "Medium",
"status": "Expired",
"error_status": "None"
},
{
"app_id": "94273135-a935-4753-937b-c293987d44c8",
"invoice_id": "eeced5e7-57cc-43c0-8be6-828e7c790e81",
"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,
"paid_amount": 0,
"confirmed_amount": 0,
"create_time": "2022-02-28T08:26:43",
"paid_time": null,
"confirm_time": null,
"complete_time": null,
"expiration_time": "2022-02-28T08:56:44",
"confirm_speed": "Medium",
"status": "Expired",
"error_status": "None"
},
],
"page_index": 1,
"page_size": 10,
"total": 7,
"page_count": 1
}
}
Description
Name | Type | Description |
---|---|---|
app_id | string |