Get Dashboard
GET/api/supplier-portal/dashboard
Queue counts, one To-do list and recent payments/activity for the signed-in user's supplier.
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.
counts: needs_ack (submitted POs awaiting acknowledgment), changes_from_buyer (POs the buyer changed after the supplier responded — re-confirm), awaiting_shipment (acknowledged warehouse-bound POs with a quantity left to ship, not declined since the last send), awaiting_dropship_shipment (the same for dropship POs — the To-do list's dropship Ship rows), dropship_open (acknowledged dropship POs left to ship), ready_to_invoice (shipped or received POs not fully invoiced), recently_paid (payments in the last 30 days).
ready_to_invoice_total / currency: value of the ready-to-invoice POs in the supplier's most common PO currency.
todo: up to 50 rows, oldest due first (rows without a due date last). type is acknowledge, reconfirm, ship or invoice. due_at (UTC): acknowledge / reconfirm = sent + the acknowledgment SLA (default 48h); dropship ship = confirmed (or sent) + the dropship ship SLA (default 24h); warehouse ship = the PO's estimated departure date; invoice = null.
recently_paid: up to 5 payments from the last 30 days (paid_at is a date). recent_activity: the last 6 audit entries, leaving out sign-ins/sign-outs, PO views, PDF / packing-slip / remittance downloads, email-preference changes and digests.
Authentication: supplier-portal bearer token. Every request re-checks the user and supplier: a deactivated user gets 401 with reason: user_inactive; a supplier whose portal was switched off (or that was archived) gets 401 with reason: portal_disabled.
recent_activity[] items carry purchase_order_id and purchase_order_reference when the activity is about an order you can open (otherwise null). recently_paid[] items carry invoices[] (id, reference) for the invoices each payment settled.
Request
Responses
- 200
- 401
- 403
- 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.
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.