409 — state conflict
What happened
The request was not executed: nothing was created or charged. The order state or the price changed between two calls. The reason field names the cause.
Why
quote_mismatch on POST /orders and POST /orders/{order}/retry comes in explicit top-up confirmation mode. The actual top-up turned out to cost more than the confirmed quote. stitch_in_progress on POST /orders/{order}/items/retry-failed and POST /orders/{order}/items/{item}/retry means the order result is being stitched. active_retry_exists on POST /orders/{order}/items/{item}/retry means a retry of this chunk is already running.
What to do right now
Branch on reason. A quote_mismatch response already contains a fresh quote_token: show the user the new price and repeat the request with that token. For stitch_in_progress and active_retry_exists, wait a few seconds and repeat the same call. A 409 arrives before any charge, so retrying is safe.
Which request to send next
For quote_mismatch, send the same POST /orders with "confirm_payg_topup": true and the quote_token from the 409 response.
Where to go next
This page for AI
API version 1.0.0