GET//////
Retrieve an array of statement files for a specific statement summary.
URL path parameters
| Fields | Description |
|---|---|
| account_token string Required | The unique identifier of the credit account for which to retrieve statement files for a statement summary. 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 whose statement files you want to retrieve. Send a GET request to /credit/accounts/{token}/statements to retrieve existing statement summary tokens.Allowable Values: Existing statement summary token |
URL query parameters
| Fields | Description |
|---|---|
| count integer Optional | The number of statement files to return. Allowable Values: 1–100 |
| start_index integer Optional | Sort order index from which to begin returning files. Allowable Values: 0 min |
Response body
| Fields | Description |
|---|---|
| count integer Returned | Number of resources returned. Allowable Values: 1-10 |
| start_index integer Returned | Sort order index of the first resource in the returned array. Allowable Values: Any integer |
| end_index integer Returned | Sort order index of the last resource in the returned array. Allowable Values: Any integer |
| is_more boolean Returned | A value of true indicates that more unreturned resources exist.Allowable Values: true, false |
| data array of objects Returned | List of statement files. Allowable Values: One or more statement files |
| data[].token string Conditionally returned | Unique identifier of the statement file. Allowable Values: 36 char max |
| data[].account_token string Conditionally returned | Unique identifier of the credit account on which the statement PDF file is generated. Allowable Values: 36 char max Existing account token |
| data[].statement_summary_token uuid Conditionally returned | Unique identifier of the statement summary. Allowable Values: Existing statement summary token |
| data[].opening_date datetime Conditionally returned | Date and time when the statement period began. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| data[].closing_date datetime Conditionally returned | Date and time when the statement period ended. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| data[].signed_url string Conditionally returned | The signed URL to retrieve the statement PDF file. Allowable Values: A valid signed URL |
| data[].type string Conditionally returned | Type of file. Allowable Values: STATEMENT_PDF |
Sample response body
JSON
{
"count": 1,
"start_index": 0,
"end_index": 0,
"is_more": false,
"data": [
{
"token": "file_token",
"account_token": "credit_account_token1234",
"statement_summary_token": "37f07818-2a2c-4c82-a721-a479936d5b2e",
"opening_date": "2021-07-01T00:27:09Z",
"closing_date": "2021-07-31T00:27:09Z",
"signed_url": "<signed_https_url_pointing_to_a_resource_on_S3>",
"type": "STATEMENT_PDF"
}
]
}