Webhooks
If you are using our Shopify App, this section is irrelevant and you should follow Installing our Shopify App instead. See Purple Dot Overview for the comparison of our Shopify App vs. Platform integrations.
This reference documents available webhook subscriptions.
Webhooks allow you to stay in sync with Purple Dot store data or perform an action after a specific event occurs in a store.
Webhooks are a performant alternative to continuously polling for changes to a store's data.
You can configure webhook subscriptions on the Integration settings page of the Merchant Portal.
Note: Webhooks use the HTTP method POST
to deliver requests to the provided webhook URL.
This webhook is triggered whenever
a new waitlist is created, or
stock levels on any existing waitlist are updated, or
shoppers make, change or cancel pre orders for a product on a live waitlist, or
a waitlist is paused
Expected latency is a few seconds from when the relevant event occurs in the store. Each webhook delivery is attempted up to 3 times.
When
a new waitlist is created, or
stock levels on any existing waitlist are updated, or
shoppers make, change or cancel pre orders for a product on a live waitlist
When
a waitlist is paused
This webhook is triggered whenever
a new preorder is created, or
an existing preorder is updated or
an existing preorder is cancelled or
a line item in an existing preorder is cancelled
Expected latency is a few seconds from when the relevant event occurs in the store.
event
: Can have one of the following values:pre_order.created
(triggered when the preorder is placed)pre_order.updated
(triggered when the details of the preorder are updated)pre_order.cancelled
(triggered when the whole preorder or a line item in the preorder is cancelled)
data
: Contains the preorder dataid
- The Purple Dot internal pre-order IDorder_number
- The Purple Dot order reference numbercurrency
- The presentment currency of the ordercreated_at
- The time at which the order was createdcancelled_at
- The time at which the whole order was cancelled (null if not cancelled)cancel_reason
- The reason for the cancellationemail
- The customer emailline_items
- Array of line itemsid
- The Purple Dot ID of the line itemquantity
- The quantity of the line itemproduct_id
- The Shopify ID of the line item's productvariant_id
- The Shopify ID of the line item's variantsku
- The SKU of the line item's variantname
- The name of the line item's varianttaxable
- Whether the line item's variant is taxabletotal_discount
- The total amount of discounts applied to the line itemtax_lines
- The taxes applied to the line itemprice
- The total price of the itemcancelled_at
- The time at which the line item was cancelled (null if not cancelled)
shipping_address
address1
address2
city
country
- The English name of the countrycountry_code
- The ISO3166 code of the countryprovince_code
- The ISO3166 code of the second level administrative subdivisionpostal_code
first_name
last_name
phone
shipping_lines
- An array of shipping ratesprice
- The total price of the shipping ratetitle
- The user-facing name of the shipping ratecode
- The shipping rate carrier codetax_lines
- The taxes applied to the shipping rate
subtotal_price
- The total of the line items before taxes and shippingtotal_discounts
- The total discounts applied to the ordertotal_tax
- The total tax on the ordertax_included
- Whether the tax is included in listed prices or nottax_lines
- All the taxes applied to the ordertotal_price
- The order totalexported_orders
- Any orders that were exported to Shopify from this pre-orderid
- The Shopify ID of the order that was exportedorder_number
- The Shopify order numbercreated_at
- The time at which the order was exportedline_items
- The pre-order line items that were exportedid
- The Shopify ID of the line itemline_item_id
- The Purple Dot ID of the line item
Last updated