Queues existing products for price report refresh. Provide either product_ids or sheet_id — not both.
A maximum of 5,000 products are processed per request. If more products match, the response will indicate how many remain — call the endpoint again to process the next batch.
Request
cURL (by IDs)
cURL (by sheet)
Python
JavaScript
curl -X POST "https://backend.anglera.com/products/price-report/batch" \
-H "X-Anglera-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"product_ids": [4727220, 4727221, 4727222]
}'
Body Parameters
Array of product IDs to refresh (max 500). Mutually exclusive with sheet_id.
ID of the sheet to refresh price reports for. Mutually exclusive with product_ids.
Response
Total products that matched
Number of products successfully queued for price report refresh
The sheet ID (only present when using sheet_id mode)
Products Queued
No Matches
{
"message" : "Queued 152 product(s) for price report refresh" ,
"total_matched" : 152 ,
"queued" : 152 ,
"sheet_id" : "3910"
}
{
"message" : "No matching products found" ,
"queued" : 0
}
Errors
Status Code Description 400Missing required fields, both product_ids and sheet_id provided, or exceeds 500 ID limit 401Invalid API key 404Sheet not found 500Internal server error