Create an Answer

Changed on

Posts the store's answer to a question by question_id. A question takes one answer from the store: if it already has one, the call returns 400 with Answer already exist.

post/v2/{account_id}/questions/{question_id}/answers

Request

  • Base URL
    https://developers.yotpo.com
  • URL
    https://developers.yotpo.com/v2/{account_id}/questions/{question_id}/answers
  • Auth
    API key in header X-Yotpo-Token

Path parameters

account_idstring required

Your account's API app key

question_idstring required

The question's unique identifier. Can be retrieved using Retrieve All Questions

Request body

contentstring required

The textual content of the answer to a question. No maximum length.

publicboolean

True by default. Pass a value of false to make your answer visible solely to the reviewer who asked the question.

Response

200

paginationunknown

Example response

{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "answer": {
    "id": "13",
    "content": "mr shop owner",
    "public": true,
    "answerer": {
      "id": "8315"
    }
  }
}

Changes