Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 2.69 KB

File metadata and controls

58 lines (38 loc) · 2.69 KB

Statements

(statements)

Overview

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.

Available Operations

get_statements

Get a pre-signed URL for the requested statement file.

Example Usage

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)

Parameters

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.

Response

models.StatementsViewResponse

Errors

Error Type Status Code Content Type
errors.ErrorsBoltAPIResponse 403, 404, 422 application/json
errors.APIError 4XX, 5XX */*