younifyd
Menu

Retrieve Questions And Answers For A Product

Retrieve Q&A for a product

GET/products/{app_key}/{sku}/questions

Use it in a workflow

  1. Add a step and choose the Yotpo connector.
  2. Pick the Retrieve Questions And Answers For A Product action (under Reviews & Ratings).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveQuestionsAndAnswersForAProduct.response.data}}.

Request

Path parameters

app_keystringrequired

The store ID

skustringrequired

The unique ID of the product on your site (does not have to be the SKU)

Response

Returns 200 with an object. Read it in later steps with {{retrieveQuestionsAndAnswersForAProduct.response.data.<field>}}.

statusobject
codeinteger

Default 0

messagestring
responseobject
total_questionsinteger

Default 0

total_answersinteger

Default 0

questionsarray<object>6 fields
json
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "response": {
    "total_questions": 2,
    "total_answers": 2,
    "questions": [
      {
        "id": 4682,
        "content": "Can I use the camera with gloves?",
        "asker": {
          "id": 1009196,
          "display_name": "john carter",
          "slug": "john-carter",
          "social_image": "https://ddcfq0gxiontw.cloudfront.net/images/anonymous_user.png",
          "is_social_connected": false,
          "bio": null,
          "score": 0,
          "badges": [
            null
          ]
        },
        "user_type": "User",
        "created_at": "2014-07-01T14:30:01.173Z",
        "sorted_public_answers": [
          {
            "id": 15421,
            "content": "You can, as long as they are not too thick",
            "store_owner_comment": true,
            "answerer": {
              "id": null,
              "display_name": null,
              "slug": null,
              "social_image": null,
              "is_social_connected": null,
              "bio": null,
              "score": null,
              "badges": null
            },
            "votes_up": 0,
            "votes_down": 1,
            "created_at": "2014-07-01T14:30:58.673Z"
          }
        ]
      }
    ]
  }
}

Need more? See the Yotpo guide for connection setup and behaviour shared by every action.