Configure Webhooks
Set up Shopify webhook endpoints for order and fulfillment events.
The Reseller API uses Shopify webhooks to receive real-time notifications about orders and fulfillments. Two webhook endpoints need to be configured.
Order webhook
When a customer places an order on your reseller store, Shopify should send the orders/create webhook to:
POST https://api.example.com/v1/orders/webhook This triggers the order routing pipeline — the platform matches line items to source stores by vendor tag and creates sync jobs to place orders with suppliers.
Fulfillment webhook
When a source store fulfills an order, Shopify should send the fulfillments/create webhook to:
POST https://api.example.com/v1/fulfillments/webhook This triggers the reverse sync — tracking information is propagated from the source store back to the reseller store, so customers receive shipping confirmations.
HMAC verification
Both webhook endpoints are protected by HMAC-SHA256 signature verification. Shopify signs every webhook payload with your store’s webhook secret, and the API verifies it using:
- The
X-Shopify-Hmac-SHA256header (base64-encoded signature) - The
X-Shopify-Shop-Domainheader (identifies which store sent it)
The webhook secret is set when you create a reseller or source store — make sure the secret in your Shopify webhook configuration matches the one you provided to the API.
Setting up in Shopify
- Go to Settings > Notifications > Webhooks in your Shopify admin
- Click Create webhook
- For the reseller store, set the
orders/createtopic pointing to/v1/orders/webhook - For source stores, set the
fulfillments/createtopic pointing to/v1/fulfillments/webhook - Ensure the webhook secret matches what you provided when creating the store in the API
What’s next?
- Quickstart — Route your first order end-to-end
- Fulfillment Sync — Learn more about fulfillment propagation