获取问题的答案
方法适用于所有模式.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
- communication — 与买家沟通
- all-methods — 全面管理账户
- all-methods:read-only — 查看所有数据
使用指定的筛选器返回有关产品的问题的答案。
结果逐页返回,一页包含不超过50个响应。
| ⚙️ 限制: 每小时10,000次请求 |
|---|
Request
POST
https://api.partner.market.yandex.ru/v1/businesses/{businessId}/goods-questions/answers
Path parameters
|
Name |
Description |
|
businessId |
Type: integer 内阁ID。 要找到答案,请使用请求 GET v2/campaigns. Min value: |
Query parameters
|
Name |
Description |
|
limit |
Type: integer 每页的值数。 Min value: |
|
page_token |
Type: string 结果页面的ID。 如果省略该参数,则返回第一页。 我们建议传输输出参数的值 如果设置 Example: |
Body
application/json
{
"questionId": 1,
"answerIds": [
1
]
}
|
Name |
Description |
|
questionId |
Type: integer 的问题ID。 Min value: |
Responses
200 OK
问题的答案列表。
Body
application/json
{
"status": "OK",
"result": {
"answers": [
{
"id": 1,
"text": "example",
"canModify": true,
"author": {},
"status": "PUBLISHED",
"questionId": 1,
"createdAt": "2025-01-01T00:00:00Z",
"votes": {},
"comments": [
null
]
}
],
"paging": {
"nextPageToken": "example"
}
}
}
Type: object
All of 2 types
-
Type: object
status
Type: string
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
Enum:
OK,ERROR服务器响应的标准包装器。
Example
{ "status": "OK" } -
Type: object
result
Type: object
answers
Type: object[]
canModify
Type: boolean
卖家是否可以编辑评论或删除评论。
createdAt
Type: string<date-time>
创建响应的日期和时间。
Example:
2025-01-01T00:00:00Zid
Type: integer
问题的响应的ID。
Min value:
1questionId
Type: integer
的问题ID。
Min value:
1status
Type: string
回复或评论的审核状态:
PUBLISHED— 出版。UNMODERATED— 未核实。BANNED— 堵住了。DELETED— 删除。
Enum:
PUBLISHED,UNMODERATED,BANNED,DELETEDtext
Type: string
文本内容。
Min length:
1Max length:
5000Example:
examplevotes
Type: object
dislikes
Type: integer
不喜欢的数量。
likes
Type: integer
的点赞数。
一个问题、答案或评论的喜欢和不喜欢的数量。
Example
{ "likes": 0, "dislikes": 0 }author
Type: object
name
Type: string
作者的名字或内阁的名字。
Example:
exampletype
Type: string
作者类型:
USER— 用户。BUSINESS— 办公室。VENDOR— 制造商。BRAND— 品牌。
Enum:
USER,BUSINESS,VENDOR,BRAND关于评论作者的信息。
Example
{ "type": "USER", "name": "example" }comments
Type: object[]
answerId
Type: integer
问题的响应的ID。
Min value:
1createdAt
Type: string<date-time>
创建注释的日期。
Example:
2025-01-01T00:00:00Zid
Type: integer
响应注释的ID。
Min value:
1status
Type: string
回复或评论的审核状态:
PUBLISHED— 出版。UNMODERATED— 未核实。BANNED— 堵住了。DELETED— 删除。
Enum:
PUBLISHED,UNMODERATED,BANNED,DELETEDtext
Type: string
文本内容。
Min length:
1Max length:
5000Example:
exampleauthor
Type: object
name
Type: string
作者的名字或内阁的名字。
Example:
exampletype
Type: string
作者类型:
USER— 用户。BUSINESS— 办公室。VENDOR— 制造商。BRAND— 品牌。
Enum:
USER,BUSINESS,VENDOR,BRAND关于评论作者的信息。
Example
{ "type": "USER", "name": "example" }canModify
Type: boolean
卖家是否可以编辑评论或删除评论。
parentId
Type: integer
响应注释的ID。
Min value:
1votes
Type: object
dislikes
Type: integer
不喜欢的数量。
likes
Type: integer
的点赞数。
一个问题、答案或评论的喜欢和不喜欢的数量。
Example
{ "likes": 0, "dislikes": 0 }评论列表。
Min items:
0Max items:
100Example
[ { "id": 1, "text": "example", "canModify": true, "parentId": 1, "author": { "type": "USER", "name": "example" }, "status": "PUBLISHED", "answerId": 1, "createdAt": "2025-01-01T00:00:00Z", "votes": { "likes": 0, "dislikes": 0 } } ]的响应列表。
Example
[ { "id": 1, "text": "example", "canModify": true, "author": { "type": "USER", "name": "example" }, "status": "PUBLISHED", "questionId": 1, "createdAt": "2025-01-01T00:00:00Z", "votes": { "likes": 0, "dislikes": 0 }, "comments": [ { "id": 1, "text": "example", "canModify": true, "parentId": 1, "author": { "type": "USER", "name": "example" }, "status": "PUBLISHED", "answerId": 1, "createdAt": "2025-01-01T00:00:00Z", "votes": { "likes": 0, "dislikes": 0 } } ] } ]paging
Type: object
nextPageToken
Type: string
下一个结果页面的ID。
Example:
example下一页的ID。
Example
{ "nextPageToken": "example" }问题的答案。
Example
{ "answers": [ { "id": 1, "text": "example", "canModify": true, "author": { "type": "USER", "name": "example" }, "status": "PUBLISHED", "questionId": 1, "createdAt": "2025-01-01T00:00:00Z", "votes": { "likes": 0, "dislikes": 0 }, "comments": [ { "id": 1, "text": "example", "canModify": true, "parentId": 1, "author": {}, "status": "PUBLISHED", "answerId": 1, "createdAt": "2025-01-01T00:00:00Z", "votes": {} } ] } ], "paging": { "nextPageToken": "example" } }Example
{ "result": { "answers": [ { "id": 1, "text": "example", "canModify": true, "author": { "type": "USER", "name": "example" }, "status": "PUBLISHED", "questionId": 1, "createdAt": "2025-01-01T00:00:00Z", "votes": { "likes": 0, "dislikes": 0 }, "comments": [ {} ] } ], "paging": { "nextPageToken": "example" } } }
400 Bad Request
请求包含不正确的数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "example",
"message": "example"
}
]
}
Type: object
All of 1 type
-
Type: object
All of 2 types
-
Type: object
status
Type: string
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
Enum:
OK,ERROR服务器响应的标准包装器。
Example
{ "status": "OK" } -
Type: object
errors
Type: object[]
code
Type: string
的错误代码。
Example:
examplemessage
Type: string
错误的描述。
Example:
example错误列表。
Min items:
1Example
[ { "code": "example", "message": "example" } ]Example
{ "errors": [ { "code": "example", "message": "example" } ] }
服务器错误的标准包装器。
Example
{ "status": "OK", "errors": [ { "code": "example", "message": "example" } ] } -
401 Unauthorized
请求中未指定授权数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "example",
"message": "example"
}
]
}
Type: object
All of 1 type
-
Type: object
All of 2 types
-
Type: object
status
Type: string
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
Enum:
OK,ERROR服务器响应的标准包装器。
Example
{ "status": "OK" } -
Type: object
errors
Type: object[]
code
Type: string
的错误代码。
Example:
examplemessage
Type: string
错误的描述。
Example:
example错误列表。
Min items:
1Example
[ { "code": "example", "message": "example" } ]Example
{ "errors": [ { "code": "example", "message": "example" } ] }
服务器错误的标准包装器。
Example
{ "status": "OK", "errors": [ { "code": "example", "message": "example" } ] } -
403 Forbidden
授权数据不正确或禁止访问资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "example",
"message": "example"
}
]
}
Type: object
All of 1 type
-
Type: object
All of 2 types
-
Type: object
status
Type: string
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
Enum:
OK,ERROR服务器响应的标准包装器。
Example
{ "status": "OK" } -
Type: object
errors
Type: object[]
code
Type: string
的错误代码。
Example:
examplemessage
Type: string
错误的描述。
Example:
example错误列表。
Min items:
1Example
[ { "code": "example", "message": "example" } ]Example
{ "errors": [ { "code": "example", "message": "example" } ] }
服务器错误的标准包装器。
Example
{ "status": "OK", "errors": [ { "code": "example", "message": "example" } ] } -
404 Not Found
找不到请求的资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "example",
"message": "example"
}
]
}
Type: object
All of 1 type
-
Type: object
All of 2 types
-
Type: object
status
Type: string
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
Enum:
OK,ERROR服务器响应的标准包装器。
Example
{ "status": "OK" } -
Type: object
errors
Type: object[]
code
Type: string
的错误代码。
Example:
examplemessage
Type: string
错误的描述。
Example:
example错误列表。
Min items:
1Example
[ { "code": "example", "message": "example" } ]Example
{ "errors": [ { "code": "example", "message": "example" } ] }
服务器错误的标准包装器。
Example
{ "status": "OK", "errors": [ { "code": "example", "message": "example" } ] } -
420 Method Failure
已超出资源访问限制。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "example",
"message": "example"
}
]
}
Type: object
All of 1 type
-
Type: object
All of 2 types
-
Type: object
status
Type: string
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
Enum:
OK,ERROR服务器响应的标准包装器。
Example
{ "status": "OK" } -
Type: object
errors
Type: object[]
code
Type: string
的错误代码。
Example:
examplemessage
Type: string
错误的描述。
Example:
example错误列表。
Min items:
1Example
[ { "code": "example", "message": "example" } ]Example
{ "errors": [ { "code": "example", "message": "example" } ] }
服务器错误的标准包装器。
Example
{ "status": "OK", "errors": [ { "code": "example", "message": "example" } ] } -
500 Internal Server Error
Yandex中的内部错误。 市场。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "example",
"message": "example"
}
]
}
Type: object
All of 1 type
-
Type: object
All of 2 types
-
Type: object
status
Type: string
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
Enum:
OK,ERROR服务器响应的标准包装器。
Example
{ "status": "OK" } -
Type: object
errors
Type: object[]
code
Type: string
的错误代码。
Example:
examplemessage
Type: string
错误的描述。
Example:
example错误列表。
Min items:
1Example
[ { "code": "example", "message": "example" } ]Example
{ "errors": [ { "code": "example", "message": "example" } ] }
服务器错误的标准包装器。
Example
{ "status": "OK", "errors": [ { "code": "example", "message": "example" } ] } -
No longer supported, please use an alternative and newer version.