Change inventory quantity of each product item. This feature can be used when option ID(vendorItemId) is issue after sale request is applied and approved.
Path
PUT
/v2/providers/seller_api/apis/api/v1/marketplace/vendor-items/{vendorItemId}/quantities/{quantity}
Example Endpoint
https://api-gateway.coupang.com/v2/providers/seller_api/apis/api/v1/marketplace/vendor-items/{vendorItemId}/quantities/{quantity}
Request Parameters
Path Segment Parameter
Name | Required | Type | Description | ||||
---|---|---|---|---|---|---|---|
vendorItemId | O | Number |
Option ID
It is a unique number given to vendor item.
|
||||
quantity | O | Number |
Inventory quantity
|
Request Example
not require body
Response Message
Name | Type | Description | ||||
---|---|---|---|---|---|---|
code | Result code |
SUCCESS/ERROR
|
||||
message | String |
Result message
|
Response Example
{
"code": "SUCCESS",
"message": "재고 변경을 완료했습니다."
}
Error Spec
HTTP status code(error type) | Error message | Solution |
---|---|---|
400 (Check request parameter) | Invalid inventory quantity. | Check if correct inventory quantity is entered. |
400 (Check request parameter) | Failed to change inventory. [Option ID[3048***251] : It is not possible to change deleted product.] | Check if optionID(vendorItemId) is deleted. |
400 (Check request parameter) | Failed to change the inventory. [vendoritemid 3047***045 not found] | Check if correct optionID(vendorItemId) value is entered. |
URL API Name
UPDATE_PRODUCT_QUANTITY_BY_ITEM