Questions and answers about products
Yandex Market API It allows you to receive questions about products and answers to them, as well as add, edit, and delete store responses.
Get questions about products
Get questions about the seller's products by sending a request POST v1/businesses/{businessId}/goods-questions. To return questions about certain products, in the parameter offerIds send their IDs.
The results are returned page by page, one page contains no more than 50 questions.
Get questions that need to be answered
Get the questions that need to be answered by using a query POST v1/businesses/{businessId}/goods-questions, where pass the value false in the parameter answered.
To leave a response, send the ID of the question to be answered and the text of the response in the request. POST v1/businesses/{businessId}/goods-questions/update with the parameter operationType: CREATE and parentEntityId equal to the issue ID.
Get answers to the question
If you already know the question IDs, skip the step of getting them.
- Get questions about the seller's products by sending a request POST v1/businesses/{businessId}/goods-questions.
- Pass the issue ID in the request. POST v1/businesses/{businessId}/goods-questions/answers to see the answers to this question.
The results are returned page by page, one page contains no more than 50 responses.
Send an answer to a question
If you already know the question IDs, skip the step of getting them.
- Get questions about the seller's products by sending a request POST v1/businesses/{businessId}/goods-questions.
- Send the ID of the question to be answered and the text of the response in the request. POST v1/businesses/{businessId}/goods-questions/update with the parameter
operationType: CREATEandparentEntityIdequal to the issue ID.
Send a comment to the response
If you already know the IDs of the questions and answers to the question, skip the steps to get them.
- Get questions about the seller's products by sending a request POST v1/businesses/{businessId}/goods-questions.
- Pass the issue ID in the request. POST v1/businesses/{businessId}/goods-questions/answers to see the answers to this question.
- Send the ID of the response to add a comment to, and the text of the comment in the request. POST v1/businesses/{businessId}/goods-questions/update with the parameter
operationType: CREATEandparentEntityIdequal to the response ID.
Edit your answer or comment
Is it possible to change the response or comment?
Parameter canModify in the request POST v1/businesses/{businessId}/goods-questions/answers shows whether the seller can change the responses and comments.
If you already know the IDs of the questions and answers to the question, skip the steps to get them.
- Get questions about the seller's products by sending a request POST v1/businesses/{businessId}/goods-questions.
- Pass the issue ID in the request. POST v1/businesses/{businessId}/goods-questions/answers to find out the ID of the response or comment that needs to be changed.
- Send the ID of this response or comment and the new text in the request. POST v1/businesses/{businessId}/goods-questions/update with the parameter
operationType: UPDATEandentityIdequal to the response or comment ID.
Delete your reply or comment
Can I delete a reply or comment?
Parameter canModify in the request POST v1/businesses/{businessId}/goods-questions/answers indicates whether the seller can delete replies and comments.
If you already know the IDs of the questions and answers to the question, skip the steps to get them.
- Get questions about the seller's products by sending a request POST v1/businesses/{businessId}/goods-questions.
- Pass the issue ID in the request. POST v1/businesses/{businessId}/goods-questions/answers to find out the ID of the response or comment to delete.
- Pass the ID of this response or comment in the request. POST v1/businesses/{businessId}/goods-questions/update with the parameter
operationType: DELETEandentityIdequal to the response or comment ID.