Skip to content

Latest commit

 

History

History
118 lines (82 loc) · 2.54 KB

File metadata and controls

118 lines (82 loc) · 2.54 KB

list

List all InboundTransfers

Returns a list of InboundTransfers sent from the specified FinancialAccount.

API Endpoint: GET /v1/treasury/inbound_transfers

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.treasury.inbound_transfer.list(financial_account="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.treasury.inbound_transfer.list(financial_account="string")

get

Retrieve an InboundTransfer

Retrieves the details of an existing InboundTransfer.

API Endpoint: GET /v1/treasury/inbound_transfers/{id}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.treasury.inbound_transfer.get(id="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.treasury.inbound_transfer.get(id="string")

create

Create an InboundTransfer

Creates an InboundTransfer.

API Endpoint: POST /v1/treasury/inbound_transfers

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.treasury.inbound_transfer.create(
    amount=123,
    currency="string",
    financial_account="string",
    origin_payment_method="string",
)

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.treasury.inbound_transfer.create(
    amount=123,
    currency="string",
    financial_account="string",
    origin_payment_method="string",
)

cance

Cancel an InboundTransfer

Cancels an InboundTransfer.

API Endpoint: POST /v1/treasury/inbound_transfers/{inbound_transfer}/cancel

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.treasury.inbound_transfer.cance(inbound_transfer="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.treasury.inbound_transfer.cance(inbound_transfer="string")