Sign in

Set/override on-hand quantities

documented

Set or override on-hand quantities.

POST /api/environment/{environmentId}/setonhand/{inventorySystem}/bulkInventory 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.operations365.dynamics.com/api/environment/{{$environmentId}}/setonhand/{{$inventorySystem}}/bulk" \
  -X POST \
  -H "Api-Version: 1.0" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -d '[{\n    "id": "{{$id}}",\n    "organizationId": "{{$organizationId}}",\n    "productId": "{{$productId}}",\n    "dimensionDataSource": "{{$dimensionDataSource}}",\n    "dimensions": {\n      "siteId": "{{$siteId}}",\n      "locationId": "{{$locationId}}",\n      "colorId": "{{$colorId}}"\n    },\n    "quantities": {\n      "{{$dataSourceName}}": {\n        "{{$qtyField}}": {{$qtyValue}}\n      }\n    },\n    "modifiedDateTimeUTC": "{{$modifiedDateTimeUTC}}"\n  }]'
Set/override on-hand quantities · Microsoft Dynamics 365 · OpenIntegrations