(statements)
Statements are available in the Merchant Dashboard for merchants who use Bolt Payments as their processor. Merchants using other processors do not receive these statements.
- get_statements - Fetch a Statement
Get a pre-signed URL for the requested statement file.
from bolt_api_sdk import Bolt, models
import os
with Bolt(
security=models.Security(
x_api_key=os.getenv("BOLT_X_API_KEY", ""),
),
) as bolt:
res = bolt.statements.get_statements(request={
"date_": 1586480400000,
"file_type": models.StatementsFileType.CSV,
"type": models.StatementsType.DAILY_TRANSACTION,
})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.StatementsViewRequestBody | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.ErrorsBoltAPIResponse | 403, 404, 422 | application/json |
| errors.APIError | 4XX, 5XX | */* |