@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.
Files changed (66) hide show
  1. package/dist/docs-output/api-docs/bookings-bookings-onBookingCanceled-doc.txt +169 -0
  2. package/dist/docs-output/api-docs/bookings-bookings-onBookingCreated-doc.txt +154 -0
  3. package/dist/docs-output/api-docs/crm-contacts-onContactCreated-doc.txt +87 -171
  4. package/dist/docs-output/api-docs/crm-contacts-onContactDeleted-doc.txt +58 -0
  5. package/dist/docs-output/api-docs/crm-contacts-onContactUpdated-doc.txt +99 -0
  6. package/dist/docs-output/api-docs/data-items-get-doc.txt +95 -54
  7. package/dist/docs-output/api-docs/data-items-insert-doc.txt +235 -43
  8. package/dist/docs-output/api-docs/data-items-onDataItemCreated-doc.txt +61 -0
  9. package/dist/docs-output/api-docs/data-items-onDataItemDeleted-doc.txt +58 -0
  10. package/dist/docs-output/api-docs/data-items-onDataItemUpdated-doc.txt +61 -0
  11. package/dist/docs-output/api-docs/data-items-query-doc.txt +507 -302
  12. package/dist/docs-output/api-docs/data-items-remove-doc.txt +120 -40
  13. package/dist/docs-output/api-docs/data-items-update-doc.txt +425 -46
  14. package/dist/docs-output/api-docs/ecom-cart-addToCart-doc.txt +488 -0
  15. package/dist/docs-output/api-docs/ecom-cart-createCart-doc.txt +518 -0
  16. package/dist/docs-output/api-docs/ecom-cart-createCheckout-doc.txt +155 -0
  17. package/dist/docs-output/api-docs/ecom-cart-deleteCart-doc.txt +92 -0
  18. package/dist/docs-output/api-docs/ecom-cart-getCart-doc.txt +376 -0
  19. package/dist/docs-output/api-docs/ecom-cart-onCartCreated-doc.txt +89 -80
  20. package/dist/docs-output/api-docs/ecom-cart-onCartUpdated-doc.txt +91 -81
  21. package/dist/docs-output/api-docs/ecom-cart-removeLineItemsFromCart-doc.txt +321 -0
  22. package/dist/docs-output/api-docs/ecom-cart-updateCart-doc.txt +539 -0
  23. package/dist/docs-output/api-docs/ecom-checkout-addToCheckout-doc.txt +1005 -0
  24. package/dist/docs-output/api-docs/ecom-checkout-createCheckout-doc.txt +1641 -0
  25. package/dist/docs-output/api-docs/ecom-checkout-getCheckout-doc.txt +1027 -0
  26. package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCompleted-doc.txt +151 -0
  27. package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCreated-doc.txt +150 -0
  28. package/dist/docs-output/api-docs/ecom-checkout-onCheckoutUpdated-doc.txt +150 -0
  29. package/dist/docs-output/api-docs/ecom-checkout-removeLineItemsFromCheckout-doc.txt +879 -0
  30. package/dist/docs-output/api-docs/ecom-checkout-updateCheckout-doc.txt +1011 -0
  31. package/dist/docs-output/api-docs/ecom-currentCart-getCurrentCart-doc.txt +368 -322
  32. package/dist/docs-output/api-docs/ecom-currentCart-updateCurrentCart-doc.txt +506 -321
  33. package/dist/docs-output/api-docs/ecom-orders-bulkUpdateOrders-doc.txt +1040 -0
  34. package/dist/docs-output/api-docs/ecom-orders-cancelOrder-doc.txt +608 -0
  35. package/dist/docs-output/api-docs/ecom-orders-getOrder-doc.txt +926 -0
  36. package/dist/docs-output/api-docs/ecom-orders-onOrderCreated-doc.txt +245 -0
  37. package/dist/docs-output/api-docs/ecom-orders-onOrderUpdated-doc.txt +244 -0
  38. package/dist/docs-output/api-docs/ecom-orders-searchOrders-doc.txt +670 -0
  39. package/dist/docs-output/api-docs/ecom-orders-updateOrder-doc.txt +818 -0
  40. package/dist/docs-output/api-docs/search-wixSiteSearch-search-doc.txt +162 -0
  41. package/dist/docs-output/api-docs/stores-collections-addProductsToCollection-doc.txt +86 -0
  42. package/dist/docs-output/api-docs/stores-collections-createCollection-doc.txt +108 -0
  43. package/dist/docs-output/api-docs/stores-collections-getCollection-doc.txt +102 -0
  44. package/dist/docs-output/api-docs/stores-collections-queryCollections-doc.txt +209 -0
  45. package/dist/docs-output/api-docs/stores-collections-removeProductsFromCollection-doc.txt +86 -0
  46. package/dist/docs-output/api-docs/stores-collections-updateCollection-doc.txt +110 -0
  47. package/dist/docs-output/api-docs/stores-inventory-queryInventory-doc.txt +98 -0
  48. package/dist/docs-output/api-docs/stores-inventory-updateInventoryVariants-doc.txt +249 -0
  49. package/dist/docs-output/api-docs/stores-inventoryItemsV3-queryInventoryItems-doc.txt +236 -0
  50. package/dist/docs-output/api-docs/stores-inventoryItemsV3-updateInventoryItem-doc.txt +139 -0
  51. package/dist/docs-output/api-docs/stores-productsV3-createProduct-doc.txt +1697 -0
  52. package/dist/docs-output/api-docs/stores-productsV3-deleteProduct-doc.txt +73 -0
  53. package/dist/docs-output/api-docs/stores-productsV3-getProduct-doc.txt +933 -0
  54. package/dist/docs-output/api-docs/stores-productsV3-onProductCreated-doc.txt +794 -0
  55. package/dist/docs-output/api-docs/stores-productsV3-onProductDeleted-doc.txt +794 -0
  56. package/dist/docs-output/api-docs/stores-productsV3-onProductUpdated-doc.txt +794 -0
  57. package/dist/docs-output/api-docs/stores-productsV3-queryProducts-doc.txt +1051 -0
  58. package/dist/docs-output/api-docs/stores-productsV3-searchProducts-doc.txt +1144 -0
  59. package/dist/docs-output/api-docs/stores-productsV3-updateProduct-doc.txt +1730 -1600
  60. package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-queryVariants-doc.txt +290 -0
  61. package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-searchVariants-doc.txt +353 -0
  62. package/dist/out.js +929 -79
  63. package/package.json +2 -2
  64. package/dist/docs-output/api-docs/data-items-onDataItemCreated.txt +0 -103
  65. package/dist/docs-output/api-docs/stores-product-onProductCreated-doc.txt +0 -118
  66. package/dist/docs-output/api-docs/stores-productV3-onProductCreated-doc.txt +0 -184
