Skip to main content
POST
/
products
/
recalculate
Product Recalculate
curl --request POST \
  --url https://api-v2.production.higg.org/pic-api/v1/products/recalculate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-developer-request-token: <api-key>' \
  --data '
{
  "productId": [
    "<string>"
  ]
}
'
{
  "successIds": [
    "<string>"
  ],
  "failureIds": [
    "<string>"
  ]
}
Use this endpoint to recalculate the impacts associated with one or more products from your PIC product library.

Request body params

Field NameData TypeDescription
productIdArray<string>[REQUIRED] List of product IDs to recalculate.

Implementation Details

  • Asynchronous/Batch Processing: The system processes these recalculations in chunks (e.g., batch size of 50).
  • Up-to-Date Check: The logic checks if the underlying MSI product (if linked) has been updated or deleted. If the MSI product is deleted, the product is marked as up-to-date to skip recalculation.
  • Response: Returns { successIds: string[], failureIds: string[] }.

Authorizations

x-api-key
string
header
required
x-developer-request-token
string
header
required

Body

application/json
productId
string[]
required

Response

200 - application/json

Ok

successIds
string[]
required
failureIds
string[]
required