{
  "opencollection": "1.0.0",
  "info": {
    "name": "Light Authorization v1 - Card Balance Accounts API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "v1 - Card Balance Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Generate a card balance account statement",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/card-balance-accounts/:accountId/statement",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "Start of the statement period, inclusive. A UTC calendar date in `YYYY-MM-DD` format."
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "End of the statement period. A UTC calendar date in `YYYY-MM-DD` format; must be after `from`."
              }
            ]
          },
          "docs": "Generates a statement for a card balance account over a period. Dates are interpreted as UTC day boundaries and all timestamps in the response are in UTC. Runs a fresh provider sync inline so the statement reflects the latest activity."
        },
        {
          "info": {
            "name": "Get card balance account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/card-balance-accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a card balance account by ID, including balance details"
        },
        {
          "info": {
            "name": "List card balance accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/card-balance-accounts",
            "params": [
              {
                "name": "sort",
                "value": "",
                "type": "query"
              },
              {
                "name": "filter",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return. Default is 50, maximum is 200."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of items to skip before starting to collect the result set. Deprecated, use 'cursor' instead."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The cursor position to start returning results from.\nTo opt-in into cursor-based pagination, provide `0` for the initial request.\nFor subsequent requests, use `nextCursor` and `prevCursor` from the previous response to navigate.\nCursor values are opaque and should not be constructed manually."
              }
            ]
          },
          "docs": "Returns a list of card balance accounts"
        },
        {
          "info": {
            "name": "Get total spend for a card balance account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/card-balance-accounts/:accountId/total-spend",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "Start of the spend window, inclusive. A UTC calendar date in `YYYY-MM-DD` format."
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "End of the spend window, inclusive. A UTC calendar date in `YYYY-MM-DD` format. Defaults to now if omitted."
              }
            ]
          },
          "docs": "Returns the total spend for a card balance account within a date range"
        }
      ]
    }
  ],
  "bundled": true
}