§ 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
- Install Mageplaza Webhook, or use Adobe Commerce native webhooks if your store supports them.
- Create a webhook with this URL:
https://tracklayer-api.sublime.workers.dev/v1/integrations/magento/webhook?merchant_id=<MERCHANT_ID>- Add this request header:
Authorization: Bearer <TRACKLAYER_MAGENTO_SECRET>Rotate the secret from /settings/integrations/magento.
- Subscribe to these events:
sales_order_place_after
sales_order_creditmemo_save_after- 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.