This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deprecation Notice:
This webhook has been replaced with the Cart Created Webhook and will be removed on September 4, 2024.
To help with migration from the Stores Cart API to the eCommerce Cart API, refer to the Cart Conversion Table for field changes in name and/or location.
Time the cart was created
Customer's wix ID
Weight unit used in this store
Currency used for pricing in this store
Totals for order's line items
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "com.wix.ecommerce.cart.api.v1.CartCreatedEvent",
"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
}
}
}
{
"cartId": "808b0f9c-730d-466a-8cbd-320996f659ef",
"weightUnit": "LB",
"buyerInfo": {
"email": "johndeo@anydomain.com",
"firstName": "John",
"id": "d11e902a-38f7-4bea-9f75-4d7678a47015",
"identityType": "MEMBER",
"lastName": "Doe",
"phone": "0548799654"
},
"currency": {
"currency": "USD",
"symbol": "$"
},
"totals": {
"discount": 0,
"quantity": 1,
"subtotal": 100,
"total": 100
},
"creationTime": "2020-08-12T08:07:47.281Z"
}