Skip to main content
GET
/
v1
/
card-balance-accounts
/
{accountId}
/
total-spend
Get total spend for a card balance account
curl --request GET \
  --url https://api.light.inc/v1/card-balance-accounts/{accountId}/total-spend \
  --header 'Authorization: <api-key>'
{
  "currency": "USD",
  "total": 123,
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

accountId
string<uuid>
required

Query Parameters

from
object
to
object

Response

default - application/json;charset=UTF-8

default response

currency
string
Example:

"USD"

total
integer<int64>
from
string<date-time>
to
string<date-time>