Search.../

addToCheckout( )

Adds catalog line items and/or custom line items to a checkout.

Description

The addToCheckout() function returns a Promise that resolves to the updated checkout when the specified items have been added.

Note: When adding catalog items, options.lineItems.catalogReference is required.

Syntax

function addToCheckout(_id: string, options: AddToCheckoutOptions): Promise<AddToCheckoutResponse>

addToCheckout Parameters

NAME
TYPE
DESCRIPTION
_id
string

Checkout ID.

options
Optional
AddToCheckoutOptions

Items to be added to checkout.

Returns

Return Type:

Promise<
AddToCheckoutResponse
>
NAME
TYPE
DESCRIPTION
checkout
Checkout

Updated checkout.

Was this helpful?

Add a catalog item to a checkout

Copy Code
1/**************************************
2 * Backend code - my-backend-file.jsw *
3 *************************************/
4
5import { checkout } from 'wix-ecom-backend';
6
7export async function myAddToCheckoutFunction(_id, options) {
8 try {
9 const updatedCheckout = await checkout.addToCheckout(_id, options);
10 console.log('Success! Updated checkout:', updatedCheckout);
11 return updatedCheckout;
12 } catch (error) {
13 console.error(error);
14 // Handle the error
15 }
16}
17
18/*************
19 * Page code *
20 ************/
21
22import { myAddToCheckoutFunction } from 'backend/my-backend-file';
23
24// Sample checkout ID:
25const _id = "63879d9f-0d1c-49aa-a0c5-5fc612a24ec7";
26// Sample addToCheckout options:
27const options = {
28 "lineItems": [{
29 "catalogReference": {
30 // Wix Stores appId
31 "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
32 // Wix Stores productId
33 "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",
34 // Wix Stores variantId
35 "options": {
36 "variantId": "e62fee23-7878-437a-bf0e-292f17d11cb5"
37 }
38 },
39 "quantity": 1
40 }]
41};
42
43myAddToCheckoutFunction(_id, options)
44 .then((updatedCheckout) => {
45 const checkoutSubtotal = updatedCheckout.priceSummary.subtotal.amount;
46 const numberOfCheckoutLineItems = updatedCheckout.lineItems.length;
47
48 console.log('Success! Updated checkout:', updatedCheckout);
49 return updatedCheckout;
50 })
51 .catch((error) => {
52 console.error(error);
53 // Handle the error
54 });
55
56/* Promise resolves to:
57 *
58 * {
59 * "_id": "63879d9f-0d1c-49aa-a0c5-5fc612a24ec7",
60 * "lineItems": [
61 * {
62 * "_id": "00000000-0000-0000-0000-000000000001",
63 * "quantity": 1,
64 * "catalogReference": {
65 * "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",
66 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"
67 * },
68 * "productName": {
69 * "original": "Shirt",
70 * "translated": "Shirt"
71 * },
72 * "url": "https://example.wixsite.com/ep-tester/product-page/shirt",
73 * "price": {
74 * "amount": "10",
75 * "convertedAmount": "10",
76 * "formattedAmount": "$10.00",
77 * "formattedConvertedAmount": "$10.00"
78 * },
79 * "lineItemPrice": {
80 * "amount": "10",
81 * "convertedAmount": "10",
82 * "formattedAmount": "$10.00",
83 * "formattedConvertedAmount": "$10.00"
84 * },
85 * "fullPrice": {
86 * "amount": "10",
87 * "convertedAmount": "10",
88 * "formattedAmount": "$10.00",
89 * "formattedConvertedAmount": "$10.00"
90 * },
91 * "priceBeforeDiscounts": {
92 * "amount": "10",
93 * "convertedAmount": "10",
94 * "formattedAmount": "$10.00",
95 * "formattedConvertedAmount": "$10.00"
96 * },
97 * "totalPriceAfterTax": {
98 * "amount": "10",
99 * "convertedAmount": "10",
100 * "formattedAmount": "$10.00",
101 * "formattedConvertedAmount": "$10.00"
102 * },
103 * "totalPriceBeforeTax": {
104 * "amount": "10",
105 * "convertedAmount": "10",
106 * "formattedAmount": "$10.00",
107 * "formattedConvertedAmount": "$10.00"
108 * },
109 * "taxDetails": {
110 * "taxableAmount": {
111 * "amount": "10",
112 * "convertedAmount": "10",
113 * "formattedAmount": "$10.00",
114 * "formattedConvertedAmount": "$10.00"
115 * },
116 * "taxRate": "0",
117 * "totalTax": {
118 * "amount": "0",
119 * "convertedAmount": "0",
120 * "formattedAmount": "$0.00",
121 * "formattedConvertedAmount": "$0.00"
122 * },
123 * "rateBreakdown": []
124 * },
125 * "discount": {
126 * "amount": "0",
127 * "convertedAmount": "0",
128 * "formattedAmount": "$0.00",
129 * "formattedConvertedAmount": "$0.00"
130 * },
131 * "descriptionLines": [],
132 * "media": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",
133 * "availability": {
134 * "status": "AVAILABLE"
135 * },
136 * "physicalProperties": {
137 * "sku": "364115376135191",
138 * "shippable": true
139 * },
140 * "couponScopes": [
141 * {
142 * "namespace": "stores",
143 * "group": {
144 * "name": "collection",
145 * "entityId": "00000000-000000-000000-000000000001"
146 * }
147 * },
148 * {
149 * "namespace": "stores",
150 * "group": {
151 * "name": "product",
152 * "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"
153 * }
154 * }
155 * ],
156 * "itemType": {
157 * "preset": "PHYSICAL"
158 * },
159 * "paymentOption": "FULL_PAYMENT_ONLINE",
160 * "rootCatalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"
161 * },
162 * {
163 * "_id": "00000000-0000-0000-0000-000000000002",
164 * "quantity": 1,
165 * "catalogReference": {
166 * "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",
167 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
168 * "options": {
169 * "variantId": "e62fee23-7878-437a-bf0e-292f17d11cb5"
170 * }
171 * },
172 * "productName": {
173 * "original": "Shoe",
174 * "translated": "Shoe"
175 * },
176 * "url": "https://example.wixsite.com/ep-tester/product-page/shoe",
177 * "price": {
178 * "amount": "85",
179 * "convertedAmount": "85",
180 * "formattedAmount": "$85.00",
181 * "formattedConvertedAmount": "$85.00"
182 * },
183 * "lineItemPrice": {
184 * "amount": "85",
185 * "convertedAmount": "85",
186 * "formattedAmount": "$85.00",
187 * "formattedConvertedAmount": "$85.00"
188 * },
189 * "fullPrice": {
190 * "amount": "85",
191 * "convertedAmount": "85",
192 * "formattedAmount": "$85.00",
193 * "formattedConvertedAmount": "$85.00"
194 * },
195 * "priceBeforeDiscounts": {
196 * "amount": "85",
197 * "convertedAmount": "85",
198 * "formattedAmount": "$85.00",
199 * "formattedConvertedAmount": "$85.00"
200 * },
201 * "totalPriceAfterTax": {
202 * "amount": "85",
203 * "convertedAmount": "85",
204 * "formattedAmount": "$85.00",
205 * "formattedConvertedAmount": "$85.00"
206 * },
207 * "totalPriceBeforeTax": {
208 * "amount": "85",
209 * "convertedAmount": "85",
210 * "formattedAmount": "$85.00",
211 * "formattedConvertedAmount": "$85.00"
212 * },
213 * "taxDetails": {
214 * "taxableAmount": {
215 * "amount": "85",
216 * "convertedAmount": "85",
217 * "formattedAmount": "$85.00",
218 * "formattedConvertedAmount": "$85.00"
219 * },
220 * "taxRate": "0",
221 * "totalTax": {
222 * "amount": "0",
223 * "convertedAmount": "0",
224 * "formattedAmount": "$0.00",
225 * "formattedConvertedAmount": "$0.00"
226 * },
227 * "rateBreakdown": []
228 * },
229 * "discount": {
230 * "amount": "0",
231 * "convertedAmount": "0",
232 * "formattedAmount": "$0.00",
233 * "formattedConvertedAmount": "$0.00"
234 * },
235 * "descriptionLines": [
236 * {
237 * "name": {
238 * "original": "Color",
239 * "translated": "Color"
240 * },
241 * "colorInfo": {
242 * "original": "Black",
243 * "translated": "Black",
244 * "code": "#000"
245 * },
246 * "lineType": "COLOR",
247 * "color": "Black"
248 * }
249 * ],
250 * "media": "wix:image://v1/3c76e2_bf235c38610f4d2a905db71095b351cf~mv2.jpg#originWidth=1000&originHeight=1000",
251 * "availability": {
252 * "status": "AVAILABLE",
253 * "quantityAvailable": 30
254 * },
255 * "physicalProperties": {
256 * "sku": "364215376135191",
257 * "shippable": true
258 * },
259 * "couponScopes": [
260 * {
261 * "namespace": "stores",
262 * "group": {
263 * "name": "collection",
264 * "entityId": "00000000-000000-000000-000000000001"
265 * }
266 * },
267 * {
268 * "namespace": "stores",
269 * "group": {
270 * "name": "product",
271 * "entityId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"
272 * }
273 * }
274 * ],
275 * "itemType": {
276 * "preset": "PHYSICAL"
277 * },
278 * "paymentOption": "FULL_PAYMENT_ONLINE",
279 * "rootCatalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"
280 * }
281 * ],
282 * "shippingInfo": {
283 * "carrierServiceOptions": []
284 * },
285 * "buyerInfo": {
286 * "contactId": "f7dc17a6-825a-466e-a78e-c4abea0217db",
287 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
288 * },
289 * "conversionCurrency": "USD",
290 * "priceSummary": {
291 * "subtotal": {
292 * "amount": "95",
293 * "convertedAmount": "95",
294 * "formattedAmount": "$95.00",
295 * "formattedConvertedAmount": "$95.00"
296 * },
297 * "shipping": {
298 * "amount": "0",
299 * "convertedAmount": "0",
300 * "formattedAmount": "$0.00",
301 * "formattedConvertedAmount": "$0.00"
302 * },
303 * "tax": {
304 * "amount": "0",
305 * "convertedAmount": "0",
306 * "formattedAmount": "$0.00",
307 * "formattedConvertedAmount": "$0.00"
308 * },
309 * "discount": {
310 * "amount": "0",
311 * "convertedAmount": "0",
312 * "formattedAmount": "$0.00",
313 * "formattedConvertedAmount": "$0.00"
314 * },
315 * "total": {
316 * "amount": "95",
317 * "convertedAmount": "95",
318 * "formattedAmount": "$95.00",
319 * "formattedConvertedAmount": "$95.00"
320 * },
321 * "additionalFees": {
322 * "amount": "0",
323 * "convertedAmount": "0",
324 * "formattedAmount": "$0.00",
325 * "formattedConvertedAmount": "$0.00"
326 * }
327 * },
328 * "calculationErrors": {
329 * "orderValidationErrors": []
330 * },
331 * "appliedDiscounts": [],
332 * "customFields": [],
333 * "weightUnit": "KG",
334 * "currency": "USD",
335 * "channelType": "WEB",
336 * "siteLanguage": "en",
337 * "buyerLanguage": "en",
338 * "completed": false,
339 * "taxIncludedInPrice": false,
340 * "createdBy": {
341 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
342 * },
343 * "_createdDate": "2023-01-04T15:11:20.762Z",
344 * "_updatedDate": "2023-01-04T15:15:24.035Z",
345 * "payNow": {
346 * "subtotal": {
347 * "amount": "95",
348 * "convertedAmount": "95",
349 * "formattedAmount": "$95.00",
350 * "formattedConvertedAmount": "$95.00"
351 * },
352 * "shipping": {
353 * "amount": "0",
354 * "convertedAmount": "0",
355 * "formattedAmount": "$0.00",
356 * "formattedConvertedAmount": "$0.00"
357 * },
358 * "tax": {
359 * "amount": "0",
360 * "convertedAmount": "0",
361 * "formattedAmount": "$0.00",
362 * "formattedConvertedAmount": "$0.00"
363 * },
364 * "discount": {
365 * "amount": "0",
366 * "convertedAmount": "0",
367 * "formattedAmount": "$0.00",
368 * "formattedConvertedAmount": "$0.00"
369 * },
370 * "total": {
371 * "amount": "95",
372 * "convertedAmount": "95",
373 * "formattedAmount": "$95.00",
374 * "formattedConvertedAmount": "$95.00"
375 * },
376 * "additionalFees": {
377 * "amount": "0",
378 * "convertedAmount": "0",
379 * "formattedAmount": "$0.00",
380 * "formattedConvertedAmount": "$0.00"
381 * }
382 * },
383 * "payLater": {
384 * "subtotal": {
385 * "amount": "0",
386 * "convertedAmount": "0",
387 * "formattedAmount": "$0.00",
388 * "formattedConvertedAmount": "$0.00"
389 * },
390 * "shipping": {
391 * "amount": "0",
392 * "convertedAmount": "0",
393 * "formattedAmount": "$0.00",
394 * "formattedConvertedAmount": "$0.00"
395 * },
396 * "tax": {
397 * "amount": "0",
398 * "convertedAmount": "0",
399 * "formattedAmount": "$0.00",
400 * "formattedConvertedAmount": "$0.00"
401 * },
402 * "discount": {
403 * "amount": "0",
404 * "convertedAmount": "0",
405 * "formattedAmount": "$0.00",
406 * "formattedConvertedAmount": "$0.00"
407 * },
408 * "total": {
409 * "amount": "0",
410 * "convertedAmount": "0",
411 * "formattedAmount": "$0.00",
412 * "formattedConvertedAmount": "$0.00"
413 * },
414 * "additionalFees": {
415 * "amount": "0",
416 * "convertedAmount": "0",
417 * "formattedAmount": "$0.00",
418 * "formattedConvertedAmount": "$0.00"
419 * }
420 * },
421 * "membershipOptions": {
422 * "eligibleMemberships": [],
423 * "invalidMemberships": [],
424 * "selectedMemberships": {
425 * "memberships": []
426 * }
427 * },
428 * "additionalFees": [],
429 * "payNowTotalAfterGiftCard": {
430 * "amount": "95",
431 * "convertedAmount": "95",
432 * "formattedAmount": "$95.00",
433 * "formattedConvertedAmount": "$95.00"
434 * }
435 * }
436 *
437 */
438
Add a catalog item to a checkout (export from backend code)

