Sandbox: have a buyer ask a question
POST/v1/sandbox/questions
scope questions.writesandbox only — 404 in production
Sandbox only. published_by_sandbox is true when auto-publish is off and we published the question anyway so you have something readable to integrate against.
Request body#
| Field | Type | Required | Description |
|---|---|---|---|
product_id | integer | optional | Which of your listings is asked about. Send this or external_id. Public questions must be enabled on the marketplace, or the call returns questions_disabled (404). |
external_id | string | optional | The same choice by your own product id. |
text | string | optional | What is asked. Defaults to "What size is this?" if omitted or blank. Answer it with POST /v1/questions/{id}/answer. |
Example
{
"product_id": 237233,
"text": "What frame size is this?"
}Response#
| Field | Type | Description |
|---|---|---|
data | object | The question that was asked. |
data. | integer | The question id, for POST /v1/questions/{id}/answer. |
data. | integer | Which of your listings it is about. |
data. | string | What was asked. |
data. | string | Its moderation state. Normally published. |
data. | boolean | true means the sandbox published it directly because moderation would otherwise have left it pending — so there is something to answer without waiting on a human who does not exist here. |
Example
{
"data": {
"question_id": 31,
"product_id": 237233,
"text": "What frame size is this?",
"status": "published",
"published_by_sandbox": false
}
}