Skip to main content

Start here

Fetch inventories on a schedule, and use create to upsert when you need to push inventory changes back.

Design your sync

  • Decide which warehouses/locations to sync
  • Choose a refresh cadence (15 minutes, hourly, etc.)

Fetch inventory

curl -X GET "https://api.sanka.com/v1/public/inventories" \
  -H "Authorization: Bearer <access_token>"
Example response:
{
  "data": [
    {
      "id": "inv_456",
      "name": "Apple (main stock)",
      "available": 120,
      "committed": 20,
      "total_inventory": 140,
      "updated_at": "2026-01-20T12:00:00Z"
    }
  ]
}

Apply updates

  • Use available as your on-hand inventory
  • Use committed to reflect reserved stock
  • Use Create Inventory to upsert by external_id when pushing changes