For the complete documentation index, see llms.txt. This page is also available as Markdown.

Conversations

Administrative endpoints for conversations — the reviews, product questions and private messages exchanged between customers and sellers (data sources). The seller panel uses them to work the moderation queue, answer questions, write to customers and read what happened to each conversation.

Core Capabilities

1. Conversation Listing & Filtering

  • Retrieve a paginated list of conversations of every kind. Each carries the customer's contact details, the messages, the item it is about, the star rating, the moderation status and the audit trail (events).

  • Filter by moderation status, kind, visibility, answered flag, product, order item, order number, seller, customer and date ranges. ?status=pending is the moderation queue.

2. Moderation

  • Approve a review or question to publish it on the storefront, or reject it citing one of the Conversation Rejection Reasons together with a free-text explanation. A rejection e-mails the author.

  • Storefront visibility (is_public) follows moderation and cannot be set directly.

3. Answering & Private Messages

  • Open a private message to a customer, and post seller replies to questions and private messages — here or through Conversation Messages (POST /messages/).

  • Mark a conversation answered or unanswered by hand.

4. Audit Trail

  • Every submission, approval, rejection, seller reply and answered-flag change is recorded as an event. The trail is embedded in every conversation the list and detail endpoints return and is also available as one feed through Conversation Events. It is never shown to customers.

Conversation Kinds

conversation_type

Written by

About (item_content)

rating

Moderated

Seller may reply

Customer may add messages

review

The customer, on the storefront

An order item they bought (orderitem)

Required, 1–5

Yes

No

No — written once

question

The customer, on the storefront

A product (product) or nothing

Not allowed

Yes

Yes

No — written once

message

The customer on the storefront, or the seller through this API

An order item (orderitem), or nothing

Not allowed

No

Yes

Yes

Only a private message can be opened through this API. Reviews and questions are always written by their author on the storefront, and the panel cannot change a conversation into one.

The item must exist and, when it names a seller, belong to the conversation's datasource. An order item names the seller that fulfilled it (its own datasource, or failing that its product's); a product names its data_source. An item that names no seller — as on a single-seller deployment — is accepted with any datasource.

Moderation Status

status

Meaning

is_public

pending

Submitted and waiting in the moderation queue. Every new review and question starts here.

false

approved

Published on the storefront.

true

rejected

Turned down; the author was e-mailed the reason.

false

null

A private message, which is never moderated and never listed on the storefront — or a review or question written before moderation existed, which keeps the visibility it had.

unchanged

Every new conversation is created with is_public: false. Only approval sets it to true, and only rejection sets it back.

Allowed Transitions

Current status

POST .../approve/

POST .../reject/

pending

→ approved

→ rejected

null (older review or question)

→ approved

→ rejected

approved

Refused — already approved

→ rejected (take-down)

rejected

→ approved (reversal)

Refused — already rejected

A decision can be reversed but not repeated, so an author is never mailed twice for the same rejection. Private messages can be neither approved nor rejected.

Filtering & Ordering

Parameter
Match
Notes

status

Exact

pending, approved or rejected. Private messages and older conversations have no status and match none of them.

conversation_type

Exact

review, question or message.

is_public, is_answered

Exact

true or false.

product

Product id

Conversations about the product itself and conversations about any order item that sold it.

product_base_code

Base code

The same two anchors, for every product with the base code.

order_item

Order item id

Conversations about that order item.

order_number

Order number

Conversations about any order item of that order.

item_type

Exact

product or orderitem.

data_source / data_source_id

Exact

The seller, by slug or by id.

user_id

Exact

The customer who owns the conversation.

user__first_name, user__last_name

Case-insensitive partial

The customer's name.

created_date__*, modified_date__*, last_message_date__*

gt, gte, lt, lte

Date ranges.

Results are ordered by last_message_date, most recent first. Use sort to change the ordering. An invalid value for a choice filter, or a product or order_item that is not a number, is rejected with 400 — for example {"product": ["Enter a number."]}.

Errors

Error messages are translated to the request language, so match on the HTTP status and the field key or error_code rather than on the text. The body shape depends on the rule that failed:

Status
Shape
Returned for

400

{"<field>": ["<message>"]} / {"non_field_errors": ["<message>"]}

Request validation — a missing or malformed field, an identifier that does not exist, a message longer than 500 characters, or an author the caller may not write as.

406

{"non_field_errors": "<message>", "error_code": "<code>"} — a string, not a list

A rule of the conversation's kind or state. The codes are listed below.

error_code

Refused because

conversation_100_1

An identical conversation — same customer, seller, subject, kind and item — already exists, published or not. A rejected one does not count.

conversation_100_2

Storefront visibility cannot be set directly; every valid call to update-private-status/.

conversation_100_3

A private message cannot be approved or rejected.

conversation_100_4

The conversation already has the requested moderation status.

conversation_100_5

The item does not fit the kind; see Conversation Kinds.

conversation_100_6

A review has no rating.

conversation_100_7

A question or private message carries a rating.

conversation_100_8

A review or question is opened through this API, or review or question is sent as conversation_type on an edit.

conversation_100_9

A seller message is added to a review.

conversation_100_10

A customer message is added to a review or question.

conversation_100_11

A customer message is added to a moderated conversation that has been decided. Reviews and questions refuse every added customer message with conversation_100_10 first.

conversation_100_12

The item named by item_content and item_id does not exist.

conversation_100_13

The item belongs to another seller than the conversation's datasource.

conversation_100_14

An edit sends a conversation_type other than the conversation's own — for example to turn a review into a private message.

Messages name the kind, item or status by its API value — for example A review cannot be replied to., This orderitem belongs to another seller. or This conversation is already approved.

Dynamic Settings & Environment Variables

Key
Type
Default
Effect

DISABLED_EMAIL_TEMPLATES

object — template key → boolean

Every template enabled, except the order-preparing e-mail

emails/users/review-rejected and emails/users/question-rejected switch off the rejection e-mail; emails/users/conversation-replied switches off the e-mail sent for a seller reply. The endpoints answer the same way either way; only the e-mail is skipped.

EMAIL_BCC_AND_CC

object — template key → {"cc": [email], "bcc": [email]}

Every template key mapped to {"cc": [], "bcc": []}

Copy recipients added to the rejection and reply e-mails, looked up by the same template keys.

REVIEW_REQUIRES_PURCHASE

boolean

true

Storefront only: whether a customer's review needs a delivered order item. It has no effect on these endpoints, which cannot open a review.

Environment variables: NO_REPLY_EMAIL is the From address of the rejection and reply e-mails. Both are sent in the customer's language, falling back to the language of the request.

Last updated

Was this helpful?