Update pricing for multiple price lists
PATCH
/api/v1/batch-update-pricing
acceptstringGenerated from available response content types
Site-IdstringSpark Layer Site ID
bodyarray<p>List of sku, price list, quantity and price to update. Partial updates are supported, meaning only the SKUs present will be affected. For the given SKUs, existing prices are deleted then the supplied prices are inserted. If a SKU is provided but quantity and price are blank, all prices for that SKU are removed from the price list.</p>
204Successful response
400Validation errors
404Price list not found
500Internal server error
defaultError Response
curl --request PATCH \
--url /api/v1/batch-update-pricing \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'site-id: jones-climbing' \
--data '[
{
"sku": "SKU-1",
"price_list_slug": "example-list",
"pricing": [
{
"quantity": 1,
"price": 10.49
}
]
}
]'