Batch change inventory
documentedApplies adjustments and counts to provided item quantities.
POST /v2/inventory/changes/batch-createInventoryno implementation yet0 runsNo 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://connect.squareup.com/v2/inventory/changes/batch-create" \
-X POST \
-H "Square-Version: 2026-01-22" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"idempotency_key": "{{$idempotency_key}}", "changes": [ { "type": "PHYSICAL_COUNT", "physical_count": { "reference_id": "{{$reference_id}}", "catalog_object_id": "{{$catalog_object_id}}", "state": "{{$state}}", "location_id": "{{$location_id}}", "quantity": "{{$quantity}}", "team_member_id": "{{$team_member_id}}", "occurred_at": "{{$occurred_at}}" } } ], "ignore_unchanged_counts": {{$ignore_unchanged_counts}} }'"