Skip to main content
Magento setup

§ 15

Magento setup

Configure Adobe Commerce or Magento 2 to send order and refund webhooks into TrackLayer.

Magento setup

Magento and Adobe Commerce installations usually send outbound events through an extension such as Mageplaza Webhook, Mirasvit Webhooks, or Adobe Commerce native webhooks on supported 2.4.5+ stores.

Configure the webhook

  1. Install Mageplaza Webhook, or use Adobe Commerce native webhooks if your store supports them.
  2. Create a webhook with this URL:
https://tracklayer-api.sublime.workers.dev/v1/integrations/magento/webhook?merchant_id=<MERCHANT_ID>
  1. Add this request header:
Authorization: Bearer <TRACKLAYER_MAGENTO_SECRET>

Rotate the secret from /settings/integrations/magento.

  1. Subscribe to these events:
sales_order_place_after
sales_order_creditmemo_save_after
  1. Save the webhook and send a test order or credit memo.

TrackLayer maps sales_order_place_after to purchase, sales_order_save_commit_after with status=complete to purchase, and sales_order_creditmemo_save_after to refund.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.

We use essential cookies to keep the site secure and functional. Analytics and third-party tags run only with your consent. See our Cookie Policy.