Platitun · API · The deal · Answer a dispute

Answer a dispute

POST /api/v1/orders/{id}/dispute/reply

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

A dispute is opened by the buyer. Your answer is either agreement with the claim (then the money is refunded at once) or an objection with an explanation. Twelve hours of silence closes the dispute with a refund BY ITSELF, and that counts as a lost dispute.

Resolving a dispute as an administrator is not in the API and will not be: that is a human judging someone else’s money. Your answer is here, and it matters more than it seems — silence costs more than a clumsy answer.

Request fields

FieldTypeWhat it is
accept requiredbooleantrue — agree and refund, false — object.
notestringAn explanation. With an objection there is nothing to judge without it.

Response fields

FieldTypeWhat it is
refundedbooleanWhether the money was refunded to the buyer at once.

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.
emptyEmpty text. There is nothing to send.

Nearby in this section