Platitun · API · Listings · Copy a listing

Copy a listing

POST /api/v1/listings/{number}/copy

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

A new listing with all the fields of the old one. The copy is born SWITCHED OFF and the stock is NOT copied: stock units are goods, not settings, and one unit cannot be sold twice.

Response fields

FieldTypeWhat it is
numberintegerThe copy’s number.
isActivebooleanAlways false.
stockCopiedbooleanAlways false — not an omission but a rule.

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.

Nearby in this section