Platitun · API · Listings · Mark a listing as test

Mark a listing as test

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

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

A test listing can only be bought by a test buyer, and a regular buyer cannot buy it at all. Turning it back into a real one is possible only if the seller’s admission is complete: otherwise the storefront would show goods from a seller without documents.

Request fields

FieldTypeWhat it is
isTest requiredbooleantrue — make it a test one, false — turn it back to real.

Response fields

FieldTypeWhat it is
isTestbooleanThe state after the action.

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.
test_to_real_needs_papersA test listing can become a real one only when your seller admission is complete: otherwise the storefront would show goods from a seller without documents.
bad_requestThe request is malformed: a required field is missing or a value is of the wrong kind. The specifics are in the detail field.

Nearby in this section