Skip to main content

Get Quantity Flow

GET 

/api/supplier-portal/dashboard/quantity-flow

Units ordered, shipped and received per bucket for the signed-in user's supplier — the dashboard's Quantity flow chart.

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

  • ordered: units on the supplier's purchase orders by PO date (draft, archived and supplier-cancelled POs excluded).
  • shipped: units on the supplier's shipments by ship date (draft, planned and cancelled shipments excluded).
  • received: units the merchant received against the supplier's POs by receipt date.

Buckets are in the merchant's timezone (timezone); start is each bucket's first local date and every bucket in the range is returned, zeros included (the example body is trimmed to two). totals sums every bucket.

Query: range = 30d | 90d (default) | 12m.

Authentication: supplier-portal bearer token (same 401 reasons as Get Dashboard). 422 when range is not one of the three values.

Request​

Responses​

OK

Response Headers
    Content-Type