/

SDKs

Go

The official module for Go 1.21 and later.

2 min read

go get
go get
go get
client := sluice.New(os.Getenv("SLUICE_KEY"))

_, err := client.Events.Create(ctx, "cus_1042", sluice.EventIn{
    Type:    "invoice.paid",
    Payload: map[string]any{"invoice": "inv_8841"

client := sluice.New(os.Getenv("SLUICE_KEY"))

_, err := client.Events.Create(ctx, "cus_1042", sluice.EventIn{
    Type:    "invoice.paid",
    Payload: map[string]any{"invoice": "inv_8841"

client := sluice.New(os.Getenv("SLUICE_KEY"))

_, err := client.Events.Create(ctx, "cus_1042", sluice.EventIn{
    Type:    "invoice.paid",
    Payload: map[string]any{"invoice": "inv_8841"

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.