Creating Customer Questions in Stage Environment
You can create a new customer question for a specific product through this service.
- The question text must not be empty.
- The created question is evaluated before it is published on Trendyol.
POST CreateQuestion
Sample Service Request
{
"text": "Is the fabric of this product cotton?",
"contentId": 2397814,
"userId": 4147346,
"userFullName": "Test User",
"showUserName": false,
"channelId": 1
}Sample Service Response
{
"questionId": 42
}Field Definitions:
| Field | Explanation |
|---|---|
| sellerId | This is the unique seller id as registered in Trendyol. Sent as a path parameter. |
| text | This is the text of the question to be created. |
| contentId | This is the content ID of the product the question will be asked for. |
| userId | This is the ID of the user asking the question. You can use the same ID as in the above sample service request (4147346). |
| userFullName | This is the full name of the user asking the question. |
| showUserName | This parameter indicates whether the customer's name will be displayed. |
| channelId | This is the channel ID information. |
| questionId | This is the unique identification number of the created question. |
Required Fields:
| Field | Required |
|---|---|
| sellerId | Yes |
| text | Yes |
| contentId | Yes |
| userId | Yes |
| showUserName | Yes |
| userFullName | No |
| channelId | No |
Error Cases:
You may encounter the following errors during the question creation process:
| Error Case | Definition |
|---|---|
| Empty question text | Please enter a question text. |
| Missing contentId | contentId is required. |
| Missing userId | userId is required. |
| Missing showUserName | showUserName is required. |
| Missing sellerId | sellerId is required. |
IMPORTANT NOTES:
- sellerId must be sent as a path parameter.
- userFullName and channelId are optional fields.
- You can send us 1 as the channelId.