Platitun · API · The deal · Message the buyer

Message the buyer

POST /api/v1/orders/{id}/messages

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

A message in the order chat. Contact details do not pass: taking the deal off the marketplace strips the buyer of protection and the seller of the guarantee, and a repeat attempt affects the rating.

The chat closes with the order: for a finished order it stays READABLE but you cannot write into it — you will get chat_read_only.

Request fields

FieldTypeWhat it is
body requiredstringThe message text.

Response fields

FieldTypeWhat it is
okbooleanThe message is sent.

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.
emptyEmpty text. There is nothing to send.
contactsContact details were found in the text — an email, a phone number, a messenger link. Taking the deal off the marketplace strips the buyer of protection and the seller of the guarantee. Remove them and send again.
chat_closedThe chat of this order is closed.
chat_read_onlyThe order is finished: the chat stays readable but you can no longer write into it.

Nearby in this section