Errors

order_amount_changed

409: The amount to pay has changed.

The amount to pay has changed. Answered with 409.

What it means

POST /api/billing/checkout carried an amount_cents that is not what the order comes to now. The first payment of an upgrade is the Plan's price less the unused days of the period already paid for on the lower Plan, so the figure moves from one day to the next, and an order is not charged at a figure its buyer was not shown. Nothing was ordered and nothing was charged.

What to do

Read GET /api/billing again, show the buyer the Plan's due_cents, and send that figure as amount_cents. Leaving amount_cents out orders at whatever the figure is now.

The body

{
  "type": "https://tigby.eu/problems/order_amount_changed",
  "title": "The amount to pay has changed",
  "status": 409,
  "detail": "…what was refused, naming this request's own values",
  "code": "order_amount_changed",
  "doc_url": "https://docs.tigby.eu/errors/order_amount_changed",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.