Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/products/get-variant-listProductsPermission: product.view

Get Variant List

Retrieves sellable product variants scoped to the tenant and outlet access with status, inventory tracking, brand, category, and supplier filters.

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 product module restriction applies.

Request

Provide the following fields in the request payload.

Body application/json
querystringoptional

query parameter.

statusenum('ALL' | 'ACTIVE' | 'INACTIVE')optionaldefault: ALL

status parameter.

inventoryenum('ALL' | 'TRACKED' | 'UNTRACKED')optionaldefault: ALL

inventory parameter.

categorystringoptional

category parameter.

brandstringoptional

brand parameter.

supplierstringoptional

supplier parameter.

typestringoptional

type parameter.

outletIdstring (uuid)optional

outlet Id parameter.

orderByenum('NAME' | 'CREATED')optionaldefault: NAME

order By parameter.

orderDirectionenum('ASC' | 'DESC')optionaldefault: ASC

order Direction parameter.

limitintegeroptionaldefault: 20

limit parameter.

pageintegeroptionaldefault: 1

page parameter.

Responses

Select a status code to inspect schema.

OK — Variant list retrieved.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/products/get-variant-list
curl -X POST "https://api.invoger.com/api/products/get-variant-list" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "status": "ACTIVE", "inventory": "ALL", "orderBy": "NAME", "orderDirection": "ASC", "limit": 20, "page": 1 }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "variants": [],
    "total": 0,
    "page": 1,
    "limit": 20
  }
}