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
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/me/venues/{venueId}/passes/{productId}/purchaseBuy a pass from your walletPOST /v1/organizations/{organizationId}/venues/{venueId}/salesCreate a salePOST /v1/station/passes/{productId}/purchaseBuy a pass from the kiosk