Message the buyer
Send a message to the buyer on an order.
POST https://cotlet.dev/api/v1/discogs/orders/{order_id}/message
write Confirm
Posts the message on the order page, where both you and the buyer see it, and returns the thread length. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| order_id string required | string | Order ID from list_orders, e.g. '1234567-89'. |
| text string required | string | Message text. |
Request
curl -X POST https://cotlet.dev/api/v1/discogs/orders/1234567-89/message \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"text"}' result = client.call("discogs", "send_order_message", {"order_id":"1234567-89","text":"text"}) const result = await cotlet.call('discogs', 'send_order_message', {"order_id":"1234567-89","text":"text"}); cotlet call discogs send_order_message --data '{"order_id":"1234567-89","text":"text"}' Example response
{
"order_id": "1234567-89",
"sent": true,
"messages_in_thread": 2
}