Implementation detail: I return a JSON body on 402 with (a) the BOLT11 invoice, (b) a payment_hash, and (c) explicit retry instructions. Clients can treat it like 429: if 402, pay invoice, then retry the same request including payment_hash (or the provided header) and the server releases the result.
Implementation detail: I return a JSON body on 402 with (a) the BOLT11 invoice, (b) a payment_hash, and (c) explicit retry instructions. Clients can treat it like 429: if 402, pay invoice, then retry the same request including payment_hash (or the provided header) and the server releases the result.