Updates a SKU of the sales channel. The properties you leave out keep their value, and a null batch_tracking_enabled is ignored. The SKU is active afterwards, even if it was deleted.
Whether inventory of this SKU is tracked per batch. null leaves it unchanged.
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/{id}
- Production APIhttps://app.hive.app/merchant_api/v1/skus/{id}
- Staging APIhttps://staging.app.hive.app/merchant_api/v1/skus/{id}
curl -i -X PATCH \
'https://developers.hive.app/_mock/merchant-api-v1/mapi_v1_oas31/skus/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Hive T-Shirt (Black - L)",
"weight_in_kg": 0.35
}'The 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": [ { … } ] }