Invoices
Get an invoice
Returns one invoice with its status, flags and receipt URL. Rate limit: 1200 per minute per API key, counted separately from other endpoints.
bearerAuthAuthorizationBearer <token>A live API key, sk_live_ followed by 32 base58 characters.
id*stringInvoice id, starting with inv_.
The invoice.
application/json- response
id*stringobject*stringmode*ModeAlways live on the objects your API key creates and reads. Only demo store invoices, seen through the public checkout endpoints, are test.
"live""test"status*InvoiceStatus"created""awaiting_payment""detected""processing""paid""underpaid""refunded""failed""expired"amount*stringDecimal string with 2 decimals.
currency*Currency"USD""EUR""INR"order_id*string|nulldescription*string|nullcustomer_email*|Where the receipt is sent. When you created the invoice without one, anyone with the checkout link can enter it on the checkout page, so it is not a verified identity of the customer.
redirect_url*string|nullmetadata*settlement*The coin and amount the business receives.
late*booleanTrue when the payment arrived on a deposit address that was already replaced or expired.
extra_payment*booleanTrue when a second payment also succeeded for this invoice.
checkout_url*stringThe hosted checkout page for this invoice.
urireceipt_url*|The public receipt page, once the invoice is paid.
uriredeemed_at*|When the payment was used with POST /api/v1/invoices/{id}/redeem; a used payment cannot be redeemed again.
date-timeexpires_at*stringdate-timecreated_at*stringdate-timecurl -X GET 'https://example.com/api/v1/invoices/string'{ "id": "inv_7h3K9dWq2LmN4pRt6vXy", "object": "invoice", "mode": "live", "status": "created", "amount": "string", "currency": "USD", "order_id": "string", "description": "string", "customer_email": "string", "redirect_url": "string", "metadata": { "property1": "string", "property2": "string" }, "settlement": { "asset_id": "string", "symbol": "string", "blockchain": "string", "amount": "string", "amount_base": "string" }, "late": true, "extra_payment": true, "checkout_url": "http://example.com", "receipt_url": "http://example.com", "redeemed_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}