Skip to main content

Get Bills Summary

GET 

/api/shipbob/:instance/bills/summary

Totals for a charge-date range: per-fee rows in the same shape as the Trackstar bills summary (charge_type, total_amount, bill_count, currency_code, plus share of the billed cost), the attribution breakdown (on orders, on products, on purchase orders, pending, unattributed, excluded payments, unattributed by reason, billed-vs-estimated freight variance) and the unattributed work queue grouped by reason and sales channel with a suggested action.

Required scope: accounting:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Query: from / to (date, Y-m-d; default the last 30 days; to must be on or after from).

currency_code is the tenant currency every total, attribution amount and share is expressed in (per-fee total_amount stays in that fee's billing currency_code).

unconverted lists bills whose charge-date exchange rate is not published yet, grouped by billed currency (currency_code, amount, count). They are left out of every tenant-currency total, and an item's amount_in_tenant_currency is null when none of its bills could be converted yet.

attribution.attributed_cost_entries is the charges attributed to a cost entry alone (e.g. a return fee split across the returned products), so attributed_orders + attributed_products + attributed_purchase_orders + attributed_cost_entries + unattributed + pending = total. Fee-type items count billed rows only: excluded rows of a billed fee (a voided charge) are left out of total_amount/bill_count and reported as left_out_count (voided_count says how many are voided). A fee whose rows are all excluded (payments) keeps its amount with is_excluded: true.

Request​

Responses​

OK

Response Headers
    Content-Type