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