Skip to main content

Get Service Provider Spend

GET 

/api/reporting/suppliers/service-spend

What service providers billed in the period — freight forwarders, customs brokers, printers and any other supplier whose type is service — split by provider and cost category, with each figure as a percentage of the goods purchased in the same period.

Required scope: reports:read

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

Authentication: Requires Bearer token (scope: reports)

Spend is the sum of bill line amounts converted to your home currency at each bill's exchange rate, for bills whose invoice date falls in the period. Lines with no cost category are reported with cost_category_id null and the name "Uncategorised". Bills from archived service providers are included.

Goods purchased is the received value of purchase orders placed with goods suppliers in the same period (home currency). pct_of_goods is null when no goods were purchased.

monthly covers the trailing 12 complete calendar months regardless of period_mode; series holds one row per cost category.

Response fields:

  • totals: spend (current, previous, delta_pct), goods_purchased, pct_of_goods, previous_pct_of_goods, bill_count
  • categories[]: per cost category spend, previous_spend, delta_pct, pct_of_goods, bill_count
  • providers[]: per service provider spend, previous spend, % of goods, bill count, last bill date and its category split
  • monthly: columns (Y-m), series per category, goods_purchased and pct_of_goods per month
  • service_provider_count: how many suppliers are typed as service providers

Request​

Responses​

OK

Response Headers
    Content-Type