Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.19 KB

File metadata and controls

54 lines (36 loc) · 1.19 KB

list

List all tax codes

A list of all tax codes available to add to Products in order to allow specific tax calculations.

API Endpoint: GET /v1/tax_codes

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

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

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

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

get

Retrieve a tax code

Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.

API Endpoint: GET /v1/tax_codes/{id}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

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

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

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