Light APIv1.0.0

API / Reference / Card Balance Accounts

Get total spend for a card balance account

GET https://api.light.inc/v1/card-balance-accounts/{accountId}/total-spend

Returns the total spend for a card balance account within a date range

Authorization

Send one of these on every request. See Authentication for how to get credentials.

  • API key

    Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

  • Bearer token

Path parameters

  • accountId string · uuidrequired

Query parameters

  • from string · date

    Start of the spend window, inclusive. A UTC calendar date in YYYY-MM-DD format.

  • to string · date

    End of the spend window, inclusive. A UTC calendar date in YYYY-MM-DD format. Defaults to now if omitted.

Response

  • currency string

  • total integer · int64

  • from string · date-time

  • to string · date-time