```
```

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:

FieldExplanation
sellerIdThis is the unique seller id as registered in Trendyol. Sent as a path parameter.
textThis is the text of the question to be created.
contentIdThis is the content ID of the product the question will be asked for.
userIdThis is the ID of the user asking the question. You can use the same ID as in the above sample service request (4147346).
userFullNameThis is the full name of the user asking the question.
showUserNameThis parameter indicates whether the customer's name will be displayed.
channelIdThis is the channel ID information.
questionIdThis is the unique identification number of the created question.

Required Fields:

FieldRequired
sellerIdYes
textYes
contentIdYes
userIdYes
showUserNameYes
userFullNameNo
channelIdNo

Error Cases:

You may encounter the following errors during the question creation process:

Error CaseDefinition
Empty question textPlease enter a question text.
Missing contentIdcontentId is required.
Missing userIduserId is required.
Missing showUserNameshowUserName is required.
Missing sellerIdsellerId 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.