webhookTrigger Mutation
Trigger a webhook event. Supports a single event (the first, if multiple provided in the webhook.subscription_query). Requires permission relevant to processed event. Successfully delivered webhook returns delivery with status=‘PENDING’ and empty payload.
webhookTrigger(objectId: ID!, webhookId: ID!): WebhookTrigger
Returns
Show return type
type WebhookTrigger {
delivery: EventDelivery
errors: [WebhookTriggerError!]!
}Arguments
objectId
objectId · ID!
The ID of an object to serialize.
webhookId
webhookId · ID!
The ID of the webhook.
Schema: Saleor 3.23.43. Download SDL.