Triggered when an order is created and its status is updated to "APPROVED"
.
Learn more about eCommerce webhook payload structure.
Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.ecom.v1.order
.
Event name. Expected approved
.
ID of the entity associated with the event.
Event timestamp.
Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
If present, indicates the action that triggered the event.
Event information.
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "wix.ecom.v1.order_approved",
"instanceId": "<app-instance-id>",
"data": "<stringified-JSON>",
// The identity field is sent as a stringified JSON
"identity": {
"identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
"anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR
"memberId": "<memberId>", // in case of MEMBER
"wixUserId": "<wixUserId>", // in case of WIX_USER
"appId": "<appId>" // in case of APP
}
}
}
{
"id": "162075ea-7271-411b-b555-de545e8e6f38",
"entityFqdn": "wix.ecom.v1.order",
"slug": "approved",
"entityId": "e994ac9d-26b0-4f81-8047-00a2e964d6bf",
"actionEvent": {
"body": {
"order": {
"id": "e994ac9d-26b0-4f81-8047-00a2e964d6bf",
"number": "10002",
"createdDate": "2024-01-28T05:32:47.346Z",
"updatedDate": "2024-01-28T14:16:58.520Z",
"lineItems": [
{
"id": "00000000-0000-0000-0000-000000000001",
"productName": {
"original": "MENU PREBIOTIC",
"translated": "MENU PREBIOTICO"
},
"catalogReference": {
"catalogItemId": "58620c7f-6bd5-ec74-c139-3bf17ff10151",
"appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
"options": {
"options": {},
"variantId": "00000000-0000-0000-0000-000000000000"
}
},
"quantity": 1,
"totalDiscount": {
"amount": "0",
"formattedAmount": "$0.00"
},
"descriptionLines": [],
"image": {
"id": "a409be_82ef75d567d645d6adc4df0a8f415cff~mv2.png",
"url": "https://static.wixstatic.com/media/a409be_82ef75d567d645d6adc4df0a8f415cff~mv2.png/v1/fit/w_1080,h_1080,q_90/file.png",
"height": 1080,
"width": 1080
},
"physicalProperties": {
"sku": "",
"shippable": false
},
"itemType": {
"preset": "DIGITAL"
},
"price": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"priceBeforeDiscounts": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"totalPriceBeforeTax": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"totalPriceAfterTax": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"paymentOption": "FULL_PAYMENT_ONLINE",
"taxDetails": {
"taxableAmount": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"taxRate": "0",
"totalTax": {
"amount": "0.0",
"formattedAmount": "$0.00"
}
},
"digitalFile": {
"fileId": "a409be_3f0ebf7df29c4d7cabbfc0cd81693b2b.pdf",
"expirationDate": "2024-02-27T05:32:47.346Z"
},
"locations": [],
"lineItemPrice": {
"amount": "249.00",
"formattedAmount": "$249.00"
}
}
],
"buyerInfo": {
"contactId": "24de6f0b-60ce-4faa-9138-2e39f1415615",
"email": "janedoe@example.com",
"visitorId": "4c7ce95c-9fb3-417d-9f02-b41e82b841f7"
},
"paymentStatus": "PAID",
"fulfillmentStatus": "FULFILLED",
"buyerLanguage": "en",
"weightUnit": "KG",
"currency": "MXN",
"taxIncludedInPrices": false,
"siteLanguage": "en",
"priceSummary": {
"subtotal": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"shipping": {
"amount": "0",
"formattedAmount": "$0.00"
},
"tax": {
"amount": "0.0",
"formattedAmount": "$0.00"
},
"discount": {
"amount": "0",
"formattedAmount": "$0.00"
},
"total": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"totalAdditionalFees": {
"amount": "0",
"formattedAmount": "$0.00"
}
},
"billingInfo": {
"address": {
"city": "New York",
"countryFullname": "United States",
"subdivisionFullname": "New York",
"addressLine": "525 5th Avenue",
"country": "US",
"postalCode": "10173",
"subdivision": "US-NY"
},
"contactDetails": {
"firstName": "Jane",
"lastName": "Doe",
"phone": "0555555555"
}
},
"status": "APPROVED",
"archived": false,
"taxSummary": {
"totalTax": {
"amount": "0.0",
"formattedAmount": "$0.00"
},
"manualTaxRate": "0"
},
"appliedDiscounts": [],
"activities": [
{
"id": "9b530b37-c34c-4364-8fa7-c83410ebadbd",
"createdDate": "2024-01-28T05:32:47.346Z",
"type": "ORDER_PLACED"
},
{
"id": "d8ea672c-04fb-45a6-8f31-0c7705ba4941",
"createdDate": "2024-01-28T14:16:58.306Z",
"type": "ORDER_PAID"
}
],
"attributionSource": "UNSPECIFIED",
"createdBy": {},
"channelInfo": {
"type": "WEB"
},
"checkoutId": "885e30c9-720b-419e-a42b-af2497de56fa",
"customFields": [],
"cartId": "86db2e7c-be00-49de-8204-c9375f9fc553",
"payNow": {
"subtotal": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"shipping": {
"amount": "0",
"formattedAmount": "$0.00"
},
"tax": {
"amount": "0.0",
"formattedAmount": "$0.00"
},
"discount": {
"amount": "0",
"formattedAmount": "$0.00"
},
"total": {
"amount": "249.00",
"formattedAmount": "$249.00"
},
"totalAdditionalFees": {
"amount": "0",
"formattedAmount": "$0.00"
}
},
"balanceSummary": {
"balance": {
"amount": "0.00",
"formattedAmount": "$0.00"
},
"paid": {
"amount": "249.0",
"formattedAmount": "$249.00"
},
"refunded": {
"amount": "0",
"formattedAmount": "$0.00"
}
},
"additionalFees": [],
"purchaseFlowId": "2e6a8926-2997-4294-b871-7176cfbc3566"
}
}
},
"eventTime": "2024-01-28T14:16:58.826960306Z",
"triggeredByAnonymizeRequest": false
}