Platitun · API · Listings · Remove a listing

Remove a listing

DELETE /api/v1/listings/{number}

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

Deletion works only while the listing has no orders: an order must stay self-contained for a dispute a month later. A listing with history is SWITCHED OFF, and the response says so plainly.

Look at the result field rather than the status code: 200 comes in both cases, and “deleted” without checking the field is lying to yourself.

Response fields

FieldTypeWhat it is
resultstring“deleted” — removed; “hidden” — switched off because it had orders.

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.
has_questionsThe listing had orders or questions — it cannot be deleted, it gets switched off. Look at the result field.

Nearby in this section