Skip to main content

Start here

Inventory transaction history is available via the public API. Use it for audit trails and reporting.

Define the purpose

  • Audit trail (who/when/what changed)
  • Reporting and analytics

Fetch transactions

curl -X GET "https://api.sanka.com/v1/public/inventory-transactions" \
  -H "Authorization: Bearer <access_token>"
Example response:
{
  "data": [
    {
      "id": "txn_789",
      "inventory_id": "inv_456",
      "transaction_type": "out",
      "transaction_amount": 5,
      "transaction_date": "2026-01-20T12:00:00Z",
      "updated_at": "2026-01-20T12:00:00Z"
    }
  ]
}

Use the history

  • Store transactions in time order
  • Analyze inventory movement causes
  • Use Create Inventory Transaction to record new movements