An invoice is a request for a cryptocurrency payment which contains a unique BTC, LTC, ETH or XRP address and the amount that has to be paid while the invoice is valid.
The invoice price can be expressed either in cryptocurrency or fiat currency.
The list of all supported currencies can be found here.
curl -X POST \https://business-sandbox.cryptopay.me/api/invoices \-H 'Authorization: HMAC ***' \-H 'Content-Type: application/json' \-H 'Date: Tue, 19 Mar 2019 10:11:40 GMT' \-d '{"price_amount":"100", "price_currency":"EUR", "pay_currency":"BTC", "custom_id":"209584732"}'
price_currency | validity period |
| 10 minutes |
| 2 hours |