Platitun · API · Documents and payout details · The seller nickname

The seller nickname

PUT /api/v1/papers/nickname

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

What the buyer sees you as. Letters of two alphabets, digits, hyphen and underscore, from three to twenty-four characters. A taken nickname is not given away.

Uniqueness is held by a database lock, not by a check before writing: two people pressing at once would both pass the check. That is why nick_taken can arrive even when the nickname was free a second ago.

Request fields

FieldTypeWhat it is
nickname requiredstringThe new nickname.

Response fields

FieldTypeWhat it is
nicknamestringWhat was recorded.

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
nick_ruleThe nickname breaks the rule: letters of two alphabets, digits, hyphen and underscore, three to twenty-four characters.
nick_takenThe nickname is taken. Uniqueness is held by a database lock, so the refusal can arrive even when it was free a second ago.

Nearby in this section