设置销售量和订单中最小物料数的限制
方法适用于所有模式.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
返回设置[quantum]的限制(*quantum) 以及您可以为指定类别的产品指定的订单中的最小产品数量。
如果您通过量子价值或最低数量的商品超过市场设定的限制,商品将被隐藏在展示柜中。
有关如何在几件中销售产品的更多信息,请阅读 在市场对卖家的帮助.
| ⚙️ 限制: 每小时5,000个请求 |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/categories/max-sale-quantum
Body
application/json
{
"marketCategoryIds": [
0
]
}
|
Name |
Description |
|
marketCategoryIds* |
Type: integer<int64>[] [叶类别]的id(*list-categories) 在市场上。 Min items: Max items: Unique items |
Responses
200 OK
设置货物数量和最小数量的限制。
Body
application/json
{
"status": "OK",
"results": [
{
"id": 0,
"name": "string",
"maxSaleQuantum": 0
}
],
"errors": [
{
"categoryId": 0,
"type": "UNKNOWN_CATEGORY"
}
]
}
|
Name |
Description |
|
results* |
Type: MaxSaleQuantumDTO[] 类别以及设置商品数量和最小数量的限制。 |
|
status* |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
|
errors |
Type: CategoryErrorDTO[] 由于传递的类别而出现的错误。 Min items: |
MaxSaleQuantumDTO
按类别设置量子和产品的最小数量的限制。
|
Name |
Description |
|
id* |
Type: integer<int64> 的类别ID。 |
|
maxSaleQuantum |
Type: integer 设置货物数量和最小数量的限制。 |
|
name |
Type: string 类别的名称。 |
ApiResponseStatusType
响应的类型。 可能的值:
OK— 没有错误。ERROR— 处理请求时出错。
|
Type |
Description |
|
Enum: |
CategoryErrorDTO
的错误文本。
|
Name |
Description |
|
categoryId |
Type: integer<int64> 的类别ID。 |
|
type |
Type: CategoryErrorType 错误的类型:
Enum: |
CategoryErrorType
错误的类型:
UNKNOWN_CATEGORY— 指定未知类别。CATEGORY_IS_NOT_LEAF— 指定了非叶类别。 指定没有子类别的类别。
|
Type |
Description |
|
Enum: |
400 Bad Request
请求包含不正确的数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
|
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
ApiErrorDTO
一般错误格式。
|
Name |
Description |
|
code* |
Type: string 的错误代码。 |
|
message |
Type: string 错误的描述。 |
401 Unauthorized
请求中未指定授权数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
|
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
403 Forbidden
授权数据不正确或禁止访问资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
|
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
404 Not Found
找不到请求的资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
|
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
420 Method Failure
已超出资源访问限制。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
|
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
500 Internal Server Error
市场的内部错误。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
|
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
No longer supported, please use an alternative and newer version.
如果设置了销售量,买方将只能将产品数量的倍数添加到订单中。
例如,如果销售量为5,买方将能够添加5,10,15等。 件货物到篮子里,和1,2,或7 — 他办不到。
没有孩子的类别。