List Question Answers
GET
v1/products/questions/{question_id}/answersRetrieve a list of all answers for a specific question of a product.
Request
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
Role of the user.
The Media Type of the body of the request. This is used to describe the structure of the data in the body.
An Access Token is a unique string that represents the authorization granted to a client (Partner application) by a user (Merchant or Store Manager) to access their protected resources. It is part of the OAuth 2.0 standard and is used to authenticate API requests on behalf of the user. Access Tokens have a limited lifespan and must be used within their validity period. Once expired, a new Access Token can be obtained using a Refresh Token. Access Tokens should be treated as sensitive information and must be kept secure to prevent unauthorized access to the user's data. If you do not have an Access-Token
, but have the older alternative instead, i.e., the X-Manager-Token
, then see the instructions here on how to obtain the Access-Token
.
The User-Agent header contains information about the user agent (browser or app) making the request. It allows the server to provide a tailored response depending on the user agent's capabilities and preferences.
The name of the customer asking the question.
The email address of the customer.
The content of the question.
The unique identifier of the store.
The unique identifier of the product.
{
"name": "\"Authed Manager\",",
"email": "\"manager@zid.sa\"",
"question": "\"What do you think of me?\"",
"store": "\"aba1846c-c536-4c8a-9e1d-6b27ef1d240a\"",
"product": "\"e5715f91a23a4eeabcead3f75b2d939c\""
}
Request samples
Responses
The unique identifier of the answer.
The unique identifier of the question.
The content of the answer.
The timestamp of when the answer was created.
{
"id": "\"b5e1cdea-1e9f-4bcd-ae33-21c70b5d715e\"",
"question_id": "\"cf2fc926-d179-4330-8fff-330853416aea\"",
"answer": "\"This is an answer to the question.\"",
"created_at": "\"2024-07-12T07:00:00.000000Z\""
}