Creates a SKU, or updates the sales channel's SKU with the same merchant_sku_id if there is one; either way the SKU is active afterwards and the response is 201 Created.
When an existing SKU is updated, the properties you leave out are cleared, except batch_tracking_enabled, which keeps its value.
Whether inventory of this SKU is tracked per batch. When left out, a new SKU is not batch-tracked and an existing SKU keeps its setting.
The cost (not the price) of one unit, in cents. A string of digits is accepted too.
The 2-letter ISO 3166-1 code of the country of origin.
The Harmonized System code.
The weight of one unit, in kilograms. A numeric string is accepted too.
- Mock serverhttps://developers.hive.app/_mock/merchant-api-v1/mapi_v1_oas31/skus
- Production APIhttps://app.hive.app/merchant_api/v1/skus
- Staging APIhttps://staging.app.hive.app/merchant_api/v1/skus
curl -i -X POST \
https://developers.hive.app/_mock/merchant-api-v1/mapi_v1_oas31/skus \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"merchant_sku_id": "HIVE_TSH_BLK_M",
"name": "Hive T-Shirt (Black - M)",
"barcode": "2218061549136",
"cost_in_cents": 800,
"weight_in_kg": 0.3,
"batch_tracking_enabled": false
}'The created or updated SKU
The cost (not the price) of one unit, in cents, in the sales channel's currency.
The 2-letter ISO 3166-1 code of the country of origin.
The hazard statement codes (H codes) of the SKU's hazardous good classifications.
The Harmonized System code.
The current stock per inventory batch.
The current inventory per warehouse.
The merchant's identifier for the SKU, unique within the sales channel. Always set for SKUs created through the API.
The SKU's status. DELETE /skus/{id} sets it to deleted; creating or updating the SKU sets it back to active.
The UN numbers of the SKU's dangerous good classifications.
{ "id": 9, "name": "Morph II", "country_code_of_origin": "DE", "hs_code": "950300", "status": "active", "created_at": "2022-08-10T17:53:04.822+02:00", "cost_in_cent": 1200, "cost_in_cents": 1200, "weight_in_kg": 0.3, "merchant_sku_id": "2218061549136", "image_url": "https://example.com/image.png", "barcode": "2218061549136", "batch_tracking_enabled": true, "fulfilled_by": "hive", "dangerous_good": true, "un_numbers": [ "UN3481" ], "hazardous_good": false, "h_codes": [], "inventory": { "stocked": 6760, "reserved": 0, "total": 6760 }, "inventory_per_warehouse": [ { … }, { … } ], "inventory_batches": [ { … } ] }