Getting Started
How it works
An invoice moves through a simple, predictable lifecycle from creation to a terminal state.
The invoice lifecycle
- Your server creates an invoice with an amount in your settlement currency and the coins you accept.
- We return an invoice with a checkout_url and a pending status.
- You redirect the customer to the checkout_url. They pick a coin and pay; we watch the chain and handle confirmations.
- On payment the invoice becomes completed, or expired if the window lapses, or canceled if you cancel it.
- We send a webhook; your server verifies it and fulfills the order. You can also poll the invoice.
An invoice is pending, then exactly one of completed, expired, or canceled, all terminal.