Skip to main content
GET
Get My Spend History

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Response

200 - application/json

GetMySpendHistoryResponse contains the caller's complete-day history and current calendar-month totals.

GetMySpendHistoryResponse contains the caller's complete-day history and current calendar-month totals.

currencyCode
string

Currency used for monetary values.

monthEnd
string<date-time> | null
monthStart
string<date-time> | null
reportingEnd
string<date-time> | null
reportingStart
string<date-time> | null
spentInRangeNano
string<int64>

Settled spend from reporting_start through reporting_end.

spentThisMonthNano
string<int64>

Settled spend from month_start through the current whole-second cutoff.

spentThroughYesterdayNano
string<int64>

Settled spend from month_start through reporting_end.

trajectory
My Spend Trajectory Point · object[] | null

Settled spend for each complete UTC day in the reporting range.