Shops > Webhooks > webhooksCreate
Commerce APIShopsWebhookswebhooksCreate
webhooksCreate
POST:webhooks.json

Description

Create one or multiple webhook endpoints.

Permission bit: "webhooks.create"

Topic: Webhooks

Arguments

data: [WebhookCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

enabled: Boolean

Whether this webhook is enabled or not

Example: true


url: String!

Webhook endpoint URL

Example: "http://foobar.com/webhooks/app"

Valid when: url is not empty

Valid when: url's length doesn't exceed 250 characters


whitelist: [String!]


Result

[Webhook!]

Preview (typescript)

Loading module