Invoice creation
Last updated
Last updated
Parameter | Description |
---|---|
projectId
UUID
Project ID in UUID format
1c48b092-9878-48f5-b441-07a8a48e7b54
yes
amountFiat
Float
Amount in fiat currency
10.55
yes
currencyFiat
String
Fiat currency. Valid values: USD, EUR, RUB
EUR
yes
description
String
Description of the product or service. Displayed to the buyer on the payment page
12 months license for BITSBY
no
serviceData
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
timeToPay
Integer
Time in hours to pay the invoice. Valid values: 0.5, 1, 3, 6, 12
1
yes
id
Invoice ID in UUID format
uid
Invoice ID (for buyer)
createDatetime
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
url
A link to the payment page for the buyer. This link must be given to the buyer to pay the invoice
wallets
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
wallets.id
Wallet ID in UUID format
wallets.name
Wallet name
wallets.blockchain
Blockchain of the crypto wallet
wallets.cryptocurrency
Cryptocurrency of the wallet
wallets.address
Crypto wallet address
wallets.amountCrypto
Reserved (expected) payment amount in cryptocurrency