409 Conflict
Price changed
- Code
price_changed- Status
409Conflict- Type
https://errors.clavian.io/price-changed
What it means
The total the server computes now differs from the expectedTotal the client sent, because a price, a discount or a tax changed after the cart was quoted. The response carries the fresh quote.
What to do
Show the new total and ask the person to confirm it, then send the request again with the new expectedTotal. Never go ahead at the old price.
Example
The API answers with status 409 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.
{
"type": "https://errors.clavian.io/price-changed",
"title": "Price changed",
"status": 409,
"code": "price_changed",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
No endpoint in the OpenAPI document names it yet. It is part of the contract already, so a client can handle it before an endpoint sends it.