Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 1.79 KB

File metadata and controls

81 lines (54 loc) · 1.79 KB

list

List all Report Runs

Returns a list of Report Runs, with the most recent appearing first.

API Endpoint: GET /v1/reporting/report_runs

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.reporting.report_run.list()

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.reporting.report_run.list()

get

Retrieve a Report Run

Retrieves the details of an existing Report Run.

API Endpoint: GET /v1/reporting/report_runs/{report_run}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.reporting.report_run.get(report_run="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.reporting.report_run.get(report_run="string")

create

Create a Report Run

Creates a new object and begin running the report. (Certain report types require a live-mode API key.)

API Endpoint: POST /v1/reporting/report_runs

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.reporting.report_run.create(report_type="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.reporting.report_run.create(report_type="string")