Skip to content

Latest commit

 

History

History
140 lines (95 loc) · 3.23 KB

File metadata and controls

140 lines (95 loc) · 3.23 KB

list

List orders

Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.

API Endpoint: GET /v1/climate/orders

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

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

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

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

get

Retrieve an order

Retrieves the details of a Climate order object with the given ID.

API Endpoint: GET /v1/climate/orders/{order}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.climate.order.get(order="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.climate.order.get(order="string")

create

Create an order

Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.

API Endpoint: POST /v1/climate/orders

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.climate.order.create(product="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.climate.order.create(product="string")

update

Update an order

Updates the specified order by setting the values of the parameters passed.

API Endpoint: POST /v1/climate/orders/{order}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.climate.order.update(order="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.climate.order.update(order="string")

cancel

Cancel an order

Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds the amount_total.

API Endpoint: POST /v1/climate/orders/{order}/cancel

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.climate.order.cancel(order="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.climate.order.cancel(order="string")