Search.../

removeGiftCard( )

Removes the gift card from a specified checkout.

Description

The removeGiftCard() function returns a Promise that resolves to the updated checkout when the gift card is removed from the specified checkout.

Note: A checkout can only hold 1 gift card.

Syntax

function removeGiftCard(_id: string): Promise<RemoveGiftCardResponse>

removeGiftCard Parameters

NAME
TYPE
DESCRIPTION
_id
string

ID of the checkout to remove the gift card from.

Returns

Return Type:

Promise<
RemoveGiftCardResponse
>
NAME
TYPE
DESCRIPTION
checkout
Checkout

Updated checkout after removal of gift card.

Was this helpful?

Remove the gift card from a checkout

Copy Code
1/**************************************
2 * Backend code - my-backend-file.jsw *
3 **************************************/
4
5import { checkout } from 'wix-ecom-backend';
6
7export async function myRemoveGiftCardFunction(checkoutId) {
8 try {
9 const updatedCheckout = await checkout.removeGiftCard(checkoutId);
10 console.log('Success! Removed gift card from 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 { myRemoveGiftCardFunction } from 'backend/my-backend-file';
23
24// Sample checkoutId:
25const checkoutId = '84d74a0e-5c3c-4113-8bd2-d264cc60d82a';
26
27myRemoveGiftCardFunction(checkoutId)
28 .then((updatedCheckout) => {
29 const checkoutId = updatedCheckout._id;
30 const totalPrice = updatedCheckout.priceSummary.total;
31
32 console.log('Success! Removed gift card from checkout:', updatedCheckout);
33 return updatedCheckout;
34 })
35 .catch((error) => {
36 console.error(error);
37 // Handle the error
38 });
39
40/* Promise resolves to:
41 *
42 * {
43 * "_id": "84d74a0e-5c3c-4113-8bd2-d264cc60d82a",
44 * "lineItems": [
45 * {
46 * "_id": "00000000-0000-0000-0000-000000000001",
47 * "quantity": 1,
48 * "catalogReference": {
49 * "catalogItemId": "1a2d7e83-4bef-31d5-09e1-3326ee271c09",
50 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
51 * "options": {
52 * "variantId": "132b84e8-aab8-47a1-a1f6-2c47557b64a4"
53 * }
54 * },
55 * "productName": {
56 * "original": "Watch",
57 * "translated": "Watch"
58 * },
59 * "url": "https://example.wixsite.com",
60 * "price": {
61 * "amount": "30",
62 * "convertedAmount": "30",
63 * "formattedAmount": "$30.00",
64 * "formattedConvertedAmount": "$30.00"
65 * },
66 * "lineItemPrice": {
67 * "amount": "30",
68 * "convertedAmount": "30",
69 * "formattedAmount": "$30.00",
70 * "formattedConvertedAmount": "$30.00"
71 * },
72 * "fullPrice": {
73 * "amount": "30",
74 * "convertedAmount": "30",
75 * "formattedAmount": "$30.00",
76 * "formattedConvertedAmount": "$30.00"
77 * },
78 * "priceBeforeDiscounts": {
79 * "amount": "30",
80 * "convertedAmount": "30",
81 * "formattedAmount": "$30.00",
82 * "formattedConvertedAmount": "$30.00"
83 * },
84 * "totalPriceAfterTax": {
85 * "amount": "30",
86 * "convertedAmount": "30",
87 * "formattedAmount": "$30.00",
88 * "formattedConvertedAmount": "$30.00"
89 * },
90 * "totalPriceBeforeTax": {
91 * "amount": "30",
92 * "convertedAmount": "30",
93 * "formattedAmount": "$30.00",
94 * "formattedConvertedAmount": "$30.00"
95 * },
96 * "taxDetails": {
97 * "taxableAmount": {
98 * "amount": "30",
99 * "convertedAmount": "30",
100 * "formattedAmount": "$30.00",
101 * "formattedConvertedAmount": "$30.00"
102 * },
103 * "taxRate": "0",
104 * "totalTax": {
105 * "amount": "0",
106 * "convertedAmount": "0",
107 * "formattedAmount": "$0.00",
108 * "formattedConvertedAmount": "$0.00"
109 * },
110 * "rateBreakdown": []
111 * },
112 * "discount": {
113 * "amount": "0",
114 * "convertedAmount": "0",
115 * "formattedAmount": "$0.00",
116 * "formattedConvertedAmount": "$0.00"
117 * },
118 * "descriptionLines": [
119 * {
120 * "name": {
121 * "original": "Size",
122 * "translated": "Size"
123 * },
124 * "plainText": {
125 * "original": "Medium",
126 * "translated": "Medium"
127 * },
128 * "lineType": "PLAIN_TEXT",
129 * "plainTextValue": {
130 * "original": "Medium",
131 * "translated": "Medium"
132 * }
133 * },
134 * {
135 * "name": {
136 * "original": "Color",
137 * "translated": "Color"
138 * },
139 * "colorInfo": {
140 * "original": "Grey",
141 * "translated": "Grey",
142 * "code": "rgb(128, 128, 128)"
143 * },
144 * "lineType": "COLOR",
145 * "color": "Grey"
146 * }
147 * ],
148 * "media": "wix:image://v1/3c76e2_8891bbe3372a428aac976ac59aa0ac74~mv2.jpg#originWidth=1000&originHeight=1000",
149 * "availability": {
150 * "status": "AVAILABLE"
151 * },
152 * "physicalProperties": {
153 * "sku": "217537123517253",
154 * "shippable": true
155 * },
156 * "couponScopes": [
157 * {
158 * "namespace": "stores",
159 * "group": {
160 * "name": "collection",
161 * "entityId": "00000000-000000-000000-000000000001"
162 * }
163 * },
164 * {
165 * "namespace": "stores",
166 * "group": {
167 * "name": "product",
168 * "entityId": "1a2d7e83-4bef-31d5-09e1-3326ee271c09"
169 * }
170 * }
171 * ],
172 * "itemType": {
173 * "preset": "PHYSICAL"
174 * },
175 * "paymentOption": "FULL_PAYMENT_ONLINE",
176 * "rootCatalogItemId": "1a2d7e83-4bef-31d5-09e1-3326ee271c09"
177 * }
178 * ],
179 * "billingInfo": {
180 * "address": {
181 * "addressLine1": "525 5th Avenue",
182 * "city": "New York",
183 * "subdivision": "US-NY",
184 * "country": "US",
185 * "postalCode": "10173"
186 * },
187 * "contactDetails": {
188 * "firstName": "Jane",
189 * "lastName": "Doe",
190 * "phone": "0555555555"
191 * }
192 * },
193 * "shippingInfo": {
194 * "shippingDestination": {
195 * "address": {
196 * "addressLine1": "525 5th Avenue",
197 * "city": "New York",
198 * "subdivision": "US-NY",
199 * "country": "US",
200 * "postalCode": "10173"
201 * },
202 * "contactDetails": {
203 * "firstName": "Jane",
204 * "lastName": "Doe",
205 * "phone": "0555555555"
206 * }
207 * },
208 * "selectedCarrierServiceOption": {
209 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",
210 * "title": "Standard US Shipping",
211 * "logistics": {
212 * "deliveryTime": ""
213 * },
214 * "cost": {
215 * "totalPriceAfterTax": {
216 * "amount": "10",
217 * "convertedAmount": "10",
218 * "formattedAmount": "$10.00",
219 * "formattedConvertedAmount": "$10.00"
220 * },
221 * "totalPriceBeforeTax": {
222 * "amount": "10",
223 * "convertedAmount": "10",
224 * "formattedAmount": "$10.00",
225 * "formattedConvertedAmount": "$10.00"
226 * },
227 * "taxDetails": {
228 * "taxRate": "0",
229 * "totalTax": {
230 * "amount": "0",
231 * "convertedAmount": "0",
232 * "formattedAmount": "$0.00",
233 * "formattedConvertedAmount": "$0.00"
234 * },
235 * "rateBreakdown": []
236 * },
237 * "price": {
238 * "amount": "10",
239 * "convertedAmount": "10",
240 * "formattedAmount": "$10.00",
241 * "formattedConvertedAmount": "$10.00"
242 * }
243 * },
244 * "requestedShippingOption": true,
245 * "otherCharges": [],
246 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc"
247 * },
248 * "region": {
249 * "_id": "009fbe5d-89d3-7825-cbbf-1aab4d908b73",
250 * "name": "USA shipping"
251 * },
252 * "carrierServiceOptions": [
253 * {
254 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc",
255 * "shippingOptions": [
256 * {
257 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",
258 * "title": "Standard US Shipping",
259 * "logistics": {
260 * "deliveryTime": ""
261 * },
262 * "cost": {
263 * "price": {
264 * "amount": "10",
265 * "convertedAmount": "10",
266 * "formattedAmount": "$10.00",
267 * "formattedConvertedAmount": "$10.00"
268 * },
269 * "otherCharges": []
270 * }
271 * }
272 * ]
273 * }
274 * ]
275 * },
276 * "buyerInfo": {
277 * "contactId": "24de6f0b-60ce-4faa-9138-2e39f1415615",
278 * "email": "janedoe@gmail.com",
279 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
280 * },
281 * "conversionCurrency": "USD",
282 * "priceSummary": {
283 * "subtotal": {
284 * "amount": "30",
285 * "convertedAmount": "30",
286 * "formattedAmount": "$30.00",
287 * "formattedConvertedAmount": "$30.00"
288 * },
289 * "shipping": {
290 * "amount": "10",
291 * "convertedAmount": "10",
292 * "formattedAmount": "$10.00",
293 * "formattedConvertedAmount": "$10.00"
294 * },
295 * "tax": {
296 * "amount": "0",
297 * "convertedAmount": "0",
298 * "formattedAmount": "$0.00",
299 * "formattedConvertedAmount": "$0.00"
300 * },
301 * "discount": {
302 * "amount": "0",
303 * "convertedAmount": "0",
304 * "formattedAmount": "$0.00",
305 * "formattedConvertedAmount": "$0.00"
306 * },
307 * "total": {
308 * "amount": "40",
309 * "convertedAmount": "40",
310 * "formattedAmount": "$40.00",
311 * "formattedConvertedAmount": "$40.00"
312 * },
313 * "additionalFees": {
314 * "amount": "0",
315 * "convertedAmount": "0",
316 * "formattedAmount": "$0.00",
317 * "formattedConvertedAmount": "$0.00"
318 * }
319 * },
320 * "calculationErrors": {
321 * "orderValidationErrors": []
322 * },
323 * "appliedDiscounts": [],
324 * "customFields": [],
325 * "weightUnit": "KG",
326 * "currency": "USD",
327 * "channelType": "WEB",
328 * "siteLanguage": "en",
329 * "buyerLanguage": "en",
330 * "completed": false,
331 * "taxIncludedInPrice": false,
332 * "createdBy": {
333 * "visitorId": "4c7ce95c-9fb3-417d-9f02-b41e82b841f7"
334 * },
335 * "_createdDate": "2022-10-27T08:51:44.099Z",
336 * "_updatedDate": "2022-10-27T08:54:53.785Z",
337 * "payNow": {
338 * "subtotal": {
339 * "amount": "30",
340 * "convertedAmount": "30",
341 * "formattedAmount": "$30.00",
342 * "formattedConvertedAmount": "$30.00"
343 * },
344 * "shipping": {
345 * "amount": "10",
346 * "convertedAmount": "10",
347 * "formattedAmount": "$10.00",
348 * "formattedConvertedAmount": "$10.00"
349 * },
350 * "tax": {
351 * "amount": "0",
352 * "convertedAmount": "0",
353 * "formattedAmount": "$0.00",
354 * "formattedConvertedAmount": "$0.00"
355 * },
356 * "discount": {
357 * "amount": "0",
358 * "convertedAmount": "0",
359 * "formattedAmount": "$0.00",
360 * "formattedConvertedAmount": "$0.00"
361 * },
362 * "total": {
363 * "amount": "40",
364 * "convertedAmount": "40",
365 * "formattedAmount": "$40.00",
366 * "formattedConvertedAmount": "$40.00"
367 * },
368 * "additionalFees": {
369 * "amount": "0",
370 * "convertedAmount": "0",
371 * "formattedAmount": "$0.00",
372 * "formattedConvertedAmount": "$0.00"
373 * }
374 * },
375 * "payLater": {
376 * "subtotal": {
377 * "amount": "0",
378 * "convertedAmount": "0",
379 * "formattedAmount": "$0.00",
380 * "formattedConvertedAmount": "$0.00"
381 * },
382 * "shipping": {
383 * "amount": "0",
384 * "convertedAmount": "0",
385 * "formattedAmount": "$0.00",
386 * "formattedConvertedAmount": "$0.00"
387 * },
388 * "tax": {
389 * "amount": "0",
390 * "convertedAmount": "0",
391 * "formattedAmount": "$0.00",
392 * "formattedConvertedAmount": "$0.00"
393 * },
394 * "discount": {
395 * "amount": "0",
396 * "convertedAmount": "0",
397 * "formattedAmount": "$0.00",
398 * "formattedConvertedAmount": "$0.00"
399 * },
400 * "total": {
401 * "amount": "0",
402 * "convertedAmount": "0",
403 * "formattedAmount": "$0.00",
404 * "formattedConvertedAmount": "$0.00"
405 * },
406 * "additionalFees": {
407 * "amount": "0",
408 * "convertedAmount": "0",
409 * "formattedAmount": "$0.00",
410 * "formattedConvertedAmount": "$0.00"
411 * }
412 * },
413 * "membershipOptions": {
414 * "eligibleMemberships": [],
415 * "invalidMemberships": [],
416 * "selectedMemberships": {
417 * "memberships": []
418 * }
419 * },
420 * "additionalFees": [],
421 * "cartId": "d7aca608-cbbd-4a22-9813-0459992abd1f"
422 * }
423 *
424 */
425
Remove the gift card from 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 myRemoveGiftCardFunction = webMethod(Permissions.Anyone, async (checkoutId) => {
9 try {
10 const updatedCheckout = await checkout.removeGiftCard(checkoutId);
11 console.log('Success! Removed gift card from 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 { myRemoveGiftCardFunction } from 'backend/my-backend-file.web';
24
25// Sample checkoutId:
26const checkoutId = '84d74a0e-5c3c-4113-8bd2-d264cc60d82a';
27
28myRemoveGiftCardFunction(checkoutId)
29 .then((updatedCheckout) => {
30 const checkoutId = updatedCheckout._id;
31 const totalPrice = updatedCheckout.priceSummary.total;
32
33 console.log('Success! Removed gift card from checkout:', updatedCheckout);
34 return updatedCheckout;
35 })
36 .catch((error) => {
37 console.error(error);
38 // Handle the error
39 });
40
41/* Promise resolves to:
42 *
43 * {
44 * "_id": "84d74a0e-5c3c-4113-8bd2-d264cc60d82a",
45 * "lineItems": [
46 * {
47 * "_id": "00000000-0000-0000-0000-000000000001",
48 * "quantity": 1,
49 * "catalogReference": {
50 * "catalogItemId": "1a2d7e83-4bef-31d5-09e1-3326ee271c09",
51 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",
52 * "options": {
53 * "variantId": "132b84e8-aab8-47a1-a1f6-2c47557b64a4"
54 * }
55 * },
56 * "productName": {
57 * "original": "Watch",
58 * "translated": "Watch"
59 * },
60 * "url": "https://example.wixsite.com",
61 * "price": {
62 * "amount": "30",
63 * "convertedAmount": "30",
64 * "formattedAmount": "$30.00",
65 * "formattedConvertedAmount": "$30.00"
66 * },
67 * "lineItemPrice": {
68 * "amount": "30",
69 * "convertedAmount": "30",
70 * "formattedAmount": "$30.00",
71 * "formattedConvertedAmount": "$30.00"
72 * },
73 * "fullPrice": {
74 * "amount": "30",
75 * "convertedAmount": "30",
76 * "formattedAmount": "$30.00",
77 * "formattedConvertedAmount": "$30.00"
78 * },
79 * "priceBeforeDiscounts": {
80 * "amount": "30",
81 * "convertedAmount": "30",
82 * "formattedAmount": "$30.00",
83 * "formattedConvertedAmount": "$30.00"
84 * },
85 * "totalPriceAfterTax": {
86 * "amount": "30",
87 * "convertedAmount": "30",
88 * "formattedAmount": "$30.00",
89 * "formattedConvertedAmount": "$30.00"
90 * },
91 * "totalPriceBeforeTax": {
92 * "amount": "30",
93 * "convertedAmount": "30",
94 * "formattedAmount": "$30.00",
95 * "formattedConvertedAmount": "$30.00"
96 * },
97 * "taxDetails": {
98 * "taxableAmount": {
99 * "amount": "30",
100 * "convertedAmount": "30",
101 * "formattedAmount": "$30.00",
102 * "formattedConvertedAmount": "$30.00"
103 * },
104 * "taxRate": "0",
105 * "totalTax": {
106 * "amount": "0",
107 * "convertedAmount": "0",
108 * "formattedAmount": "$0.00",
109 * "formattedConvertedAmount": "$0.00"
110 * },
111 * "rateBreakdown": []
112 * },
113 * "discount": {
114 * "amount": "0",
115 * "convertedAmount": "0",
116 * "formattedAmount": "$0.00",
117 * "formattedConvertedAmount": "$0.00"
118 * },
119 * "descriptionLines": [
120 * {
121 * "name": {
122 * "original": "Size",
123 * "translated": "Size"
124 * },
125 * "plainText": {
126 * "original": "Medium",
127 * "translated": "Medium"
128 * },
129 * "lineType": "PLAIN_TEXT",
130 * "plainTextValue": {
131 * "original": "Medium",
132 * "translated": "Medium"
133 * }
134 * },
135 * {
136 * "name": {
137 * "original": "Color",
138 * "translated": "Color"
139 * },
140 * "colorInfo": {
141 * "original": "Grey",
142 * "translated": "Grey",
143 * "code": "rgb(128, 128, 128)"
144 * },
145 * "lineType": "COLOR",
146 * "color": "Grey"
147 * }
148 * ],
149 * "media": "wix:image://v1/3c76e2_8891bbe3372a428aac976ac59aa0ac74~mv2.jpg#originWidth=1000&originHeight=1000",
150 * "availability": {
151 * "status": "AVAILABLE"
152 * },
153 * "physicalProperties": {
154 * "sku": "217537123517253",
155 * "shippable": true
156 * },
157 * "couponScopes": [
158 * {
159 * "namespace": "stores",
160 * "group": {
161 * "name": "collection",
162 * "entityId": "00000000-000000-000000-000000000001"
163 * }
164 * },
165 * {
166 * "namespace": "stores",
167 * "group": {
168 * "name": "product",
169 * "entityId": "1a2d7e83-4bef-31d5-09e1-3326ee271c09"
170 * }
171 * }
172 * ],
173 * "itemType": {
174 * "preset": "PHYSICAL"
175 * },
176 * "paymentOption": "FULL_PAYMENT_ONLINE",
177 * "rootCatalogItemId": "1a2d7e83-4bef-31d5-09e1-3326ee271c09"
178 * }
179 * ],
180 * "billingInfo": {
181 * "address": {
182 * "addressLine1": "525 5th Avenue",
183 * "city": "New York",
184 * "subdivision": "US-NY",
185 * "country": "US",
186 * "postalCode": "10173"
187 * },
188 * "contactDetails": {
189 * "firstName": "Jane",
190 * "lastName": "Doe",
191 * "phone": "0555555555"
192 * }
193 * },
194 * "shippingInfo": {
195 * "shippingDestination": {
196 * "address": {
197 * "addressLine1": "525 5th Avenue",
198 * "city": "New York",
199 * "subdivision": "US-NY",
200 * "country": "US",
201 * "postalCode": "10173"
202 * },
203 * "contactDetails": {
204 * "firstName": "Jane",
205 * "lastName": "Doe",
206 * "phone": "0555555555"
207 * }
208 * },
209 * "selectedCarrierServiceOption": {
210 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",
211 * "title": "Standard US Shipping",
212 * "logistics": {
213 * "deliveryTime": ""
214 * },
215 * "cost": {
216 * "totalPriceAfterTax": {
217 * "amount": "10",
218 * "convertedAmount": "10",
219 * "formattedAmount": "$10.00",
220 * "formattedConvertedAmount": "$10.00"
221 * },
222 * "totalPriceBeforeTax": {
223 * "amount": "10",
224 * "convertedAmount": "10",
225 * "formattedAmount": "$10.00",
226 * "formattedConvertedAmount": "$10.00"
227 * },
228 * "taxDetails": {
229 * "taxRate": "0",
230 * "totalTax": {
231 * "amount": "0",
232 * "convertedAmount": "0",
233 * "formattedAmount": "$0.00",
234 * "formattedConvertedAmount": "$0.00"
235 * },
236 * "rateBreakdown": []
237 * },
238 * "price": {
239 * "amount": "10",
240 * "convertedAmount": "10",
241 * "formattedAmount": "$10.00",
242 * "formattedConvertedAmount": "$10.00"
243 * }
244 * },
245 * "requestedShippingOption": true,
246 * "otherCharges": [],
247 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc"
248 * },
249 * "region": {
250 * "_id": "009fbe5d-89d3-7825-cbbf-1aab4d908b73",
251 * "name": "USA shipping"
252 * },
253 * "carrierServiceOptions": [
254 * {
255 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc",
256 * "shippingOptions": [
257 * {
258 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",
259 * "title": "Standard US Shipping",
260 * "logistics": {
261 * "deliveryTime": ""
262 * },
263 * "cost": {
264 * "price": {
265 * "amount": "10",
266 * "convertedAmount": "10",
267 * "formattedAmount": "$10.00",
268 * "formattedConvertedAmount": "$10.00"
269 * },
270 * "otherCharges": []
271 * }
272 * }
273 * ]
274 * }
275 * ]
276 * },
277 * "buyerInfo": {
278 * "contactId": "24de6f0b-60ce-4faa-9138-2e39f1415615",
279 * "email": "janedoe@gmail.com",
280 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"
281 * },
282 * "conversionCurrency": "USD",
283 * "priceSummary": {
284 * "subtotal": {
285 * "amount": "30",
286 * "convertedAmount": "30",
287 * "formattedAmount": "$30.00",
288 * "formattedConvertedAmount": "$30.00"
289 * },
290 * "shipping": {
291 * "amount": "10",
292 * "convertedAmount": "10",
293 * "formattedAmount": "$10.00",
294 * "formattedConvertedAmount": "$10.00"
295 * },
296 * "tax": {
297 * "amount": "0",
298 * "convertedAmount": "0",
299 * "formattedAmount": "$0.00",
300 * "formattedConvertedAmount": "$0.00"
301 * },
302 * "discount": {
303 * "amount": "0",
304 * "convertedAmount": "0",
305 * "formattedAmount": "$0.00",
306 * "formattedConvertedAmount": "$0.00"
307 * },
308 * "total": {
309 * "amount": "40",
310 * "convertedAmount": "40",
311 * "formattedAmount": "$40.00",
312 * "formattedConvertedAmount": "$40.00"
313 * },
314 * "additionalFees": {
315 * "amount": "0",
316 * "convertedAmount": "0",
317 * "formattedAmount": "$0.00",
318 * "formattedConvertedAmount": "$0.00"
319 * }
320 * },
321 * "calculationErrors": {
322 * "orderValidationErrors": []
323 * },
324 * "appliedDiscounts": [],
325 * "customFields": [],
326 * "weightUnit": "KG",
327 * "currency": "USD",
328 * "channelType": "WEB",
329 * "siteLanguage": "en",
330 * "buyerLanguage": "en",
331 * "completed": false,
332 * "taxIncludedInPrice": false,
333 * "createdBy": {
334 * "visitorId": "4c7ce95c-9fb3-417d-9f02-b41e82b841f7"
335 * },
336 * "_createdDate": "2022-10-27T08:51:44.099Z",
337 * "_updatedDate": "2022-10-27T08:54:53.785Z",
338 * "payNow": {
339 * "subtotal": {
340 * "amount": "30",
341 * "convertedAmount": "30",
342 * "formattedAmount": "$30.00",
343 * "formattedConvertedAmount": "$30.00"
344 * },
345 * "shipping": {
346 * "amount": "10",
347 * "convertedAmount": "10",
348 * "formattedAmount": "$10.00",
349 * "formattedConvertedAmount": "$10.00"
350 * },
351 * "tax": {
352 * "amount": "0",
353 * "convertedAmount": "0",
354 * "formattedAmount": "$0.00",
355 * "formattedConvertedAmount": "$0.00"
356 * },
357 * "discount": {
358 * "amount": "0",
359 * "convertedAmount": "0",
360 * "formattedAmount": "$0.00",
361 * "formattedConvertedAmount": "$0.00"
362 * },
363 * "total": {
364 * "amount": "40",
365 * "convertedAmount": "40",
366 * "formattedAmount": "$40.00",
367 * "formattedConvertedAmount": "$40.00"
368 * },
369 * "additionalFees": {
370 * "amount": "0",
371 * "convertedAmount": "0",
372 * "formattedAmount": "$0.00",
373 * "formattedConvertedAmount": "$0.00"
374 * }
375 * },
376 * "payLater": {
377 * "subtotal": {
378 * "amount": "0",
379 * "convertedAmount": "0",
380 * "formattedAmount": "$0.00",
381 * "formattedConvertedAmount": "$0.00"
382 * },
383 * "shipping": {
384 * "amount": "0",
385 * "convertedAmount": "0",
386 * "formattedAmount": "$0.00",
387 * "formattedConvertedAmount": "$0.00"
388 * },
389 * "tax": {
390 * "amount": "0",
391 * "convertedAmount": "0",
392 * "formattedAmount": "$0.00",
393 * "formattedConvertedAmount": "$0.00"
394 * },
395 * "discount": {
396 * "amount": "0",
397 * "convertedAmount": "0",
398 * "formattedAmount": "$0.00",
399 * "formattedConvertedAmount": "$0.00"
400 * },
401 * "total": {
402 * "amount": "0",
403 * "convertedAmount": "0",
404 * "formattedAmount": "$0.00",
405 * "formattedConvertedAmount": "$0.00"
406 * },
407 * "additionalFees": {
408 * "amount": "0",
409 * "convertedAmount": "0",
410 * "formattedAmount": "$0.00",
411 * "formattedConvertedAmount": "$0.00"
412 * }
413 * },
414 * "membershipOptions": {
415 * "eligibleMemberships": [],
416 * "invalidMemberships": [],
417 * "selectedMemberships": {
418 * "memberships": []
419 * }
420 * },
421 * "additionalFees": [],
422 * "cartId": "d7aca608-cbbd-4a22-9813-0459992abd1f"
423 * }
424 *
425 */
426