Create an invoice

post
Create an invoice

https://sandbox.cryptopay.me/v2/invoices
Request
Response
Headers
Content-Type
required
string
application/json
x-api-key
required
string
Your API key
Query Parameters
price
required
number
Invoice amount
currency
required
string
Invoice currency
name
optional
string
Invoice name
description
optional
string
id
optional
string
Invoice description
success_redirect_url
optional
string
As soon as the invoice is paid, the user will be redirected to this url
callback_url
optional
string
URL to receive callback requests
201: Created
{
"uuid": "e64ec540-db68-4f20-97d1-7e687e09113d",
"description": "Test",
"status": "pending",
"btc_address": "2MyNAd3ur3DE4cArFiW5ZnTxT7jtVZfrFCk",
"callback_params": null,
"validation_hash": "5cba40c8fd17133194f8c1f6e48de77cf43c3d7a",
"name": "Invoice_1",
"id": "596e56040ea15c97297cb60c68559716ad1b74ff",
"btc_price": 0.0009,
"price": 1,
"price_cents": 100,
"received": 0,
"currency": "USD",
"created_at": 1490092876,
"valid_till": 1490093476,
"received_confirmations": 0,
"callback_url": null,
"success_redirect_url": null,
"url": "http://sandbox.cryptopay.me/orders/e64ec540-db68-4f20-97d1-7e687e09113d",
"bitcoin_uri": "bitcoin:2MyNAd3ur3DE4cArFiW5ZnTxT7jtVZfrFCk?amount=0.0009&label=596e56040ea15c97297cb60c68559716ad1b74ff",
"txid": []
}