Skip to main content

Step 3: set up order webhooks

Lastly, we’re going to subscribe to two of the order-related webhooks. The first event type to subscribe to is OrderCreated. This event is triggered when an order is created, in both sandbox and production.
The second event type to subscribe to is OrderCompleted. This event is triggered when an order is completed in production. You won’t receive it in sandbox.
For more information about webhooks and webhook event type structures, see the webhooks guide.