Create an Inventory Item
POST
/admin/inventory-items
Inventory Items
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/admin/inventory-items' \
--header 'Content-Type: application/json' \
--data-raw '{
"variant_id": "string",
"sku": "string",
"ean": "string",
"upc": "string",
"barcode": "string",
"hs_code": "string",
"inventory_quantity": 0,
"allow_backorder": true,
"manage_inventory": true,
"weight": 0,
"length": 0,
"height": 0,
"width": 0,
"origin_country": "string",
"mid_code": "string",
"material": "string",
"metadata": {}
}'
Response Response Example
200 - Example 1
{
"inventory_item": {
"sku": "string",
"hs_code": "string",
"origin_country": "string",
"mid_code": "string",
"title": "string",
"description": "string",
"thumbnail": "string",
"material": "string",
"weight": 0,
"height": 0,
"width": 0,
"length": 0,
"requires_shipping": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"metadata": {
"car": "white"
}
}
}
Request
Query Params
expand
string
optional
fields
string
optional
Body Params application/json
Responses
Modified at 2023-10-10 11:56:36