Order Placed Payload

View as Markdown
Reference example only — Coi is the caller here, your endpoint is the receiver. Fired once, as a POST with a JSON body, right after an order completes. Configure the target URL at: Store > Store Settings > "Purchase" tab > "Webhook להזמנות". IMPORTANT — Cart is not only real products. Alongside actual purchased items, Cart carries pseudo-line-items using negative ProductID as a type tag, so every discount/fee affecting the order total is visible in one array instead of requiring separate fields: \-1 Delivery \-2 Coupon \-3 PayPal commission \-4 Payment/installment fee \-5 VAT \-6 Promotion (store discount rule) Any consumer that looks up "ProductID" against your own catalog MUST first filter out ProductID <= 0, or it will crash or silently mis-book a discount as a purchased product. A negative-ID line has Sku: null and an empty Options array. Cart\[\].Options is a real JSON array (not a double-encoded string) — each entry is {"Name": ..., "Price": ...}. No authentication header — treat the URL itself as the secret and keep it out of client-side code.