Create product
POST
/products
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/products' \
--header 'X-Identifier: {{x_identifier}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "draft",
"name": "namn 2024-09-03",
"meta_title": "Metis titilus",
"meta_description": "Metus deskriptus",
"external_reference": "Ext reffe",
"description": "produktbeskrivningen",
"hs_code": "12312321",
"country_of_origin": "SE",
"vat_rate": 1200,
"variants": [
{
"sku": "20240901-hej57ad39",
"stock": "291",
"weight": "2500",
"stock_price": 10000,
"purchase_price": 1000,
"supplier_sku": "Lev-art-100",
"gtin": "Gtion-valle",
"prices": [
{
"price": 15000,
"tier": 1,
"compare_price": 20000
},
{
"price": 14000,
"tier": 5,
"compare_price": 20000
},
{
"price": 14000,
"tier": 10,
"compare_price": 20000,
"currency_id": 1
}
],
"options": [
{
"type": "Färg",
"value": "Blå"
},
{
"type": "Storlek",
"value": "S"
}
]
}
],
"categories": [
{
"name": "Jul",
"update_on_exists": false
},
{
"name": "kaosdkasd",
"external_identifier": "api-1",
"update_on_exists": false
},
{
"name": "hejsan",
"external_identifier": "api-1",
"update_on_exists": false
}
],
"type": "inventory_item"
}'
Response Response Example
{}
Request
Header Params
X-Identifier
string
optional
Example:
{{x_identifier}}
Authorization
string
optional
Example:
Bearer {{token}}
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
Body Params application/json