Platitun · API · The deal · Message the buyer
Message the buyer
POST /api/v1/orders/{id}/messagesKey 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
| Field | Type | What it is |
|---|---|---|
body required | string | The message text. |
Response fields
| Field | Type | What it is |
|---|---|---|
ok | boolean | The 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.
| Code | What happened and what to do |
|---|---|
not_found | The 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. |
empty | Empty text. There is nothing to send. |
contacts | Contact 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_closed | The chat of this order is closed. |
chat_read_only | The order is finished: the chat stays readable but you can no longer write into it. |
Nearby in this section
GET /api/v1/orders— My ordersGET /api/v1/orders/{id}— One orderPOST /api/v1/orders/{id}/confirm— Take the orderPOST /api/v1/orders/{id}/decline— Decline the orderPOST /api/v1/orders/{id}/deliver— Mark the deliveryGET /api/v1/orders/{id}/handover— The order vaultsPOST /api/v1/orders/{id}/handover— Put credentials into a vaultPOST /api/v1/orders/{id}/handover/reveal— Read the buyer’s vaultPOST /api/v1/orders/{id}/dispute/reply— Answer a disputeGET /api/v1/reviews— Reviews about mePOST /api/v1/reviews/{id}/reply— Reply to a reviewGET /api/v1/complaints— My complaintsPOST /api/v1/complaints— Complain about a buyerGET /api/v1/work-mode— Work mode and presencePUT /api/v1/work-mode— Set the work mode