Skip to main content

Pausing and resuming addons

Introduction​

In rare cases, an OAuth access token can be paused: the addon remains installed and billing continues, but API requests are rejected.

This happens when:

  • the user pauses the addon in the addon manager for any reason,
  • Shoptet pauses the installation, or
  • the state of the project (e-shop) where the addon is installed changes (e.g., the project is deactivated).
Did you know?

By using webhooks, you can stop sending API requests that would be rejected anyway.

Webhooks​

When a token (addon installation) is paused or resumed, the webhook URL is called (if provided), and you can process the notification to suspend or resume sending API requests.

URLs definition​

The URLs for these webhook notifications are set in the addon settings, on the Settings tab, in the Webhook URL to receive ... fields.

Three webhook URLs are dedicated to pausing and resuming addons:

  • suspend,

  • terminate, and

  • approve.

  • addon:suspend is sent when the user pauses the addon in the addon manager, when Shoptet pauses the installation, or when the e-shop becomes restricted (e.g., it is deactivated).

  • addon:terminate is sent when the e-shop is being terminated.

  • addon:approve is sent when the installation becomes active again: the user resumes the addon, the e-shop restriction is lifted, or the termination of the e-shop is reverted.

If the e-shop is eventually removed, the uninstallation webhook is called as well.

Notification data​

The notification is sent in the standard JSON format:

{
"eshopId": 125671,
"event": "addon:suspend",
"eventCreated": "2025-03-18T15:26:40+0100",
"eventInstance": "125671"
}

The event field can have these values:

  • addon:suspend,
  • addon:terminate, and
  • addon:approve.

The e-shop ID is repeated in the eventInstance field.