Get Customer AR Summary
GET/api/customers/:customer/ar-summary
Returns the customer's accounts-receivable summary in one call: outstanding and overdue totals, aging buckets, open credits, net receivable, credit headroom, informational wallet balances, the most recent payment, and the head of the overdue worklist.
All amounts are in the account's base currency (currency).
Response fields:
outstanding_total— sum of balance due across the customer's open sales orders.overdue—amount,count, andoldest_due_dateof orders past their due date.aging— outstanding amount bucketed by days past due:current(not yet due),d1_30,d31_60,d61_90,d90_plus.open_credits—amountandcountof open sales credits with an unallocated balance.net_receivable—outstanding_totalminusopen_credits.amount. Negative means you owe the customer.credit_limit/available_credit—available_creditiscredit_limitminusoutstanding_total; both null when no credit limit is set.house_account_balance/store_credit_balance— informational wallet balances. Store credit is a prepaid liability and is never netted intonet_receivable.last_payment—date,amount, andidof the most recent payment against the customer's orders (a convenience hint, not an accounting figure); null when the customer has never paid.last_statement_sent_at— when a statement email was last sent to this customer (ISO 8601, or null).overdue_items— up to 5 overdue receivable rows, oldest due date first (same row shape as the receivables list).open_count— number of open receivable rows.payment_terms_days— payment terms used to derive due dates (customer override, else the account default).
Due dates are derived as order date + payment terms.
Authentication: Requires Bearer token (PAT). Requires permissions customers.show and sales_orders.index, and a token with the orders scope.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
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.