@wix/ditto-codegen-public 1.0.162 → 1.0.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs-output/api-docs/bookings-bookings-onBookingCanceled-doc.txt +169 -0
- package/dist/docs-output/api-docs/bookings-bookings-onBookingCreated-doc.txt +154 -0
- package/dist/docs-output/api-docs/crm-contacts-onContactCreated-doc.txt +87 -171
- package/dist/docs-output/api-docs/crm-contacts-onContactDeleted-doc.txt +58 -0
- package/dist/docs-output/api-docs/crm-contacts-onContactUpdated-doc.txt +99 -0
- package/dist/docs-output/api-docs/data-items-get-doc.txt +95 -54
- package/dist/docs-output/api-docs/data-items-insert-doc.txt +235 -43
- package/dist/docs-output/api-docs/data-items-onDataItemCreated-doc.txt +61 -0
- package/dist/docs-output/api-docs/data-items-onDataItemDeleted-doc.txt +58 -0
- package/dist/docs-output/api-docs/data-items-onDataItemUpdated-doc.txt +61 -0
- package/dist/docs-output/api-docs/data-items-query-doc.txt +507 -302
- package/dist/docs-output/api-docs/data-items-remove-doc.txt +120 -40
- package/dist/docs-output/api-docs/data-items-update-doc.txt +425 -46
- package/dist/docs-output/api-docs/ecom-cart-addToCart-doc.txt +488 -0
- package/dist/docs-output/api-docs/ecom-cart-createCart-doc.txt +518 -0
- package/dist/docs-output/api-docs/ecom-cart-createCheckout-doc.txt +155 -0
- package/dist/docs-output/api-docs/ecom-cart-deleteCart-doc.txt +92 -0
- package/dist/docs-output/api-docs/ecom-cart-getCart-doc.txt +376 -0
- package/dist/docs-output/api-docs/ecom-cart-onCartCreated-doc.txt +89 -80
- package/dist/docs-output/api-docs/ecom-cart-onCartUpdated-doc.txt +91 -81
- package/dist/docs-output/api-docs/ecom-cart-removeLineItemsFromCart-doc.txt +321 -0
- package/dist/docs-output/api-docs/ecom-cart-updateCart-doc.txt +539 -0
- package/dist/docs-output/api-docs/ecom-checkout-addToCheckout-doc.txt +1005 -0
- package/dist/docs-output/api-docs/ecom-checkout-createCheckout-doc.txt +1641 -0
- package/dist/docs-output/api-docs/ecom-checkout-getCheckout-doc.txt +1027 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCompleted-doc.txt +151 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCreated-doc.txt +150 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutUpdated-doc.txt +150 -0
- package/dist/docs-output/api-docs/ecom-checkout-removeLineItemsFromCheckout-doc.txt +879 -0
- package/dist/docs-output/api-docs/ecom-checkout-updateCheckout-doc.txt +1011 -0
- package/dist/docs-output/api-docs/ecom-currentCart-getCurrentCart-doc.txt +368 -322
- package/dist/docs-output/api-docs/ecom-currentCart-updateCurrentCart-doc.txt +506 -321
- package/dist/docs-output/api-docs/ecom-orders-bulkUpdateOrders-doc.txt +1040 -0
- package/dist/docs-output/api-docs/ecom-orders-cancelOrder-doc.txt +608 -0
- package/dist/docs-output/api-docs/ecom-orders-getOrder-doc.txt +926 -0
- package/dist/docs-output/api-docs/ecom-orders-onOrderCreated-doc.txt +245 -0
- package/dist/docs-output/api-docs/ecom-orders-onOrderUpdated-doc.txt +244 -0
- package/dist/docs-output/api-docs/ecom-orders-searchOrders-doc.txt +670 -0
- package/dist/docs-output/api-docs/ecom-orders-updateOrder-doc.txt +818 -0
- package/dist/docs-output/api-docs/search-wixSiteSearch-search-doc.txt +162 -0
- package/dist/docs-output/api-docs/stores-collections-addProductsToCollection-doc.txt +86 -0
- package/dist/docs-output/api-docs/stores-collections-createCollection-doc.txt +108 -0
- package/dist/docs-output/api-docs/stores-collections-getCollection-doc.txt +102 -0
- package/dist/docs-output/api-docs/stores-collections-queryCollections-doc.txt +209 -0
- package/dist/docs-output/api-docs/stores-collections-removeProductsFromCollection-doc.txt +86 -0
- package/dist/docs-output/api-docs/stores-collections-updateCollection-doc.txt +110 -0
- package/dist/docs-output/api-docs/stores-inventory-queryInventory-doc.txt +98 -0
- package/dist/docs-output/api-docs/stores-inventory-updateInventoryVariants-doc.txt +249 -0
- package/dist/docs-output/api-docs/stores-inventoryItemsV3-queryInventoryItems-doc.txt +236 -0
- package/dist/docs-output/api-docs/stores-inventoryItemsV3-updateInventoryItem-doc.txt +139 -0
- package/dist/docs-output/api-docs/stores-productsV3-createProduct-doc.txt +1697 -0
- package/dist/docs-output/api-docs/stores-productsV3-deleteProduct-doc.txt +73 -0
- package/dist/docs-output/api-docs/stores-productsV3-getProduct-doc.txt +933 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductCreated-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductDeleted-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductUpdated-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-queryProducts-doc.txt +1051 -0
- package/dist/docs-output/api-docs/stores-productsV3-searchProducts-doc.txt +1144 -0
- package/dist/docs-output/api-docs/stores-productsV3-updateProduct-doc.txt +1730 -1600
- package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-queryVariants-doc.txt +290 -0
- package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-searchVariants-doc.txt +353 -0
- package/dist/out.js +24996 -553
- package/package.json +2 -2
- package/dist/docs-output/api-docs/data-items-onDataItemCreated.txt +0 -103
- package/dist/docs-output/api-docs/stores-product-onProductCreated-doc.txt +0 -118
- package/dist/docs-output/api-docs/stores-productV3-onProductCreated-doc.txt +0 -184
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<ecom_cart_createCheckout>
|
|
2
|
+
<description>
|
|
3
|
+
# Method name:
|
|
4
|
+
|
|
5
|
+
ecom.cart.createCheckout(_id: string, options: CreateCheckoutOptions)
|
|
6
|
+
|
|
7
|
+
# Method Link:
|
|
8
|
+
|
|
9
|
+
https://dev.wix.com/docs/sdk/backend-modules/ecom/cart/create-checkout
|
|
10
|
+
|
|
11
|
+
# Method Description:
|
|
12
|
+
|
|
13
|
+
Creates a checkout from a cart.
|
|
14
|
+
|
|
15
|
+
If a checkout for the specified cart already exists, that checkout is
|
|
16
|
+
updated with any new information from the cart.
|
|
17
|
+
|
|
18
|
+
> **Note:** `channelType` is a required field.
|
|
19
|
+
|
|
20
|
+
# Method Permissions:
|
|
21
|
+
|
|
22
|
+
- ECOM.CREATE_CHECKOUT_FROM_CART
|
|
23
|
+
|
|
24
|
+
# Method Permissions Scopes IDs:
|
|
25
|
+
|
|
26
|
+
undefined
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Method Code Examples:
|
|
31
|
+
|
|
32
|
+
## Create a checkout from a cart
|
|
33
|
+
|
|
34
|
+
```javascript
|
|
35
|
+
/**************************************
|
|
36
|
+
* Backend code - my-backend-file.web.js/ts *
|
|
37
|
+
*************************************/
|
|
38
|
+
|
|
39
|
+
import { Permissions, webMethod } from '@wix/web-methods';
|
|
40
|
+
import { cart } from '@wix/ecom';
|
|
41
|
+
|
|
42
|
+
export const myCreateCheckoutFunction = webMethod(Permissions.Anyone, async (cartId, options) => {
|
|
43
|
+
try {
|
|
44
|
+
const checkoutId = await cart.createCheckout(cartId, options);
|
|
45
|
+
console.log('Success! Checkout created, checkoutId:', checkoutId);
|
|
46
|
+
return checkoutId;
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error(error);
|
|
49
|
+
// Handle the error
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/*************
|
|
54
|
+
* Page code *
|
|
55
|
+
************/
|
|
56
|
+
|
|
57
|
+
import { myCreateCheckoutFunction } from 'backend/my-backend-file.web';
|
|
58
|
+
|
|
59
|
+
// Sample cartId:
|
|
60
|
+
const cartId = '96a61a4b-6b61-47d1-a039-0213a8230ccd';
|
|
61
|
+
|
|
62
|
+
// Sample options object:
|
|
63
|
+
const options = {
|
|
64
|
+
// channelType is a required field
|
|
65
|
+
"channelType": "WEB",
|
|
66
|
+
"email": "janedoe@example.com",
|
|
67
|
+
"shippingAddress": {
|
|
68
|
+
"addressLine1": "235 West 23rd Street",
|
|
69
|
+
"addressLine2": "3rd floor",
|
|
70
|
+
"city": "New York",
|
|
71
|
+
"country": "US",
|
|
72
|
+
"postalCode": "10011",
|
|
73
|
+
"streetAddress": {
|
|
74
|
+
"name": "West 23rd Street",
|
|
75
|
+
"number": "235"
|
|
76
|
+
},
|
|
77
|
+
"subdivision": "US-NY"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
myCreateCheckoutFunction(cartId, options)
|
|
82
|
+
.then((checkoutId) => {
|
|
83
|
+
console.log('Success! Checkout created, checkoutId:', checkoutId);
|
|
84
|
+
return checkoutId;
|
|
85
|
+
})
|
|
86
|
+
.catch((error) => {
|
|
87
|
+
console.error(error);
|
|
88
|
+
// Handle the error
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/* Promise resolves to:
|
|
92
|
+
*
|
|
93
|
+
* {"checkoutId": "a43420aa-986b-456a-a2f7-7ea5c80e9007"}
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
</description>
|
|
100
|
+
<type_definition>
|
|
101
|
+
```
|
|
102
|
+
Method: ecom.cart.createCheckout(_id, options)
|
|
103
|
+
Description: Creates a checkout from a cart. If a checkout for the specified cart already exists, that checkout is updated with any new information from the cart. > **Note:** `channelType` is a required field.
|
|
104
|
+
Method parameters:
|
|
105
|
+
param name: _id | type: string | description: Cart GUID. | required: true
|
|
106
|
+
param name: options | type: CreateCheckoutOptions | description: Checkout creation options.
|
|
107
|
+
- name: billingAddress | type: Address | description: Billing address. Used for calculating tax if all the items in the cart are not shippable.
|
|
108
|
+
- name: addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
109
|
+
- name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
110
|
+
- name: city | type: string | description: City name.
|
|
111
|
+
- name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
112
|
+
- name: location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
|
|
113
|
+
- name: latitude | type: number | description: Address latitude.
|
|
114
|
+
- name: longitude | type: number | description: Address longitude.
|
|
115
|
+
- name: postalCode | type: string | description: Postal or zip code.
|
|
116
|
+
- name: streetAddress | type: StreetAddress | description: Street address.
|
|
117
|
+
- name: name | type: string | description: Street name.
|
|
118
|
+
- name: number | type: string | description: Street number.
|
|
119
|
+
- name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
120
|
+
- name: channelType | type: ChannelType | description: __Required.__ Sales channel type.
|
|
121
|
+
enum:
|
|
122
|
+
AMAZON: [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop).
|
|
123
|
+
BACKOFFICE_MERCHANT: Wix merchant backoffice.
|
|
124
|
+
CLASS_PASS: [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass).
|
|
125
|
+
EBAY: [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop).
|
|
126
|
+
ETSY: [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel).
|
|
127
|
+
FACEBOOK: [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops).
|
|
128
|
+
FAIRE_COM: [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app).
|
|
129
|
+
GLOBAL_E: Global-E sales channel.
|
|
130
|
+
OTHER_PLATFORM: Other sales platform.
|
|
131
|
+
PAYPAL_AGENTIC_CHECKOUT: PayPal Agentic Checkout sales channel.
|
|
132
|
+
POS: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395).
|
|
133
|
+
TIKTOK: [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel).
|
|
134
|
+
UNSPECIFIED: Unspecified sales channel. This value is not supported.
|
|
135
|
+
WEB: A web client.
|
|
136
|
+
WISH: Wish sales channel.
|
|
137
|
+
WIX_APP_STORE: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview).
|
|
138
|
+
WIX_INVOICES: Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings)
|
|
139
|
+
- name: email | type: string | description: Required when setting a billing or shipping address if the site visitor isn't logged in.
|
|
140
|
+
- name: selectedShippingOption | type: SelectedShippingOption | description: Selected shipping option.
|
|
141
|
+
- name: carrierId | type: string | description: Carrier GUID.
|
|
142
|
+
- name: code | type: string | description: Selected shipping option code. For example, "usps_std_overnight".
|
|
143
|
+
- name: shippingAddress | type: Address | description: Shipping address. Used for calculating tax and shipping (when applicable).
|
|
144
|
+
Return type: PROMISE<CreateCheckoutResponse>
|
|
145
|
+
- name: checkoutId | type: string | description: The newly created checkout's GUID.
|
|
146
|
+
Possible Errors:
|
|
147
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: CUSTOM_LINE_ITEM_MUST_HAVE_EXACTLY_ONE_PROPERTIES_TYPE
|
|
148
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: CUSTOM_LINE_ITEM_ONLY_ACCEPTS_PAYMENTS_ONLINE_AND_OFFLINE
|
|
149
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SITE_MUST_ACCEPT_PAYMENTS_TO_CREATE_CHECKOUT
|
|
150
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: LINE_ITEM_WITH_ZERO_QUANTITY
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
</type_definition>
|
|
155
|
+
</ecom_cart_createCheckout>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<ecom_cart_deleteCart>
|
|
2
|
+
<description>
|
|
3
|
+
# Method name:
|
|
4
|
+
|
|
5
|
+
ecom.cart.deleteCart(_id: string)
|
|
6
|
+
|
|
7
|
+
# Method Link:
|
|
8
|
+
|
|
9
|
+
https://dev.wix.com/docs/sdk/backend-modules/ecom/cart/delete-cart
|
|
10
|
+
|
|
11
|
+
# Method Description:
|
|
12
|
+
|
|
13
|
+
Deletes a cart.
|
|
14
|
+
|
|
15
|
+
# Method Permissions:
|
|
16
|
+
|
|
17
|
+
- ECOM.MODIFY_CARTS
|
|
18
|
+
|
|
19
|
+
# Method Permissions Scopes IDs:
|
|
20
|
+
|
|
21
|
+
undefined
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# Method Code Examples:
|
|
26
|
+
|
|
27
|
+
## Delete a cart
|
|
28
|
+
|
|
29
|
+
```javascript
|
|
30
|
+
/**************************************
|
|
31
|
+
* Backend code - my-backend-file.web.js/ts *
|
|
32
|
+
*************************************/
|
|
33
|
+
|
|
34
|
+
import { Permissions, webMethod } from '@wix/web-methods';
|
|
35
|
+
import { cart } from '@wix/ecom';
|
|
36
|
+
|
|
37
|
+
export const myDeleteCartFunction = webMethod(Permissions.Anyone, async (cartId) => {
|
|
38
|
+
try {
|
|
39
|
+
await cart.deleteCart(cartId);
|
|
40
|
+
console.log('Success! Deleted cart');
|
|
41
|
+
return;
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error(error);
|
|
44
|
+
// Handle the error
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/*************
|
|
49
|
+
* Page code *
|
|
50
|
+
************/
|
|
51
|
+
|
|
52
|
+
import { myDeleteCartFunction } from 'backend/my-backend-file.web';
|
|
53
|
+
|
|
54
|
+
// Sample cartId:
|
|
55
|
+
const cartId = '96a61a4b-6b61-47d1-a039-0213a8230ccd';
|
|
56
|
+
|
|
57
|
+
myDeleteCartFunction(cartId)
|
|
58
|
+
.then(() => {
|
|
59
|
+
console.log('Success! Deleted cart');
|
|
60
|
+
return;
|
|
61
|
+
})
|
|
62
|
+
.catch((error) => {
|
|
63
|
+
console.error(error);
|
|
64
|
+
// Handle the error
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## default
|
|
71
|
+
|
|
72
|
+
```javascript
|
|
73
|
+
try {
|
|
74
|
+
const result = await cart.deleteCart("3e2dc453-4bb0-3b4b-800f-9864315dcec6");
|
|
75
|
+
return result;
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error(error);
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
</description>
|
|
82
|
+
<type_definition>
|
|
83
|
+
```
|
|
84
|
+
Method: ecom.cart.deleteCart(_id)
|
|
85
|
+
Description: Deletes a cart.
|
|
86
|
+
Method parameters:
|
|
87
|
+
param name: _id | type: string | description: GUID of the cart to delete. | required: true
|
|
88
|
+
Return type: PROMISE<void>
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
</type_definition>
|
|
92
|
+
</ecom_cart_deleteCart>
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
<ecom_cart_getCart>
|
|
2
|
+
<description>
|
|
3
|
+
# Method name:
|
|
4
|
+
|
|
5
|
+
ecom.cart.getCart(_id: string)
|
|
6
|
+
|
|
7
|
+
# Method Link:
|
|
8
|
+
|
|
9
|
+
https://dev.wix.com/docs/sdk/backend-modules/ecom/cart/get-cart
|
|
10
|
+
|
|
11
|
+
# Method Description:
|
|
12
|
+
|
|
13
|
+
Retrieves a cart.
|
|
14
|
+
|
|
15
|
+
# Method Permissions:
|
|
16
|
+
|
|
17
|
+
- ECOM.READ_CARTS
|
|
18
|
+
|
|
19
|
+
# Method Permissions Scopes IDs:
|
|
20
|
+
|
|
21
|
+
undefined
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# Method Code Examples:
|
|
26
|
+
|
|
27
|
+
## Get a cart
|
|
28
|
+
|
|
29
|
+
```javascript
|
|
30
|
+
/**************************************
|
|
31
|
+
* Backend code - my-backend-file.web.js/ts *
|
|
32
|
+
*************************************/
|
|
33
|
+
|
|
34
|
+
import { Permissions, webMethod } from '@wix/web-methods';
|
|
35
|
+
import { cart } from '@wix/ecom';
|
|
36
|
+
|
|
37
|
+
export const myGetCartFunction = webMethod(Permissions.Anyone, async (cartId) => {
|
|
38
|
+
try {
|
|
39
|
+
const retrievedCart = await cart.getCart(cartId);
|
|
40
|
+
console.log('Success! Retrieved cart:', retrievedCart);
|
|
41
|
+
return retrievedCart;
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error(error);
|
|
44
|
+
// Handle the error
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/*************
|
|
49
|
+
* Page code *
|
|
50
|
+
************/
|
|
51
|
+
|
|
52
|
+
import { myGetCartFunction } from 'backend/my-backend-file.web';
|
|
53
|
+
|
|
54
|
+
// Sample cartId:
|
|
55
|
+
const cartId = '96a61a4b-6b61-47d1-a039-0213a8230ccd';
|
|
56
|
+
|
|
57
|
+
myGetCartFunction(cartId)
|
|
58
|
+
.then((cart) => {
|
|
59
|
+
const cartCheckoutId = cart.checkoutId;
|
|
60
|
+
const formattedCartTotal = cart.subtotal.formattedAmount;
|
|
61
|
+
const numOfCartLineItems = cart.lineItems.length;
|
|
62
|
+
|
|
63
|
+
console.log('Success! Retrieved cart:', cart);
|
|
64
|
+
return cart;
|
|
65
|
+
})
|
|
66
|
+
.catch((error) => {
|
|
67
|
+
console.error(error);
|
|
68
|
+
// Handle the error
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/* Promise resolves to:
|
|
72
|
+
*
|
|
73
|
+
* {
|
|
74
|
+
* "_id": "96a61a4b-6b61-47d1-a039-0213a8230ccd",
|
|
75
|
+
* "lineItems": [
|
|
76
|
+
* {
|
|
77
|
+
* "_id": "00000000-0000-0000-0000-000000000001",
|
|
78
|
+
* "quantity": 3,
|
|
79
|
+
* "catalogReference": {
|
|
80
|
+
* "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",
|
|
81
|
+
* "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"
|
|
82
|
+
* },
|
|
83
|
+
* "productName": {
|
|
84
|
+
* "original": "Shirt",
|
|
85
|
+
* "translated": "Shirt"
|
|
86
|
+
* },
|
|
87
|
+
* "url": "https://example.wixsite.com",
|
|
88
|
+
* "price": {
|
|
89
|
+
* "amount": "10",
|
|
90
|
+
* "convertedAmount": "10",
|
|
91
|
+
* "formattedAmount": "€10.00",
|
|
92
|
+
* "formattedConvertedAmount": "€10.00"
|
|
93
|
+
* },
|
|
94
|
+
* "fullPrice": {
|
|
95
|
+
* "amount": "10",
|
|
96
|
+
* "convertedAmount": "10",
|
|
97
|
+
* "formattedAmount": "€10.00",
|
|
98
|
+
* "formattedConvertedAmount": "€10.00"
|
|
99
|
+
* },
|
|
100
|
+
* "priceBeforeDiscounts": {
|
|
101
|
+
* "amount": "10",
|
|
102
|
+
* "convertedAmount": "10",
|
|
103
|
+
* "formattedAmount": "€10.00",
|
|
104
|
+
* "formattedConvertedAmount": "€10.00"
|
|
105
|
+
* },
|
|
106
|
+
* "descriptionLines": [],
|
|
107
|
+
* "image": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",
|
|
108
|
+
* "availability": {
|
|
109
|
+
* "status": "AVAILABLE"
|
|
110
|
+
* },
|
|
111
|
+
* "physicalProperties": {
|
|
112
|
+
* "sku": "364115376135191",
|
|
113
|
+
* "shippable": true
|
|
114
|
+
* },
|
|
115
|
+
* "couponScopes": [
|
|
116
|
+
* {
|
|
117
|
+
* "namespace": "stores",
|
|
118
|
+
* "group": {
|
|
119
|
+
* "name": "collection",
|
|
120
|
+
* "entityId": "00000000-000000-000000-000000000001"
|
|
121
|
+
* }
|
|
122
|
+
* },
|
|
123
|
+
* {
|
|
124
|
+
* "namespace": "stores",
|
|
125
|
+
* "group": {
|
|
126
|
+
* "name": "product",
|
|
127
|
+
* "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"
|
|
128
|
+
* }
|
|
129
|
+
* }
|
|
130
|
+
* ],
|
|
131
|
+
* "itemType": {
|
|
132
|
+
* "preset": "PHYSICAL"
|
|
133
|
+
* },
|
|
134
|
+
* "paymentOption": "FULL_PAYMENT_ONLINE"
|
|
135
|
+
* }
|
|
136
|
+
* ],
|
|
137
|
+
* "buyerInfo": {
|
|
138
|
+
* "contactId": "f7dc17a6-825a-466e-a78e-c4abea0217db",
|
|
139
|
+
* "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
|
|
140
|
+
* },
|
|
141
|
+
* "currency": "EUR",
|
|
142
|
+
* "conversionCurrency": "EUR",
|
|
143
|
+
* "buyerLanguage": "en",
|
|
144
|
+
* "siteLanguage": "en",
|
|
145
|
+
* "taxIncludedInPrices": false,
|
|
146
|
+
* "weightUnit": "KG",
|
|
147
|
+
* "subtotal": {
|
|
148
|
+
* "amount": "30",
|
|
149
|
+
* "convertedAmount": "30",
|
|
150
|
+
* "formattedAmount": "€30.00",
|
|
151
|
+
* "formattedConvertedAmount": "€30.00"
|
|
152
|
+
* },
|
|
153
|
+
* "appliedDiscounts": [],
|
|
154
|
+
* "inSync": false,
|
|
155
|
+
* "_createdDate": "2022-05-16T12:04:01.244Z",
|
|
156
|
+
* "_updatedDate": "2022-05-16T12:04:01.244Z"
|
|
157
|
+
* }
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
## default
|
|
165
|
+
|
|
166
|
+
```javascript
|
|
167
|
+
try {
|
|
168
|
+
const result = await cart.getCart("306911f6-3500-31a6-957c-010b5fec5fae");
|
|
169
|
+
return result;
|
|
170
|
+
} catch (error) {
|
|
171
|
+
console.error(error);
|
|
172
|
+
throw error;
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
</description>
|
|
176
|
+
<type_definition>
|
|
177
|
+
```
|
|
178
|
+
Method: ecom.cart.getCart(_id)
|
|
179
|
+
Description: Retrieves a cart.
|
|
180
|
+
Method parameters:
|
|
181
|
+
param name: _id | type: string | description: Cart GUID. | required: true
|
|
182
|
+
Return type: PROMISE<Cart>
|
|
183
|
+
- name: _createdDate | type: Date | description: Date and time the cart was created.
|
|
184
|
+
- name: _id | type: string | description: Cart GUID.
|
|
185
|
+
- name: _updatedDate | type: Date | description: Date and time the cart was updated.
|
|
186
|
+
- name: appliedDiscounts | type: Array<CartDiscount> | description: Cart discounts.
|
|
187
|
+
- ONE-OF:
|
|
188
|
+
- name: appliedDiscounts[].coupon | type: Coupon | description: Coupon details.
|
|
189
|
+
- name: appliedDiscounts[].coupon._id | type: string | description: Coupon GUID.
|
|
190
|
+
- name: appliedDiscounts[].coupon.code | type: string | description: Coupon code.
|
|
191
|
+
- name: appliedDiscounts[].merchantDiscount | type: MerchantDiscount | description: Merchant discount.
|
|
192
|
+
- name: appliedDiscounts[].merchantDiscount.amount | type: MultiCurrencyPrice | description: Discount value.
|
|
193
|
+
- name: appliedDiscounts[].merchantDiscount.amount.amount | type: string | description: Amount.
|
|
194
|
+
- name: appliedDiscounts[].merchantDiscount.amount.convertedAmount | type: string | description: Converted amount.
|
|
195
|
+
- name: appliedDiscounts[].merchantDiscount.amount.formattedAmount | type: string | description: Amount formatted with currency symbol.
|
|
196
|
+
- name: appliedDiscounts[].merchantDiscount.amount.formattedConvertedAmount | type: string | description: Converted amount formatted with currency symbol.
|
|
197
|
+
- name: businessLocationId | type: string | description: The business location GUID associated with the cart. To learn more, see the Locations API.
|
|
198
|
+
- name: buyerInfo | type: BuyerInfo | description: Buyer information.
|
|
199
|
+
- name: buyerInfo.contactId | type: string | description: Contact GUID. For more information, see the Contacts API.
|
|
200
|
+
- name: buyerInfo.email | type: string | description: Buyer email address.
|
|
201
|
+
- ONE-OF:
|
|
202
|
+
- name: buyerInfo.memberId | type: string | description: Member GUID. If the buyer is a site member.
|
|
203
|
+
- name: buyerInfo.userId | type: string | description: User GUID. If the buyer, or cart owner, is a Wix user.
|
|
204
|
+
- name: buyerInfo.visitorId | type: string | description: Visitor GUID. If the buyer is **not** a site member.
|
|
205
|
+
- name: buyerLanguage | type: string | description: Language for communication with the buyer. Defaults to the site language. For a site that supports multiple languages, this is the language the buyer selected.
|
|
206
|
+
- name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.
|
|
207
|
+
- name: checkoutId | type: string | description: GUID of the checkout that originated from this cart.
|
|
208
|
+
- name: contactInfo | type: AddressWithContact | description: Contact info.
|
|
209
|
+
- name: contactInfo.address | type: Address | description: Address.
|
|
210
|
+
- name: contactInfo.address.addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
211
|
+
- name: contactInfo.address.addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
212
|
+
- name: contactInfo.address.city | type: string | description: City name.
|
|
213
|
+
- name: contactInfo.address.country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
214
|
+
- name: contactInfo.address.countryFullname | type: string | description: Country's full name.
|
|
215
|
+
- name: contactInfo.address.location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
|
|
216
|
+
- name: contactInfo.address.location.latitude | type: number | description: Address latitude.
|
|
217
|
+
- name: contactInfo.address.location.longitude | type: number | description: Address longitude.
|
|
218
|
+
- name: contactInfo.address.postalCode | type: string | description: Postal or zip code.
|
|
219
|
+
- name: contactInfo.address.streetAddress | type: StreetAddress | description: Street address.
|
|
220
|
+
- name: contactInfo.address.streetAddress.name | type: string | description: Street name.
|
|
221
|
+
- name: contactInfo.address.streetAddress.number | type: string | description: Street number.
|
|
222
|
+
- name: contactInfo.address.subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
223
|
+
- name: contactInfo.address.subdivisionFullname | type: string | description: Subdivision full-name.
|
|
224
|
+
- name: contactInfo.contactDetails | type: FullAddressContactDetails | description: Contact details.
|
|
225
|
+
- name: contactInfo.contactDetails.company | type: string | description: Company name.
|
|
226
|
+
- name: contactInfo.contactDetails.firstName | type: string | description: First name.
|
|
227
|
+
- name: contactInfo.contactDetails.lastName | type: string | description: Last name.
|
|
228
|
+
- name: contactInfo.contactDetails.phone | type: string | description: Phone number.
|
|
229
|
+
- name: contactInfo.contactDetails.vatId | type: VatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
|
|
230
|
+
- name: contactInfo.contactDetails.vatId._id | type: string | description: Customer's tax GUID.
|
|
231
|
+
- name: contactInfo.contactDetails.vatId.type | type: VatType | description: Tax type. Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
|
|
232
|
+
enum:
|
|
233
|
+
CNPJ: CNPJ - for corporations
|
|
234
|
+
CPF: CPF - for individual tax payers.
|
|
235
|
+
UNSPECIFIED
|
|
236
|
+
- name: conversionCurrency | type: string | description: The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This reflects the customer’s preferred display currency and may differ from the site’s default currency. When no specific currency is selected by the customer, this matches the `currency` property.
|
|
237
|
+
- name: currency | type: string | description: The site’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.
|
|
238
|
+
- name: extendedFields | type: ExtendedFields | description: Fields extended by data extensions
|
|
239
|
+
- name: extendedFields.namespaces | type: Record<string, undefined> | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
240
|
+
- name: lineItems | type: Array<LineItem> | description: Line items.
|
|
241
|
+
- name: lineItems[]._id | type: string | description: Line item GUID.
|
|
242
|
+
- name: lineItems[].availability | type: ItemAvailabilityInfo | description: Item availability details.
|
|
243
|
+
- name: lineItems[].availability.quantityAvailable | type: number | description: Quantity available.
|
|
244
|
+
- name: lineItems[].availability.status | type: ItemAvailabilityStatus | description: Item availability status.
|
|
245
|
+
enum: AVAILABLE, NOT_AVAILABLE: Item is not in stock.
|
|
246
|
+
NOT_FOUND: Item does not exist.
|
|
247
|
+
PARTIALLY_AVAILABLE: Available quantity is less than requested.
|
|
248
|
+
- name: lineItems[].catalogOverrideFields | type: CatalogOverrideFields | description: Overriding values for catalog item properties. To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
249
|
+
- name: lineItems[].catalogOverrideFields.depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.
|
|
250
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines | type: Array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.
|
|
251
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].name | type: DescriptionLineName | description: Description line name.
|
|
252
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].name.original | type: string | description: Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
253
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].name.translated | type: string | description: Description line name translated into the buyer's language. Default: Same as `original`.
|
|
254
|
+
- ONE-OF:
|
|
255
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo | type: Color | description: Description line color value.
|
|
256
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo.code | type: string | description: HEX or RGB color code for display.
|
|
257
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo.original | type: string | description: Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
258
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo.translated | type: string | description: Description line color name translated into the buyer's language. Default: Same as `original`.
|
|
259
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].plainText | type: PlainTextValue | description: Description line plain text value.
|
|
260
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].plainText.original | type: string | description: Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
261
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].plainText.translated | type: string | description: Description line plain text value translated into the buyer's language. Default: Same as `original`.
|
|
262
|
+
- ONE-OF:
|
|
263
|
+
- name: lineItems[].catalogOverrideFields.fullPrice | type: string | description: Item price **before** discounts.
|
|
264
|
+
- name: lineItems[].catalogOverrideFields.image | type: string | description: Item image.
|
|
265
|
+
- name: lineItems[].catalogOverrideFields.paymentOption | type: PaymentOption | description: Payment method selected for the item.
|
|
266
|
+
- name: lineItems[].catalogOverrideFields.paymentOption.value | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
|
|
267
|
+
enum:
|
|
268
|
+
DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
|
|
269
|
+
FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
|
|
270
|
+
FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
|
|
271
|
+
MEMBERSHIP: Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online.
|
|
272
|
+
MEMBERSHIP_OFFLINE: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
|
|
273
|
+
MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER: Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.
|
|
274
|
+
- name: lineItems[].catalogOverrideFields.physicalProperties | type: PhysicalProperties | description: Physical properties of the item.
|
|
275
|
+
- name: lineItems[].catalogOverrideFields.physicalProperties.shippable | type: boolean | description: Whether this line item is shippable.
|
|
276
|
+
- name: lineItems[].catalogOverrideFields.physicalProperties.sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
277
|
+
- name: lineItems[].catalogOverrideFields.physicalProperties.weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.
|
|
278
|
+
- name: lineItems[].catalogOverrideFields.price | type: string | description: Item price **after** discounts.
|
|
279
|
+
- name: lineItems[].catalogOverrideFields.productName | type: ProductName | description: Item name.
|
|
280
|
+
- name: lineItems[].catalogOverrideFields.productName.original | type: string | description: __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). Min: 1 character. Max: 200 characters.
|
|
281
|
+
- name: lineItems[].catalogOverrideFields.productName.translated | type: string | description: Item name translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
|
|
282
|
+
- name: lineItems[].catalogOverrideFields.savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
|
|
283
|
+
- name: lineItems[].catalogReference | type: CatalogReference | description: Catalog and item reference. Holds GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin.
|
|
284
|
+
- name: lineItems[].catalogReference.appId | type: string | description: GUID of the app providing the catalog. You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/). For items from Wix catalogs, the following values always apply: + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"` + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
285
|
+
- name: lineItems[].catalogReference.catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.
|
|
286
|
+
- name: lineItems[].catalogReference.options | type: Record<string, any> | description: Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items. For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
|
|
287
|
+
- name: lineItems[].consentRequiredPaymentPolicy | type: string | description: Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
|
|
288
|
+
- name: lineItems[].customLineItem | type: boolean | description: Whether the line item is a custom line item. Custom line items don't trigger the Catalog service plugin.
|
|
289
|
+
- name: lineItems[].deliveryProfileId | type: string | description: Delivery profile GUID.
|
|
290
|
+
- name: lineItems[].depositAmount | type: MultiCurrencyPrice | description: Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
|
|
291
|
+
- name: lineItems[].descriptionLines | type: Array<DescriptionLine> | description: Line item description lines. Used for displaying the cart, checkout and order.
|
|
292
|
+
- name: lineItems[].extendedFields | type: ExtendedFields | description: Custom extended fields for the line item object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.
|
|
293
|
+
- name: lineItems[].fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed.
|
|
294
|
+
- name: lineItems[].fullPrice | type: MultiCurrencyPrice | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.
|
|
295
|
+
- name: lineItems[].image | type: string | description: Line item image details.
|
|
296
|
+
- name: lineItems[].itemType | type: ItemType | description: Item type. Either a preset type or custom.
|
|
297
|
+
- ONE-OF:
|
|
298
|
+
- name: lineItems[].itemType.custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.
|
|
299
|
+
- name: lineItems[].itemType.preset | type: ItemTypePreset | description: Preset item type.
|
|
300
|
+
enum: DIGITAL, GIFT_CARD, PHYSICAL, SERVICE, UNRECOGNISED
|
|
301
|
+
- name: lineItems[].lineItemPrice | type: MultiCurrencyPrice | description: Total price **after** catalog-defined discount and line item discounts.
|
|
302
|
+
- name: lineItems[].membersOnly | type: boolean | description: Whether the item can only be purchased by site members. Default: `false`
|
|
303
|
+
- name: lineItems[].modifierGroups | type: Array<ModifierGroup> | description: Modifier groups that were added to the item.
|
|
304
|
+
- name: lineItems[].modifierGroups[]._id | type: string | description: Modifier group GUID.
|
|
305
|
+
- name: lineItems[].modifierGroups[].modifiers | type: Array<ItemModifier> | description: List of modifiers in this group.
|
|
306
|
+
- name: lineItems[].modifierGroups[].modifiers[]._id | type: string | description: Modifier GUID.
|
|
307
|
+
- name: lineItems[].modifierGroups[].modifiers[].details | type: TranslatableString | description: Additional details.
|
|
308
|
+
- name: lineItems[].modifierGroups[].modifiers[].details.original | type: string | description: __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). Min: 1 character. Max: 200 characters.
|
|
309
|
+
- name: lineItems[].modifierGroups[].modifiers[].details.translated | type: string | description: String translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
|
|
310
|
+
- name: lineItems[].modifierGroups[].modifiers[].label | type: TranslatableString | description: Primary display label for the modifier.
|
|
311
|
+
- name: lineItems[].modifierGroups[].modifiers[].price | type: MultiCurrencyPrice | description: The price of the modifier.
|
|
312
|
+
- name: lineItems[].modifierGroups[].modifiers[].quantity | type: number | description: The quantity of this modifier.
|
|
313
|
+
- name: lineItems[].modifierGroups[].name | type: TranslatableString | description: Modifier group name.
|
|
314
|
+
- name: lineItems[].modifiersTotalPrice | type: MultiCurrencyPrice | description: Total price of all item modifiers. Included in the item price.
|
|
315
|
+
- name: lineItems[].paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
|
|
316
|
+
- name: lineItems[].physicalProperties | type: PhysicalProperties | description: Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
|
|
317
|
+
- name: lineItems[].policies | type: Array<Policy> | description: Policies to be displayed to the customer on the checkout page.
|
|
318
|
+
- name: lineItems[].policies[].content | type: string | description: Policy content - should be translated
|
|
319
|
+
- name: lineItems[].policies[].title | type: string | description: Policy title - should be translated
|
|
320
|
+
- name: lineItems[].price | type: MultiCurrencyPrice | description: Item price **after** catalog-defined discount and line item discounts.
|
|
321
|
+
- name: lineItems[].priceBeforeDiscounts | type: MultiCurrencyPrice | description: Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
|
|
322
|
+
- name: lineItems[].priceDescription | type: PriceDescription | description: Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
|
|
323
|
+
- name: lineItems[].priceDescription.original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
324
|
+
- name: lineItems[].priceDescription.translated | type: string | description: Price description translated into the buyer's language. Default: Same as `original`.
|
|
325
|
+
- name: lineItems[].priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created.
|
|
326
|
+
- name: lineItems[].productName | type: ProductName | description: Item name. + Stores - `product.name` + Bookings - `service.info.name` + Events - `ticket.name`
|
|
327
|
+
- name: lineItems[].quantity | type: number | description: Item quantity.
|
|
328
|
+
- name: lineItems[].rootCatalogItemId | type: string | description: In cases where `catalogReference.catalogItemId` is NOT the actual catalog item GUID, this field will return the true item's GUID. + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking GUID. Therefore this value is set to the service GUID. + in most cases, this field is the same as `catalogReference.catalogItemId`. + Used in membership validation.
|
|
329
|
+
- name: lineItems[].savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
|
|
330
|
+
- name: lineItems[].selectedMembership | type: SelectedMembership | description: Selected membership to be used as payment for this item. Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`. This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.
|
|
331
|
+
- name: lineItems[].selectedMembership._id | type: string | description: Membership GUID.
|
|
332
|
+
- name: lineItems[].selectedMembership.appId | type: string | description: GUID of the app providing this payment option.
|
|
333
|
+
- name: lineItems[].serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants.
|
|
334
|
+
- name: lineItems[].serviceProperties.numberOfParticipants | type: number | description: The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.
|
|
335
|
+
- name: lineItems[].serviceProperties.scheduledDate | type: Date | description: Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. For example, the start time of a class.
|
|
336
|
+
- name: lineItems[].subscriptionOptionInfo | type: SubscriptionOptionInfo | description: Subscription option information.
|
|
337
|
+
- name: lineItems[].subscriptionOptionInfo.description | type: Description | description: Subscription option description.
|
|
338
|
+
- name: lineItems[].subscriptionOptionInfo.description.original | type: string | description: Subscription option description.
|
|
339
|
+
- name: lineItems[].subscriptionOptionInfo.description.translated | type: string | description: Translated subscription option description.
|
|
340
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings | type: SubscriptionSettings | description: Subscription option settings.
|
|
341
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.autoRenewal | type: boolean | description: Whether subscription is renewed automatically at the end of each period.
|
|
342
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.billingCycles | type: number | description: Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.
|
|
343
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation | type: boolean | description: Whether to allow the customer to cancel the subscription..
|
|
344
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod | type: FreeTrialPeriod | description: Period until first cycle starts. If applied payNow will be 0 If None => no free trial
|
|
345
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod.frequency | type: SubscriptionFrequency | description: Frequency of period. Values: DAY, WEEK, MONTH, YEAR
|
|
346
|
+
enum: DAY, MONTH, UNDEFINED, WEEK, YEAR
|
|
347
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod.interval | type: number | description: interval of period
|
|
348
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.frequency | type: SubscriptionFrequency | description: Frequency of recurring payment.
|
|
349
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.interval | type: number | description: Interval of recurring payment. Default: `1`. If SubscriptionFrequency is Day the minimum interval is 7
|
|
350
|
+
- name: lineItems[].subscriptionOptionInfo.title | type: Title | description: Subscription option title.
|
|
351
|
+
- name: lineItems[].subscriptionOptionInfo.title.original | type: string | description: Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
352
|
+
- name: lineItems[].subscriptionOptionInfo.title.translated | type: string | description: Subscription option name translated into the buyer's language. Default: Same as `original`.
|
|
353
|
+
- name: lineItems[].taxGroupId | type: string | description: Tax group GUID for this line item.
|
|
354
|
+
- name: lineItems[].taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.
|
|
355
|
+
- ONE-OF:
|
|
356
|
+
- name: lineItems[].taxableAddress.addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.
|
|
357
|
+
enum: BILLING, BUSINESS, SHIPPING, UNKNOWN_TAXABLE_ADDRESS
|
|
358
|
+
- name: lineItems[].url | type: string | description: URL to the item's page on the site.
|
|
359
|
+
- name: overrideCheckoutUrl | type: string | description: `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page. This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
360
|
+
- name: paymentCurrency | type: string | description: The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies. If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.
|
|
361
|
+
- name: purchaseFlowId | type: string | description: Persistent GUID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
362
|
+
- name: revision | type: string | description: Revision number, which increments by 1 each time the Cart is updated.
|
|
363
|
+
- name: selectedShippingOption | type: SelectedShippingOption | description: Selected shipping option.
|
|
364
|
+
- name: selectedShippingOption.carrierId | type: string | description: Carrier GUID.
|
|
365
|
+
- name: selectedShippingOption.code | type: string | description: Selected shipping option code. For example, "usps_std_overnight".
|
|
366
|
+
- name: siteLanguage | type: string | description: Site language in which original values are displayed.
|
|
367
|
+
- name: taxIncludedInPrices | type: boolean | description: Whether tax is included in line item prices.
|
|
368
|
+
- name: weightUnit | type: WeightUnit | description: Weight measurement unit - defaults to site's weight unit.
|
|
369
|
+
enum:
|
|
370
|
+
KG: Kilograms.
|
|
371
|
+
LB: Pounds.
|
|
372
|
+
UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
|
|
373
|
+
|
|
374
|
+
```
|
|
375
|
+
</type_definition>
|
|
376
|
+
</ecom_cart_getCart>
|