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.
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
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.