ClavianAPI errors
All error codes

409 Conflict

More than the order still owes

Code
tender_exceeds_outstanding
Status
409 Conflict
Type
https://errors.clavian.io/tender-exceeds-outstanding

What it means

A tender on a split payment may be at most what the order still owes; this one is more. The outstanding amount is the authority (GET /v1/station/sales/{saleId}/outstanding).

What to do

Read the outstanding amount and tender no more than it. Pay the whole order from one tender when it covers it.

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/tender-exceeds-outstanding",
  "title": "More than the order still owes",
  "status": 409,
  "code": "tender_exceeds_outstanding",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

From the OpenAPI document, every endpoint that names it among its answers: