Inventory

Update inventory quantities for product variants. Changes are stored locally and periodically synced to Shopify.

Update Product Inventory

patch

Updates inventory quantities for one or more variants of a product. Inventory changes are stored locally and synced to Shopify periodically. Brand data always takes precedence over Shopify data.

Authorizations
X-MaisonSafqa-Api-KeystringRequired

API key for authentication. Use 'ms_test_...' keys for development/testing and 'ms_live_...' keys for production. Keys are environment-specific and will only work in their respective environments.

Path parameters
product_idstringRequired

Product identifier (format: product_XXXXXXXXXXXXXXXX)

Example: {"value":"product_1234567890123456"}
Body
Responses
chevron-right
200

Inventory updated successfully

application/json
patch
/products/{product_id}/inventory

Bulk Update Inventory

patch

Updates inventory for multiple products in a single request. Maximum 500 products per request.

Authorizations
X-MaisonSafqa-Api-KeystringRequired

API key for authentication. Use 'ms_test_...' keys for development/testing and 'ms_live_...' keys for production. Keys are environment-specific and will only work in their respective environments.

Body
Responses
chevron-right
200

All inventory updates successful

application/json
successbooleanOptional

True if all updates were successful

messagestringOptional

Summary message

Example: Inventory updated: 48/50 products successful
patch
/inventory/bulk

Last updated