Platitun · API · The deal · Decline the order

Decline the order

POST /api/v1/orders/{id}/decline

Key scope: orders · changes data, the Idempotency-Key header is required

An honest decline beats silence: the buyer goes to another seller at once instead of waiting ninety seconds. No request body is needed — the marketplace itself tells the buyer that the seller declined and releases the hold.

🔴 A decline reason is NOT asked for and not accepted in the body: an explanation does not help the buyer here, and a field the endpoint does not read would send you debugging a non-existent error. If you want to explain, send a message BEFORE declining.

Response fields

FieldTypeWhat it is
orderstringThe order id.
statusstringThe state after the decline: the hold is released.

Refusal reasons

A rule refusal arrives as {"error":"rejected","refusal":{"kind":"…"}} with status 409. Refusals common to all endpoints are in the rules section.

CodeWhat happened and what to do
not_foundThe record does not exist or is not yours. The ownership condition is in the database query itself, so someone else’s record looks like a missing one.
state_movedThe order has already moved on: the buyer cancelled, the deadline passed, or the action was done another way. Re-read the order before retrying.

Nearby in this section