PRICE_UNAVAILABLE
An invoice settling in BTC couldn’t be priced just now. An invoice in BTC is priced in USD, so the amount of BTC is locked from live quotes when the invoice is created, and checked again when the customer starts paying. This error means no route quoted, or the quotes disagreed by more than 3%. Either way, no reliable price could be set, so nothing was created and nothing was charged.
What to do
Section titled “What to do”- Retry in a few seconds.
details.retryableistrue, and it’s usually a provider being slow or briefly unavailable. - If it keeps happening, create the invoice settling in a USD stablecoin instead, which never needs a price.
A customer who sees this while paying can simply try again. Their invoice is unchanged.
Example response
Section titled “Example response”{ "error": { "code": "PRICE_UNAVAILABLE", "message": "…" } }