Creates a new SKU for the merchant. SKUs must have a unique SKU code. New SKUs are marked as "verified" and fulfilled_by "hive". An existing SKU reached with the same sku_code keeps a fulfilled_by of "hive" or "other"; a "new" one becomes "hive".
2-letter ISO 3166-1 code of country of origin
Harmonized System code
- Mock serverhttps://developers.hive.app/_mock/merchant-api-v2/mapi_v2_oas31/skus
- Production APIhttps://app.hive.app/merchant_api/v2/skus
- Staging APIhttps://staging.app.hive.app/merchant_api/v2/skus
curl -i -X POST \
https://developers.hive.app/_mock/merchant-api-v2/mapi_v2_oas31/skus \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "T-Shirt Black M",
"sku_code": "SKU-001",
"barcode": "1234567890123",
"batch_tracking_enabled": false,
"cost_in_cents": 800,
"country_code_of_origin": "DE",
"hs_code": "610910",
"image_url": "https://cdn.hive.app/skus/sku-001.jpg",
"weight_in_kg": 0.2
}'SKU created successfully
2-letter ISO 3166-1 code of country of origin
Who is fulfilling this SKU. Possible values:
- hive: Fulfilled by Hive
- new: Default value for newly imported SKUs
- other: Fulfilled by another party
Inventory-level buffer (in units) held back from the stock levels pushed to each sales channel configured. Each entry reflects one sales channel: buffer_setting is the raw override (0 means "no override, use the sales channel default"), buffer_effective is the value actually applied after falling back to the sales channel default when the override is 0.
The general Harmonized System (HS) code for the SKU
Current inventory per warehouse, ordered by warehouse_id: every warehouse that holds, receives, reserves or ships units of the SKU, and every warehouse that held them before, which then reports zeros.
Inventory batch settings for a merchant or specific SKU.
Status of this SKU. Possible values:
- active: SKU is active and available for orders
- deleted: SKU is deleted and no longer available
{ "id": 1001, "name": "T-Shirt Black M", "sku_code": "SKU-001", "barcode": "1234567890123", "batch_tracking_enabled": false, "buffer_per_sales_channel": [ { … }, { … } ], "cost_in_cents": 800, "country_code_of_origin": "DE", "created_at": "2023-09-01T08:00:00Z", "updated_at": "2023-10-01T14:30:00Z", "dangerous_good": false, "fulfilled_by": "hive", "h_codes": [], "hazardous_good": false, "hs_code": "610910", "image_url": "https://cdn.hive.app/skus/sku-001.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA4%&X-Amz-Date=20230525T083045Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=d8e3", "inventory": { "available": 90, "reserved": 10, "stocked": 100, "outbound": 4, "blocked": 0, "damaged": 0, "missing": 0, "in_restocking": 0, "returned": 0, "thrown_away": 0, "sendback": 0 }, "inventory_batches": [], "inventory_per_warehouse": [ { … } ], "status": "active", "un_numbers": [], "weight_in_kg": 0.2, "effective_inventory_batch_settings": { "id": 501, "batch_priority": "first_expired_first_out", "b2c_shelf_life_in_weeks": 12, "b2b_shelf_life_in_weeks": 24, "ito_shelf_life_in_weeks": 8, "kit_shelf_life_in_weeks": 6, "is_merchant_default": true, "sku_id": null, "action_weeks_before_expiry": 4, "expiry_follow_up_action": "block_and_dispose" } }