GET//////
Retrieve the year-to-date fee and interest totals on a credit account’s statement summary.
URL path parameters
| Fields | Description |
|---|---|
| account_token string Required | The unique identifier of the credit account from which to retrieve statement year-to-date totals. Send a GET request to /credit/accounts to retrieve existing credit account tokens.Allowable Values: Existing account token |
| statement_summary_token string Required | The unique identifier of the statement summary from which to retrieve year-to-date totals. Send a GET request to /credit/accounts/{token}/statements/ to retrieve existing statement summary tokens.Allowable Values: Existing statement summary token |
Response body
| Fields | Description |
|---|---|
| token uuid Conditionally returned | Unique identifier of the year-to-date total. Allowable Values: 36 char max |
| account_token string Returned | Unique identifier of the associated credit account. Allowable Values: 36 char max Existing account token |
| statement_token uuid Returned | Unique identifier of the statement summary from which to retrieve year-to-date totals. Allowable Values: Existing statement summary token |
| total_fees decimal Returned | Total fees charged year-to-date. Allowable Values: Format: 0.00 |
| total_interest decimal Returned | Total interest charged year-to-date. Allowable Values: Format: 0.00 |
| created_time datetime Conditionally returned | Date and time when the year-to-date total was created on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
{
"token": "c40b683b-ad88-51b6-a1fa-bc9961bc011e",
"account_token": "my_account_token_12",
"statement_token": "c07918af-2ffa-4da9-972c-6b3d24b2a772",
"total_fees": 0,
"total_interest": 0,
"created_time": "2021-07-01T00:27:09Z"
}