Every invoice issued against this account, newest first (dashboard session required)

Returns the stored api_plan_invoices rows for this account and this API — the rows the billing run actually wrote, never a reconstruction. Each one reconciles against itself: the included allowance and base fee shown are the PRORATED figures applied to that window, overageMinorRaw is the uncapped overage and overageMinorCapped is what was charged, and baseChargedMinor says how much of the base fee this invoice collected — 0 when Square’s recurring subscription had already taken it. An account with no billing history yet gets an empty list and a note explaining why, never a fabricated row. AUTHENTICATION IS YOUR DASHBOARD SESSION, NOT AN API KEY. Send the @sp/core session cookie this API sets when you sign in, from the same origin. An API key is refused here on purpose: it is a data-plane credential that lives in CI and in third-party integrations, and it must never be able to change what you are billed, cancel your account, or read your payment history. Errors: 401 unauthenticated when there is no valid session, 403 forbidden when the request is cross-origin or its x-csrf-token header is missing or wrong.

get/v1/invoices

Request

  • Base URL: https://agentmandate-api.com
  • URL: https://agentmandate-api.com/v1/invoices
  • Auth: API key in cookie sp_session

Response

Success

productstring
countinteger
notestring nullable

Present only when the list is empty: says why, in a sentence a customer can act on.

invoicesobject[]
requestIdstring

Changes

No recorded changes to this operation across all 1 revision of this API.