@@ -0,0 +1,1641 @@
1
+ <ecom_checkout_createCheckout>
2
+ <description>
3
+ # Method name:
4
+
5
+ ecom.checkout.createCheckout(options: CreateCheckoutOptions)
6
+
7
+ # Method Link:
8
+
9
+ https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/create-checkout
10
+
11
+ # Method Description:
12
+
13
+ Creates a checkout.
14
+
15
+ A checkout must include at least 1 item in `lineItems` or `customLineItems`.
16
+
17
+ If passing `checkoutInfo.customFields`, then `checkoutInfo.customFields.value` is a required field.
18
+
19
+ # Method Permissions:
20
+
21
+ - ECOM.MODIFY_CHECKOUTS
22
+ - ECOM.ADMIN_MODIFY_CHECKOUTS
23
+
24
+ # Method Permissions Scopes IDs:
25
+
26
+ undefined
27
+
28
+
29
+
30
+ # Method Code Examples:
31
+
32
+ ## Create a checkout with minimum required properties
33
+
34
+ ```javascript
35
+ /*****************************************
36
+ * Backend code - my-backend-file.web.js/ts *
37
+ ****************************************/
38
+
39
+ import { Permissions, webMethod } from '@wix/web-methods';
40
+ import { checkout } from '@wix/ecom';
41
+
42
+ export const myCreateCheckoutFunction = webMethod(Permissions.Anyone, async (options) => {
43
+ try {
44
+ const newCheckout = await checkout.createCheckout(options);
45
+ console.log('Success! Checkout created, checkout:', newCheckout);
46
+ return newCheckout;
47
+ } catch (error) {
48
+ console.error(error);
49
+ // Handle the error
50
+ }
51
+ });
52
+
53
+ /*************
54
+ * Page code *
55
+ ************/
56
+
57
+ import { myCreateCheckoutFunction } from 'backend/my-backend-file.web';
58
+
59
+ // Sample options object:
60
+ const options = {
61
+ "lineItems": [{
62
+ "quantity": 3,
63
+ "catalogReference": {
64
+ // Wix Stores appId
65
+ "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
66
+ // Wix Stores productId
67
+ "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"
68
+ }
69
+ }],
70
+ "channelType": "WEB"
71
+ }
72
+
73
+ myCreateCheckoutFunction(options)
74
+ .then((newCheckout) => {
75
+ console.log('Success! Checkout created:', newCheckout);
76
+ return newCheckout;
77
+ })
78
+ .catch((error) => {
79
+ console.error(error);
80
+ // Handle the error
81
+ });
82
+
83
+ /* Promise resolves to:
84
+ *
85
+ * {
86
+ * "_id": "8a27ba84-0814-4b0e-8db3-b6057a421bd9",
87
+ * "lineItems": [
88
+ * {
89
+ * "_id": "00000000-0000-0000-0000-000000000001",
90
+ * "quantity": 3,
91
+ * "catalogReference": {
92
+ * "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",
93
+ * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"
94
+ * },
95
+ * "productName": {
96
+ * "original": "Shirt",
97
+ * "translated": "Shirt"
98
+ * },
99
+ * "url": "https://example.wixsite.com",
100
+ * "price": {
101
+ * "amount": "10",
102
+ * "convertedAmount": "10",
103
+ * "formattedAmount": "$10.00",
104
+ * "formattedConvertedAmount": "$10.00"
105
+ * },
106
+ * "lineItemPrice": {
107
+ * "amount": "30",
108
+ * "convertedAmount": "30",
109
+ * "formattedAmount": "$30.00",
110
+ * "formattedConvertedAmount": "$30.00"
111
+ * },
112
+ * "fullPrice": {
113
+ * "amount": "10",
114
+ * "convertedAmount": "10",
115
+ * "formattedAmount": "$10.00",
116
+ * "formattedConvertedAmount": "$10.00"
117
+ * },
118
+ * "priceBeforeDiscounts": {
119
+ * "amount": "10",
120
+ * "convertedAmount": "10",
121
+ * "formattedAmount": "$10.00",
122
+ * "formattedConvertedAmount": "$10.00"
123
+ * },
124
+ * "totalPriceAfterTax": {
125
+ * "amount": "30",
126
+ * "convertedAmount": "30",
127
+ * "formattedAmount": "$30.00",
128
+ * "formattedConvertedAmount": "$30.00"
129
+ * },
130
+ * "totalPriceBeforeTax": {
131
+ * "amount": "30",
132
+ * "convertedAmount": "30",
133
+ * "formattedAmount": "$30.00",
134
+ * "formattedConvertedAmount": "$30.00"
135
+ * },
136
+ * "taxDetails": {
137
+ * "taxableAmount": {
138
+ * "amount": "30",
139
+ * "convertedAmount": "30",
140
+ * "formattedAmount": "$30.00",
141
+ * "formattedConvertedAmount": "$30.00"
142
+ * },
143
+ * "taxRate": "0",
144
+ * "totalTax": {
145
+ * "amount": "0",
146
+ * "convertedAmount": "0",
147
+ * "formattedAmount": "$0.00",
148
+ * "formattedConvertedAmount": "$0.00"
149
+ * },
150
+ * "rateBreakdown": []
151
+ * },
152
+ * "discount": {
153
+ * "amount": "0",
154
+ * "convertedAmount": "0",
155
+ * "formattedAmount": "$0.00",
156
+ * "formattedConvertedAmount": "$0.00"
157
+ * },
158
+ * "descriptionLines": [],
159
+ * "media": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",
160
+ * "availability": {
161
+ * "status": "AVAILABLE"
162
+ * },
163
+ * "physicalProperties": {
164
+ * "sku": "364115376135191",
165
+ * "shippable": true
166
+ * },
167
+ * "couponScopes": [
168
+ * {
169
+ * "namespace": "stores",
170
+ * "group": {
171
+ * "name": "collection",
172
+ * "entityId": "00000000-000000-000000-000000000001"
173
+ * }
174
+ * },
175
+ * {
176
+ * "namespace": "stores",
177
+ * "group": {
178
+ * "name": "product",
179
+ * "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"
180
+ * }
181
+ * }
182
+ * ],
183
+ * "itemType": {
184
+ * "preset": "PHYSICAL"
185
+ * },
186
+ * "paymentOption": "FULL_PAYMENT_ONLINE",
187
+ * "rootCatalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"
188
+ * }
189
+ * ],
190
+ * "shippingInfo": {
191
+ * "carrierServiceOptions": []
192
+ * },
193
+ * "buyerInfo": {
194
+ * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
195
+ * },
196
+ * "conversionCurrency": "USD",
197
+ * "priceSummary": {
198
+ * "subtotal": {
199
+ * "amount": "30",
200
+ * "convertedAmount": "30",
201
+ * "formattedAmount": "$30.00",
202
+ * "formattedConvertedAmount": "$30.00"
203
+ * },
204
+ * "shipping": {
205
+ * "amount": "0",
206
+ * "convertedAmount": "0",
207
+ * "formattedAmount": "$0.00",
208
+ * "formattedConvertedAmount": "$0.00"
209
+ * },
210
+ * "tax": {
211
+ * "amount": "0",
212
+ * "convertedAmount": "0",
213
+ * "formattedAmount": "$0.00",
214
+ * "formattedConvertedAmount": "$0.00"
215
+ * },
216
+ * "discount": {
217
+ * "amount": "0",
218
+ * "convertedAmount": "0",
219
+ * "formattedAmount": "$0.00",
220
+ * "formattedConvertedAmount": "$0.00"
221
+ * },
222
+ * "total": {
223
+ * "amount": "30",
224
+ * "convertedAmount": "30",
225
+ * "formattedAmount": "$30.00",
226
+ * "formattedConvertedAmount": "$30.00"
227
+ * }
228
+ * },
229
+ * "calculationErrors": {
230
+ * "orderValidationErrors": []
231
+ * },
232
+ * "appliedDiscounts": [],
233
+ * "customFields": [],
234
+ * "weightUnit": "KG",
235
+ * "currency": "USD",
236
+ * "channelType": "WEB",
237
+ * "siteLanguage": "en",
238
+ * "buyerLanguage": "en",
239
+ * "completed": false,
240
+ * "taxIncludedInPrice": false,
241
+ * "createdBy": {
242
+ * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
243
+ * },
244
+ * "_createdDate": "2022-07-18T13:39:03.023Z",
245
+ * "_updatedDate": "2022-07-18T13:39:03.023Z",
246
+ * "payNow": {
247
+ * "subtotal": {
248
+ * "amount": "30",
249
+ * "convertedAmount": "30",
250
+ * "formattedAmount": "$30.00",
251
+ * "formattedConvertedAmount": "$30.00"
252
+ * },
253
+ * "shipping": {
254
+ * "amount": "0",
255
+ * "convertedAmount": "0",
256
+ * "formattedAmount": "$0.00",
257
+ * "formattedConvertedAmount": "$0.00"
258
+ * },
259
+ * "tax": {
260
+ * "amount": "0",
261
+ * "convertedAmount": "0",
262
+ * "formattedAmount": "$0.00",
263
+ * "formattedConvertedAmount": "$0.00"
264
+ * },
265
+ * "discount": {
266
+ * "amount": "0",
267
+ * "convertedAmount": "0",
268
+ * "formattedAmount": "$0.00",
269
+ * "formattedConvertedAmount": "$0.00"
270
+ * },
271
+ * "total": {
272
+ * "amount": "30",
273
+ * "convertedAmount": "30",
274
+ * "formattedAmount": "$30.00",
275
+ * "formattedConvertedAmount": "$30.00"
276
+ * }
277
+ * },
278
+ * "payLater": {
279
+ * "subtotal": {
280
+ * "amount": "0",
281
+ * "convertedAmount": "0",
282
+ * "formattedAmount": "$0.00",
283
+ * "formattedConvertedAmount": "$0.00"
284
+ * },
285
+ * "shipping": {
286
+ * "amount": "0",
287
+ * "convertedAmount": "0",
288
+ * "formattedAmount": "$0.00",
289
+ * "formattedConvertedAmount": "$0.00"
290
+ * },
291
+ * "tax": {
292
+ * "amount": "0",
293
+ * "convertedAmount": "0",
294
+ * "formattedAmount": "$0.00",
295
+ * "formattedConvertedAmount": "$0.00"
296
+ * },
297
+ * "discount": {
298
+ * "amount": "0",
299
+ * "convertedAmount": "0",
300
+ * "formattedAmount": "$0.00",
301
+ * "formattedConvertedAmount": "$0.00"
302
+ * },
303
+ * "total": {
304
+ * "amount": "0",
305
+ * "convertedAmount": "0",
306
+ * "formattedAmount": "$0.00",
307
+ * "formattedConvertedAmount": "$0.00"
308
+ * }
309
+ * },
310
+ * "membershipOptions": {
311
+ * "eligibleMemberships": [],
312
+ * "invalidMemberships": [],
313
+ * "selectedMemberships": {
314
+ * "memberships": []
315
+ * }
316
+ * }
317
+ * }
318
+ *
319
+ */
320
+ ```
321
+
322
+ ## Create a checkout, full object
323
+
324
+ ```javascript
325
+ /**************************************
326
+ * Backend code - my-backend-file.web.js/ts *
327
+ **************************************/
328
+
329
+ import { Permissions, webMethod } from '@wix/web-methods';
330
+ import { checkout } from '@wix/ecom';
331
+
332
+ export const myCreateCheckoutFunction = webMethod(Permissions.Anyone, async (options) => {
333
+ try {
334
+ const newCheckout = await checkout.createCheckout(options);
335
+ console.log('Success! Checkout created, checkout:', newCheckout);
336
+ return newCheckout;
337
+ } catch (error) {
338
+ console.error(error);
339
+ // Handle the error
340
+ }
341
+ });
342
+
343
+ /*************
344
+ * Page code *
345
+ ************/
346
+
347
+ import { myCreateCheckoutFunction } from 'backend/my-backend-file.web';
348
+
349
+ // Sample options object:
350
+ const options = {
351
+ "lineItems": [{
352
+ "quantity": 3,
353
+ "catalogReference": {
354
+ // Wix Stores appId
355
+ "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
356
+ // Wix Stores productId
357
+ "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"
358
+ }
359
+ },
360
+ {
361
+ "quantity": 1,
362
+ "catalogReference": {
363
+ "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
364
+ "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",
365
+ "options": {
366
+ "variantId": "2f430d69-9b75-4874-bfbd-c5f6fa5aff3d",
367
+ "customTextFields": {
368
+ "birthday card": "Happy Birthday!"
369
+ }
370
+ }
371
+ }
372
+ },
373
+ {
374
+ "quantity": 1,
375
+ "catalogReference": {
376
+ "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
377
+ "catalogItemId": "9fe8c5b2-9c94-7153-ebb9-8533695e2b6f",
378
+ "options": {
379
+ "Size": "Large",
380
+ "Color": "White"
381
+ }
382
+ }
383
+ }
384
+ ],
385
+ "channelType": "WEB",
386
+ "couponCode": "SUMMERSALE10",
387
+ "checkoutInfo": {
388
+ "shippingInfo": {
389
+ "shippingDestination": {
390
+ "address": {
391
+ "country": "US",
392
+ "subdivision": "US-NY",
393
+ "city": "New York",
394
+ "postalCode": "10011",
395
+ "addressLine1": "235 West 23rd Street",
396
+ "addressLine2": "3rd floor"
397
+ },
398
+ "contactDetails": {
399
+ "firstName": "Jane",
400
+ "lastName": "Doe",
401
+ "phone": "+1234567890"
402
+ }
403
+ },
404
+ "selectedCarrierServiceOption": {
405
+ "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc",
406
+ "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5"
407
+ }
408
+ },
409
+ "billingInfo": {
410
+ "address": {
411
+ "country": "US",
412
+ "subdivision": "US-NY",
413
+ "city": "New York",
414
+ "postalCode": "10011",
415
+ "addressLine1": "235 West 23rd Street",
416
+ "addressLine2": "3rd floor"
417
+ },
418
+ "contactDetails": {
419
+ "firstName": "Jane",
420
+ "lastName": "Doe",
421
+ "phone": "+1234567890"
422
+ }
423
+ },
424
+ "buyerInfo": {
425
+ "email": "Janedoe@example.com"
426
+ },
427
+ "buyerNote": "Please wrap it up as a present",
428
+ "customFields": [{
429
+ "title": "Tax ID",
430
+ "translatedTitle": "Tax ID",
431
+ "value": "12345"
432
+ }]
433
+ }
434
+ }
435
+
436
+ myCreateCheckoutFunction(options)
437
+ .then((newCheckout) => {
438
+ console.log('Success! Checkout created:', newCheckout);
439
+ return newCheckout;
440
+ })
441
+ .catch((error) => {
442
+ console.error(error);
443
+ // Handle the error
444
+ });
445
+
446
+ /* Promise resolves to:
447
+ *
448
+ * {
449
+ * "_id": "74cc6825-82a1-4f1f-9fbb-7d73f6be152a",
450
+ * "lineItems": [
451
+ * {
452
+ * "_id": "00000000-0000-0000-0000-000000000001",
453
+ * "quantity": 3,
454
+ * "catalogReference": {
455
+ * "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",
456
+ * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"
457
+ * },
458
+ * "productName": {
459
+ * "original": "Shirt",
460
+ * "translated": "Shirt"
461
+ * },
462
+ * "url": "https://example.wixsite.com",
463
+ * "price": {
464
+ * "amount": "10",
465
+ * "convertedAmount": "10",
466
+ * "formattedAmount": "$10.00",
467
+ * "formattedConvertedAmount": "$10.00"
468
+ * },
469
+ * "lineItemPrice": {
470
+ * "amount": "30",
471
+ * "convertedAmount": "30",
472
+ * "formattedAmount": "$30.00",
473
+ * "formattedConvertedAmount": "$30.00"
474
+ * },
475
+ * "fullPrice": {
476
+ * "amount": "10",
477
+ * "convertedAmount": "10",
478
+ * "formattedAmount": "$10.00",
479
+ * "formattedConvertedAmount": "$10.00"
480
+ * },
481
+ * "priceBeforeDiscounts": {
482
+ * "amount": "10",
483
+ * "convertedAmount": "10",
484
+ * "formattedAmount": "$10.00",
485
+ * "formattedConvertedAmount": "$10.00"
486
+ * },
487
+ * "totalPriceAfterTax": {
488
+ * "amount": "20",
489
+ * "convertedAmount": "20",
490
+ * "formattedAmount": "$20.00",
491
+ * "formattedConvertedAmount": "$20.00"
492
+ * },
493
+ * "totalPriceBeforeTax": {
494
+ * "amount": "20",
495
+ * "convertedAmount": "20",
496
+ * "formattedAmount": "$20.00",
497
+ * "formattedConvertedAmount": "$20.00"
498
+ * },
499
+ * "taxDetails": {
500
+ * "taxableAmount": {
501
+ * "amount": "20",
502
+ * "convertedAmount": "20",
503
+ * "formattedAmount": "$20.00",
504
+ * "formattedConvertedAmount": "$20.00"
505
+ * },
506
+ * "taxRate": "0",
507
+ * "totalTax": {
508
+ * "amount": "0",
509
+ * "convertedAmount": "0",
510
+ * "formattedAmount": "$0.00",
511
+ * "formattedConvertedAmount": "$0.00"
512
+ * },
513
+ * "rateBreakdown": []
514
+ * },
515
+ * "discount": {
516
+ * "amount": "10",
517
+ * "convertedAmount": "10",
518
+ * "formattedAmount": "$10.00",
519
+ * "formattedConvertedAmount": "$10.00"
520
+ * },
521
+ * "descriptionLines": [],
522
+ * "media": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",
523
+ * "availability": {
524
+ * "status": "AVAILABLE"
525
+ * },
526
+ * "physicalProperties": {
527
+ * "sku": "364115376135191",
528
+ * "shippable": true
529
+ * },
530
+ * "couponScopes": [
531
+ * {
532
+ * "namespace": "stores",
533
+ * "group": {
534
+ * "name": "collection",
535
+ * "entityId": "00000000-000000-000000-000000000001"
536
+ * }
537
+ * },
538
+ * {
539
+ * "namespace": "stores",
540
+ * "group": {
541
+ * "name": "product",
542
+ * "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"
543
+ * }
544
+ * }
545
+ * ],
546
+ * "itemType": {
547
+ * "preset": "PHYSICAL"
548
+ * },
549
+ * "paymentOption": "FULL_PAYMENT_ONLINE",
550
+ * "rootCatalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"
551
+ * },
552
+ * {
553
+ * "_id": "00000000-0000-0000-0000-000000000002",
554
+ * "quantity": 1,
555
+ * "catalogReference": {
556
+ * "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",
557
+ * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
558
+ * "options": {
559
+ * "variantId": "2f430d69-9b75-4874-bfbd-c5f6fa5aff3d",
560
+ * "customTextFields": {
561
+ * "birthday card": "Happy Birthday!"
562
+ * }
563
+ * }
564
+ * },
565
+ * "productName": {
566
+ * "original": "Shoe",
567
+ * "translated": "Shoe"
568
+ * },
569
+ * "url": "https://example.wixsite.com",
570
+ * "price": {
571
+ * "amount": "85",
572
+ * "convertedAmount": "85",
573
+ * "formattedAmount": "$85.00",
574
+ * "formattedConvertedAmount": "$85.00"
575
+ * },
576
+ * "lineItemPrice": {
577
+ * "amount": "85",
578
+ * "convertedAmount": "85",
579
+ * "formattedAmount": "$85.00",
580
+ * "formattedConvertedAmount": "$85.00"
581
+ * },
582
+ * "fullPrice": {
583
+ * "amount": "85",
584
+ * "convertedAmount": "85",
585
+ * "formattedAmount": "$85.00",
586
+ * "formattedConvertedAmount": "$85.00"
587
+ * },
588
+ * "priceBeforeDiscounts": {
589
+ * "amount": "85",
590
+ * "convertedAmount": "85",
591
+ * "formattedAmount": "$85.00",
592
+ * "formattedConvertedAmount": "$85.00"
593
+ * },
594
+ * "totalPriceAfterTax": {
595
+ * "amount": "85",
596
+ * "convertedAmount": "85",
597
+ * "formattedAmount": "$85.00",
598
+ * "formattedConvertedAmount": "$85.00"
599
+ * },
600
+ * "totalPriceBeforeTax": {
601
+ * "amount": "85",
602
+ * "convertedAmount": "85",
603
+ * "formattedAmount": "$85.00",
604
+ * "formattedConvertedAmount": "$85.00"
605
+ * },
606
+ * "taxDetails": {
607
+ * "taxableAmount": {
608
+ * "amount": "85",
609
+ * "convertedAmount": "85",
610
+ * "formattedAmount": "$85.00",
611
+ * "formattedConvertedAmount": "$85.00"
612
+ * },
613
+ * "taxRate": "0",
614
+ * "totalTax": {
615
+ * "amount": "0",
616
+ * "convertedAmount": "0",
617
+ * "formattedAmount": "$0.00",
618
+ * "formattedConvertedAmount": "$0.00"
619
+ * },
620
+ * "rateBreakdown": []
621
+ * },
622
+ * "discount": {
623
+ * "amount": "0",
624
+ * "convertedAmount": "0",
625
+ * "formattedAmount": "$0.00",
626
+ * "formattedConvertedAmount": "$0.00"
627
+ * },
628
+ * "descriptionLines": [
629
+ * {
630
+ * "name": {
631
+ * "original": "Color",
632
+ * "translated": "Color"
633
+ * },
634
+ * "colorInfo": {
635
+ * "original": "Brown",
636
+ * "translated": "Brown",
637
+ * "code": "#783f04"
638
+ * }
639
+ * },
640
+ * {
641
+ * "name": {
642
+ * "original": "birthday card",
643
+ * "translated": "birthday card"
644
+ * },
645
+ * "plainText": {
646
+ * "original": "Happy Birthday!",
647
+ * "translated": "Happy Birthday!"
648
+ * }
649
+ * }
650
+ * ],
651
+ * "media": "wix:image://v1/3c76e2_bf235c38610f4d2a905db71095b351cf~mv2.jpg#originWidth=1000&originHeight=1000",
652
+ * "availability": {
653
+ * "status": "AVAILABLE",
654
+ * "quantityAvailable": 30
655
+ * },
656
+ * "physicalProperties": {
657
+ * "sku": "364215376135191",
658
+ * "shippable": true
659
+ * },
660
+ * "couponScopes": [
661
+ * {
662
+ * "namespace": "stores",
663
+ * "group": {
664
+ * "name": "collection",
665
+ * "entityId": "00000000-000000-000000-000000000001"
666
+ * }
667
+ * },
668
+ * {
669
+ * "namespace": "stores",
670
+ * "group": {
671
+ * "name": "product",
672
+ * "entityId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"
673
+ * }
674
+ * }
675
+ * ],
676
+ * "itemType": {
677
+ * "preset": "PHYSICAL"
678
+ * },
679
+ * "paymentOption": "FULL_PAYMENT_ONLINE",
680
+ * "rootCatalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"
681
+ * },
682
+ * {
683
+ * "_id": "00000000-0000-0000-0000-000000000003",
684
+ * "quantity": 1,
685
+ * "catalogReference": {
686
+ * "catalogItemId": "9fe8c5b2-9c94-7153-ebb9-8533695e2b6f",
687
+ * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
688
+ * "options": {
689
+ * "Size": "Large",
690
+ * "Color": "White"
691
+ * }
692
+ * },
693
+ * "price": {
694
+ * "amount": "0",
695
+ * "convertedAmount": "0",
696
+ * "formattedAmount": "",
697
+ * "formattedConvertedAmount": ""
698
+ * },
699
+ * "fullPrice": {
700
+ * "amount": "0",
701
+ * "convertedAmount": "0",
702
+ * "formattedAmount": "",
703
+ * "formattedConvertedAmount": ""
704
+ * },
705
+ * "priceBeforeDiscounts": {
706
+ * "amount": "0",
707
+ * "convertedAmount": "0",
708
+ * "formattedAmount": "",
709
+ * "formattedConvertedAmount": ""
710
+ * },
711
+ * "descriptionLines": [],
712
+ * "availability": {
713
+ * "status": "NOT_FOUND"
714
+ * },
715
+ * "couponScopes": [],
716
+ * "paymentOption": "FULL_PAYMENT_ONLINE"
717
+ * }
718
+ * ],
719
+ * "billingInfo": {
720
+ * "address": {
721
+ * "addressLine1": "235 West 23rd Street",
722
+ * "addressLine2": "3rd floor",
723
+ * "city": "New York",
724
+ * "subdivision": "US-NY",
725
+ * "country": "US",
726
+ * "postalCode": "10011"
727
+ * },
728
+ * "contactDetails": {
729
+ * "firstName": "Jane",
730
+ * "lastName": "Doe",
731
+ * "phone": "+1234567890"
732
+ * }
733
+ * },
734
+ * "shippingInfo": {
735
+ * "shippingDestination": {
736
+ * "address": {
737
+ * "addressLine1": "235 West 23rd Street",
738
+ * "addressLine2": "3rd floor",
739
+ * "city": "New York",
740
+ * "subdivision": "US-NY",
741
+ * "country": "US",
742
+ * "postalCode": "10011"
743
+ * },
744
+ * "contactDetails": {
745
+ * "firstName": "Jane",
746
+ * "lastName": "Doe",
747
+ * "phone": "+1234567890"
748
+ * }
749
+ * },
750
+ * "selectedCarrierServiceOption": {
751
+ * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",
752
+ * "title": "Standard US Shipping",
753
+ * "logistics": {
754
+ * "deliveryTime": ""
755
+ * },
756
+ * "cost": {
757
+ * "totalPriceAfterTax": {
758
+ * "amount": "10",
759
+ * "convertedAmount": "10",
760
+ * "formattedAmount": "$10.00",
761
+ * "formattedConvertedAmount": "$10.00"
762
+ * },
763
+ * "totalPriceBeforeTax": {
764
+ * "amount": "10",
765
+ * "convertedAmount": "10",
766
+ * "formattedAmount": "$10.00",
767
+ * "formattedConvertedAmount": "$10.00"
768
+ * },
769
+ * "taxDetails": {
770
+ * "taxRate": "0",
771
+ * "totalTax": {
772
+ * "amount": "0",
773
+ * "convertedAmount": "0",
774
+ * "formattedAmount": "$0.00",
775
+ * "formattedConvertedAmount": "$0.00"
776
+ * },
777
+ * "rateBreakdown": []
778
+ * },
779
+ * "price": {
780
+ * "amount": "10",
781
+ * "convertedAmount": "10",
782
+ * "formattedAmount": "$10.00",
783
+ * "formattedConvertedAmount": "$10.00"
784
+ * }
785
+ * },
786
+ * "requestedShippingOption": true,
787
+ * "otherCharges": [],
788
+ * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc"
789
+ * },
790
+ * "region": {
791
+ * "_id": "009fbe5d-89d3-7825-cbbf-1aab4d908b73",
792
+ * "name": "USA shipping"
793
+ * },
794
+ * "carrierServiceOptions": [
795
+ * {
796
+ * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc",
797
+ * "shippingOptions": [
798
+ * {
799
+ * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",
800
+ * "title": "Standard US Shipping",
801
+ * "logistics": {
802
+ * "deliveryTime": ""
803
+ * },
804
+ * "cost": {
805
+ * "price": {
806
+ * "amount": "10",
807
+ * "convertedAmount": "10",
808
+ * "formattedAmount": "$10.00",
809
+ * "formattedConvertedAmount": "$10.00"
810
+ * },
811
+ * "otherCharges": []
812
+ * }
813
+ * }
814
+ * ]
815
+ * }
816
+ * ]
817
+ * },
818
+ * "buyerNote": "Please wrap it up as a present",
819
+ * "buyerInfo": {
820
+ * "email": "Janedoe@example.com",
821
+ * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
822
+ * },
823
+ * "conversionCurrency": "USD",
824
+ * "priceSummary": {
825
+ * "subtotal": {
826
+ * "amount": "115",
827
+ * "convertedAmount": "115",
828
+ * "formattedAmount": "$115.00",
829
+ * "formattedConvertedAmount": "$115.00"
830
+ * },
831
+ * "shipping": {
832
+ * "amount": "10",
833
+ * "convertedAmount": "10",
834
+ * "formattedAmount": "$10.00",
835
+ * "formattedConvertedAmount": "$10.00"
836
+ * },
837
+ * "tax": {
838
+ * "amount": "0",
839
+ * "convertedAmount": "0",
840
+ * "formattedAmount": "$0.00",
841
+ * "formattedConvertedAmount": "$0.00"
842
+ * },
843
+ * "discount": {
844
+ * "amount": "10",
845
+ * "convertedAmount": "10",
846
+ * "formattedAmount": "$10.00",
847
+ * "formattedConvertedAmount": "$10.00"
848
+ * },
849
+ * "total": {
850
+ * "amount": "115",
851
+ * "convertedAmount": "115",
852
+ * "formattedAmount": "$115.00",
853
+ * "formattedConvertedAmount": "$115.00"
854
+ * }
855
+ * },
856
+ * "calculationErrors": {
857
+ * "orderValidationErrors": []
858
+ * },
859
+ * "appliedDiscounts": [
860
+ * {
861
+ * "discountType": "GLOBAL",
862
+ * "lineItemIds": [],
863
+ * "coupon": {
864
+ * "_id": "fbb94b06-7447-4161-9c48-59bfcdc39e77",
865
+ * "code": "SUMMERSALE10",
866
+ * "amount": {
867
+ * "amount": "10",
868
+ * "convertedAmount": "10",
869
+ * "formattedAmount": "$10.00",
870
+ * "formattedConvertedAmount": "$10.00"
871
+ * },
872
+ * "name": "SUMMERSALE10",
873
+ * "couponType": "MoneyOff"
874
+ * }
875
+ * }
876
+ * ],
877
+ * "customFields": [
878
+ * {
879
+ * "value": "12345",
880
+ * "title": "Tax ID",
881
+ * "translatedTitle": "Tax ID"
882
+ * }
883
+ * ],
884
+ * "weightUnit": "KG",
885
+ * "currency": "USD",
886
+ * "channelType": "WEB",
887
+ * "siteLanguage": "en",
888
+ * "buyerLanguage": "en",
889
+ * "completed": false,
890
+ * "taxIncludedInPrice": false,
891
+ * "createdBy": {
892
+ * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
893
+ * },
894
+ * "_createdDate": "2022-07-18T13:25:22.141Z",
895
+ * "_updatedDate": "2022-07-18T13:25:22.141Z",
896
+ * "payNow": {
897
+ * "subtotal": {
898
+ * "amount": "115",
899
+ * "convertedAmount": "115",
900
+ * "formattedAmount": "$115.00",
901
+ * "formattedConvertedAmount": "$115.00"
902
+ * },
903
+ * "shipping": {
904
+ * "amount": "10",
905
+ * "convertedAmount": "10",
906
+ * "formattedAmount": "$10.00",
907
+ * "formattedConvertedAmount": "$10.00"
908
+ * },
909
+ * "tax": {
910
+ * "amount": "0",
911
+ * "convertedAmount": "0",
912
+ * "formattedAmount": "$0.00",
913
+ * "formattedConvertedAmount": "$0.00"
914
+ * },
915
+ * "discount": {
916
+ * "amount": "10",
917
+ * "convertedAmount": "10",
918
+ * "formattedAmount": "$10.00",
919
+ * "formattedConvertedAmount": "$10.00"
920
+ * },
921
+ * "total": {
922
+ * "amount": "115",
923
+ * "convertedAmount": "115",
924
+ * "formattedAmount": "$115.00",
925
+ * "formattedConvertedAmount": "$115.00"
926
+ * }
927
+ * },
928
+ * "payLater": {
929
+ * "subtotal": {
930
+ * "amount": "0",
931
+ * "convertedAmount": "0",
932
+ * "formattedAmount": "$0.00",
933
+ * "formattedConvertedAmount": "$0.00"
934
+ * },
935
+ * "shipping": {
936
+ * "amount": "0",
937
+ * "convertedAmount": "0",
938
+ * "formattedAmount": "$0.00",
939
+ * "formattedConvertedAmount": "$0.00"
940
+ * },
941
+ * "tax": {
942
+ * "amount": "0",
943
+ * "convertedAmount": "0",
944
+ * "formattedAmount": "$0.00",
945
+ * "formattedConvertedAmount": "$0.00"
946
+ * },
947
+ * "discount": {
948
+ * "amount": "0",
949
+ * "convertedAmount": "0",
950
+ * "formattedAmount": "$0.00",
951
+ * "formattedConvertedAmount": "$0.00"
952
+ * },
953
+ * "total": {
954
+ * "amount": "0",
955
+ * "convertedAmount": "0",
956
+ * "formattedAmount": "$0.00",
957
+ * "formattedConvertedAmount": "$0.00"
958
+ * }
959
+ * },
960
+ * "membershipOptions": {
961
+ * "eligibleMemberships": [],
962
+ * "invalidMemberships": [],
963
+ * "selectedMemberships": {
964
+ * "memberships": []
965
+ * }
966
+ * }
967
+ * }
968
+ *
969
+ */
970
+ ```
971
+
972
+
973
+
974
+ ## default
975
+
976
+ ```javascript
977
+ try {
978
+ const result = await checkout.createCheckout({
979
+ channelType: "WEB",
980
+ checkoutInfo: {
981
+ shippingInfo: {
982
+ shippingDestination: {
983
+ contactDetails: {
984
+ phone: "+972501234567"
985
+ },
986
+ address: {
987
+ country: "US"
988
+ }
989
+ }
990
+ }
991
+ },
992
+ lineItems: [{
993
+ catalogReference: {
994
+ appId: "215238eb-22a5-4c36-9e7b-e7c08025e04e",
995
+ catalogItemId: "9f75e3d8-7d99-4ff7-a5f1-462e897158ef"
996
+ },
997
+ quantity: 1
998
+ }]
999
+ });
1000
+ return result;
1001
+ } catch (error) {
1002
+ console.error(error);
1003
+ throw error;
1004
+ }
1005
+ ```
1006
+ </description>
1007
+ <type_definition>
1008
+ ```
1009
+ Method: ecom.checkout.createCheckout(options)
1010
+ Description: Creates a checkout. A checkout must include at least 1 item in `lineItems` or `customLineItems`. If passing `checkoutInfo.customFields`, then `checkoutInfo.customFields.value` is a required field.
1011
+ Method parameters:
1012
+ param name: options | type: CreateCheckoutOptions | description: Checkout creation options.
1013
+ - name: channelType | type: ChannelType | description: Sales channel that submitted the order. | required: true
1014
+ enum:
1015
+ AMAZON: [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop).
1016
+ BACKOFFICE_MERCHANT: Wix merchant backoffice.
1017
+ CLASS_PASS: [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass).
1018
+ EBAY: [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop).
1019
+ ETSY: [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel).
1020
+ FACEBOOK: [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops).
1021
+ FAIRE_COM: [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app).
1022
+ GLOBAL_E: Global-E sales channel.
1023
+ OTHER_PLATFORM: Other sales platform.
1024
+ PAYPAL_AGENTIC_CHECKOUT: PayPal Agentic Checkout sales channel.
1025
+ POS: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395).
1026
+ TIKTOK: [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel).
1027
+ UNSPECIFIED: Unspecified sales channel. This value is not supported.
1028
+ WEB: A web client.
1029
+ WISH: Wish sales channel.
1030
+ WIX_APP_STORE: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview).
1031
+ 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)
1032
+ - name: checkoutInfo | type: Checkout | description: Checkout information.
1033
+ - name: additionalFees | type: Array<AdditionalFee> | description: Additional Fees.
1034
+ - name: code | type: string | description: Additional fee's unique code (or GUID) for future processing.
1035
+ - 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.
1036
+ - name: name | type: string | description: Translated additional fee's name.
1037
+ - name: price | type: MultiCurrencyPrice | description: Additional fee's price.
1038
+ - name: amount | type: string | description: Amount.
1039
+ - name: priceAfterTax | type: MultiCurrencyPrice | description: Additional fee's price after tax.
1040
+ - name: priceBeforeTax | type: MultiCurrencyPrice | description: Additional fee's price before tax.
1041
+ - name: providerAppId | type: string | description: Provider's app id.
1042
+ - name: source | type: AdditionalFeeSource | description: the source the additional fee was added from
1043
+ enum:
1044
+ ITEM: The additional fee was added on the item either via the catalog or on custom line item
1045
+ MANUAL: The additional fee was added manually on the request
1046
+ SERVICE_PLUGIN: The additional fee was added by an additional fee service plugin
1047
+ SHIPPING: The additional fee was added by the shipping provider
1048
+ UNKNOWN_ADDITIONAL_FEE_SOURCE
1049
+ - name: taxDetails | type: ItemTaxFullDetails | description: Tax details.
1050
+ - name: taxRate | type: string | description: Tax rate %, as a decimal point between 0 and 1.
1051
+ - name: taxableAmount | type: MultiCurrencyPrice | description: Amount for which tax is calculated.
1052
+ - name: totalTax | type: MultiCurrencyPrice | description: Calculated tax, based on `taxable_amount` and `tax_rate`.
1053
+ - 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).
1054
+ - name: billingInfo | type: AddressWithContact | description: Billing information.
1055
+ - name: address | type: ApiAddress | description: Address.
1056
+ - name: addressLine1 | type: string | description: Main address line (usually street name and number).
1057
+ - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
1058
+ - name: city | type: string | description: City name.
1059
+ - name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
1060
+ - name: location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
1061
+ - name: latitude | type: number | description: Address latitude.
1062
+ - name: longitude | type: number | description: Address longitude.
1063
+ - name: postalCode | type: string | description: Postal or zip code.
1064
+ - name: streetAddress | type: StreetAddress | description: Street address.
1065
+ - name: name | type: string | description: Street name.
1066
+ - name: number | type: string | description: Street number.
1067
+ - 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.
1068
+ - name: contactDetails | type: FullAddressContactDetails | description: Contact details.
1069
+ - name: company | type: string | description: Company name.
1070
+ - name: firstName | type: string | description: First name.
1071
+ - name: lastName | type: string | description: Last name.
1072
+ - name: phone | type: string | description: Phone number.
1073
+ - name: vatId | type: CommonVatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
1074
+ - name: _id | type: string | description: Customer's tax GUID.
1075
+ - name: type | type: CommonVatType | description: Tax type. Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
1076
+ enum:
1077
+ CNPJ: CNPJ - for corporations
1078
+ CPF: CPF - for individual tax payers.
1079
+ UNSPECIFIED
1080
+ - name: businessLocationId | type: string | description: The business location GUID associated with the checkout. To learn more, see the Locations API.
1081
+ - name: buyerInfo | type: BuyerInfo | description: Buyer information.
1082
+ - name: email | type: string | description: Buyer email address.
1083
+ - ONE-OF:
1084
+ - name: memberId | type: string | description: Member GUID (if site visitor is a site member).
1085
+ - name: visitorId | type: string | description: Visitor GUID (if site visitor is **not** a member).
1086
+ - name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.
1087
+ - name: cartId | type: string | description: Cart GUID that this checkout was created from. Empty if this checkout wasn't created from a cart.
1088
+ - 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).
1089
+ - 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/).
1090
+ - 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/).
1091
+ - name: customFields | type: Array<CustomField> | description: Custom fields.
1092
+ - name: title | type: string | description: Custom field title.
1093
+ - name: translatedTitle | type: string | description: Translated custom field title.
1094
+ - name: value | type: any | description: Custom field value. | required: true
1095
+ - 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).
1096
+ - name: disabledManualPayment | type: boolean | description: Whether to disable manual payment option for this checkout. Default: `false`
1097
+ - name: disabledPolicyAgreementCheckbox | type: boolean | description: Whether to disable policy agreement checkout in the checkout page Default: `false`
1098
+ - name: lockCouponCode | type: boolean | description: Whether to restrict the option to add or remove a coupon code on the checkout page. Default: `false`
1099
+ - name: lockGiftCard | type: boolean | description: Whether to restrict the option to add or remove a gift card on the checkout page. Default: `false`
1100
+ - 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.
1101
+ - 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).
1102
+ - name: externalReference | type: ExternalReference | description: References to an external app and resource associated with this checkout. Used for integration and tracking across different platforms.
1103
+ - name: appId | type: string | description: GUID of the app associated with the purchase flow. For example, the Wix Pay Links app GUID.
1104
+ - 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.
1105
+ - name: membershipOptions | type: MembershipOptions | description: Memberships to apply when creating the order.
1106
+ - name: selectedMemberships | type: SelectedMemberships | description: Selected membership to apply to this checkout.
1107
+ - name: memberships | type: Array<SelectedMembership> | description: Selected memberships.
1108
+ - name: _id | type: string | description: Membership GUID. | required: true
1109
+ - name: appId | type: string | description: GUID of the app providing this payment option. | required: true
1110
+ - name: lineItemIds | type: Array<string> | description: IDs of the line items this membership applies to. | required: true
1111
+ - name: shippingInfo | type: ShippingInfo | description: Shipping information.
1112
+ - name: selectedCarrierServiceOption | type: SelectedCarrierServiceOption | description: Selected option out of the options allowed for the `region`.
1113
+ - name: carrierId | type: string | description: This carrier's unique GUID
1114
+ - name: code | type: string | description: Unique identifier of selected option. For example, "usps_std_overnight".
1115
+ - name: deliveryAllocations | type: Array<DeliveryAllocation> | description: Delivery solution allocations to different delivery carriers and delivery regions
1116
+ - name: applicableLineItems | type: ApplicableLineItems | description: Populated if the delivery solution is a partially supplied by this carrier.
1117
+ - name: lineItemIds | type: Array<string> | description: Line items that the delivery solution is for.
1118
+ - name: deliveryCarrier | type: Carrier | description: The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers
1119
+ - name: appId | type: string | description: The carrier app id
1120
+ - name: code | type: string | description: Unique code that acts as an GUID for a shipping rate. For example, `"usps_std_overnight"`.
1121
+ - name: deliveryRegion | type: Region | description: The delivery region that are relevant for this delivery solution.
1122
+ - name: _id | type: string | description: The delivery region id.
1123
+ - name: name | type: string | description: The delivery region name.
1124
+ - name: partial | type: boolean | description: If the delivery solution is a partial and doesn't apply to all items.
1125
+ - name: shippingDestination | type: AddressWithContact | description: Shipping address and contact details.
1126
+ - name: taxExemptGroupId | type: string | description: Tax exempt group GUID to use for tax exemptions.
1127
+ - name: couponCode | type: string | description: Coupon code.
1128
+ - name: customLineItems | type: Array<CustomLineItem> | description: Custom line items to add to the checkout. 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).
1129
+ - 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.
1130
+ - 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"`
1131
+ - name: catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.
1132
+ - 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).
1133
+ - name: deliveryProfileId | type: string | description: Delivery profile GUID.
1134
+ - 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.
1135
+ - name: descriptionLines | type: Array<DescriptionLine> | description: Custom line item description lines. Used for display purposes for the cart, checkout and order.
1136
+ - name: name | type: DescriptionLineName | description: Description line name.
1137
+ - 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).
1138
+ - name: translated | type: string | description: Description line name translated into the buyer's language. Default: Same as `original`.
1139
+ - ONE-OF:
1140
+ - name: colorInfo | type: Color | description: Description line color value.
1141
+ - name: code | type: string | description: HEX or RGB color code for display.
1142
+ - 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).
1143
+ - name: translated | type: string | description: Description line color name translated into the buyer's language. Default: Same as `original`.
1144
+ - name: plainText | type: PlainTextValue | description: Description line plain text value.
1145
+ - 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).
1146
+ - name: translated | type: string | description: Description line plain text value translated into the buyer's language. Default: Same as `original`.
1147
+ - ONE-OF:
1148
+ - name: fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed. Default: `false`
1149
+ - name: fullPrice | type: string | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.
1150
+ - name: itemType | type: ItemType | description: Item type. Either a preset type or custom. | required: true
1151
+ - ONE-OF:
1152
+ - name: custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.
1153
+ - name: preset | type: ItemTypePreset | description: Preset item type.
1154
+ enum: DIGITAL, GIFT_CARD, PHYSICAL, SERVICE, UNRECOGNISED
1155
+ - 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"`.
1156
+ - name: membersOnly | type: boolean | description: Whether the item can only be purchased by site members. Default: `false`
1157
+ - name: modifierGroups | type: Array<V1ModifierGroup> | description: Modifier groups that were added to the item.
1158
+ - name: _id | type: string | description: Modifier group GUID.
1159
+ - name: modifiers | type: Array<V1ItemModifier> | description: List of modifiers in this group.
1160
+ - name: _id | type: string | description: Modifier GUID.
1161
+ - name: details | type: TranslatableString | description: Additional details.
1162
+ - 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.
1163
+ - name: translated | type: string | description: String translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
1164
+ - name: label | type: TranslatableString | description: Primary display label for the modifier.
1165
+ - name: price | type: string | description: The price of the modifier.
1166
+ - name: quantity | type: number | description: The quantity of this modifier.
1167
+ - name: name | type: TranslatableString | description: Modifier group name.
1168
+ - 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.
1169
+ enum:
1170
+ DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
1171
+ FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
1172
+ FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
1173
+ 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.
1174
+ 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`.
1175
+ 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.
1176
+ - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.
1177
+ - name: shippable | type: boolean | description: Whether this line item is shippable.
1178
+ - name: sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
1179
+ - name: weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.
1180
+ - name: policies | type: Array<Policy> | description: Policies to be displayed to the customer on the checkout page.
1181
+ - name: content | type: string | description: Policy content - should be translated
1182
+ - name: title | type: string | description: Policy title - should be translated
1183
+ - 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. | required: true
1184
+ - 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".
1185
+ - 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).
1186
+ - name: translated | type: string | description: Price description translated into the buyer's language. Default: Same as `original`.
1187
+ - name: priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created. Default: `false`
1188
+ - name: productName | type: ProductName | description: Name of the item or product. | required: true
1189
+ - 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.
1190
+ - name: translated | type: string | description: Item name translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
1191
+ - name: quantity | type: number | description: Custom line item quantity. Min: `1` Max: `100000`
1192
+ - 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.
1193
+ - 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.
1194
+ - 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.
1195
+ - 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.
1196
+ - 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.
1197
+ - name: taxGroupId | type: string | description: Tax group GUID for this custom line item.
1198
+ - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.
1199
+ - ONE-OF:
1200
+ - name: addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.
1201
+ enum: BILLING, BUSINESS, SHIPPING, UNKNOWN_TAXABLE_ADDRESS
1202
+ - 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.
1203
+ - name: giftCardCode | type: string | description: Gift card code. The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`. >**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).
1204
+ - name: giftCardRedeemAmount | type: string | description: Amount to redeem from the gift card referenced in `gift_card_code`.
1205
+ - name: lineItems | type: Array<LineItem> | description: Catalog line items to add to the checkout.
1206
+ - 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).
1207
+ - name: depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.
1208
+ - name: descriptionLines | type: Array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.
1209
+ - name: fullPrice | type: string | description: Item price **before** discounts.
1210
+ - name: image | type: string | description: Item image.
1211
+ - name: paymentOption | type: PaymentOption | description: Payment method selected for the item.
1212
+ - name: value | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
1213
+ - name: physicalProperties | type: PhysicalProperties | description: Physical properties of the item.
1214
+ - name: price | type: string | description: Item price **after** discounts.
1215
+ - name: productName | type: ProductName | description: Item name.
1216
+ - name: savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
1217
+ - 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.
1218
+ - 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.
1219
+ - name: quantity | type: number | description: Item quantity. Min: `"1"` Max: `"100000"`
1220
+ - name: taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.
1221
+ - 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`.
1222
+ Return type: PROMISE<Checkout>
1223
+ - name: _createdDate | type: Date | description: Date and time the checkout was created.
1224
+ - name: _id | type: string | description: Checkout GUID.
1225
+ - name: _updatedDate | type: Date | description: Date and time the checkout was updated.
1226
+ - name: additionalFees | type: Array<AdditionalFee> | description: Additional Fees.
1227
+ - name: additionalFees[].code | type: string | description: Additional fee's unique code (or GUID) for future processing.
1228
+ - 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.
1229
+ - name: additionalFees[].name | type: string | description: Translated additional fee's name.
1230
+ - name: additionalFees[].price | type: MultiCurrencyPrice | description: Additional fee's price.
1231
+ - name: additionalFees[].price.amount | type: string | description: Amount.
1232
+ - name: additionalFees[].price.convertedAmount | type: string | description: Converted amount.
1233
+ - name: additionalFees[].price.formattedAmount | type: string | description: Amount formatted with currency symbol.
1234
+ - name: additionalFees[].price.formattedConvertedAmount | type: string | description: Converted amount formatted with currency symbol.
1235
+ - name: additionalFees[].priceAfterTax | type: MultiCurrencyPrice | description: Additional fee's price after tax.
1236
+ - name: additionalFees[].priceBeforeTax | type: MultiCurrencyPrice | description: Additional fee's price before tax.
1237
+ - name: additionalFees[].providerAppId | type: string | description: Provider's app id.
1238
+ - name: additionalFees[].source | type: AdditionalFeeSource | description: the source the additional fee was added from
1239
+ enum:
1240
+ ITEM: The additional fee was added on the item either via the catalog or on custom line item
1241
+ MANUAL: The additional fee was added manually on the request
1242
+ SERVICE_PLUGIN: The additional fee was added by an additional fee service plugin
1243
+ SHIPPING: The additional fee was added by the shipping provider
1244
+ UNKNOWN_ADDITIONAL_FEE_SOURCE
1245
+ - name: additionalFees[].taxDetails | type: ItemTaxFullDetails | description: Tax details.
1246
+ - name: additionalFees[].taxDetails.taxBreakdown | type: Array<TaxBreakdown> | description: tax information for a line item.
1247
+ - 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".
1248
+ - name: additionalFees[].taxDetails.taxBreakdown[].jurisdictionType | type: JurisdictionType | description: The type of the jurisdiction in which this tax detail applies.
1249
+ enum: CITY, COUNTRY, COUNTY, SPECIAL, STATE, UNDEFINED
1250
+ - name: additionalFees[].taxDetails.taxBreakdown[].nonTaxableAmount | type: MultiCurrencyPrice | description: The amount of this line item price that was considered nontaxable. (Decimal value)
1251
+ - 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)
1252
+ - name: additionalFees[].taxDetails.taxBreakdown[].taxAmount | type: MultiCurrencyPrice | description: The amount of tax estimated for this line item. (Decimal value)
1253
+ - 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.
1254
+ - 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.
1255
+ - name: additionalFees[].taxDetails.taxBreakdown[].taxableAmount | type: MultiCurrencyPrice | description: The taxable amount of this line item.
1256
+ - name: additionalFees[].taxDetails.taxRate | type: string | description: Tax rate %, as a decimal point between 0 and 1.
1257
+ - name: additionalFees[].taxDetails.taxableAmount | type: MultiCurrencyPrice | description: Amount for which tax is calculated.
1258
+ - name: additionalFees[].taxDetails.totalTax | type: MultiCurrencyPrice | description: Calculated tax, based on `taxable_amount` and `tax_rate`.
1259
+ - 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).
1260
+ - name: appliedDiscounts | type: Array<AppliedDiscount> | description: Applied discounts.
1261
+ - name: appliedDiscounts[].discountType | type: DiscountType | description: Discount type.
1262
+ enum: GLOBAL, SHIPPING, SPECIFIC_ITEMS
1263
+ - ONE-OF:
1264
+ - name: appliedDiscounts[].coupon | type: Coupon | description: Coupon details.
1265
+ - name: appliedDiscounts[].coupon._id | type: string | description: Coupon GUID.
1266
+ - name: appliedDiscounts[].coupon.amount | type: MultiCurrencyPrice | description: Coupon value.
1267
+ - name: appliedDiscounts[].coupon.code | type: string | description: Coupon code.
1268
+ - name: appliedDiscounts[].coupon.name | type: string | description: Coupon name.
1269
+ - name: appliedDiscounts[].discountRule | type: DiscountRule | description: Discount rule
1270
+ - name: appliedDiscounts[].discountRule._id | type: string | description: Discount rule GUID
1271
+ - name: appliedDiscounts[].discountRule.amount | type: MultiCurrencyPrice | description: Discount value.
1272
+ - name: appliedDiscounts[].discountRule.name | type: DiscountRuleName | description: Discount rule name
1273
+ - name: appliedDiscounts[].discountRule.name.original | type: string | description: Original discount rule name (in site's default language).
1274
+ - name: appliedDiscounts[].discountRule.name.translated | type: string | description: Translated discount rule name according to buyer language. Defaults to `original` when not provided.
1275
+ - name: appliedDiscounts[].merchantDiscount | type: MerchantDiscount | description: Merchant discount.
1276
+ - name: appliedDiscounts[].merchantDiscount.amount | type: MultiCurrencyPrice | description: Discount value.
1277
+ - name: appliedDiscounts[].merchantDiscount.percentage | type: number | description: Discount Percentage. Will be calculated from items price before other discounts.
1278
+ - name: billingInfo | type: AddressWithContact | description: Billing information.
1279
+ - name: billingInfo.address | type: ApiAddress | description: Address.
1280
+ - name: billingInfo.address.addressLine1 | type: string | description: Main address line (usually street name and number).
1281
+ - name: billingInfo.address.addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
1282
+ - name: billingInfo.address.city | type: string | description: City name.
1283
+ - 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.
1284
+ - name: billingInfo.address.countryFullname | type: string | description: Country's full name.
1285
+ - name: billingInfo.address.location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
1286
+ - name: billingInfo.address.location.latitude | type: number | description: Address latitude.
1287
+ - name: billingInfo.address.location.longitude | type: number | description: Address longitude.
1288
+ - name: billingInfo.address.postalCode | type: string | description: Postal or zip code.
1289
+ - name: billingInfo.address.streetAddress | type: StreetAddress | description: Street address.
1290
+ - name: billingInfo.address.streetAddress.name | type: string | description: Street name.
1291
+ - name: billingInfo.address.streetAddress.number | type: string | description: Street number.
1292
+ - 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.
1293
+ - name: billingInfo.address.subdivisionFullname | type: string | description: Subdivision full-name.
1294
+ - name: billingInfo.contactDetails | type: FullAddressContactDetails | description: Contact details.
1295
+ - name: billingInfo.contactDetails.company | type: string | description: Company name.
1296
+ - name: billingInfo.contactDetails.firstName | type: string | description: First name.
1297
+ - name: billingInfo.contactDetails.lastName | type: string | description: Last name.
1298
+ - name: billingInfo.contactDetails.phone | type: string | description: Phone number.
1299
+ - 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.
1300
+ - name: billingInfo.contactDetails.vatId._id | type: string | description: Customer's tax GUID.
1301
+ - name: billingInfo.contactDetails.vatId.type | type: CommonVatType | description: Tax type. Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
1302
+ enum:
1303
+ CNPJ: CNPJ - for corporations
1304
+ CPF: CPF - for individual tax payers.
1305
+ UNSPECIFIED
1306
+ - name: businessLocationId | type: string | description: The business location GUID associated with the checkout. To learn more, see the Locations API.
1307
+ - name: buyerInfo | type: BuyerInfo | description: Buyer information.
1308
+ - name: buyerInfo.contactId | type: string | description: Contact GUID. Auto-created if one does not yet exist. For more information, see the Contacts API.
1309
+ - name: buyerInfo.email | type: string | description: Buyer email address.
1310
+ - ONE-OF:
1311
+ - name: buyerInfo.memberId | type: string | description: Member GUID (if site visitor is a site member).
1312
+ - name: buyerInfo.visitorId | type: string | description: Visitor GUID (if site visitor is **not** a member).
1313
+ - 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.
1314
+ - name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.
1315
+ - name: calculationErrors | type: CalculationErrors | description: Errors when calculating totals.
1316
+ - name: calculationErrors.couponCalculationError | type: Details | description: Coupon calculation error.
1317
+ - ONE-OF:
1318
+ - name: calculationErrors.couponCalculationError.applicationError | type: ApplicationError | description: none
1319
+ - name: calculationErrors.couponCalculationError.applicationError.code | type: string | description: Error code.
1320
+ - name: calculationErrors.couponCalculationError.applicationError.data | type: Record<string, any> | description: Data related to the error.
1321
+ - name: calculationErrors.couponCalculationError.applicationError.description | type: string | description: Description of the error.
1322
+ - name: calculationErrors.couponCalculationError.systemError | type: SystemError | description: none
1323
+ - name: calculationErrors.couponCalculationError.systemError.errorCode | type: string | description: Error code.
1324
+ - name: calculationErrors.couponCalculationError.validationError | type: ValidationError | description: none
1325
+ - name: calculationErrors.couponCalculationError.validationError.fieldViolations | type: Array<FieldViolation> | description: none
1326
+ - name: calculationErrors.couponCalculationError.validationError.fieldViolations[].data | type: Record<string, any> | description: none
1327
+ - name: calculationErrors.couponCalculationError.validationError.fieldViolations[].description | type: string | description: none
1328
+ - name: calculationErrors.couponCalculationError.validationError.fieldViolations[].field | type: string | description: none
1329
+ - name: calculationErrors.couponCalculationError.validationError.fieldViolations[].ruleName | type: string | description: applicable when violated_rule=OTHER
1330
+ - name: calculationErrors.couponCalculationError.validationError.fieldViolations[].violatedRule | type: RuleType | description: none
1331
+ 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
1332
+ - name: calculationErrors.discountsCalculationError | type: Details | description: Discount Rule calculation error.
1333
+ - name: calculationErrors.giftCardCalculationError | type: Details | description: Gift card calculation error.
1334
+ - 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
1335
+ - name: calculationErrors.orderValidationErrors | type: Array<ApplicationError> | description: Order validation errors.
1336
+ - name: calculationErrors.taxCalculationError | type: Details | description: Tax calculation error.
1337
+ - ONE-OF:
1338
+ - name: calculationErrors.carrierErrors | type: CarrierErrors | description: Carrier errors.
1339
+ - name: calculationErrors.carrierErrors.errors | type: Array<CarrierError> | description: Carrier errors.
1340
+ - name: calculationErrors.carrierErrors.errors[].carrierId | type: string | description: Carrier GUID.
1341
+ - name: calculationErrors.carrierErrors.errors[].error | type: Details | description: Error details.
1342
+ - name: calculationErrors.generalShippingCalculationError | type: Details | description: General shipping calculation error.
1343
+ - name: cartId | type: string | description: Cart GUID that this checkout was created from. Empty if this checkout wasn't created from a cart.
1344
+ - name: channelType | type: ChannelType | description: Sales channel that submitted the order.
1345
+ enum:
1346
+ AMAZON: [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop).
1347
+ BACKOFFICE_MERCHANT: Wix merchant backoffice.
1348
+ CLASS_PASS: [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass).
1349
+ EBAY: [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop).
1350
+ ETSY: [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel).
1351
+ FACEBOOK: [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops).
1352
+ FAIRE_COM: [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app).
1353
+ GLOBAL_E: Global-E sales channel.
1354
+ OTHER_PLATFORM: Other sales platform.
1355
+ PAYPAL_AGENTIC_CHECKOUT: PayPal Agentic Checkout sales channel.
1356
+ POS: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395).
1357
+ TIKTOK: [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel).
1358
+ UNSPECIFIED: Unspecified sales channel. This value is not supported.
1359
+ WEB: A web client.
1360
+ WISH: Wish sales channel.
1361
+ WIX_APP_STORE: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview).
1362
+ 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)
1363
+ - 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).
1364
+ - 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.
1365
+ - name: createdBy | type: CreatedBy | description: GUID of the checkout's initiator.
1366
+ - ONE-OF:
1367
+ - name: createdBy.appId | type: string | description: App GUID. When the order was created by an external application or Wix service.
1368
+ - name: createdBy.memberId | type: string | description: Member GUID. When the order was created by a **logged in** site visitor.
1369
+ - 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).
1370
+ - name: createdBy.visitorId | type: string | description: Visitor GUID. When the order was created by a site visitor that was **not** logged in.
1371
+ - 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.
1372
+ - 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).
1373
+ - 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/).
1374
+ - 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/).
1375
+ - name: customFields | type: Array<CustomField> | description: Custom fields.
1376
+ - name: customFields[].title | type: string | description: Custom field title.
1377
+ - name: customFields[].translatedTitle | type: string | description: Translated custom field title.
1378
+ - name: customFields[].value | type: any | description: Custom field value. | required: true
1379
+ - 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).
1380
+ - name: customSettings.disabledManualPayment | type: boolean | description: Whether to disable manual payment option for this checkout. Default: `false`
1381
+ - name: customSettings.disabledPolicyAgreementCheckbox | type: boolean | description: Whether to disable policy agreement checkout in the checkout page Default: `false`
1382
+ - name: customSettings.lockCouponCode | type: boolean | description: Whether to restrict the option to add or remove a coupon code on the checkout page. Default: `false`
1383
+ - name: customSettings.lockGiftCard | type: boolean | description: Whether to restrict the option to add or remove a gift card on the checkout page. Default: `false`
1384
+ - 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.
1385
+ - 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).
1386
+ - name: externalReference | type: ExternalReference | description: References to an external app and resource associated with this checkout. Used for integration and tracking across different platforms.
1387
+ - name: externalReference.appId | type: string | description: GUID of the app associated with the purchase flow. For example, the Wix Pay Links app GUID.
1388
+ - 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.
1389
+ - 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).
1390
+ - name: giftCard.amount | type: MultiCurrencyPrice | description: Actual amount to be redeemed from the gift card.
1391
+ - name: giftCard.appId | type: string | description: App GUID of the gift card provider.
1392
+ - name: giftCard.externalId | type: string | description: External GUID in the gift card provider's system. Used for integration and tracking across different platforms.
1393
+ - name: giftCard.obfuscatedCode | type: string | description: Gift card obfuscated code.
1394
+ - name: giftCard.requestedAmount | type: MultiCurrencyPrice | description: Requested amount to redeem from the gift card.
1395
+ - name: lineItems | type: Array<LineItem> | description: Line items. Max: 300 items
1396
+ - name: lineItems[]._id | type: string | description: Line item GUID.
1397
+ - name: lineItems[].availability | type: ItemAvailabilityInfo | description: Item availability details.
1398
+ - name: lineItems[].availability.quantityAvailable | type: number | description: Quantity available.
1399
+ - name: lineItems[].availability.status | type: ItemAvailabilityStatus | description: Item availability status.
1400
+ enum: AVAILABLE, NOT_AVAILABLE: Item is not in stock.
1401
+ NOT_FOUND: Item does not exist.
1402
+ PARTIALLY_AVAILABLE: Available quantity is less than requested.
1403
+ - 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).
1404
+ - name: lineItems[].catalogOverrideFields.depositAmount | type: string | description: Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.
1405
+ - name: lineItems[].catalogOverrideFields.descriptionLines | type: Array<DescriptionLine> | description: Item description lines. Used when displaying the line item to customers.
1406
+ - name: lineItems[].catalogOverrideFields.descriptionLines[].name | type: DescriptionLineName | description: Description line name.
1407
+ - 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).
1408
+ - name: lineItems[].catalogOverrideFields.descriptionLines[].name.translated | type: string | description: Description line name translated into the buyer's language. Default: Same as `original`.
1409
+ - ONE-OF:
1410
+ - name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo | type: Color | description: Description line color value.
1411
+ - name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo.code | type: string | description: HEX or RGB color code for display.
1412
+ - 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).
1413
+ - name: lineItems[].catalogOverrideFields.descriptionLines[].colorInfo.translated | type: string | description: Description line color name translated into the buyer's language. Default: Same as `original`.
1414
+ - name: lineItems[].catalogOverrideFields.descriptionLines[].plainText | type: PlainTextValue | description: Description line plain text value.
1415
+ - 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).
1416
+ - name: lineItems[].catalogOverrideFields.descriptionLines[].plainText.translated | type: string | description: Description line plain text value translated into the buyer's language. Default: Same as `original`.
1417
+ - ONE-OF:
1418
+ - name: lineItems[].catalogOverrideFields.fullPrice | type: string | description: Item price **before** discounts.
1419
+ - name: lineItems[].catalogOverrideFields.image | type: string | description: Item image.
1420
+ - name: lineItems[].catalogOverrideFields.paymentOption | type: PaymentOption | description: Payment method selected for the item.
1421
+ - name: lineItems[].catalogOverrideFields.paymentOption.value | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
1422
+ enum:
1423
+ DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
1424
+ FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
1425
+ FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
1426
+ 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.
1427
+ 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`.
1428
+ 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.
1429
+ - name: lineItems[].catalogOverrideFields.physicalProperties | type: PhysicalProperties | description: Physical properties of the item.
1430
+ - name: lineItems[].catalogOverrideFields.physicalProperties.shippable | type: boolean | description: Whether this line item is shippable.
1431
+ - 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).
1432
+ - name: lineItems[].catalogOverrideFields.physicalProperties.weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.
1433
+ - name: lineItems[].catalogOverrideFields.price | type: string | description: Item price **after** discounts.
1434
+ - name: lineItems[].catalogOverrideFields.productName | type: ProductName | description: Item name.
1435
+ - 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.
1436
+ - 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`.
1437
+ - name: lineItems[].catalogOverrideFields.savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
1438
+ - 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.
1439
+ - 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"`
1440
+ - name: lineItems[].catalogReference.catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.
1441
+ - 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).
1442
+ - 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.
1443
+ - 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.
1444
+ - name: lineItems[].deliveryProfileId | type: string | description: Delivery profile GUID.
1445
+ - 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.
1446
+ - name: lineItems[].descriptionLines | type: Array<DescriptionLine> | description: Line item description lines. Used for display purposes for the cart, checkout and order.
1447
+ - name: lineItems[].discount | type: MultiCurrencyPrice | description: Discount for this line item's entire quantity.
1448
+ - 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.
1449
+ - name: lineItems[].fixedQuantity | type: boolean | description: Whether the line item quantity is fixed and cannot be changed.
1450
+ - name: lineItems[].fullPrice | type: MultiCurrencyPrice | description: Item price **before** catalog-defined discount. Defaults to `price` when not provided.
1451
+ - name: lineItems[].itemType | type: ItemType | description: Item type. Either a preset type or custom.
1452
+ - ONE-OF:
1453
+ - name: lineItems[].itemType.custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.
1454
+ - name: lineItems[].itemType.preset | type: ItemTypePreset | description: Preset item type.
1455
+ enum: DIGITAL, GIFT_CARD, PHYSICAL, SERVICE, UNRECOGNISED
1456
+ - name: lineItems[].lineItemPrice | type: MultiCurrencyPrice | description: Total line item price **after** catalog-defined discount and line item discounts.
1457
+ - name: lineItems[].media | type: string | description: Line item image details.
1458
+ - name: lineItems[].membersOnly | type: boolean | description: Whether the item can only be purchased by site members. Default: `false`
1459
+ - name: lineItems[].modifierGroups | type: Array<ModifierGroup> | description: Modifier groups that were added to the item.
1460
+ - name: lineItems[].modifierGroups[]._id | type: string | description: Modifier group GUID.
1461
+ - name: lineItems[].modifierGroups[].modifiers | type: Array<ItemModifier> | description: List of modifiers in this group.
1462
+ - name: lineItems[].modifierGroups[].modifiers[]._id | type: string | description: Modifier GUID.
1463
+ - name: lineItems[].modifierGroups[].modifiers[].details | type: TranslatableString | description: Additional details.
1464
+ - 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.
1465
+ - 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`.
1466
+ - name: lineItems[].modifierGroups[].modifiers[].label | type: TranslatableString | description: Primary display label for the modifier.
1467
+ - name: lineItems[].modifierGroups[].modifiers[].price | type: MultiCurrencyPrice | description: The price of the modifier.
1468
+ - name: lineItems[].modifierGroups[].modifiers[].quantity | type: number | description: The quantity of this modifier.
1469
+ - name: lineItems[].modifierGroups[].name | type: TranslatableString | description: Modifier group name.
1470
+ - name: lineItems[].modifiersTotalPrice | type: MultiCurrencyPrice | description: Total price of all item modifiers. Included in the item price.
1471
+ - name: lineItems[].paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
1472
+ - name: lineItems[].physicalProperties | type: PhysicalProperties | description: Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
1473
+ - name: lineItems[].policies | type: Array<Policy> | description: Policies to be displayed to the customer on the checkout page.
1474
+ - name: lineItems[].policies[].content | type: string | description: Policy content - should be translated
1475
+ - name: lineItems[].policies[].title | type: string | description: Policy title - should be translated
1476
+ - name: lineItems[].price | type: MultiCurrencyPrice | description: Item price **after** catalog-defined discount and line item discounts.
1477
+ - name: lineItems[].priceBeforeDiscounts | type: MultiCurrencyPrice | description: Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
1478
+ - 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".
1479
+ - 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).
1480
+ - name: lineItems[].priceDescription.translated | type: string | description: Price description translated into the buyer's language. Default: Same as `original`.
1481
+ - name: lineItems[].priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created.
1482
+ - name: lineItems[].productName | type: ProductName | description: Item name. + Stores - `product.name` + Bookings - `service.info.name` + Events - `ticket.name`
1483
+ - name: lineItems[].quantity | type: number | description: Item quantity. Min: `"1"` Max: `"100000"`
1484
+ - 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.
1485
+ - name: lineItems[].savePaymentMethod | type: boolean | description: Whether to save the payment method on the order. Default: `false`
1486
+ - name: lineItems[].serviceProperties | type: ServiceProperties | description: Service properties. When relevant, this contains information such as date and number of participants.
1487
+ - 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.
1488
+ - 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.
1489
+ - name: lineItems[].subscriptionOptionInfo | type: SubscriptionOptionInfo | description: Subscription option information.
1490
+ - name: lineItems[].subscriptionOptionInfo.description | type: Description | description: Subscription option description.
1491
+ - name: lineItems[].subscriptionOptionInfo.description.original | type: string | description: Subscription option description.
1492
+ - name: lineItems[].subscriptionOptionInfo.description.translated | type: string | description: Translated subscription option description.
1493
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings | type: SubscriptionSettings | description: Subscription option settings.
1494
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.autoRenewal | type: boolean | description: Whether subscription is renewed automatically at the end of each period.
1495
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.billingCycles | type: number | description: Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.
1496
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation | type: boolean | description: Whether to allow the customer to cancel the subscription..
1497
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod | type: FreeTrialPeriod | description: Period until first cycle starts. If applied payNow will be 0 If None => no free trial
1498
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod.frequency | type: SubscriptionFrequency | description: Frequency of period. Values: DAY, WEEK, MONTH, YEAR
1499
+ enum: DAY, MONTH, UNDEFINED, WEEK, YEAR
1500
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.freeTrialPeriod.interval | type: number | description: interval of period
1501
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.frequency | type: SubscriptionFrequency | description: Frequency of recurring payment.
1502
+ - name: lineItems[].subscriptionOptionInfo.subscriptionSettings.interval | type: number | description: Interval of recurring payment. Default: `1`. If SubscriptionFrequency is Day the minimum interval is 7
1503
+ - name: lineItems[].subscriptionOptionInfo.title | type: Title | description: Subscription option title.
1504
+ - 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).
1505
+ - name: lineItems[].subscriptionOptionInfo.title.translated | type: string | description: Subscription option name translated into the buyer's language. Default: Same as `original`.
1506
+ - name: lineItems[].taxDetails | type: ItemTaxFullDetails | description: Tax details for this line item.
1507
+ - name: lineItems[].taxableAddress | type: TaxableAddress | description: Address to use for tax calculation purposes.
1508
+ - ONE-OF:
1509
+ - 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.
1510
+ enum: BILLING, BUSINESS, SHIPPING, UNKNOWN_TAXABLE_ADDRESS
1511
+ - name: lineItems[].totalPriceAfterTax | type: MultiCurrencyPrice | description: Total price after all discounts and tax.
1512
+ - name: lineItems[].totalPriceBeforeTax | type: MultiCurrencyPrice | description: Total price after discounts, and before tax.
1513
+ - name: lineItems[].url | type: string | description: URL to the item's page on the site.
1514
+ - name: membershipOptions | type: MembershipOptions | description: Memberships to apply when creating the order.
1515
+ - name: membershipOptions.eligibleMemberships | type: Array<Membership> | description: Reserved for internal use.
1516
+ - name: membershipOptions.eligibleMemberships[]._id | type: string | description: Membership GUID.
1517
+ - name: membershipOptions.eligibleMemberships[].additionalData | type: Record<string, any> | description: Additional data about this membership.
1518
+ - name: membershipOptions.eligibleMemberships[].appId | type: string | description: GUID of the application providing this payment option.
1519
+ - name: membershipOptions.eligibleMemberships[].credits | type: MembershipPaymentCredits | description: Optional - For a membership that has limited credits, information about credit usage.
1520
+ - name: membershipOptions.eligibleMemberships[].credits.remaining | type: number | description: Membership's remaining amount of credits.
1521
+ - name: membershipOptions.eligibleMemberships[].credits.total | type: number | description: Membership's total amount of credits.
1522
+ - name: membershipOptions.eligibleMemberships[].expirationDate | type: Date | description: Optional - TMembership expiry date.
1523
+ - name: membershipOptions.eligibleMemberships[].lineItemIds | type: Array<string> | description: Line item GUIDs which are "paid" for by this membership.
1524
+ - name: membershipOptions.eligibleMemberships[].name | type: MembershipName | description: The name of this membership.
1525
+ - name: membershipOptions.eligibleMemberships[].name.original | type: string | description: Membership name.
1526
+ - name: membershipOptions.eligibleMemberships[].name.translated | type: string | description: Translated membership name. Defaults to `original` when not provided.
1527
+ - name: membershipOptions.invalidMemberships | type: Array<InvalidMembership> | description: Reserved for internal use.
1528
+ - name: membershipOptions.invalidMemberships[].membership | type: Membership | description: Membership details.
1529
+ - name: membershipOptions.invalidMemberships[].reason | type: string | description: Reason why this membership is invalid and cannot be used.
1530
+ - name: membershipOptions.selectedMemberships | type: SelectedMemberships | description: Selected membership to apply to this checkout.
1531
+ - name: membershipOptions.selectedMemberships.memberships | type: Array<SelectedMembership> | description: Selected memberships.
1532
+ - name: membershipOptions.selectedMemberships.memberships[]._id | type: string | description: Membership GUID. | required: true
1533
+ - name: membershipOptions.selectedMemberships.memberships[].appId | type: string | description: GUID of the app providing this payment option. | required: true
1534
+ - name: membershipOptions.selectedMemberships.memberships[].lineItemIds | type: Array<string> | description: IDs of the line items this membership applies to. | required: true
1535
+ - name: payAfterFreeTrial | type: PriceSummary | description: Payment for subscriptions after free trial period.
1536
+ - name: payAfterFreeTrial.additionalFees | type: MultiCurrencyPrice | description: Total additional fees price before tax.
1537
+ - name: payAfterFreeTrial.discount | type: MultiCurrencyPrice | description: Total calculated discount value.
1538
+ - name: payAfterFreeTrial.shipping | type: MultiCurrencyPrice | description: Total shipping price, before discounts and before tax.
1539
+ - name: payAfterFreeTrial.subtotal | type: MultiCurrencyPrice | description: Subtotal of all line items, before discounts and before tax.
1540
+ - name: payAfterFreeTrial.tax | type: MultiCurrencyPrice | description: Total tax.
1541
+ - name: payAfterFreeTrial.total | type: MultiCurrencyPrice | description: Total price after discounts, gift cards, and tax.
1542
+ - name: payLater | type: PriceSummary | description: Remaining amount for the order to be fully paid.
1543
+ - name: payNow | type: PriceSummary | description: Minimal amount to pay in order to place the order.
1544
+ - 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.
1545
+ - name: priceSummary | type: PriceSummary | description: Calculated price summary for the checkout.
1546
+ - name: purchaseFlowId | type: string | description: Persistent GUID that correlates between the various eCommerce elements: cart, checkout, and order.
1547
+ - name: shippingInfo | type: ShippingInfo | description: Shipping information.
1548
+ - name: shippingInfo.carrierServiceOptions | type: Array<CarrierServiceOption> | description: All carrier options for this shipping rule.
1549
+ - name: shippingInfo.carrierServiceOptions[].carrierId | type: string | description: Carrier GUID.
1550
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions | type: Array<ShippingOption> | description: Shipping options offered by this carrier for this request.
1551
+ - 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.
1552
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost | type: ShippingPrice | description: Sipping price information.
1553
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.otherCharges | type: Array<OtherCharge> | description: Other costs such as insurance, handling & packaging for fragile items, etc.
1554
+ - 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"`.
1555
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.otherCharges[].price | type: MultiCurrencyPrice | description: Price of added cost.
1556
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.otherCharges[].type | type: ChargeType | description: Type of additional cost.
1557
+ enum: HANDLING_FEE, INSURANCE
1558
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].cost.price | type: MultiCurrencyPrice | description: Shipping price.
1559
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations | type: Array<DeliveryAllocation> | description: Delivery solution allocations to different delivery carriers and delivery regions
1560
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].applicableLineItems | type: ApplicableLineItems | description: Populated if the delivery solution is a partially supplied by this carrier.
1561
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].applicableLineItems.lineItemIds | type: Array<string> | description: Line items that the delivery solution is for.
1562
+ - 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
1563
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryCarrier.appId | type: string | description: The carrier app id
1564
+ - 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"`.
1565
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryRegion | type: Region | description: The delivery region that are relevant for this delivery solution.
1566
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryRegion._id | type: string | description: The delivery region id.
1567
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].deliveryAllocations[].deliveryRegion.name | type: string | description: The delivery region name.
1568
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics | type: DeliveryLogistics | description: Delivery logistics.
1569
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.deliveryTime | type: string | description: Expected delivery time, in free text. For example, "3-5 business days".
1570
+ - 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".
1571
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.pickupDetails | type: PickupDetails | description: Pickup details.
1572
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.pickupDetails.address | type: ApiAddress | description: Pickup address.
1573
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].logistics.pickupDetails.pickupMethod | type: PickupMethod | description: Pickup method
1574
+ enum: PICKUP_POINT, STORE_PICKUP, UNKNOWN_METHOD
1575
+ - name: shippingInfo.carrierServiceOptions[].shippingOptions[].partial | type: boolean | description: If the delivery solution is a partial and doesn't apply to all items.
1576
+ - 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".
1577
+ - name: shippingInfo.region | type: ShippingRegion | description: Shipping region. Based on the address provided.
1578
+ - name: shippingInfo.region._id | type: string | description: Shipping region GUID.
1579
+ - name: shippingInfo.region.name | type: string | description: Shipping region name.
1580
+ - name: shippingInfo.selectedCarrierServiceOption | type: SelectedCarrierServiceOption | description: Selected option out of the options allowed for the `region`.
1581
+ - name: shippingInfo.selectedCarrierServiceOption.carrierId | type: string | description: This carrier's unique GUID
1582
+ - name: shippingInfo.selectedCarrierServiceOption.code | type: string | description: Unique identifier of selected option. For example, "usps_std_overnight".
1583
+ - name: shippingInfo.selectedCarrierServiceOption.cost | type: SelectedCarrierServiceOptionPrices | description: Shipping costs.
1584
+ - name: shippingInfo.selectedCarrierServiceOption.cost.price | type: MultiCurrencyPrice | description: Shipping price before discount and before tax.
1585
+ - name: shippingInfo.selectedCarrierServiceOption.cost.taxDetails | type: ItemTaxFullDetails | description: Tax details.
1586
+ - name: shippingInfo.selectedCarrierServiceOption.cost.totalDiscount | type: MultiCurrencyPrice | description: Shipping discount before tax.
1587
+ - name: shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax | type: MultiCurrencyPrice | description: Total shipping price, after discount and after tax.
1588
+ - name: shippingInfo.selectedCarrierServiceOption.cost.totalPriceBeforeTax | type: MultiCurrencyPrice | description: Total price of shipping after discounts (when relevant), and before tax.
1589
+ - name: shippingInfo.selectedCarrierServiceOption.deliveryAllocations | type: Array<DeliveryAllocation> | description: Delivery solution allocations to different delivery carriers and delivery regions
1590
+ - name: shippingInfo.selectedCarrierServiceOption.logistics | type: DeliveryLogistics | description: Delivery logistics.
1591
+ - name: shippingInfo.selectedCarrierServiceOption.partial | type: boolean | description: If the delivery solution is a partial and doesn't apply to all items.
1592
+ - 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)
1593
+ - 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".
1594
+ - name: shippingInfo.shippingDestination | type: AddressWithContact | description: Shipping address and contact details.
1595
+ - name: siteLanguage | type: string | description: Site language in which original values are shown.
1596
+ - name: taxExemptGroupId | type: string | description: Tax exempt group GUID to use for tax exemptions.
1597
+ - name: taxIncludedInPrice | type: boolean | description: Whether tax is included in line item prices.
1598
+ - name: taxSummary | type: TaxSummary | description: Tax summary.
1599
+ - name: taxSummary.taxableAmount | type: MultiCurrencyPrice | description: Amount for which tax is calculated, added from line items.
1600
+ - name: taxSummary.totalTax | type: MultiCurrencyPrice | description: Calculated tax, added from line items.
1601
+ - 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).
1602
+ - 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>`.
1603
+ - 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.
1604
+ enum:
1605
+ 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.
1606
+ WARNING: The user is allowed to move forward in the flow.
1607
+ - name: violations[].target | type: Target | description: Target location on a checkout or cart page where the violation will be displayed.
1608
+ - ONE-OF:
1609
+ - name: violations[].target.lineItem | type: TargetLineItem | description: Specific line item violation.
1610
+ - name: violations[].target.lineItem._id | type: string | description: GUID of the line item containing the violation.
1611
+ - 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.
1612
+ enum:
1613
+ LINE_ITEM_DEFAULT: Default location, in case no specific location is specified.
1614
+ - name: violations[].target.other | type: Other | description: General (other) violation.
1615
+ - name: violations[].target.other.name | type: NameInOther | description: Location on a checkout or a cart page where a general (other) violation will be displayed.
1616
+ enum:
1617
+ OTHER_DEFAULT: Default location, in case no specific location is specified.
1618
+ - name: weightUnit | type: WeightUnit | description: Weight measurement unit. Defaults to a site's weight unit.
1619
+ enum:
1620
+ KG: Kilograms.
1621
+ LB: Pounds.
1622
+ UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
1623
+ Possible Errors:
1624
+ HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: GIFT_CARD_CODE_INVALID
1625
+ HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: GIFT_CARD_NOT_FOUND
1626
+ HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: INVALID_SELECTED_CARRIER_SERVICE_OPTION
1627
+ HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: SELECTED_CARRIER_SERVICE_OPTION_NOT_FOUND
1628
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SITE_MUST_ACCEPT_PAYMENTS
1629
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_DOES_NOT_EXIST
1630
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_HAS_EXPIRED
1631
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_IS_NOT_ACTIVE_YET
1632
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED
1633
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ERROR_COUPON_USAGE_EXCEEDED
1634
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GIFT_CARD_EXPIRED
1635
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GIFT_CARD_DISABLED
1636
+ HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GIFT_CARD_IS_EMPTY
1637
+
1638
+
1639
+ ```
1640
+ </type_definition>
1641
+ </ecom_checkout_createCheckout>