Updates or creates the merchant's default inventory batch settings.
Security
BearerAuth
- Mock serverhttps://hive-merchant-api.redocly.app/_mock/merchant-api-v2/mapi_v2_oas31/inventory_batch_settings/default
- Production APIhttps://app.hive.app/merchant_api/v2/inventory_batch_settings/default
- Staging APIhttps://staging.app.hive.app/merchant_api/v2/inventory_batch_settings/default
curl -i -X PATCH \
https://hive-merchant-api.redocly.app/_mock/merchant-api-v2/mapi_v2_oas31/inventory_batch_settings/default \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"batch_priority": "first_expired_first_out",
"b2c_shelf_life_in_weeks": 0,
"b2b_shelf_life_in_weeks": 0,
"ito_shelf_life_in_weeks": 0,
"kit_shelf_life_in_weeks": 0
}'Updated inventory batch settings
Priority strategy for batch selection
Enum:"first_expired_first_out""first_produced_first_out"
Minimum remaining shelf life in weeks for inventory transfer orders
Whether this is the merchant's default settings (true) or SKU-specific (false)
Response
{ "id": 0, "batch_priority": "first_expired_first_out", "b2c_shelf_life_in_weeks": 0, "b2b_shelf_life_in_weeks": 0, "ito_shelf_life_in_weeks": 0, "kit_shelf_life_in_weeks": 0, "is_merchant_default": true, "sku_id": 0 }