Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.43 KB

File metadata and controls

58 lines (40 loc) · 1.43 KB

list

GET /v1/sources/{source}/source_transactions

List source transactions for a given source.

API Endpoint: GET /v1/sources/{source}/source_transactions

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.source.source_transactions.list(source="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.source.source_transactions.list(source="string")

get

Retrieve a source transaction

Retrieve an existing source transaction object. Supply the unique source ID from a source creation request and the source transaction ID and Stripe will return the corresponding up-to-date source object information.

API Endpoint: GET /v1/sources/{source}/source_transactions/{source_transaction}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.source.source_transactions.get(
    source="string", source_transaction="string"
)

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.source.source_transactions.get(
    source="string", source_transaction="string"
)