Skip to content

Invoice processing lifecycle

  1. Create a payment request through the API
  2. Redirect the customer to the payment link
  3. Listen for invoice.statusChanged webhook events
  4. Fulfil the order only after the invoice reaches paid, partially_paid, or overpaid

See Invoice statuses for the full status table.

  1. Merchant creates an invoice request

    An invoice can be created either:

    • through the Cryptonly Merchant Dashboard
    • via the API (POST /invoice)

    The create response includes paymentPageUrl for the hosted checkout. Default invoice expiry is 24 hours unless you pass expiresInMinutes on create.

    In the dashboard, go to Accounts and click New Invoice.

    Create Invoice dialog with invoice number INV-10482, 149 USD, a description and a 1 day expiry.Create Invoice dialog with invoice number INV-10482, 149 USD, a description and a 1 day expiry.
  2. Customer opens the link and selects a cryptocurrency

    The customer visits the hosted payment page and chooses which supported cryptocurrency to pay with.

    Hosted checkout Select step: the customer picks USDT on BNB Smart Chain and sees the amount to pay.Hosted checkout Select step: the customer picks USDT on BNB Smart Chain and sees the amount to pay.
    Hosted checkout Send step: the deposit address, the USDT amount and the BSC network.Hosted checkout Send step: the deposit address, the USDT amount and the BSC network.

    Cryptonly assigns a unique deposit address, used for this payment attempt only, and locks the crypto amount: the invoice amount plus the network fee.

    The deposit payment link is valid for 30 minutes by default. A payment that arrives at this address within 4 hours after it expires — or after the customer switched to another currency — is still processed normally. See Late payments.

    The customer then sends that amount to the deposit address.

  3. Cryptonly waits for the required on-chain confirmation(s)

    Once the transfer is detected on-chain, Cryptonly waits for the required number of blockchain confirmations. See On-chain confirmations for the number required per network. The invoice stays created until then, and moves to processing once the confirmations are reached.

  4. Cryptonly performs an AML check

    Cryptonly screens the transaction. If it passes, processing continues. If it needs review, the invoice moves to suspended until the compliance team resolves it.

  5. If the AML check passes, the invoice is settled and the balance is credited

    Cryptonly settles the invoice with a payment-received status (paid, partially_paid, or overpaid) and credits the merchant’s internal balance (the received amount minus the network fee and commission).

  6. Cryptonly sends webhooks on status changes

    Cryptonly sends an invoice.statusChanged webhook on each invoice status transition.