Answer a product question
Authorizations
A secret API key. Publishable keys cannot reach this API. A key may carry an expiry, and an expired key is refused exactly like an unknown one, with a 401 that names no reason; check the key's expires_at in the dashboard rather than inferring it from a response. When a merchant rolls a key's secret they choose a grace window of up to 3 days, and for its duration BOTH the new secret and the one it replaced authenticate, so an integration moves over on its own deploy schedule instead of at the instant the button is pressed. Move before the window closes: after it, the old secret is refused. Nothing else about this contract moves with a roll. The key keeps its id and its scopes, so the only thing an integration updates is the credential itself.
Headers
A unique key per logical write. Replaying a request with the same key returns the first response byte for byte instead of applying the write twice.
Path Parameters
Body
The merchant's own reply, published under the STORE's name and shown beside the product to every shopper. It is trusted without moderation because the merchant is the author, which is why authoring one rides this scope rather than needing a third. THERE IS NO AUTHOR FIELD, in any spelling. author, author_name, answered_by, created_by, user_id and staff_id are each refused BY NAME with a reason: the server stamps provenance, and product_answer has no author column, so a value would be accepted and silently discarded even if it were allowed. customer_id is refused too, because naming one would fabricate a shopper's words under a real account. NOT IDEMPOTENT BY CONSTRUCTION. A second call appends a SECOND answer. What protects a retry is the mandatory Idempotency-Key: reuse the key and the stored response replays instead of inserting again. Reconcile by reading the question, not by re-posting. The response is the ANSWER, not the question: it is the resource this call created and the only part of the reply you did not already send.
Required. Trimmed, and must be non-empty and at most 2000 characters after trimming; a blank or oversized body is a 400 rather than a silently truncated answer appearing under the store's name.
2000Response
Created
