/

SDKs

Python

The official library for Python 3.9 and later, sync and async.

2 min read

from sluice import Sluice

sluice = Sluice(os.environ["SLUICE_KEY"])
sluice.events.create("cus_1042", type="invoice.paid", payload={"invoice": "inv_8841"})
from sluice import Sluice

sluice = Sluice(os.environ["SLUICE_KEY"])
sluice.events.create("cus_1042", type="invoice.paid", payload={"invoice": "inv_8841"})
from sluice import Sluice

sluice = Sluice(os.environ["SLUICE_KEY"])
sluice.events.create("cus_1042", type="invoice.paid", payload={"invoice": "inv_8841"})

Use AsyncSluice with the same methods inside asyncio code.

Something missing or wrong on this page? Tell us at support@sluicehq.dev and we will fix it.

Create a free website with Framer, the website builder loved by startups, designers and agencies.