Quote status
A paid quote’s
status stays paid. The contract has its own status (pending, started, expired): read it from the contract.Expiry
Every quote has anexpires timestamp, 24 hours after its created. A quote not paid by then expires:
GET /quoteleaves it out.GET /quote/{id},GET /quote/{id}/status, paying and cancelling it answer410 quote_expired.
expires exactly, not a few minutes later.
If a payment is waiting for the payer when the 24 hours run out, the quote does not expire yet. It stays payment_pending until the payment settles: paid if the payer confirms, expired if the payment fails.
A quote also cannot be paid after its startDate, even within its 24 hours. See Quotes that cannot be paid.
Cancelling a quote
POST /quote/{id}/cancel cancels a quote you no longer want paid, for example when your client changes their mind. A cancelled quote stays in GET /quote and can no longer be paid.
You can only cancel a quote that is awaiting_payment. While a payment is waiting for the payer, cancelling answers 409 payment_in_progress: wait for the payment to settle. Cancelling a cancelled quote again changes nothing.