@wix/ditto-codegen-public 1.0.162 → 1.0.163
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 +929 -79
- 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,1011 @@
|
|
|
1
|
+
<ecom_checkout_updateCheckout>
|
|
2
|
+
<description>
|
|
3
|
+
# Method name:
|
|
4
|
+
|
|
5
|
+
ecom.checkout.updateCheckout(_id: string, checkout: UpdateCheckout, options: UpdateCheckoutOptions)
|
|
6
|
+
|
|
7
|
+
# Method Link:
|
|
8
|
+
|
|
9
|
+
https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/update-checkout
|
|
10
|
+
|
|
11
|
+
# Method Description:
|
|
12
|
+
|
|
13
|
+
Updates a checkout.
|
|
14
|
+
|
|
15
|
+
Use this method to update checkout fields such as billing and shipping info, or to add a coupon code or gift card.
|
|
16
|
+
|
|
17
|
+
To update a checkout's `lineItems`, `completed` status, or to remove coupons and gift cards, see these methods:
|
|
18
|
+
+ Add to Checkout: Add line items to the checkout.
|
|
19
|
+
+ Update Line Items Quantity: Update the quantity of 1 or more line items in the checkout.
|
|
20
|
+
+ Remove Line Items: Remove a line item from the checkout.
|
|
21
|
+
+ Mark Checkout As Completed: To update `completed` to `true` if the checkout was completed through a non-Wix orders or payments system.
|
|
22
|
+
+ Remove Coupon: To remove an applied coupon from the checkout.
|
|
23
|
+
+ Remove Gift Card: To remove an applied gift card from the checkout.
|
|
24
|
+
|
|
25
|
+
>**Notes:**
|
|
26
|
+
> + If nothing is passed in the request, the call will fail.
|
|
27
|
+
> + The `checkout.buyerInfo.email` may not be removed once it is set.
|
|
28
|
+
|
|
29
|
+
# Method Permissions:
|
|
30
|
+
|
|
31
|
+
- ECOM.MODIFY_CHECKOUTS
|
|
32
|
+
- ECOM.ADMIN_MODIFY_CHECKOUTS
|
|
33
|
+
|
|
34
|
+
# Method Permissions Scopes IDs:
|
|
35
|
+
|
|
36
|
+
undefined
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# Method Code Examples:
|
|
41
|
+
|
|
42
|
+
## Update a checkout
|
|
43
|
+
|
|
44
|
+
```javascript
|
|
45
|
+
/**************************************
|
|
46
|
+
* Backend code - my-backend-file.web.js/ts *
|
|
47
|
+
*************************************/
|
|
48
|
+
|
|
49
|
+
import { Permissions, webMethod } from '@wix/web-methods';
|
|
50
|
+
import { checkout } from '@wix/ecom';
|
|
51
|
+
|
|
52
|
+
export const myUpdateCheckoutFunction = webMethod(Permissions.Anyone, async (_id, checkoutInfo, options) => {
|
|
53
|
+
try {
|
|
54
|
+
const updatedCheckout = await checkout.updateCheckout(_id, checkoutInfo, options);
|
|
55
|
+
console.log('Success! Updated checkout: ', updatedCheckout);
|
|
56
|
+
return updatedCheckout;
|
|
57
|
+
} catch (error) {
|
|
58
|
+
console.error(error);
|
|
59
|
+
// Handle the error
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/*************
|
|
64
|
+
* Page code *
|
|
65
|
+
************/
|
|
66
|
+
|
|
67
|
+
import { myUpdateCheckoutFunction } from 'backend/my-backend-file.web';
|
|
68
|
+
|
|
69
|
+
// Sample checkoutId:
|
|
70
|
+
const _id = "21fe558e-21a0-4cff-a49b-a4ccb0f7414f";
|
|
71
|
+
|
|
72
|
+
const checkoutInfo = {
|
|
73
|
+
// New value for buyerNote
|
|
74
|
+
"buyerNote": "Please gift wrap this order. Thanks!"
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const options = {
|
|
78
|
+
// Coupon code to be applied to the checkout
|
|
79
|
+
"couponCode": "SUMMERSALE10"
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
myUpdateCheckoutFunction(_id, checkoutInfo, options)
|
|
83
|
+
.then((updatedCheckout) => {
|
|
84
|
+
const updatedBuyerNote = updatedCheckout.buyerNote;
|
|
85
|
+
// appliedCoupon boolean resolves to true if coupon object exists
|
|
86
|
+
const appliedCoupon = !!updatedCheckout.appliedDiscounts[0].coupon
|
|
87
|
+
|
|
88
|
+
console.log('Success! Updated checkout:', updatedCheckout);
|
|
89
|
+
return updatedCheckout;
|
|
90
|
+
})
|
|
91
|
+
.catch((error) => {
|
|
92
|
+
console.error(error);
|
|
93
|
+
// Handle the error
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/* Promise resolves to:
|
|
97
|
+
* {
|
|
98
|
+
* "_id": "21fe558e-21a0-4cff-a49b-a4ccb0f7414f",
|
|
99
|
+
* "lineItems": [
|
|
100
|
+
* {
|
|
101
|
+
* "_id": "00000000-0000-0000-0000-000000000001",
|
|
102
|
+
* "quantity": 3,
|
|
103
|
+
* "catalogReference": {
|
|
104
|
+
* "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",
|
|
105
|
+
* "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"
|
|
106
|
+
* },
|
|
107
|
+
* "productName": {
|
|
108
|
+
* "original": "Shirt",
|
|
109
|
+
* "translated": "Shirt"
|
|
110
|
+
* },
|
|
111
|
+
* "url": "https://giftsstore.wixsite.com/greatest-gifts/product-page/shirt",
|
|
112
|
+
* "price": {
|
|
113
|
+
* "amount": "10",
|
|
114
|
+
* "convertedAmount": "10",
|
|
115
|
+
* "formattedAmount": "€10.00",
|
|
116
|
+
* "formattedConvertedAmount": "€10.00"
|
|
117
|
+
* },
|
|
118
|
+
* "lineItemPrice": {
|
|
119
|
+
* "amount": "30",
|
|
120
|
+
* "convertedAmount": "30",
|
|
121
|
+
* "formattedAmount": "€30.00",
|
|
122
|
+
* "formattedConvertedAmount": "€30.00"
|
|
123
|
+
* },
|
|
124
|
+
* "fullPrice": {
|
|
125
|
+
* "amount": "10",
|
|
126
|
+
* "convertedAmount": "10",
|
|
127
|
+
* "formattedAmount": "€10.00",
|
|
128
|
+
* "formattedConvertedAmount": "€10.00"
|
|
129
|
+
* },
|
|
130
|
+
* "priceBeforeDiscounts": {
|
|
131
|
+
* "amount": "10",
|
|
132
|
+
* "convertedAmount": "10",
|
|
133
|
+
* "formattedAmount": "€10.00",
|
|
134
|
+
* "formattedConvertedAmount": "€10.00"
|
|
135
|
+
* },
|
|
136
|
+
* "totalPriceAfterTax": {
|
|
137
|
+
* "amount": "30",
|
|
138
|
+
* "convertedAmount": "30",
|
|
139
|
+
* "formattedAmount": "€30.00",
|
|
140
|
+
* "formattedConvertedAmount": "€30.00"
|
|
141
|
+
* },
|
|
142
|
+
* "totalPriceBeforeTax": {
|
|
143
|
+
* "amount": "30",
|
|
144
|
+
* "convertedAmount": "30",
|
|
145
|
+
* "formattedAmount": "€30.00",
|
|
146
|
+
* "formattedConvertedAmount": "€30.00"
|
|
147
|
+
* },
|
|
148
|
+
* "taxDetails": {
|
|
149
|
+
* "taxableAmount": {
|
|
150
|
+
* "amount": "30",
|
|
151
|
+
* "convertedAmount": "30",
|
|
152
|
+
* "formattedAmount": "€30.00",
|
|
153
|
+
* "formattedConvertedAmount": "€30.00"
|
|
154
|
+
* },
|
|
155
|
+
* "taxRate": "0",
|
|
156
|
+
* "totalTax": {
|
|
157
|
+
* "amount": "0",
|
|
158
|
+
* "convertedAmount": "0",
|
|
159
|
+
* "formattedAmount": "€0.00",
|
|
160
|
+
* "formattedConvertedAmount": "€0.00"
|
|
161
|
+
* },
|
|
162
|
+
* "rateBreakdown": []
|
|
163
|
+
* },
|
|
164
|
+
* "discount": {
|
|
165
|
+
* "amount": "0",
|
|
166
|
+
* "convertedAmount": "0",
|
|
167
|
+
* "formattedAmount": "€0.00",
|
|
168
|
+
* "formattedConvertedAmount": "€0.00"
|
|
169
|
+
* },
|
|
170
|
+
* "descriptionLines": [],
|
|
171
|
+
* "media": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",
|
|
172
|
+
* "availability": {
|
|
173
|
+
* "status": "AVAILABLE"
|
|
174
|
+
* },
|
|
175
|
+
* "physicalProperties": {
|
|
176
|
+
* "sku": "364115376135191",
|
|
177
|
+
* "shippable": true
|
|
178
|
+
* },
|
|
179
|
+
* "couponScopes": [
|
|
180
|
+
* {
|
|
181
|
+
* "namespace": "stores",
|
|
182
|
+
* "group": {
|
|
183
|
+
* "name": "collection",
|
|
184
|
+
* "entityId": "00000000-000000-000000-000000000001"
|
|
185
|
+
* }
|
|
186
|
+
* },
|
|
187
|
+
* {
|
|
188
|
+
* "namespace": "stores",
|
|
189
|
+
* "group": {
|
|
190
|
+
* "name": "product",
|
|
191
|
+
* "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"
|
|
192
|
+
* }
|
|
193
|
+
* }
|
|
194
|
+
* ],
|
|
195
|
+
* "itemType": {
|
|
196
|
+
* "preset": "PHYSICAL"
|
|
197
|
+
* },
|
|
198
|
+
* "paymentOption": "FULL_PAYMENT_ONLINE",
|
|
199
|
+
* "rootCatalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"
|
|
200
|
+
* }
|
|
201
|
+
* ],
|
|
202
|
+
* "shippingInfo": {
|
|
203
|
+
* "carrierServiceOptions": []
|
|
204
|
+
* },
|
|
205
|
+
* "buyerNote": "Please gift wrap this order. Thanks!",
|
|
206
|
+
* "buyerInfo": {
|
|
207
|
+
* "contactId": "a4bc8d90-a91b-467f-a775-77d65dd0442e",
|
|
208
|
+
* "email": "johnnydoe@example.com",
|
|
209
|
+
* "memberId": "ea3d74df-b7dc-4ca1-a7c9-c416b9017a86"
|
|
210
|
+
* },
|
|
211
|
+
* "conversionCurrency": "EUR",
|
|
212
|
+
* "priceSummary": {
|
|
213
|
+
* "subtotal": {
|
|
214
|
+
* "amount": "30",
|
|
215
|
+
* "convertedAmount": "30",
|
|
216
|
+
* "formattedAmount": "€30.00",
|
|
217
|
+
* "formattedConvertedAmount": "€30.00"
|
|
218
|
+
* },
|
|
219
|
+
* "shipping": {
|
|
220
|
+
* "amount": "0",
|
|
221
|
+
* "convertedAmount": "0",
|
|
222
|
+
* "formattedAmount": "€0.00",
|
|
223
|
+
* "formattedConvertedAmount": "€0.00"
|
|
224
|
+
* },
|
|
225
|
+
* "tax": {
|
|
226
|
+
* "amount": "0",
|
|
227
|
+
* "convertedAmount": "0",
|
|
228
|
+
* "formattedAmount": "€0.00",
|
|
229
|
+
* "formattedConvertedAmount": "€0.00"
|
|
230
|
+
* },
|
|
231
|
+
* "discount": {
|
|
232
|
+
* "amount": "0",
|
|
233
|
+
* "convertedAmount": "0",
|
|
234
|
+
* "formattedAmount": "€0.00",
|
|
235
|
+
* "formattedConvertedAmount": "€0.00"
|
|
236
|
+
* },
|
|
237
|
+
* "total": {
|
|
238
|
+
* "amount": "30",
|
|
239
|
+
* "convertedAmount": "30",
|
|
240
|
+
* "formattedAmount": "€30.00",
|
|
241
|
+
* "formattedConvertedAmount": "€30.00"
|
|
242
|
+
* },
|
|
243
|
+
* "additionalFees": {
|
|
244
|
+
* "amount": "0",
|
|
245
|
+
* "convertedAmount": "0",
|
|
246
|
+
* "formattedAmount": "€0.00",
|
|
247
|
+
* "formattedConvertedAmount": "€0.00"
|
|
248
|
+
* }
|
|
249
|
+
* },
|
|
250
|
+
* "calculationErrors": {
|
|
251
|
+
* "orderValidationErrors": []
|
|
252
|
+
* },
|
|
253
|
+
* "appliedDiscounts": [
|
|
254
|
+
* {
|
|
255
|
+
* "discountType": "GLOBAL",
|
|
256
|
+
* "lineItemIds": [],
|
|
257
|
+
* "coupon": {
|
|
258
|
+
* "_id": "fbb94b06-7447-4161-9c48-59bfcdc39e77",
|
|
259
|
+
* "code": "SUMMERSALE10",
|
|
260
|
+
* "amount": {
|
|
261
|
+
* "amount": "10.0",
|
|
262
|
+
* "convertedAmount": "10.0",
|
|
263
|
+
* "formattedAmount": "€10.00",
|
|
264
|
+
* "formattedConvertedAmount": "€10.00"
|
|
265
|
+
* },
|
|
266
|
+
* "name": "SUMMERSALE10",
|
|
267
|
+
* "couponType": "MoneyOff"
|
|
268
|
+
* }
|
|
269
|
+
* }
|
|
270
|
+
* ],
|
|
271
|
+
* "customFields": [],
|
|
272
|
+
* "weightUnit": "KG",
|
|
273
|
+
* "currency": "EUR",
|
|
274
|
+
* "channelType": "WEB",
|
|
275
|
+
* "siteLanguage": "en",
|
|
276
|
+
* "buyerLanguage": "en",
|
|
277
|
+
* "completed": false,
|
|
278
|
+
* "taxIncludedInPrice": false,
|
|
279
|
+
* "createdBy": {
|
|
280
|
+
* "memberId": "ea3d74df-b7dc-4ca1-a7c9-c416b9017a86"
|
|
281
|
+
* },
|
|
282
|
+
* "_createdDate": "2023-02-22T15:49:04.627Z",
|
|
283
|
+
* "_updatedDate": "2023-02-22T16:30:58.947Z",
|
|
284
|
+
* "payNow": {
|
|
285
|
+
* "subtotal": {
|
|
286
|
+
* "amount": "30",
|
|
287
|
+
* "convertedAmount": "30",
|
|
288
|
+
* "formattedAmount": "€30.00",
|
|
289
|
+
* "formattedConvertedAmount": "€30.00"
|
|
290
|
+
* },
|
|
291
|
+
* "shipping": {
|
|
292
|
+
* "amount": "0",
|
|
293
|
+
* "convertedAmount": "0",
|
|
294
|
+
* "formattedAmount": "€0.00",
|
|
295
|
+
* "formattedConvertedAmount": "€0.00"
|
|
296
|
+
* },
|
|
297
|
+
* "tax": {
|
|
298
|
+
* "amount": "0",
|
|
299
|
+
* "convertedAmount": "0",
|
|
300
|
+
* "formattedAmount": "€0.00",
|
|
301
|
+
* "formattedConvertedAmount": "€0.00"
|
|
302
|
+
* },
|
|
303
|
+
* "discount": {
|
|
304
|
+
* "amount": "0",
|
|
305
|
+
* "convertedAmount": "0",
|
|
306
|
+
* "formattedAmount": "€0.00",
|
|
307
|
+
* "formattedConvertedAmount": "€0.00"
|
|
308
|
+
* },
|
|
309
|
+
* "total": {
|
|
310
|
+
* "amount": "30",
|
|
311
|
+
* "convertedAmount": "30",
|
|
312
|
+
* "formattedAmount": "€30.00",
|
|
313
|
+
* "formattedConvertedAmount": "€30.00"
|
|
314
|
+
* },
|
|
315
|
+
* "additionalFees": {
|
|
316
|
+
* "amount": "0",
|
|
317
|
+
* "convertedAmount": "0",
|
|
318
|
+
* "formattedAmount": "€0.00",
|
|
319
|
+
* "formattedConvertedAmount": "€0.00"
|
|
320
|
+
* }
|
|
321
|
+
* },
|
|
322
|
+
* "payLater": {
|
|
323
|
+
* "subtotal": {
|
|
324
|
+
* "amount": "0",
|
|
325
|
+
* "convertedAmount": "0",
|
|
326
|
+
* "formattedAmount": "€0.00",
|
|
327
|
+
* "formattedConvertedAmount": "€0.00"
|
|
328
|
+
* },
|
|
329
|
+
* "shipping": {
|
|
330
|
+
* "amount": "0",
|
|
331
|
+
* "convertedAmount": "0",
|
|
332
|
+
* "formattedAmount": "€0.00",
|
|
333
|
+
* "formattedConvertedAmount": "€0.00"
|
|
334
|
+
* },
|
|
335
|
+
* "tax": {
|
|
336
|
+
* "amount": "0",
|
|
337
|
+
* "convertedAmount": "0",
|
|
338
|
+
* "formattedAmount": "€0.00",
|
|
339
|
+
* "formattedConvertedAmount": "€0.00"
|
|
340
|
+
* },
|
|
341
|
+
* "discount": {
|
|
342
|
+
* "amount": "0",
|
|
343
|
+
* "convertedAmount": "0",
|
|
344
|
+
* "formattedAmount": "€0.00",
|
|
345
|
+
* "formattedConvertedAmount": "€0.00"
|
|
346
|
+
* },
|
|
347
|
+
* "total": {
|
|
348
|
+
* "amount": "0",
|
|
349
|
+
* "convertedAmount": "0",
|
|
350
|
+
* "formattedAmount": "€0.00",
|
|
351
|
+
* "formattedConvertedAmount": "€0.00"
|
|
352
|
+
* },
|
|
353
|
+
* "additionalFees": {
|
|
354
|
+
* "amount": "0",
|
|
355
|
+
* "convertedAmount": "0",
|
|
356
|
+
* "formattedAmount": "€0.00",
|
|
357
|
+
* "formattedConvertedAmount": "€0.00"
|
|
358
|
+
* }
|
|
359
|
+
* },
|
|
360
|
+
* "membershipOptions": {
|
|
361
|
+
* "eligibleMemberships": [],
|
|
362
|
+
* "invalidMemberships": [],
|
|
363
|
+
* "selectedMemberships": {
|
|
364
|
+
* "memberships": []
|
|
365
|
+
* }
|
|
366
|
+
* },
|
|
367
|
+
* "additionalFees": [],
|
|
368
|
+
* "payNowTotalAfterGiftCard": {
|
|
369
|
+
* "amount": "30",
|
|
370
|
+
* "convertedAmount": "30",
|
|
371
|
+
* "formattedAmount": "€30.00",
|
|
372
|
+
* "formattedConvertedAmount": "€30.00"
|
|
373
|
+
* }
|
|
374
|
+
* }
|
|
375
|
+
*/
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## default
|
|
381
|
+
|
|
382
|
+
```javascript
|
|
383
|
+
try {
|
|
384
|
+
const result = await checkout.updateCheckout("3a877d07-dbb6-3e55-9258-ce307d5829e4", {
|
|
385
|
+
buyerInfo: {
|
|
386
|
+
email: "buyer@example.com"
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
return result;
|
|
390
|
+
} catch (error) {
|
|
391
|
+
console.error(error);
|
|
392
|
+
throw error;
|
|
393
|
+
}
|
|
394
|
+
```
|
|
395
|
+
</description>
|
|
396
|
+
<type_definition>
|
|
397
|
+
```
|
|
398
|
+
Method: ecom.checkout.updateCheckout(_id, checkout, options)
|
|
399
|
+
Description: Updates a checkout. Use this method to update checkout fields such as billing and shipping info, or to add a coupon code or gift card. To update a checkout's `lineItems`, `completed` status, or to remove coupons and gift cards, see these methods: + Add to Checkout: Add line items to the checkout. + Update Line Items Quantity: Update the quantity of 1 or more line items in the checkout. + Remove Line Items: Remove a line item from the checkout. + Mark Checkout As Completed: To update `completed` to `true` if the checkout was completed through a non-Wix orders or payments system. + Remove Coupon: To remove an applied coupon from the checkout. + Remove Gift Card: To remove an applied gift card from the checkout. >**Notes:** > + If nothing is passed in the request, the call will fail. > + The `checkout.buyerInfo.email` may not be removed once it is set.
|
|
400
|
+
Method parameters:
|
|
401
|
+
param name: _id | type: string | description: Checkout GUID. | required: true
|
|
402
|
+
param name: checkout | type: UpdateCheckout | description: none | required: true
|
|
403
|
+
- name: additionalFees | type: Array<AdditionalFee> | description: Additional Fees.
|
|
404
|
+
- name: code | type: string | description: Additional fee's unique code (or GUID) for future processing.
|
|
405
|
+
- name: lineItemIds | type: Array<string> | description: Optional - Line items associated with this additional fee. If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
|
|
406
|
+
- name: name | type: string | description: Translated additional fee's name.
|
|
407
|
+
- name: price | type: MultiCurrencyPrice | description: Additional fee's price.
|
|
408
|
+
- name: amount | type: string | description: Amount.
|
|
409
|
+
- name: priceAfterTax | type: MultiCurrencyPrice | description: Additional fee's price after tax.
|
|
410
|
+
- name: priceBeforeTax | type: MultiCurrencyPrice | description: Additional fee's price before tax.
|
|
411
|
+
- name: providerAppId | type: string | description: Provider's app id.
|
|
412
|
+
- name: source | type: AdditionalFeeSource | description: the source the additional fee was added from
|
|
413
|
+
enum:
|
|
414
|
+
ITEM: The additional fee was added on the item either via the catalog or on custom line item
|
|
415
|
+
MANUAL: The additional fee was added manually on the request
|
|
416
|
+
SERVICE_PLUGIN: The additional fee was added by an additional fee service plugin
|
|
417
|
+
SHIPPING: The additional fee was added by the shipping provider
|
|
418
|
+
UNKNOWN_ADDITIONAL_FEE_SOURCE
|
|
419
|
+
- name: taxDetails | type: ItemTaxFullDetails | description: Tax details.
|
|
420
|
+
- name: taxRate | type: string | description: Tax rate %, as a decimal point between 0 and 1.
|
|
421
|
+
- name: taxableAmount | type: MultiCurrencyPrice | description: Amount for which tax is calculated.
|
|
422
|
+
- name: totalTax | type: MultiCurrencyPrice | description: Calculated tax, based on `taxable_amount` and `tax_rate`.
|
|
423
|
+
- name: translatedName | type: string | description: The translated name of the additional fee. The translation language is determined by the `languages` field 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).
|
|
424
|
+
- name: billingInfo | type: AddressWithContact | description: Billing information.
|
|
425
|
+
- name: address | type: ApiAddress | description: Address.
|
|
426
|
+
- name: addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
427
|
+
- name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
428
|
+
- name: city | type: string | description: City name.
|
|
429
|
+
- name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
430
|
+
- name: location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
|
|
431
|
+
- name: latitude | type: number | description: Address latitude.
|
|
432
|
+
- name: longitude | type: number | description: Address longitude.
|
|
433
|
+
- name: postalCode | type: string | description: Postal or zip code.
|
|
434
|
+
- name: streetAddress | type: StreetAddress | description: Street address.
|
|
435
|
+
- name: name | type: string | description: Street name.
|
|
436
|
+
- name: number | type: string | description: Street number.
|
|
437
|
+
- 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.
|
|
438
|
+
- name: contactDetails | type: FullAddressContactDetails | description: Contact details.
|
|
439
|
+
- name: company | type: string | description: Company name.
|
|
440
|
+
- name: firstName | type: string | description: First name.
|
|
441
|
+
- name: lastName | type: string | description: Last name.
|
|
442
|
+
- name: phone | type: string | description: Phone number.
|
|
443
|
+
- name: vatId | type: CommonVatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
|
|
444
|
+
- name: _id | type: string | description: Customer's tax GUID.
|
|
445
|
+
- name: type | type: CommonVatType | description: Tax type. Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
|
|
446
|
+
enum:
|
|
447
|
+
CNPJ: CNPJ - for corporations
|
|
448
|
+
CPF: CPF - for individual tax payers.
|
|
449
|
+
UNSPECIFIED
|
|
450
|
+
- name: businessLocationId | type: string | description: The business location GUID associated with the checkout. To learn more, see the Locations API.
|
|
451
|
+
- name: buyerInfo | type: BuyerInfo | description: Buyer information.
|
|
452
|
+
- name: email | type: string | description: Buyer email address.
|
|
453
|
+
- ONE-OF:
|
|
454
|
+
- name: memberId | type: string | description: Member GUID (if site visitor is a site member).
|
|
455
|
+
- name: visitorId | type: string | description: Visitor GUID (if site visitor is **not** a member).
|
|
456
|
+
- name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.
|
|
457
|
+
- name: cartId | type: string | description: Cart GUID that this checkout was created from. Empty if this checkout wasn't created from a cart.
|
|
458
|
+
- name: customContentReference | type: CustomContentReference | description: Reference GUIDs for the app and component providing custom checkout page content. To access and manage custom checkout page content, 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).
|
|
459
|
+
- name: appId | type: string | description: GUID of the app providing the content. You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
460
|
+
- name: componentId | type: string | description: GUID of the component within the app it belongs to. You can get your component's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
461
|
+
- name: customFields | type: Array<CustomField> | description: Custom fields.
|
|
462
|
+
- name: title | type: string | description: Custom field title.
|
|
463
|
+
- name: translatedTitle | type: string | description: Translated custom field title.
|
|
464
|
+
- name: value | type: any | description: Custom field value. | required: true
|
|
465
|
+
- name: customSettings | type: CustomSettings | description: Additional settings for customization of the checkout process. > **Notes:** > * Custom settings can only be set when creating a checkout. > * To access and manage custom checkout page content, 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).
|
|
466
|
+
- name: disabledManualPayment | type: boolean | description: Whether to disable manual payment option for this checkout. Default: `false`
|
|
467
|
+
- name: disabledPolicyAgreementCheckbox | type: boolean | description: Whether to disable policy agreement checkout in the checkout page Default: `false`
|
|
468
|
+
- name: lockCouponCode | type: boolean | description: Whether to restrict the option to add or remove a coupon code on the checkout page. Default: `false`
|
|
469
|
+
- name: lockGiftCard | type: boolean | description: Whether to restrict the option to add or remove a gift card on the checkout page. Default: `false`
|
|
470
|
+
- name: extendedFields | type: ExtendedFields | description: Custom field data for the checkout object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
471
|
+
- name: 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).
|
|
472
|
+
- name: externalReference | type: ExternalReference | description: References to an external app and resource associated with this checkout. Used for integration and tracking across different platforms.
|
|
473
|
+
- name: appId | type: string | description: GUID of the app associated with the purchase flow. For example, the Wix Pay Links app GUID.
|
|
474
|
+
- name: resourceId | type: string | description: Reference to an external resource GUID. Used to link the purchase flow to a specific entity in an external system. For example, a Wix Pay Link GUID.
|
|
475
|
+
- name: membershipOptions | type: MembershipOptions | description: Memberships to apply when creating the order.
|
|
476
|
+
- name: selectedMemberships | type: SelectedMemberships | description: Selected membership to apply to this checkout.
|
|
477
|
+
- name: memberships | type: Array<SelectedMembership> | description: Selected memberships.
|
|
478
|
+
- name: _id | type: string | description: Membership GUID. | required: true
|
|
479
|
+
- name: appId | type: string | description: GUID of the app providing this payment option. | required: true
|
|
480
|
+
- name: lineItemIds | type: Array<string> | description: IDs of the line items this membership applies to. | required: true
|
|
481
|
+
- name: shippingInfo | type: ShippingInfo | description: Shipping information.
|
|
482
|
+
- name: selectedCarrierServiceOption | type: SelectedCarrierServiceOption | description: Selected option out of the options allowed for the `region`.
|
|
483
|
+
- name: carrierId | type: string | description: This carrier's unique GUID
|
|
484
|
+
- name: code | type: string | description: Unique identifier of selected option. For example, "usps_std_overnight".
|
|
485
|
+
- name: deliveryAllocations | type: Array<DeliveryAllocation> | description: Delivery solution allocations to different delivery carriers and delivery regions
|
|
486
|
+
- name: applicableLineItems | type: ApplicableLineItems | description: Populated if the delivery solution is a partially supplied by this carrier.
|
|
487
|
+
- name: lineItemIds | type: Array<string> | description: Line items that the delivery solution is for.
|
|
488
|
+
- name: deliveryCarrier | type: Carrier | description: The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers
|
|
489
|
+
- name: appId | type: string | description: The carrier app id
|
|
490
|
+
- name: code | type: string | description: Unique code that acts as an GUID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
491
|
+
- name: deliveryRegion | type: Region | description: The delivery region that are relevant for this delivery solution.
|
|
492
|
+
- name: _id | type: string | description: The delivery region id.
|
|
493
|
+
- name: name | type: string | description: The delivery region name.
|
|
494
|
+
- name: partial | type: boolean | description: If the delivery solution is a partial and doesn't apply to all items.
|
|
495
|
+
- name: shippingDestination | type: AddressWithContact | description: Shipping address and contact details.
|
|
496
|
+
- name: taxExemptGroupId | type: string | description: Tax exempt group GUID to use for tax exemptions.
|
|
497
|
+
param name: options | type: UpdateCheckoutOptions | description: Checkout update options.
|
|
498
|
+
- name: couponCode | type: string | description: Coupon code. The checkout can only hold 1 `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.
|
|
499
|
+
- name: customLineItems | type: Array<CustomLineItem> | description: Custom line items. Custom line items don't trigger the Catalog service plugin. To access and manage custom line items, 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).
|
|
500
|
+
- name: catalogReference | type: CatalogReference | description: Catalog and item reference. Includes 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.
|
|
501
|
+
- name: 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"`
|
|
502
|
+
- name: catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.
|
|
503
|
+
- name: 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).
|
|
504
|
+
- name: deliveryProfileId | type: string | description: Delivery profile GUID.
|
|
505
|
+
- name: depositAmount | type: string | description: Partial payment for the given item to be paid upfront during the checkout. Eligible for catalog items with type `DEPOSIT_ONLINE`. When omitted, the item's price will not be split and is expected to be paid in a single installment.
|
|
506
|
+
- name: descriptionLines | type: Array<DescriptionLine> | description: Custom line item description lines. Used for display purposes for the cart, checkout and order.
|
|
507
|
+
- name: name | type: DescriptionLineName | description: Description line name.
|
|
508
|
+
- 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).
|
|
509
|
+
- name: translated | type: string | description: Description line name translated into the buyer's language. Default: Same as `original`.
|
|
510
|
+
- ONE-OF:
|
|
511
|
+
- name: colorInfo | type: Color | description: Description line color value.
|
|
512
|
+
- name: code | type: string | description: HEX or RGB color code for display.
|
|
513
|
+
- name: 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).
|
|
514
|
+
- name: translated | type: string | description: Description line color name translated into the buyer's language. Default: Same as `original`.
|
|
515
|
+
- name: plainText | type: PlainTextValue | description: Description line plain text value.
|
|
516
|
+
- name: 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).
|
|
517
|
+
- name: translated | type: string | description: Description line plain text value translated into the buyer's language. Default: Same as `original`.
|
|
518
|
+
- ONE-OF:
|
|
519
|
+
- name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed. Default: `false`
|
|
520
|
+
- name: fullPrice | type: string | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.
|
|
521
|
+
- name: itemType | type: ItemType | description: Item type. Either a preset type or custom. | required: true
|
|
522
|
+
- ONE-OF:
|
|
523
|
+
- name: custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.
|
|
524
|
+
- name: preset | type: ItemTypePreset | description: Preset item type.
|
|
525
|
+
enum: DIGITAL, GIFT_CARD, PHYSICAL, SERVICE, UNRECOGNISED
|
|
526
|
+
- name: media | type: string | description: Custom line item media. + We only support images coming from Wix media manager, if you want to use an image from another source you must first upload it to [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) - `"wix:image://v1/3c76e2_c53...4ea4~mv2.jpg#originWidth=1000&originHeight=1000"`.
|
|
527
|
+
- name: membersOnly | type: boolean | description: Whether the item can only be purchased by site members. Default: `false`
|
|
528
|
+
- name: modifierGroups | type: Array<V1ModifierGroup> | description: Modifier groups that were added to the item.
|
|
529
|
+
- name: _id | type: string | description: Modifier group GUID.
|
|
530
|
+
- name: modifiers | type: Array<V1ItemModifier> | description: List of modifiers in this group.
|
|
531
|
+
- name: _id | type: string | description: Modifier GUID.
|
|
532
|
+
- name: details | type: TranslatableString | description: Additional details.
|
|
533
|
+
- name: 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.
|
|
534
|
+
- name: translated | type: string | description: String translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
|
|
535
|
+
- name: label | type: TranslatableString | description: Primary display label for the modifier.
|
|
536
|
+
- name: price | type: string | description: The price of the modifier.
|
|
537
|
+
- name: quantity | type: number | description: The quantity of this modifier.
|
|
538
|
+
- name: name | type: TranslatableString | description: Modifier group name.
|
|
539
|
+
- name: paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`. + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout. + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods. + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0. + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.
|
|
540
|
+
enum:
|
|
541
|
+
DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
|
|
542
|
+
FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
|
|
543
|
+
FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
|
|
544
|
+
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.
|
|
545
|
+
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`.
|
|
546
|
+
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.
|
|
547
|
+
- name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.
|
|
548
|
+
- name: shippable | type: boolean | description: Whether this line item is shippable.
|
|
549
|
+
- name: sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
550
|
+
- name: weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.
|
|
551
|
+
- name: policies | type: Array<Policy> | description: Policies to be displayed to the customer on the checkout page.
|
|
552
|
+
- name: content | type: string | description: Policy content - should be translated
|
|
553
|
+
- name: title | type: string | description: Policy title - should be translated
|
|
554
|
+
- name: price | type: string | description: Custom line item price. For security reasons, the `price` field should come from backend code, and not be passed from the frontend.
|
|
555
|
+
- name: 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".
|
|
556
|
+
- name: 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).
|
|
557
|
+
- name: translated | type: string | description: Price description translated into the buyer's language. Default: Same as `original`.
|
|
558
|
+
- name: priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created. Default: `false`
|
|
559
|
+
- name: productName | type: ProductName | description: Name of the item or product. | required: true
|
|
560
|
+
- name: 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.
|
|
561
|
+
- name: translated | type: string | description: Item name translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
|
|
562
|
+
- name: quantity | type: number | description: Custom line item quantity. Min: `1` Max: `100000`
|
|
563
|
+
- name: quantityAvailable | type: number | description: Item quantity available for purchase. Only return this if inventory is managed. Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
|
|
564
|
+
- name: 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.
|
|
565
|
+
- name: serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants. Used, among other things, when checking for valid memberships.
|
|
566
|
+
- name: 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.
|
|
567
|
+
- name: 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.
|
|
568
|
+
- name: taxGroupId | type: string | description: Tax group GUID for this custom line item.
|
|
569
|
+
- name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.
|
|
570
|
+
- ONE-OF:
|
|
571
|
+
- name: addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.
|
|
572
|
+
enum: BILLING, BUSINESS, SHIPPING, UNKNOWN_TAXABLE_ADDRESS
|
|
573
|
+
- name: url | type: string | description: URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.
|
|
574
|
+
- name: giftCardCode | type: string | description: Gift card code.
|
|
575
|
+
- name: giftCardRedeemAmount | type: string | description: Amount to redeem from the gift card referenced in `gift_card_code`.
|
|
576
|
+
- name: lineItems | type: Array<LineItem> | description: Catalog line items.
|
|
577
|
+
- name: 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).
|
|
578
|
+
- name: depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.
|
|
579
|
+
- name: descriptionLines | type: Array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.
|
|
580
|
+
- name: fullPrice | type: string | description: Item price **before** discounts.
|
|
581
|
+
- name: image | type: string | description: Item image.
|
|
582
|
+
- name: paymentOption | type: PaymentOption | description: Payment method selected for the item.
|
|
583
|
+
- name: value | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
|
|
584
|
+
- name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.
|
|
585
|
+
- name: price | type: string | description: Item price **after** discounts.
|
|
586
|
+
- name: productName | type: ProductName | description: Item name.
|
|
587
|
+
- name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
|
|
588
|
+
- name: catalogReference | type: CatalogReference | description: Catalog and item reference. Includes 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. | required: true
|
|
589
|
+
- name: 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.
|
|
590
|
+
- name: quantity | type: number | description: Item quantity. Min: `"1"` Max: `"100000"` | required: true
|
|
591
|
+
- name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.
|
|
592
|
+
- 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`.
|
|
593
|
+
Return type: PROMISE<Checkout>
|
|
594
|
+
- name: _createdDate | type: Date | description: Date and time the checkout was created.
|
|
595
|
+
- name: _id | type: string | description: Checkout GUID.
|
|
596
|
+
- name: _updatedDate | type: Date | description: Date and time the checkout was updated.
|
|
597
|
+
- name: additionalFees | type: Array<AdditionalFee> | description: Additional Fees.
|
|
598
|
+
- name: additionalFees[].code | type: string | description: Additional fee's unique code (or GUID) for future processing.
|
|
599
|
+
- name: additionalFees[].lineItemIds | type: Array<string> | description: Optional - Line items associated with this additional fee. If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
|
|
600
|
+
- name: additionalFees[].name | type: string | description: Translated additional fee's name.
|
|
601
|
+
- name: additionalFees[].price | type: MultiCurrencyPrice | description: Additional fee's price.
|
|
602
|
+
- name: additionalFees[].price.amount | type: string | description: Amount.
|
|
603
|
+
- name: additionalFees[].price.convertedAmount | type: string | description: Converted amount.
|
|
604
|
+
- name: additionalFees[].price.formattedAmount | type: string | description: Amount formatted with currency symbol.
|
|
605
|
+
- name: additionalFees[].price.formattedConvertedAmount | type: string | description: Converted amount formatted with currency symbol.
|
|
606
|
+
- name: additionalFees[].priceAfterTax | type: MultiCurrencyPrice | description: Additional fee's price after tax.
|
|
607
|
+
- name: additionalFees[].priceBeforeTax | type: MultiCurrencyPrice | description: Additional fee's price before tax.
|
|
608
|
+
- name: additionalFees[].providerAppId | type: string | description: Provider's app id.
|
|
609
|
+
- name: additionalFees[].source | type: AdditionalFeeSource | description: the source the additional fee was added from
|
|
610
|
+
enum:
|
|
611
|
+
ITEM: The additional fee was added on the item either via the catalog or on custom line item
|
|
612
|
+
MANUAL: The additional fee was added manually on the request
|
|
613
|
+
SERVICE_PLUGIN: The additional fee was added by an additional fee service plugin
|
|
614
|
+
SHIPPING: The additional fee was added by the shipping provider
|
|
615
|
+
UNKNOWN_ADDITIONAL_FEE_SOURCE
|
|
616
|
+
- name: additionalFees[].taxDetails | type: ItemTaxFullDetails | description: Tax details.
|
|
617
|
+
- name: additionalFees[].taxDetails.taxBreakdown | type: Array<TaxBreakdown> | description: tax information for a line item.
|
|
618
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].jurisdiction | type: string | description: The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec".
|
|
619
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].jurisdictionType | type: JurisdictionType | description: The type of the jurisdiction in which this tax detail applies.
|
|
620
|
+
enum: CITY, COUNTRY, COUNTY, SPECIAL, STATE, UNDEFINED
|
|
621
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].nonTaxableAmount | type: MultiCurrencyPrice | description: The amount of this line item price that was considered nontaxable. (Decimal value)
|
|
622
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].rate | type: string | description: The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)
|
|
623
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].taxAmount | type: MultiCurrencyPrice | description: The amount of tax estimated for this line item. (Decimal value)
|
|
624
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].taxName | type: string | description: The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc. This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
625
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].taxType | type: string | description: The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
|
|
626
|
+
- name: additionalFees[].taxDetails.taxBreakdown[].taxableAmount | type: MultiCurrencyPrice | description: The taxable amount of this line item.
|
|
627
|
+
- name: additionalFees[].taxDetails.taxRate | type: string | description: Tax rate %, as a decimal point between 0 and 1.
|
|
628
|
+
- name: additionalFees[].taxDetails.taxableAmount | type: MultiCurrencyPrice | description: Amount for which tax is calculated.
|
|
629
|
+
- name: additionalFees[].taxDetails.totalTax | type: MultiCurrencyPrice | description: Calculated tax, based on `taxable_amount` and `tax_rate`.
|
|
630
|
+
- name: additionalFees[].translatedName | type: string | description: The translated name of the additional fee. The translation language is determined by the `languages` field 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).
|
|
631
|
+
- name: appliedDiscounts | type: Array<AppliedDiscount> | description: Applied discounts.
|
|
632
|
+
- name: appliedDiscounts[].discountType | type: DiscountType | description: Discount type.
|
|
633
|
+
enum: GLOBAL, SHIPPING, SPECIFIC_ITEMS
|
|
634
|
+
- ONE-OF:
|
|
635
|
+
- name: appliedDiscounts[].coupon | type: Coupon | description: Coupon details.
|
|
636
|
+
- name: appliedDiscounts[].coupon._id | type: string | description: Coupon GUID.
|
|
637
|
+
- name: appliedDiscounts[].coupon.amount | type: MultiCurrencyPrice | description: Coupon value.
|
|
638
|
+
- name: appliedDiscounts[].coupon.code | type: string | description: Coupon code.
|
|
639
|
+
- name: appliedDiscounts[].coupon.name | type: string | description: Coupon name.
|
|
640
|
+
- name: appliedDiscounts[].discountRule | type: DiscountRule | description: Discount rule
|
|
641
|
+
- name: appliedDiscounts[].discountRule._id | type: string | description: Discount rule GUID
|
|
642
|
+
- name: appliedDiscounts[].discountRule.amount | type: MultiCurrencyPrice | description: Discount value.
|
|
643
|
+
- name: appliedDiscounts[].discountRule.name | type: DiscountRuleName | description: Discount rule name
|
|
644
|
+
- name: appliedDiscounts[].discountRule.name.original | type: string | description: Original discount rule name (in site's default language).
|
|
645
|
+
- name: appliedDiscounts[].discountRule.name.translated | type: string | description: Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
646
|
+
- name: appliedDiscounts[].merchantDiscount | type: MerchantDiscount | description: Merchant discount.
|
|
647
|
+
- name: appliedDiscounts[].merchantDiscount.amount | type: MultiCurrencyPrice | description: Discount value.
|
|
648
|
+
- name: appliedDiscounts[].merchantDiscount.percentage | type: number | description: Discount Percentage. Will be calculated from items price before other discounts.
|
|
649
|
+
- name: billingInfo | type: AddressWithContact | description: Billing information.
|
|
650
|
+
- name: billingInfo.address | type: ApiAddress | description: Address.
|
|
651
|
+
- name: billingInfo.address.addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
652
|
+
- name: billingInfo.address.addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
653
|
+
- name: billingInfo.address.city | type: string | description: City name.
|
|
654
|
+
- name: billingInfo.address.country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
655
|
+
- name: billingInfo.address.countryFullname | type: string | description: Country's full name.
|
|
656
|
+
- name: billingInfo.address.location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
|
|
657
|
+
- name: billingInfo.address.location.latitude | type: number | description: Address latitude.
|
|
658
|
+
- name: billingInfo.address.location.longitude | type: number | description: Address longitude.
|
|
659
|
+
- name: billingInfo.address.postalCode | type: string | description: Postal or zip code.
|
|
660
|
+
- name: billingInfo.address.streetAddress | type: StreetAddress | description: Street address.
|
|
661
|
+
- name: billingInfo.address.streetAddress.name | type: string | description: Street name.
|
|
662
|
+
- name: billingInfo.address.streetAddress.number | type: string | description: Street number.
|
|
663
|
+
- name: billingInfo.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.
|
|
664
|
+
- name: billingInfo.address.subdivisionFullname | type: string | description: Subdivision full-name.
|
|
665
|
+
- name: billingInfo.contactDetails | type: FullAddressContactDetails | description: Contact details.
|
|
666
|
+
- name: billingInfo.contactDetails.company | type: string | description: Company name.
|
|
667
|
+
- name: billingInfo.contactDetails.firstName | type: string | description: First name.
|
|
668
|
+
- name: billingInfo.contactDetails.lastName | type: string | description: Last name.
|
|
669
|
+
- name: billingInfo.contactDetails.phone | type: string | description: Phone number.
|
|
670
|
+
- name: billingInfo.contactDetails.vatId | type: CommonVatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
|
|
671
|
+
- name: billingInfo.contactDetails.vatId._id | type: string | description: Customer's tax GUID.
|
|
672
|
+
- name: billingInfo.contactDetails.vatId.type | type: CommonVatType | description: Tax type. Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
|
|
673
|
+
enum:
|
|
674
|
+
CNPJ: CNPJ - for corporations
|
|
675
|
+
CPF: CPF - for individual tax payers.
|
|
676
|
+
UNSPECIFIED
|
|
677
|
+
- name: businessLocationId | type: string | description: The business location GUID associated with the checkout. To learn more, see the Locations API.
|
|
678
|
+
- name: buyerInfo | type: BuyerInfo | description: Buyer information.
|
|
679
|
+
- name: buyerInfo.contactId | type: string | description: Contact GUID. Auto-created if one does not yet exist. For more information, see the Contacts API.
|
|
680
|
+
- name: buyerInfo.email | type: string | description: Buyer email address.
|
|
681
|
+
- ONE-OF:
|
|
682
|
+
- name: buyerInfo.memberId | type: string | description: Member GUID (if site visitor is a site member).
|
|
683
|
+
- name: buyerInfo.visitorId | type: string | description: Visitor GUID (if site visitor is **not** a member).
|
|
684
|
+
- 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.
|
|
685
|
+
- name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.
|
|
686
|
+
- name: calculationErrors | type: CalculationErrors | description: Errors when calculating totals.
|
|
687
|
+
- name: calculationErrors.couponCalculationError | type: Details | description: Coupon calculation error.
|
|
688
|
+
- ONE-OF:
|
|
689
|
+
- name: calculationErrors.couponCalculationError.applicationError | type: ApplicationError | description: none
|
|
690
|
+
- name: calculationErrors.couponCalculationError.applicationError.code | type: string | description: Error code.
|
|
691
|
+
- name: calculationErrors.couponCalculationError.applicationError.data | type: Record<string, any> | description: Data related to the error.
|
|
692
|
+
- name: calculationErrors.couponCalculationError.applicationError.description | type: string | description: Description of the error.
|
|
693
|
+
- name: calculationErrors.couponCalculationError.systemError | type: SystemError | description: none
|
|
694
|
+
- name: calculationErrors.couponCalculationError.systemError.errorCode | type: string | description: Error code.
|
|
695
|
+
- name: calculationErrors.couponCalculationError.validationError | type: ValidationError | description: none
|
|
696
|
+
- name: calculationErrors.couponCalculationError.validationError.fieldViolations | type: Array<FieldViolation> | description: none
|
|
697
|
+
- name: calculationErrors.couponCalculationError.validationError.fieldViolations[].data | type: Record<string, any> | description: none
|
|
698
|
+
- name: calculationErrors.couponCalculationError.validationError.fieldViolations[].description | type: string | description: none
|
|
699
|
+
- name: calculationErrors.couponCalculationError.validationError.fieldViolations[].field | type: string | description: none
|
|
700
|
+
- name: calculationErrors.couponCalculationError.validationError.fieldViolations[].ruleName | type: string | description: applicable when violated_rule=OTHER
|
|
701
|
+
- name: calculationErrors.couponCalculationError.validationError.fieldViolations[].violatedRule | type: RuleType | description: none
|
|
702
|
+
enum: DECIMAL_GT, DECIMAL_GTE, DECIMAL_LT, DECIMAL_LTE, DECIMAL_MAX_SCALE, EXACT_LENGTH, EXACT_SIZE, FIELD_NOT_ALLOWED, FORMAT, INVALID_ENUM_VALUE, MAX, MAX_LENGTH, MAX_SIZE, MIN, MIN_LENGTH, MIN_SIZE, ONE_OF_ALIGNMENT, OTHER, REQUIRED_FIELD, REQUIRED_ONE_OF_FIELD, VALIDATION
|
|
703
|
+
- name: calculationErrors.discountsCalculationError | type: Details | description: Discount Rule calculation error.
|
|
704
|
+
- name: calculationErrors.giftCardCalculationError | type: Details | description: Gift card calculation error.
|
|
705
|
+
- name: calculationErrors.membershipError | type: Details | description: Membership payment methods calculation errors For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
|
|
706
|
+
- name: calculationErrors.orderValidationErrors | type: Array<ApplicationError> | description: Order validation errors.
|
|
707
|
+
- name: calculationErrors.taxCalculationError | type: Details | description: Tax calculation error.
|
|
708
|
+
- ONE-OF:
|
|
709
|
+
- name: calculationErrors.carrierErrors | type: CarrierErrors | description: Carrier errors.
|
|
710
|
+
- name: calculationErrors.carrierErrors.errors | type: Array<CarrierError> | description: Carrier errors.
|
|
711
|
+
- name: calculationErrors.carrierErrors.errors[].carrierId | type: string | description: Carrier GUID.
|
|
712
|
+
- name: calculationErrors.carrierErrors.errors[].error | type: Details | description: Error details.
|
|
713
|
+
- name: calculationErrors.generalShippingCalculationError | type: Details | description: General shipping calculation error.
|
|
714
|
+
- name: cartId | type: string | description: Cart GUID that this checkout was created from. Empty if this checkout wasn't created from a cart.
|
|
715
|
+
- name: channelType | type: ChannelType | description: Sales channel that submitted the order.
|
|
716
|
+
enum:
|
|
717
|
+
AMAZON: [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop).
|
|
718
|
+
BACKOFFICE_MERCHANT: Wix merchant backoffice.
|
|
719
|
+
CLASS_PASS: [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass).
|
|
720
|
+
EBAY: [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop).
|
|
721
|
+
ETSY: [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel).
|
|
722
|
+
FACEBOOK: [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops).
|
|
723
|
+
FAIRE_COM: [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app).
|
|
724
|
+
GLOBAL_E: Global-E sales channel.
|
|
725
|
+
OTHER_PLATFORM: Other sales platform.
|
|
726
|
+
PAYPAL_AGENTIC_CHECKOUT: PayPal Agentic Checkout sales channel.
|
|
727
|
+
POS: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395).
|
|
728
|
+
TIKTOK: [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel).
|
|
729
|
+
UNSPECIFIED: Unspecified sales channel. This value is not supported.
|
|
730
|
+
WEB: A web client.
|
|
731
|
+
WISH: Wish sales channel.
|
|
732
|
+
WIX_APP_STORE: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview).
|
|
733
|
+
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)
|
|
734
|
+
- name: completed | type: boolean | description: Whether an order was successfully created from this checkout. For an order to be successful, it must be successfully paid for (unless the total is 0).
|
|
735
|
+
- 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.
|
|
736
|
+
- name: createdBy | type: CreatedBy | description: GUID of the checkout's initiator.
|
|
737
|
+
- ONE-OF:
|
|
738
|
+
- name: createdBy.appId | type: string | description: App GUID. When the order was created by an external application or Wix service.
|
|
739
|
+
- name: createdBy.memberId | type: string | description: Member GUID. When the order was created by a **logged in** site visitor.
|
|
740
|
+
- name: createdBy.userId | type: string | description: User GUID. When the order was created by a Wix user on behalf of a buyer. For example, via POS (point of service).
|
|
741
|
+
- name: createdBy.visitorId | type: string | description: Visitor GUID. When the order was created by a site visitor that was **not** logged in.
|
|
742
|
+
- 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.
|
|
743
|
+
- name: customContentReference | type: CustomContentReference | description: Reference GUIDs for the app and component providing custom checkout page content. To access and manage custom checkout page content, 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).
|
|
744
|
+
- name: customContentReference.appId | type: string | description: GUID of the app providing the content. You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
745
|
+
- name: customContentReference.componentId | type: string | description: GUID of the component within the app it belongs to. You can get your component's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
746
|
+
- name: customFields | type: Array<CustomField> | description: Custom fields.
|
|
747
|
+
- name: customFields[].title | type: string | description: Custom field title.
|
|
748
|
+
- name: customFields[].translatedTitle | type: string | description: Translated custom field title.
|
|
749
|
+
- name: customFields[].value | type: any | description: Custom field value. | required: true
|
|
750
|
+
- name: customSettings | type: CustomSettings | description: Additional settings for customization of the checkout process. > **Notes:** > * Custom settings can only be set when creating a checkout. > * To access and manage custom checkout page content, 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).
|
|
751
|
+
- name: customSettings.disabledManualPayment | type: boolean | description: Whether to disable manual payment option for this checkout. Default: `false`
|
|
752
|
+
- name: customSettings.disabledPolicyAgreementCheckbox | type: boolean | description: Whether to disable policy agreement checkout in the checkout page Default: `false`
|
|
753
|
+
- name: customSettings.lockCouponCode | type: boolean | description: Whether to restrict the option to add or remove a coupon code on the checkout page. Default: `false`
|
|
754
|
+
- name: customSettings.lockGiftCard | type: boolean | description: Whether to restrict the option to add or remove a gift card on the checkout page. Default: `false`
|
|
755
|
+
- name: extendedFields | type: ExtendedFields | description: Custom field data for the checkout object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
756
|
+
- 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).
|
|
757
|
+
- name: externalReference | type: ExternalReference | description: References to an external app and resource associated with this checkout. Used for integration and tracking across different platforms.
|
|
758
|
+
- name: externalReference.appId | type: string | description: GUID of the app associated with the purchase flow. For example, the Wix Pay Links app GUID.
|
|
759
|
+
- name: externalReference.resourceId | type: string | description: Reference to an external resource GUID. Used to link the purchase flow to a specific entity in an external system. For example, a Wix Pay Link GUID.
|
|
760
|
+
- name: giftCard | type: GiftCard | description: Applied gift card details. >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).
|
|
761
|
+
- name: giftCard.amount | type: MultiCurrencyPrice | description: Actual amount to be redeemed from the gift card.
|
|
762
|
+
- name: giftCard.appId | type: string | description: App GUID of the gift card provider.
|
|
763
|
+
- name: giftCard.externalId | type: string | description: External GUID in the gift card provider's system. Used for integration and tracking across different platforms.
|
|
764
|
+
- name: giftCard.obfuscatedCode | type: string | description: Gift card obfuscated code.
|
|
765
|
+
- name: giftCard.requestedAmount | type: MultiCurrencyPrice | description: Requested amount to redeem from the gift card.
|
|
766
|
+
- name: lineItems | type: Array<LineItem> | description: Line items. Max: 300 items
|
|
767
|
+
- name: lineItems[]._id | type: string | description: Line item GUID.
|
|
768
|
+
- name: lineItems[].availability | type: ItemAvailabilityInfo | description: Item availability details.
|
|
769
|
+
- name: lineItems[].availability.quantityAvailable | type: number | description: Quantity available.
|
|
770
|
+
- name: lineItems[].availability.status | type: ItemAvailabilityStatus | description: Item availability status.
|
|
771
|
+
enum: AVAILABLE, NOT_AVAILABLE: Item is not in stock.
|
|
772
|
+
NOT_FOUND: Item does not exist.
|
|
773
|
+
PARTIALLY_AVAILABLE: Available quantity is less than requested.
|
|
774
|
+
- 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).
|
|
775
|
+
- name: lineItems[].catalogOverrideFields.depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.
|
|
776
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines | type: Array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.
|
|
777
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].name | type: DescriptionLineName | description: Description line name.
|
|
778
|
+
- 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).
|
|
779
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].name.translated | type: string | description: Description line name translated into the buyer's language. Default: Same as `original`.
|
|
780
|
+
- ONE-OF:
|
|
781
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo | type: Color | description: Description line color value.
|
|
782
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo.code | type: string | description: HEX or RGB color code for display.
|
|
783
|
+
- 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).
|
|
784
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo.translated | type: string | description: Description line color name translated into the buyer's language. Default: Same as `original`.
|
|
785
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].plainText | type: PlainTextValue | description: Description line plain text value.
|
|
786
|
+
- 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).
|
|
787
|
+
- name: lineItems[].catalogOverrideFields.descriptionLines[].plainText.translated | type: string | description: Description line plain text value translated into the buyer's language. Default: Same as `original`.
|
|
788
|
+
- ONE-OF:
|
|
789
|
+
- name: lineItems[].catalogOverrideFields.fullPrice | type: string | description: Item price **before** discounts.
|
|
790
|
+
- name: lineItems[].catalogOverrideFields.image | type: string | description: Item image.
|
|
791
|
+
- name: lineItems[].catalogOverrideFields.paymentOption | type: PaymentOption | description: Payment method selected for the item.
|
|
792
|
+
- name: lineItems[].catalogOverrideFields.paymentOption.value | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
|
|
793
|
+
enum:
|
|
794
|
+
DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
|
|
795
|
+
FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
|
|
796
|
+
FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
|
|
797
|
+
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.
|
|
798
|
+
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`.
|
|
799
|
+
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.
|
|
800
|
+
- name: lineItems[].catalogOverrideFields.physicalProperties | type: PhysicalProperties | description: Physical properties of the item.
|
|
801
|
+
- name: lineItems[].catalogOverrideFields.physicalProperties.shippable | type: boolean | description: Whether this line item is shippable.
|
|
802
|
+
- 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).
|
|
803
|
+
- name: lineItems[].catalogOverrideFields.physicalProperties.weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.
|
|
804
|
+
- name: lineItems[].catalogOverrideFields.price | type: string | description: Item price **after** discounts.
|
|
805
|
+
- name: lineItems[].catalogOverrideFields.productName | type: ProductName | description: Item name.
|
|
806
|
+
- 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.
|
|
807
|
+
- 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`.
|
|
808
|
+
- name: lineItems[].catalogOverrideFields.savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
|
|
809
|
+
- name: lineItems[].catalogReference | type: CatalogReference | description: Catalog and item reference. Includes 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. | required: true
|
|
810
|
+
- 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"`
|
|
811
|
+
- name: lineItems[].catalogReference.catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.
|
|
812
|
+
- 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).
|
|
813
|
+
- 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.
|
|
814
|
+
- 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.
|
|
815
|
+
- name: lineItems[].deliveryProfileId | type: string | description: Delivery profile GUID.
|
|
816
|
+
- 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.
|
|
817
|
+
- name: lineItems[].descriptionLines | type: Array<DescriptionLine> | description: Line item description lines. Used for display purposes for the cart, checkout and order.
|
|
818
|
+
- name: lineItems[].discount | type: MultiCurrencyPrice | description: Discount for this line item's entire quantity.
|
|
819
|
+
- 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.
|
|
820
|
+
- name: lineItems[].fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed.
|
|
821
|
+
- name: lineItems[].fullPrice | type: MultiCurrencyPrice | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.
|
|
822
|
+
- name: lineItems[].itemType | type: ItemType | description: Item type. Either a preset type or custom.
|
|
823
|
+
- ONE-OF:
|
|
824
|
+
- name: lineItems[].itemType.custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.
|
|
825
|
+
- name: lineItems[].itemType.preset | type: ItemTypePreset | description: Preset item type.
|
|
826
|
+
enum: DIGITAL, GIFT_CARD, PHYSICAL, SERVICE, UNRECOGNISED
|
|
827
|
+
- name: lineItems[].lineItemPrice | type: MultiCurrencyPrice | description: Total line item price **after** catalog-defined discount and line item discounts.
|
|
828
|
+
- name: lineItems[].media | type: string | description: Line item image details.
|
|
829
|
+
- name: lineItems[].membersOnly | type: boolean | description: Whether the item can only be purchased by site members. Default: `false`
|
|
830
|
+
- name: lineItems[].modifierGroups | type: Array<ModifierGroup> | description: Modifier groups that were added to the item.
|
|
831
|
+
- name: lineItems[].modifierGroups[]._id | type: string | description: Modifier group GUID.
|
|
832
|
+
- name: lineItems[].modifierGroups[].modifiers | type: Array<ItemModifier> | description: List of modifiers in this group.
|
|
833
|
+
- name: lineItems[].modifierGroups[].modifiers[]._id | type: string | description: Modifier GUID.
|
|
834
|
+
- name: lineItems[].modifierGroups[].modifiers[].details | type: TranslatableString | description: Additional details.
|
|
835
|
+
- 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.
|
|
836
|
+
- 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`.
|
|
837
|
+
- name: lineItems[].modifierGroups[].modifiers[].label | type: TranslatableString | description: Primary display label for the modifier.
|
|
838
|
+
- name: lineItems[].modifierGroups[].modifiers[].price | type: MultiCurrencyPrice | description: The price of the modifier.
|
|
839
|
+
- name: lineItems[].modifierGroups[].modifiers[].quantity | type: number | description: The quantity of this modifier.
|
|
840
|
+
- name: lineItems[].modifierGroups[].name | type: TranslatableString | description: Modifier group name.
|
|
841
|
+
- name: lineItems[].modifiersTotalPrice | type: MultiCurrencyPrice | description: Total price of all item modifiers. Included in the item price.
|
|
842
|
+
- name: lineItems[].paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
|
|
843
|
+
- name: lineItems[].physicalProperties | type: PhysicalProperties | description: Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
|
|
844
|
+
- name: lineItems[].policies | type: Array<Policy> | description: Policies to be displayed to the customer on the checkout page.
|
|
845
|
+
- name: lineItems[].policies[].content | type: string | description: Policy content - should be translated
|
|
846
|
+
- name: lineItems[].policies[].title | type: string | description: Policy title - should be translated
|
|
847
|
+
- name: lineItems[].price | type: MultiCurrencyPrice | description: Item price **after** catalog-defined discount and line item discounts.
|
|
848
|
+
- name: lineItems[].priceBeforeDiscounts | type: MultiCurrencyPrice | description: Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
|
|
849
|
+
- 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".
|
|
850
|
+
- 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).
|
|
851
|
+
- name: lineItems[].priceDescription.translated | type: string | description: Price description translated into the buyer's language. Default: Same as `original`.
|
|
852
|
+
- name: lineItems[].priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created.
|
|
853
|
+
- name: lineItems[].productName | type: ProductName | description: Item name. + Stores - `product.name` + Bookings - `service.info.name` + Events - `ticket.name`
|
|
854
|
+
- name: lineItems[].quantity | type: number | description: Item quantity. Min: `"1"` Max: `"100000"` | required: true
|
|
855
|
+
- 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 has the same value as `catalogReference.catalogItemId`. + Used in membership validation.
|
|
856
|
+
- name: lineItems[].savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
|
|
857
|
+
- name: lineItems[].serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants.
|
|
858
|
+
- 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.
|
|
859
|
+
- 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.
|
|
860
|
+
- name: lineItems[].subscriptionOptionInfo | type: SubscriptionOptionInfo | description: Subscription option information.
|
|
861
|
+
- name: lineItems[].subscriptionOptionInfo.description | type: Description | description: Subscription option description.
|
|
862
|
+
- name: lineItems[].subscriptionOptionInfo.description.original | type: string | description: Subscription option description.
|
|
863
|
+
- name: lineItems[].subscriptionOptionInfo.description.translated | type: string | description: Translated subscription option description.
|
|
864
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings | type: SubscriptionSettings | description: Subscription option settings.
|
|
865
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.autoRenewal | type: boolean | description: Whether subscription is renewed automatically at the end of each period.
|
|
866
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.billingCycles | type: number | description: Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.
|
|
867
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation | type: boolean | description: Whether to allow the customer to cancel the subscription..
|
|
868
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod | type: FreeTrialPeriod | description: Period until first cycle starts. If applied payNow will be 0 If None => no free trial
|
|
869
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod.frequency | type: SubscriptionFrequency | description: Frequency of period. Values: DAY, WEEK, MONTH, YEAR
|
|
870
|
+
enum: DAY, MONTH, UNDEFINED, WEEK, YEAR
|
|
871
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod.interval | type: number | description: interval of period
|
|
872
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.frequency | type: SubscriptionFrequency | description: Frequency of recurring payment.
|
|
873
|
+
- name: lineItems[].subscriptionOptionInfo.subscriptionSettings.interval | type: number | description: Interval of recurring payment. Default: `1`. If SubscriptionFrequency is Day the minimum interval is 7
|
|
874
|
+
- name: lineItems[].subscriptionOptionInfo.title | type: Title | description: Subscription option title.
|
|
875
|
+
- 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).
|
|
876
|
+
- name: lineItems[].subscriptionOptionInfo.title.translated | type: string | description: Subscription option name translated into the buyer's language. Default: Same as `original`.
|
|
877
|
+
- name: lineItems[].taxDetails | type: ItemTaxFullDetails | description: Tax details for this line item.
|
|
878
|
+
- name: lineItems[].taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.
|
|
879
|
+
- ONE-OF:
|
|
880
|
+
- 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.
|
|
881
|
+
enum: BILLING, BUSINESS, SHIPPING, UNKNOWN_TAXABLE_ADDRESS
|
|
882
|
+
- name: lineItems[].totalPriceAfterTax | type: MultiCurrencyPrice | description: Total price after all discounts and tax.
|
|
883
|
+
- name: lineItems[].totalPriceBeforeTax | type: MultiCurrencyPrice | description: Total price after discounts, and before tax.
|
|
884
|
+
- name: lineItems[].url | type: string | description: URL to the item's page on the site.
|
|
885
|
+
- name: membershipOptions | type: MembershipOptions | description: Memberships to apply when creating the order.
|
|
886
|
+
- name: membershipOptions.eligibleMemberships | type: Array<Membership> | description: Reserved for internal use.
|
|
887
|
+
- name: membershipOptions.eligibleMemberships[]._id | type: string | description: Membership GUID.
|
|
888
|
+
- name: membershipOptions.eligibleMemberships[].additionalData | type: Record<string, any> | description: Additional data about this membership.
|
|
889
|
+
- name: membershipOptions.eligibleMemberships[].appId | type: string | description: GUID of the application providing this payment option.
|
|
890
|
+
- name: membershipOptions.eligibleMemberships[].credits | type: MembershipPaymentCredits | description: Optional - For a membership that has limited credits, information about credit usage.
|
|
891
|
+
- name: membershipOptions.eligibleMemberships[].credits.remaining | type: number | description: Membership's remaining amount of credits.
|
|
892
|
+
- name: membershipOptions.eligibleMemberships[].credits.total | type: number | description: Membership's total amount of credits.
|
|
893
|
+
- name: membershipOptions.eligibleMemberships[].expirationDate | type: Date | description: Optional - TMembership expiry date.
|
|
894
|
+
- name: membershipOptions.eligibleMemberships[].lineItemIds | type: Array<string> | description: Line item GUIDs which are "paid" for by this membership.
|
|
895
|
+
- name: membershipOptions.eligibleMemberships[].name | type: MembershipName | description: The name of this membership.
|
|
896
|
+
- name: membershipOptions.eligibleMemberships[].name.original | type: string | description: Membership name.
|
|
897
|
+
- name: membershipOptions.eligibleMemberships[].name.translated | type: string | description: Translated membership name. Defaults to `original` when not provided.
|
|
898
|
+
- name: membershipOptions.invalidMemberships | type: Array<InvalidMembership> | description: Reserved for internal use.
|
|
899
|
+
- name: membershipOptions.invalidMemberships[].membership | type: Membership | description: Membership details.
|
|
900
|
+
- name: membershipOptions.invalidMemberships[].reason | type: string | description: Reason why this membership is invalid and cannot be used.
|
|
901
|
+
- name: membershipOptions.selectedMemberships | type: SelectedMemberships | description: Selected membership to apply to this checkout.
|
|
902
|
+
- name: membershipOptions.selectedMemberships.memberships | type: Array<SelectedMembership> | description: Selected memberships.
|
|
903
|
+
- name: membershipOptions.selectedMemberships.memberships[]._id | type: string | description: Membership GUID. | required: true
|
|
904
|
+
- name: membershipOptions.selectedMemberships.memberships[].appId | type: string | description: GUID of the app providing this payment option. | required: true
|
|
905
|
+
- name: membershipOptions.selectedMemberships.memberships[].lineItemIds | type: Array<string> | description: IDs of the line items this membership applies to. | required: true
|
|
906
|
+
- name: payAfterFreeTrial | type: PriceSummary | description: Payment for subscriptions after free trial period.
|
|
907
|
+
- name: payAfterFreeTrial.additionalFees | type: MultiCurrencyPrice | description: Total additional fees price before tax.
|
|
908
|
+
- name: payAfterFreeTrial.discount | type: MultiCurrencyPrice | description: Total calculated discount value.
|
|
909
|
+
- name: payAfterFreeTrial.shipping | type: MultiCurrencyPrice | description: Total shipping price, before discounts and before tax.
|
|
910
|
+
- name: payAfterFreeTrial.subtotal | type: MultiCurrencyPrice | description: Subtotal of all line items, before discounts and before tax.
|
|
911
|
+
- name: payAfterFreeTrial.tax | type: MultiCurrencyPrice | description: Total tax.
|
|
912
|
+
- name: payAfterFreeTrial.total | type: MultiCurrencyPrice | description: Total price after discounts, gift cards, and tax.
|
|
913
|
+
- name: payLater | type: PriceSummary | description: Remaining amount for the order to be fully paid.
|
|
914
|
+
- name: payNow | type: PriceSummary | description: Minimal amount to pay in order to place the order.
|
|
915
|
+
- 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.
|
|
916
|
+
- name: priceSummary | type: PriceSummary | description: Calculated price summary for the checkout.
|
|
917
|
+
- name: purchaseFlowId | type: string | description: Persistent GUID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
918
|
+
- name: shippingInfo | type: ShippingInfo | description: Shipping information.
|
|
919
|
+
- name: shippingInfo.carrierServiceOptions | type: Array<CarrierServiceOption> | description: All carrier options for this shipping rule.
|
|
920
|
+
- name: shippingInfo.carrierServiceOptions[].carrierId | type: string | description: Carrier GUID.
|
|
921
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions | type: Array<ShippingOption> | description: Shipping options offered by this carrier for this request.
|
|
922
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].code | type: string | description: Unique code of provided shipping option like "usps_std_overnight". For legacy calculators this would be the UUGUID of the option.
|
|
923
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost | type: ShippingPrice | description: Sipping price information.
|
|
924
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.otherCharges | type: Array<OtherCharge> | description: Other costs such as insurance, handling & packaging for fragile items, etc.
|
|
925
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.otherCharges[].details | type: string | description: Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`.
|
|
926
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.otherCharges[].price | type: MultiCurrencyPrice | description: Price of added cost.
|
|
927
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.otherCharges[].type | type: ChargeType | description: Type of additional cost.
|
|
928
|
+
enum: HANDLING_FEE, INSURANCE
|
|
929
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.price | type: MultiCurrencyPrice | description: Shipping price.
|
|
930
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations | type: Array<DeliveryAllocation> | description: Delivery solution allocations to different delivery carriers and delivery regions
|
|
931
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].applicableLineItems | type: ApplicableLineItems | description: Populated if the delivery solution is a partially supplied by this carrier.
|
|
932
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].applicableLineItems.lineItemIds | type: Array<string> | description: Line items that the delivery solution is for.
|
|
933
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryCarrier | type: Carrier | description: The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers
|
|
934
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryCarrier.appId | type: string | description: The carrier app id
|
|
935
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryCarrier.code | type: string | description: Unique code that acts as an GUID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
936
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryRegion | type: Region | description: The delivery region that are relevant for this delivery solution.
|
|
937
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryRegion._id | type: string | description: The delivery region id.
|
|
938
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryRegion.name | type: string | description: The delivery region name.
|
|
939
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics | type: DeliveryLogistics | description: Delivery logistics.
|
|
940
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.deliveryTime | type: string | description: Expected delivery time, in free text. For example, "3-5 business days".
|
|
941
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.instructions | type: string | description: Instructions for caller, e.g for pickup: "Please deliver during opening hours, and please don't park in disabled parking spot".
|
|
942
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.pickupDetails | type: PickupDetails | description: Pickup details.
|
|
943
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.pickupDetails.address | type: ApiAddress | description: Pickup address.
|
|
944
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.pickupDetails.pickupMethod | type: PickupMethod | description: Pickup method
|
|
945
|
+
enum: PICKUP_POINT, STORE_PICKUP, UNKNOWN_METHOD
|
|
946
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].partial | type: boolean | description: If the delivery solution is a partial and doesn't apply to all items.
|
|
947
|
+
- name: shippingInfo.carrierServiceOptions[].shippingOptions[].title | type: string | description: Title of the option, such as USPS Standard Overnight Delivery (in the requested locale). For example, "Standard" or "First-Class Package International".
|
|
948
|
+
- name: shippingInfo.region | type: ShippingRegion | description: Shipping region. Based on the address provided.
|
|
949
|
+
- name: shippingInfo.region._id | type: string | description: Shipping region GUID.
|
|
950
|
+
- name: shippingInfo.region.name | type: string | description: Shipping region name.
|
|
951
|
+
- name: shippingInfo.selectedCarrierServiceOption | type: SelectedCarrierServiceOption | description: Selected option out of the options allowed for the `region`.
|
|
952
|
+
- name: shippingInfo.selectedCarrierServiceOption.carrierId | type: string | description: This carrier's unique GUID
|
|
953
|
+
- name: shippingInfo.selectedCarrierServiceOption.code | type: string | description: Unique identifier of selected option. For example, "usps_std_overnight".
|
|
954
|
+
- name: shippingInfo.selectedCarrierServiceOption.cost | type: SelectedCarrierServiceOptionPrices | description: Shipping costs.
|
|
955
|
+
- name: shippingInfo.selectedCarrierServiceOption.cost.price | type: MultiCurrencyPrice | description: Shipping price before discount and before tax.
|
|
956
|
+
- name: shippingInfo.selectedCarrierServiceOption.cost.taxDetails | type: ItemTaxFullDetails | description: Tax details.
|
|
957
|
+
- name: shippingInfo.selectedCarrierServiceOption.cost.totalDiscount | type: MultiCurrencyPrice | description: Shipping discount before tax.
|
|
958
|
+
- name: shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax | type: MultiCurrencyPrice | description: Total shipping price, after discount and after tax.
|
|
959
|
+
- name: shippingInfo.selectedCarrierServiceOption.cost.totalPriceBeforeTax | type: MultiCurrencyPrice | description: Total price of shipping after discounts (when relevant), and before tax.
|
|
960
|
+
- name: shippingInfo.selectedCarrierServiceOption.deliveryAllocations | type: Array<DeliveryAllocation> | description: Delivery solution allocations to different delivery carriers and delivery regions
|
|
961
|
+
- name: shippingInfo.selectedCarrierServiceOption.logistics | type: DeliveryLogistics | description: Delivery logistics.
|
|
962
|
+
- name: shippingInfo.selectedCarrierServiceOption.partial | type: boolean | description: If the delivery solution is a partial and doesn't apply to all items.
|
|
963
|
+
- name: shippingInfo.selectedCarrierServiceOption.requestedShippingOption | type: boolean | description: Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)
|
|
964
|
+
- name: shippingInfo.selectedCarrierServiceOption.title | type: string | description: Title of the option, such as USPS Standard Overnight Delivery (in the requested locale). For example, "Standard" or "First-Class Package International".
|
|
965
|
+
- name: shippingInfo.shippingDestination | type: AddressWithContact | description: Shipping address and contact details.
|
|
966
|
+
- name: siteLanguage | type: string | description: Site language in which original values are shown.
|
|
967
|
+
- name: taxExemptGroupId | type: string | description: Tax exempt group GUID to use for tax exemptions.
|
|
968
|
+
- name: taxIncludedInPrice | type: boolean | description: Whether tax is included in line item prices.
|
|
969
|
+
- name: taxSummary | type: TaxSummary | description: Tax summary.
|
|
970
|
+
- name: taxSummary.taxableAmount | type: MultiCurrencyPrice | description: Amount for which tax is calculated, added from line items.
|
|
971
|
+
- name: taxSummary.totalTax | type: MultiCurrencyPrice | description: Calculated tax, added from line items.
|
|
972
|
+
- name: violations | type: Array<Violation> | description: List of validation violations raised by the [Validations service plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction).
|
|
973
|
+
- name: violations[].description | type: string | description: Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href="https://www.wix.com">Click me</a>`.
|
|
974
|
+
- name: violations[].severity | type: Severity | description: Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow.
|
|
975
|
+
enum:
|
|
976
|
+
ERROR: The user is blocked from moving forward in the flow. For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
|
|
977
|
+
WARNING: The user is allowed to move forward in the flow.
|
|
978
|
+
- name: violations[].target | type: Target | description: Target location on a checkout or cart page where the violation will be displayed.
|
|
979
|
+
- ONE-OF:
|
|
980
|
+
- name: violations[].target.lineItem | type: TargetLineItem | description: Specific line item violation.
|
|
981
|
+
- name: violations[].target.lineItem._id | type: string | description: GUID of the line item containing the violation.
|
|
982
|
+
- name: violations[].target.lineItem.name | type: NameInLineItem | description: Location on a checkout or a cart page where the specific line item violation will be displayed.
|
|
983
|
+
enum:
|
|
984
|
+
LINE_ITEM_DEFAULT: Default location, in case no specific location is specified.
|
|
985
|
+
- name: violations[].target.other | type: Other | description: General (other) violation.
|
|
986
|
+
- name: violations[].target.other.name | type: NameInOther | description: Location on a checkout or a cart page where a general (other) violation will be displayed.
|
|
987
|
+
enum:
|
|
988
|
+
OTHER_DEFAULT: Default location, in case no specific location is specified.
|
|
989
|
+
- name: weightUnit | type: WeightUnit | description: Weight measurement unit. Defaults to a site's weight unit.
|
|
990
|
+
enum:
|
|
991
|
+
KG: Kilograms.
|
|
992
|
+
LB: Pounds.
|
|
993
|
+
UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
|
|
994
|
+
Possible Errors:
|
|
995
|
+
HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: GIFT_CARD_CODE_INVALID
|
|
996
|
+
HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: GIFT_CARD_NOT_FOUND
|
|
997
|
+
HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: INVALID_SELECTED_CARRIER_SERVICE_OPTION
|
|
998
|
+
HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: SELECTED_CARRIER_SERVICE_OPTION_NOT_FOUND
|
|
999
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_DOES_NOT_EXIST
|
|
1000
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_HAS_EXPIRED
|
|
1001
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_IS_NOT_ACTIVE_YET
|
|
1002
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED
|
|
1003
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_USAGE_EXCEEDED
|
|
1004
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GIFT_CARD_EXPIRED
|
|
1005
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GIFT_CARD_DISABLED
|
|
1006
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GIFT_CARD_IS_EMPTY
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
```
|
|
1010
|
+
</type_definition>
|
|
1011
|
+
</ecom_checkout_updateCheckout>
|