Invoices
An invoice is a fiat-priced payment request. You create it through the API or the Cryptonly Merchant Dashboard; Cryptonly returns a hosted payment page URL (paymentPageUrl) that you send to the customer.
The customer opens the payment page, picks a cryptocurrency, and pays to a unique deposit address assigned for that attempt only. Cryptonly monitors the blockchain, runs compliance checks, and settles the payment into your merchant balance.
Invoice amounts are always expressed in fiat (for example USD or EUR). The crypto amount is calculated at checkout from live rates when the customer selects a currency.
Each invoice also has an x402Url, which AI agents pay with a stock x402 client: no browser, and no network fee for the agent. See Invoices for AI agents.




Amount and line items
Section titled “Amount and line items”Provide at least one of amount or items when creating an invoice. You can send both.
- If a positive
amountis sent, it is always the charged total — even whenitemsare also sent. - If
amountis omitted, the total is computed as the sum ofcost × quantityacrossitems. - Line items are stored and shown on the hosted payment page regardless of how the total was set. They do not change the charged amount when
amountis present.
How status and webhooks work
Section titled “How status and webhooks work”Cryptonly sends a signed invoice.statusChanged webhook on every status change, starting with created:
- The invoice stays
createdwhile the customer picks or switches currency. You get onecreatedwebhook, not one per currency. - Once the payment reaches the required confirmations, the invoice moves to
processing, then topaid,partially_paid,overpaid,suspended, orfailed. - An
expiredinvoice can still be paid within 4 hours — see Late payments.
The deposit behind an invoice payment does not send deposit.statusChanged. Listen for invoice.statusChanged only. See Invoice statuses for what each status means and which ones to fulfil on.