Create a new supplier item for a merchant.
Body
Required
-
The UUID of the merchant that owns this supplier item
-
The UUID of the supplier for this supplier item
-
Stock Keeping Unit - unique identifier for the product
Maximum length is
255. -
Description of the supplier item
-
The UUID of the associated product
-
Cost tiers for different minimum order quantities
POST
/2024-09/supplier-items
curl \
--request POST 'https://app.merchanthq.com/api/2024-09/supplier-items' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"merchant_id":"1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4","supplier_id":"2e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4","sku":"PROD-001","description":"Blue widget with advanced features","product_id":"3e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4","costs":[{"minimum_order_quantity":1,"cost":{"value":42.0,"currency":"string"}}]}'
Request examples
{
"merchant_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"supplier_id": "2e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"sku": "PROD-001",
"description": "Blue widget with advanced features",
"product_id": "3e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"costs": [
{
"minimum_order_quantity": 1,
"cost": {
"value": 42.0,
"currency": "string"
}
}
]
}
Response examples (201)
{
"data": {
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"merchant_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"supplier_id": "2e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"sku": "PROD-001",
"description": "Blue widget with advanced features",
"identifiers": [
{
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"supplier_item_id": "string",
"type": "UPC",
"value": "string",
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
],
"product_id": "3e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"costs": [
{
"minimum_order_quantity": 1,
"cost": {
"value": 42.0,
"currency": "string"
}
}
],
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
}
Response examples (401)
{
"message": "Unauthorized"
}
Response examples (403)
{
"message": "This action is unauthorized."
}
Response examples (404)
{
"message": "Not found"
}