Copy Code
1/*****************************************
2 * Backend code - my-backend-file.web.js *
3 ****************************************/
4
5import { Permissions, webMethod } from 'wix-web-module';
6import { checkout } from 'wix-ecom-backend';
7
8export const myAddToCheckoutFunction = webMethod(Permissions.Anyone, async (_id, options) => {
9 try {
10 const updatedCheckout = await checkout.addToCheckout(_id, options);
11 console.log('Success! Updated checkout:', updatedCheckout);
12 return updatedCheckout;
13 } catch (error) {
14 console.error(error);
15 // Handle the error
16 }
17});
18
19/*************
20 * Page code *
21 ************/
22
23import { myAddToCheckoutFunction } from 'backend/my-backend-file.web';
24
25// Sample checkout ID:
26const _id = "63879d9f-0d1c-49aa-a0c5-5fc612a24ec7";
27// Sample addToCheckout options:
28const options = {
29 "lineItems": [{
30 "catalogReference": {
31 // Wix Stores appId
32 "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
33 // Wix Stores productId
34 "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",
35 // Wix Stores variantId
36 "options": {
37 "variantId": "e62fee23-7878-437a-bf0e-292f17d11cb5"
38 }
39 },
40 "quantity": 1
41 }]
42};
43
44myAddToCheckoutFunction(_id, options)
45 .then((updatedCheckout) => {
46 const checkoutSubtotal = updatedCheckout.priceSummary.subtotal.amount;
47 const numberOfCheckoutLineItems = updatedCheckout.lineItems.length;
48
49 console.log('Success! Updated checkout:', updatedCheckout);
50 return updatedCheckout;
51 })
52 .catch((error) => {
53 console.error(error);
54 // Handle the error
55 });
56
57/* Promise resolves to:
58 *
59 * {
60 * "_id": "63879d9f-0d1c-49aa-a0c5-5fc612a24ec7",
61 * "lineItems": [
62 * {
63 * "_id": "00000000-0000-0000-0000-000000000001",
64 * "quantity": 1,
65 * "catalogReference": {
66 * "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",
67 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"
68 * },
69 * "productName": {
70 * "original": "Shirt",
71 * "translated": "Shirt"
72 * },
73 * "url": "https://example.wixsite.com/ep-tester/product-page/shirt",
74 * "price": {
75 * "amount": "10",
76 * "convertedAmount": "10",
77 * "formattedAmount": "$10.00",
78 * "formattedConvertedAmount": "$10.00"
79 * },
80 * "lineItemPrice": {
81 * "amount": "10",
82 * "convertedAmount": "10",
83 * "formattedAmount": "$10.00",
84 * "formattedConvertedAmount": "$10.00"
85 * },
86 * "fullPrice": {
87 * "amount": "10",
88 * "convertedAmount": "10",
89 * "formattedAmount": "$10.00",
90 * "formattedConvertedAmount": "$10.00"
91 * },
92 * "priceBeforeDiscounts": {
93 * "amount": "10",
94 * "convertedAmount": "10",
95 * "formattedAmount": "$10.00",
96 * "formattedConvertedAmount": "$10.00"
97 * },
98 * "totalPriceAfterTax": {
99 * "amount": "10",
100 * "convertedAmount": "10",
101 * "formattedAmount": "$10.00",
102 * "formattedConvertedAmount": "$10.00"
103 * },
104 * "totalPriceBeforeTax": {
105 * "amount": "10",
106 * "convertedAmount": "10",
107 * "formattedAmount": "$10.00",
108 * "formattedConvertedAmount": "$10.00"
109 * },
110 * "taxDetails": {
111 * "taxableAmount": {
112 * "amount": "10",
113 * "convertedAmount": "10",
114 * "formattedAmount": "$10.00",
115 * "formattedConvertedAmount": "$10.00"
116 * },
117 * "taxRate": "0",
118 * "totalTax": {
119 * "amount": "0",
120 * "convertedAmount": "0",
121 * "formattedAmount": "$0.00",
122 * "formattedConvertedAmount": "$0.00"
123 * },
124 * "rateBreakdown": []
125 * },
126 * "discount": {
127 * "amount": "0",
128 * "convertedAmount": "0",
129 * "formattedAmount": "$0.00",
130 * "formattedConvertedAmount": "$0.00"
131 * },
132 * "descriptionLines": [],
133 * "media": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",
134 * "availability": {
135 * "status": "AVAILABLE"
136 * },
137 * "physicalProperties": {
138 * "sku": "364115376135191",
139 * "shippable": true
140 * },
141 * "couponScopes": [
142 * {
143 * "namespace": "stores",
144 * "group": {
145 * "name": "collection",
146 * "entityId": "00000000-000000-000000-000000000001"
147 * }
148 * },
149 * {
150 * "namespace": "stores",
151 * "group": {
152 * "name": "product",
153 * "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"
154 * }
155 * }
156 * ],
157 * "itemType": {
158 * "preset": "PHYSICAL"
159 * },
160 * "paymentOption": "FULL_PAYMENT_ONLINE",
161 * "rootCatalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"
162 * },
163 * {
164 * "_id": "00000000-0000-0000-0000-000000000002",
165 * "quantity": 1,
166 * "catalogReference": {
167 * "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",
168 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
169 * "options": {
170 * "variantId": "e62fee23-7878-437a-bf0e-292f17d11cb5"
171 * }
172 * },
173 * "productName": {
174 * "original": "Shoe",
175 * "translated": "Shoe"
176 * },
177 * "url": "https://example.wixsite.com/ep-tester/product-page/shoe",
178 * "price": {
179 * "amount": "85",
180 * "convertedAmount": "85",
181 * "formattedAmount": "$85.00",
182 * "formattedConvertedAmount": "$85.00"
183 * },
184 * "lineItemPrice": {
185 * "amount": "85",
186 * "convertedAmount": "85",
187 * "formattedAmount": "$85.00",
188 * "formattedConvertedAmount": "$85.00"
189 * },
190 * "fullPrice": {
191 * "amount": "85",
192 * "convertedAmount": "85",
193 * "formattedAmount": "$85.00",
194 * "formattedConvertedAmount": "$85.00"
195 * },
196 * "priceBeforeDiscounts": {
197 * "amount": "85",
198 * "convertedAmount": "85",
199 * "formattedAmount": "$85.00",
200 * "formattedConvertedAmount": "$85.00"
201 * },
202 * "totalPriceAfterTax": {
203 * "amount": "85",
204 * "convertedAmount": "85",
205 * "formattedAmount": "$85.00",
206 * "formattedConvertedAmount": "$85.00"
207 * },
208 * "totalPriceBeforeTax": {
209 * "amount": "85",
210 * "convertedAmount": "85",
211 * "formattedAmount": "$85.00",
212 * "formattedConvertedAmount": "$85.00"
213 * },
214 * "taxDetails": {
215 * "taxableAmount": {
216 * "amount": "85",
217 * "convertedAmount": "85",
218 * "formattedAmount": "$85.00",
219 * "formattedConvertedAmount": "$85.00"
220 * },
221 * "taxRate": "0",
222 * "totalTax": {
223 * "amount": "0",
224 * "convertedAmount": "0",
225 * "formattedAmount": "$0.00",
226 * "formattedConvertedAmount": "$0.00"
227 * },
228 * "rateBreakdown": []
229 * },
230 * "discount": {
231 * "amount": "0",
232 * "convertedAmount": "0",
233 * "formattedAmount": "$0.00",
234 * "formattedConvertedAmount": "$0.00"
235 * },
236 * "descriptionLines": [
237 * {
238 * "name": {
239 * "original": "Color",
240 * "translated": "Color"
241 * },
242 * "colorInfo": {
243 * "original": "Black",
244 * "translated": "Black",
245 * "code": "#000"
246 * },
247 * "lineType": "COLOR",
248 * "color": "Black"
249 * }
250 * ],
251 * "media": "wix:image://v1/3c76e2_bf235c38610f4d2a905db71095b351cf~mv2.jpg#originWidth=1000&originHeight=1000",
252 * "availability": {
253 * "status": "AVAILABLE",
254 * "quantityAvailable": 30
255 * },
256 * "physicalProperties": {
257 * "sku": "364215376135191",
258 * "shippable": true
259 * },
260 * "couponScopes": [
261 * {
262 * "namespace": "stores",
263 * "group": {
264 * "name": "collection",
265 * "entityId": "00000000-000000-000000-000000000001"
266 * }
267 * },
268 * {
269 * "namespace": "stores",
270 * "group": {
271 * "name": "product",
272 * "entityId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"
273 * }
274 * }
275 * ],
276 * "itemType": {
277 * "preset": "PHYSICAL"
278 * },
279 * "paymentOption": "FULL_PAYMENT_ONLINE",
280 * "rootCatalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"
281 * }
282 * ],
283 * "shippingInfo": {
284 * "carrierServiceOptions": []
285 * },
286 * "buyerInfo": {
287 * "contactId": "f7dc17a6-825a-466e-a78e-c4abea0217db",
288 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
289 * },
290 * "conversionCurrency": "USD",
291 * "priceSummary": {
292 * "subtotal": {
293 * "amount": "95",
294 * "convertedAmount": "95",
295 * "formattedAmount": "$95.00",
296 * "formattedConvertedAmount": "$95.00"
297 * },
298 * "shipping": {
299 * "amount": "0",
300 * "convertedAmount": "0",
301 * "formattedAmount": "$0.00",
302 * "formattedConvertedAmount": "$0.00"
303 * },
304 * "tax": {
305 * "amount": "0",
306 * "convertedAmount": "0",
307 * "formattedAmount": "$0.00",
308 * "formattedConvertedAmount": "$0.00"
309 * },
310 * "discount": {
311 * "amount": "0",
312 * "convertedAmount": "0",
313 * "formattedAmount": "$0.00",
314 * "formattedConvertedAmount": "$0.00"
315 * },
316 * "total": {
317 * "amount": "95",
318 * "convertedAmount": "95",
319 * "formattedAmount": "$95.00",
320 * "formattedConvertedAmount": "$95.00"
321 * },
322 * "additionalFees": {
323 * "amount": "0",
324 * "convertedAmount": "0",
325 * "formattedAmount": "$0.00",
326 * "formattedConvertedAmount": "$0.00"
327 * }
328 * },
329 * "calculationErrors": {
330 * "orderValidationErrors": []
331 * },
332 * "appliedDiscounts": [],
333 * "customFields": [],
334 * "weightUnit": "KG",
335 * "currency": "USD",
336 * "channelType": "WEB",
337 * "siteLanguage": "en",
338 * "buyerLanguage": "en",
339 * "completed": false,
340 * "taxIncludedInPrice": false,
341 * "createdBy": {
342 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
343 * },
344 * "_createdDate": "2023-01-04T15:11:20.762Z",
345 * "_updatedDate": "2023-01-04T15:15:24.035Z",
346 * "payNow": {
347 * "subtotal": {
348 * "amount": "95",
349 * "convertedAmount": "95",
350 * "formattedAmount": "$95.00",
351 * "formattedConvertedAmount": "$95.00"
352 * },
353 * "shipping": {
354 * "amount": "0",
355 * "convertedAmount": "0",
356 * "formattedAmount": "$0.00",
357 * "formattedConvertedAmount": "$0.00"
358 * },
359 * "tax": {
360 * "amount": "0",
361 * "convertedAmount": "0",
362 * "formattedAmount": "$0.00",
363 * "formattedConvertedAmount": "$0.00"
364 * },
365 * "discount": {
366 * "amount": "0",
367 * "convertedAmount": "0",
368 * "formattedAmount": "$0.00",
369 * "formattedConvertedAmount": "$0.00"
370 * },
371 * "total": {
372 * "amount": "95",
373 * "convertedAmount": "95",
374 * "formattedAmount": "$95.00",
375 * "formattedConvertedAmount": "$95.00"
376 * },
377 * "additionalFees": {
378 * "amount": "0",
379 * "convertedAmount": "0",
380 * "formattedAmount": "$0.00",
381 * "formattedConvertedAmount": "$0.00"
382 * }
383 * },
384 * "payLater": {
385 * "subtotal": {
386 * "amount": "0",
387 * "convertedAmount": "0",
388 * "formattedAmount": "$0.00",
389 * "formattedConvertedAmount": "$0.00"
390 * },
391 * "shipping": {
392 * "amount": "0",
393 * "convertedAmount": "0",
394 * "formattedAmount": "$0.00",
395 * "formattedConvertedAmount": "$0.00"
396 * },
397 * "tax": {
398 * "amount": "0",
399 * "convertedAmount": "0",
400 * "formattedAmount": "$0.00",
401 * "formattedConvertedAmount": "$0.00"
402 * },
403 * "discount": {
404 * "amount": "0",
405 * "convertedAmount": "0",
406 * "formattedAmount": "$0.00",
407 * "formattedConvertedAmount": "$0.00"
408 * },
409 * "total": {
410 * "amount": "0",
411 * "convertedAmount": "0",
412 * "formattedAmount": "$0.00",
413 * "formattedConvertedAmount": "$0.00"
414 * },
415 * "additionalFees": {
416 * "amount": "0",
417 * "convertedAmount": "0",
418 * "formattedAmount": "$0.00",
419 * "formattedConvertedAmount": "$0.00"
420 * }
421 * },
422 * "membershipOptions": {
423 * "eligibleMemberships": [],
424 * "invalidMemberships": [],
425 * "selectedMemberships": {
426 * "memberships": []
427 * }
428 * },
429 * "additionalFees": [],
430 * "payNowTotalAfterGiftCard": {
431 * "amount": "95",
432 * "convertedAmount": "95",
433 * "formattedAmount": "$95.00",
434 * "formattedConvertedAmount": "$95.00"
435 * }
436 * }
437 *
438 */
439