Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/inventory/get-inventory-historyInventoryPermission: inventory.view

Get Inventory Movement History

Lists immutable inventory movement audit entries (`SET`, `ADJUSTMENT_IN`, `ADJUSTMENT_OUT`, `INVOICE_SALE`, `INVOICE_VOID`) scoped to tenant and accessible outlets.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Outlet Scope Enforcement: Results and mutations are automatically scoped to the actor's accessible outlets when the inventory module restriction applies.

Request

Provide the following fields in the request payload.

Body application/json
outletIdstring (uuid)optional

outlet Id parameter.

typeenum('SET' | 'ADJUSTMENT_IN' | 'ADJUSTMENT_OUT' | 'INVOICE_SALE', ...)optional

type parameter.

querystringoptional

query parameter.

fromstring (date-time)optional

from parameter.

tostring (date-time)optional

to parameter.

pageintegeroptionaldefault: 1

page parameter.

limitintegeroptionaldefault: 20

limit parameter.

Responses

Select a status code to inspect schema.

OK — Inventory movements retrieved successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/inventory/get-inventory-history
curl -X POST "https://api.invoger.com/api/inventory/get-inventory-history" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "outletId": "o1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c", "type": "INVOICE_SALE", "page": 1, "limit": 20 }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "movements": [
      {
        "id": "mov_1",
        "type": "INVOICE_SALE",
        "delta": -2,
        "quantityBefore": 47,
        "quantityAfter": 45,
        "referenceId": "inv_123",
        "createdAt": "2026-11-26T10:15:00.000Z"
      }
    ],
    "total": 1
  }
}