Skip to main content
POST
/
products
/
price-report
/
batch
Batch Refresh Price Reports
curl --request POST \
  --url https://backend.anglera.com/products/price-report/batch \
  --header 'Content-Type: application/json' \
  --header 'X-Anglera-API-Key: <api-key>' \
  --data '
{
  "product_ids": [
    {}
  ],
  "sheet_id": "<string>"
}
'
{
  "message": "<string>",
  "total_matched": 123,
  "queued": 123,
  "sheet_id": "<string>"
}
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 -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

product_ids
array
Array of product IDs to refresh (max 500). Mutually exclusive with sheet_id.
sheet_id
string
ID of the sheet to refresh price reports for. Mutually exclusive with product_ids.

Response

message
string
Summary of the operation
total_matched
number
Total products that matched
queued
number
Number of products successfully queued for price report refresh
sheet_id
string
The sheet ID (only present when using sheet_id mode)
{
  "message": "Queued 152 product(s) for price report refresh",
  "total_matched": 152,
  "queued": 152,
  "sheet_id": "3910"
}

Errors

Status CodeDescription
400Missing required fields, both product_ids and sheet_id provided, or exceeds 500 ID limit
401Invalid API key
404Sheet not found
500Internal server error