Sign in

Create on-hand change

documented

Create one on-hand change event.

POST /api/environment/{environmentId}/onhandInventory Visibilityno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://inventoryservice.{{$region_short_name}}-il{{$island_number}}.gateway.prod.island.powerapps.com/api/environment/{{$environmentId}}/onhand" \
  -X POST \
  -H "Api-Version: 1.0" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -d '{ \
  "id": "{{$id}}", \
  "organizationId": "{{$organizationId}}", \
  "productId": "{{$productId}}", \
  "dimensionDataSource": "{{$dimensionDataSource}}", \
  "dimensions": { \
    "siteId": "{{$siteId}}", \
    "locationId": "{{$locationId}}", \
    "colorId": "{{$colorId}}" \
  }, \
  "quantities": { \
    "{{$dataSourceName}}": { \
      "{{$quantityKey}}": {{$quantityValue}} \
    } \
  } \
}'"
Create on-hand change · Microsoft Dynamics 365 · OpenIntegrations