Skip to main content

Webhook API

Webhooks are an API feature that allows your system to receive notifications about certain events. To set up webhooks, use API requests described below.

PrintfulStoreClient.webhook

Printful API Reference

Source


Get webhook configuration

Printful API Reference

Returns configured webhook URL and list of webhook event types enabled for the store

Method

PrintfulStoreClient.webhook.getWebhookConfig()

Arguments

None

Example Usage:

// Soon to be added

Set up webhook configuration

Printful API Reference

Use this endpoint to enable a webhook URL for a store and select webhook event types that will be sent to this URL.

Method

PrintfulStoreClient.webhook.setWebhookConfig(newConfig: WebhookConfig)

Arguments

newConfig - Webhook Configuration

Example Usage:

// Soon to be added

Disable webhook support

Printful API Reference

Removes the webhook URL and all event types from the store.

Method

PrintfulStoreClient.webhook.disableWebhookSupport()

Arguments

None

Example Usage:

// Soon to be added