Skip to main content
GET
/
api
/
inventory
/
valuation
Inventory valuation aggregated by dimension
curl --request GET \
  --url https://app.solya.app/api/inventory/valuation \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "brandId": "brand-nike-001",
      "brandName": "Nike",
      "productId": null,
      "productName": null,
      "shopId": null,
      "shopName": null,
      "stockValue": 84200,
      "stockValueRetail": 152000,
      "units": 1240
    },
    {
      "brandId": "brand-adidas-002",
      "brandName": "Adidas",
      "productId": null,
      "productName": null,
      "shopId": null,
      "shopName": null,
      "stockValue": 61500,
      "stockValueRetail": 109000,
      "units": 920
    }
  ],
  "page": 1,
  "pageSize": 20,
  "total": 5
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Query Parameters

page
integer
default:1

Page number, 1-indexed (default: 1)

Required range: 1 <= x <= 9007199254740991
pageSize
integer
default:20

Number of items per page, max 100 (default: 20)

Required range: 1 <= x <= 100
groupBy
enum<string>
default:brand

Aggregation dimension: shop, brand (default), or product

Available options:
shop,
brand,
product
shopIds
string

Comma-separated shop IDs to filter by

brandIds
string

Comma-separated brand IDs to filter by

sortBy
enum<string>
default:stockValue

Metric to sort by: stockValue (default), stockValueRetail, or units

Available options:
stockValue,
stockValueRetail,
units
sortDir
enum<string>
default:desc

Sort direction: desc (default) or asc

Available options:
asc,
desc

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true