Invoice creation
Request
Request parameters
Parameter | Data type | Description | Example | Mandatory? |
---|---|---|---|---|
| UUID | Project ID in UUID format | 1c48b092-9878-48f5-b441-07a8a48e7b54 | yes |
| Float | Amount in fiat currency | 10.55 | yes |
| String | Fiat currency. Valid values: USD, EUR, RUB | EUR | yes |
| String | Description of the product or service. Displayed to the buyer on the payment page | 12 months license for BITSBY | no |
| String | Service data. NOT displayed to the buyer. When paying the invoice, it is passed to the webhook URL of the store. This data is used to link the invoice and payment to the buyer in the merchant's webhook. It is convenient to use data in JSON format | {"userId":100,"orderId":500} | no |
| Integer | Time in hours to pay the invoice. Valid values: 0.5, 1, 3, 6, 12 | 1 | yes |
Example answer
Answer parameters
Parameter | Description |
---|---|
| Invoice ID in UUID format |
| Invoice ID (for buyer) |
| Date and time of invoice creation (UTC) |
timeToPayDatetime | The date and time until which the invoice is valid (UTC). The buyer must have time to pay the invoice before this date |
| A link to the payment page for the buyer. This link must be given to the buyer to pay the invoice |
| A list of your crypto wallets with reserved amounts. During the invoice validity period the service will check incoming transactions to the specified addresses of crypto wallets with the corresponding amounts |
| Wallet ID in UUID format |
| Wallet name |
| Blockchain of the crypto wallet |
| Cryptocurrency of the wallet |
| Crypto wallet address |
| Reserved (expected) payment amount in cryptocurrency |
Last updated