Skip to main content

Create Subscription

POST 

/webhooks

Creates a webhook subscription for the topics provided.

Request

Header Parameters

    Authorization stringrequired

    Default value: bearer YOUR_API_KEY

Body

    address stringrequired

    URL where the data will be sent to each time this webhook is triggered

    topic string[]required

    The topic of the subscription you want to register. Examples include commerce/customers, accounting/invoices, sync/completed, etc. Find a full list of topics here

Responses

200

Schema

    subscription

    object

    address string
    topic string[]
    isEnabled boolean

    Default value: true

    subscriptionId string
Loading...