Skip to main content
POST
/
purchase-orders
/
recalculate
Purchase Order Recalculate
curl --request POST \
  --url https://api-v2.production.higg.org/pic-api/v1/purchase-orders/recalculate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-developer-request-token: <api-key>' \
  --data '
{
  "poId": [
    "<string>"
  ]
}
'
{
  "successIds": [
    "<string>"
  ],
  "failureIds": [
    "<string>"
  ]
}
Use this endpoint to recalculate the Scope 3 impacts for one or more purchase orders. Recalculation is useful after updating a purchase order’s FEM linking, or when the underlying product data has changed.

Request body params

Field NameData TypeDescription
poIdArray<string>[REQUIRED] List of purchase order IDs to recalculate.

Implementation Details

  • Batch processing: Purchase orders are processed in batches — products are chunked in groups of 10, and purchase orders in groups of 30.
  • Outdated check: The system checks whether each purchase order’s linked data is outdated before recalculating. Up-to-date purchase orders may be skipped.
  • Response format: Returns { successIds: string[], failureIds: string[] }.

Authorizations

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

Body

application/json
poId
string[]
required

Response

200 - application/json

Ok

successIds
string[]
required
failureIds
string[]
required