Search...
removeCoupon( )
Removes the coupon from a specified checkout.
Description
The removeCoupon()
function returns a Promise that resolves to the updated checkout when the coupon is removed from the specified checkout.
Note: A checkout can only hold 1 coupon.
Syntax
function removeCoupon(_id: string): Promise<RemoveCouponResponse>
removeCoupon Parameters
NAME
TYPE
DESCRIPTION
_id
string
ID of the checkout to remove the coupon from.
Returns
Return Type:
Promise<
RemoveCouponResponse
>NAME
TYPE
DESCRIPTION
checkout
Checkout
Updated checkout after removal of coupon.
Was this helpful?
Remove coupon from a checkout
Copy Code
1/**************************************2 * Backend code - my-backend-file.jsw *3 **************************************/45import { checkout } from 'wix-ecom-backend';67export async function myRemoveCouponFunction(checkoutId) {8 try {9 const updatedCheckout = await checkout.removeCoupon(checkoutId);10 console.log('Success! Updated checkout:', updatedCheckout);11 return updatedCheckout;12 } catch (error) {13 console.error(error);14 // Handle the error15 }16}1718/*************19 * Page code *20 ************/2122import { myRemoveCouponFunction } from 'backend/my-backend-file';2324// Sample checkoutId:25const checkoutId = '75b0d071-8ca0-4227-962f-91d0605c8c3a';2627myRemoveCouponFunction(checkoutId)28 .then((updatedCheckout) => {29 const checkoutId = updatedCheckout._id;30 const appliedDiscounts = updatedCheckout.appliedDiscounts;31 // appliedCoupon boolean value is false if no coupon exists on checkout32 const appliedCoupon = appliedDiscounts.some(({ coupon }) => coupon);3334 console.log('Success! Updated checkout:', updatedCheckout);35 return updatedCheckout;36 })37 .catch((error) => {38 console.error(error);39 // Handle the error40 });4142/* Promise resolves to:43 *44 * {45 * "_id": "75b0d071-8ca0-4227-962f-91d0605c8c3a",46 * "lineItems": [47 * {48 * "_id": "00000000-0000-0000-0000-000000000001",49 * "quantity": 3,50 * "catalogReference": {51 * "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",52 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"53 * },54 * "productName": {55 * "original": "Shirt",56 * "translated": "Shirt"57 * },58 * "url": "https://example.wixsite.com",59 * "price": {60 * "amount": "10",61 * "convertedAmount": "10",62 * "formattedAmount": "$10.00",63 * "formattedConvertedAmount": "$10.00"64 * },65 * "lineItemPrice": {66 * "amount": "30",67 * "convertedAmount": "30",68 * "formattedAmount": "$30.00",69 * "formattedConvertedAmount": "$30.00"70 * },71 * "fullPrice": {72 * "amount": "10",73 * "convertedAmount": "10",74 * "formattedAmount": "$10.00",75 * "formattedConvertedAmount": "$10.00"76 * },77 * "priceBeforeDiscounts": {78 * "amount": "10",79 * "convertedAmount": "10",80 * "formattedAmount": "$10.00",81 * "formattedConvertedAmount": "$10.00"82 * },83 * "totalPriceAfterTax": {84 * "amount": "30",85 * "convertedAmount": "30",86 * "formattedAmount": "$30.00",87 * "formattedConvertedAmount": "$30.00"88 * },89 * "totalPriceBeforeTax": {90 * "amount": "30",91 * "convertedAmount": "30",92 * "formattedAmount": "$30.00",93 * "formattedConvertedAmount": "$30.00"94 * },95 * "taxDetails": {96 * "taxableAmount": {97 * "amount": "30",98 * "convertedAmount": "30",99 * "formattedAmount": "$30.00",100 * "formattedConvertedAmount": "$30.00"101 * },102 * "taxRate": "0",103 * "totalTax": {104 * "amount": "0",105 * "convertedAmount": "0",106 * "formattedAmount": "$0.00",107 * "formattedConvertedAmount": "$0.00"108 * },109 * "rateBreakdown": []110 * },111 * "discount": {112 * "amount": "0",113 * "convertedAmount": "0",114 * "formattedAmount": "$0.00",115 * "formattedConvertedAmount": "$0.00"116 * },117 * "descriptionLines": [],118 * "media": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",119 * "availability": {120 * "status": "AVAILABLE"121 * },122 * "physicalProperties": {123 * "sku": "364115376135191",124 * "shippable": true125 * },126 * "couponScopes": [127 * {128 * "namespace": "stores",129 * "group": {130 * "name": "collection",131 * "entityId": "00000000-000000-000000-000000000001"132 * }133 * },134 * {135 * "namespace": "stores",136 * "group": {137 * "name": "product",138 * "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"139 * }140 * }141 * ],142 * "itemType": {143 * "preset": "PHYSICAL"144 * },145 * "paymentOption": "FULL_PAYMENT_ONLINE",146 * "rootCatalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"147 * },148 * {149 * "_id": "00000000-0000-0000-0000-000000000002",150 * "quantity": 1,151 * "catalogReference": {152 * "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",153 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",154 * "options": {155 * "variantId": "2f430d69-9b75-4874-bfbd-c5f6fa5aff3d",156 * "customTextFields": {157 * "birthday card": "Happy Birthday!"158 * }159 * }160 * },161 * "productName": {162 * "original": "Shoe",163 * "translated": "Shoe"164 * },165 * "url": "https://example.wixsite.com",166 * "price": {167 * "amount": "85",168 * "convertedAmount": "85",169 * "formattedAmount": "$85.00",170 * "formattedConvertedAmount": "$85.00"171 * },172 * "lineItemPrice": {173 * "amount": "85",174 * "convertedAmount": "85",175 * "formattedAmount": "$85.00",176 * "formattedConvertedAmount": "$85.00"177 * },178 * "fullPrice": {179 * "amount": "85",180 * "convertedAmount": "85",181 * "formattedAmount": "$85.00",182 * "formattedConvertedAmount": "$85.00"183 * },184 * "priceBeforeDiscounts": {185 * "amount": "85",186 * "convertedAmount": "85",187 * "formattedAmount": "$85.00",188 * "formattedConvertedAmount": "$85.00"189 * },190 * "totalPriceAfterTax": {191 * "amount": "85",192 * "convertedAmount": "85",193 * "formattedAmount": "$85.00",194 * "formattedConvertedAmount": "$85.00"195 * },196 * "totalPriceBeforeTax": {197 * "amount": "85",198 * "convertedAmount": "85",199 * "formattedAmount": "$85.00",200 * "formattedConvertedAmount": "$85.00"201 * },202 * "taxDetails": {203 * "taxableAmount": {204 * "amount": "85",205 * "convertedAmount": "85",206 * "formattedAmount": "$85.00",207 * "formattedConvertedAmount": "$85.00"208 * },209 * "taxRate": "0",210 * "totalTax": {211 * "amount": "0",212 * "convertedAmount": "0",213 * "formattedAmount": "$0.00",214 * "formattedConvertedAmount": "$0.00"215 * },216 * "rateBreakdown": []217 * },218 * "discount": {219 * "amount": "0",220 * "convertedAmount": "0",221 * "formattedAmount": "$0.00",222 * "formattedConvertedAmount": "$0.00"223 * },224 * "descriptionLines": [225 * {226 * "name": {227 * "original": "Color",228 * "translated": "Color"229 * },230 * "colorInfo": {231 * "original": "Brown",232 * "translated": "Brown",233 * "code": "#783f04"234 * },235 * "lineType": "COLOR",236 * "color": "Brown"237 * },238 * {239 * "name": {240 * "original": "birthday card",241 * "translated": "birthday card"242 * },243 * "plainText": {244 * "original": "Happy Birthday!",245 * "translated": "Happy Birthday!"246 * },247 * "lineType": "PLAIN_TEXT",248 * "plainTextValue": {249 * "original": "Happy Birthday!",250 * "translated": "Happy Birthday!"251 * }252 * }253 * ],254 * "media": "wix:image://v1/3c76e2_bf235c38610f4d2a905db71095b351cf~mv2.jpg#originWidth=1000&originHeight=1000",255 * "availability": {256 * "status": "AVAILABLE",257 * "quantityAvailable": 30258 * },259 * "physicalProperties": {260 * "sku": "364215376135191",261 * "shippable": true262 * },263 * "couponScopes": [264 * {265 * "namespace": "stores",266 * "group": {267 * "name": "collection",268 * "entityId": "00000000-000000-000000-000000000001"269 * }270 * },271 * {272 * "namespace": "stores",273 * "group": {274 * "name": "product",275 * "entityId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"276 * }277 * }278 * ],279 * "itemType": {280 * "preset": "PHYSICAL"281 * },282 * "paymentOption": "FULL_PAYMENT_ONLINE",283 * "rootCatalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"284 * },285 * {286 * "_id": "00000000-0000-0000-0000-000000000003",287 * "quantity": 1,288 * "catalogReference": {289 * "catalogItemId": "9fe8c5b2-9c94-7153-ebb9-8533695e2b6f",290 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",291 * "options": {292 * "Size": "Large",293 * "Color": "White"294 * }295 * },296 * "price": {297 * "amount": "0",298 * "convertedAmount": "0",299 * "formattedAmount": "$0.00",300 * "formattedConvertedAmount": "$0.00"301 * },302 * "fullPrice": {303 * "amount": "0",304 * "convertedAmount": "0",305 * "formattedAmount": "$0.00",306 * "formattedConvertedAmount": "$0.00"307 * },308 * "priceBeforeDiscounts": {309 * "amount": "0",310 * "convertedAmount": "0",311 * "formattedAmount": "$0.00",312 * "formattedConvertedAmount": "$0.00"313 * },314 * "descriptionLines": [],315 * "availability": {316 * "status": "NOT_FOUND"317 * },318 * "couponScopes": [],319 * "paymentOption": "FULL_PAYMENT_ONLINE"320 * }321 * ],322 * "billingInfo": {323 * "address": {324 * "addressLine1": "235 West 23rd Street",325 * "addressLine2": "3rd floor",326 * "city": "New York",327 * "subdivision": "US-NY",328 * "country": "US",329 * "postalCode": "10011"330 * },331 * "contactDetails": {332 * "firstName": "Jane",333 * "lastName": "Doe",334 * "phone": "+1234567890"335 * }336 * },337 * "shippingInfo": {338 * "shippingDestination": {339 * "address": {340 * "addressLine1": "235 West 23rd Street",341 * "addressLine2": "3rd floor",342 * "city": "New York",343 * "subdivision": "US-NY",344 * "country": "US",345 * "postalCode": "10011"346 * },347 * "contactDetails": {348 * "firstName": "Jane",349 * "lastName": "Doe",350 * "phone": "+1234567890"351 * }352 * },353 * "selectedCarrierServiceOption": {354 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",355 * "title": "Standard US Shipping",356 * "logistics": {357 * "deliveryTime": ""358 * },359 * "cost": {360 * "totalPriceAfterTax": {361 * "amount": "10",362 * "convertedAmount": "10",363 * "formattedAmount": "$10.00",364 * "formattedConvertedAmount": "$10.00"365 * },366 * "totalPriceBeforeTax": {367 * "amount": "10",368 * "convertedAmount": "10",369 * "formattedAmount": "$10.00",370 * "formattedConvertedAmount": "$10.00"371 * },372 * "taxDetails": {373 * "taxRate": "0",374 * "totalTax": {375 * "amount": "0",376 * "convertedAmount": "0",377 * "formattedAmount": "$0.00",378 * "formattedConvertedAmount": "$0.00"379 * },380 * "rateBreakdown": []381 * },382 * "price": {383 * "amount": "10",384 * "convertedAmount": "10",385 * "formattedAmount": "$10.00",386 * "formattedConvertedAmount": "$10.00"387 * }388 * },389 * "requestedShippingOption": true,390 * "otherCharges": [],391 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc"392 * },393 * "region": {394 * "_id": "009fbe5d-89d3-7825-cbbf-1aab4d908b73",395 * "name": "USA shipping"396 * },397 * "carrierServiceOptions": [398 * {399 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc",400 * "shippingOptions": [401 * {402 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",403 * "title": "Standard US Shipping",404 * "logistics": {405 * "deliveryTime": ""406 * },407 * "cost": {408 * "price": {409 * "amount": "10",410 * "convertedAmount": "10",411 * "formattedAmount": "$10.00",412 * "formattedConvertedAmount": "$10.00"413 * },414 * "otherCharges": []415 * }416 * }417 * ]418 * }419 * ]420 * },421 * "buyerNote": "Please wrap it up as a present",422 * "buyerInfo": {423 * "contactId": "f7dc17a6-825a-466e-a78e-c4abea0217db",424 * "email": "Janedoe@example.com",425 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"426 * },427 * "conversionCurrency": "USD",428 * "priceSummary": {429 * "subtotal": {430 * "amount": "115",431 * "convertedAmount": "115",432 * "formattedAmount": "$115.00",433 * "formattedConvertedAmount": "$115.00"434 * },435 * "shipping": {436 * "amount": "10",437 * "convertedAmount": "10",438 * "formattedAmount": "$10.00",439 * "formattedConvertedAmount": "$10.00"440 * },441 * "tax": {442 * "amount": "0",443 * "convertedAmount": "0",444 * "formattedAmount": "$0.00",445 * "formattedConvertedAmount": "$0.00"446 * },447 * "discount": {448 * "amount": "0",449 * "convertedAmount": "0",450 * "formattedAmount": "$0.00",451 * "formattedConvertedAmount": "$0.00"452 * },453 * "total": {454 * "amount": "125",455 * "convertedAmount": "125",456 * "formattedAmount": "$125.00",457 * "formattedConvertedAmount": "$125.00"458 * },459 * "additionalFees": {460 * "amount": "0",461 * "convertedAmount": "0",462 * "formattedAmount": "$0.00",463 * "formattedConvertedAmount": "$0.00"464 * }465 * },466 * "calculationErrors": {467 * "orderValidationErrors": []468 * },469 * "appliedDiscounts": [],470 * "customFields": [471 * {472 * "value": "12345",473 * "title": "Tax ID",474 * "translatedTitle": "Tax ID"475 * }476 * ],477 * "weightUnit": "KG",478 * "currency": "USD",479 * "channelType": "WEB",480 * "siteLanguage": "en",481 * "buyerLanguage": "en",482 * "completed": false,483 * "taxIncludedInPrice": false,484 * "createdBy": {485 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"486 * },487 * "_createdDate": "2022-10-19T14:22:03.847Z",488 * "_updatedDate": "2022-10-19T14:22:30.842Z",489 * "payNow": {490 * "subtotal": {491 * "amount": "115",492 * "convertedAmount": "115",493 * "formattedAmount": "$115.00",494 * "formattedConvertedAmount": "$115.00"495 * },496 * "shipping": {497 * "amount": "10",498 * "convertedAmount": "10",499 * "formattedAmount": "$10.00",500 * "formattedConvertedAmount": "$10.00"501 * },502 * "tax": {503 * "amount": "0",504 * "convertedAmount": "0",505 * "formattedAmount": "$0.00",506 * "formattedConvertedAmount": "$0.00"507 * },508 * "discount": {509 * "amount": "0",510 * "convertedAmount": "0",511 * "formattedAmount": "$0.00",512 * "formattedConvertedAmount": "$0.00"513 * },514 * "total": {515 * "amount": "125",516 * "convertedAmount": "125",517 * "formattedAmount": "$125.00",518 * "formattedConvertedAmount": "$125.00"519 * },520 * "additionalFees": {521 * "amount": "0",522 * "convertedAmount": "0",523 * "formattedAmount": "$0.00",524 * "formattedConvertedAmount": "$0.00"525 * }526 * },527 * "payLater": {528 * "subtotal": {529 * "amount": "0",530 * "convertedAmount": "0",531 * "formattedAmount": "$0.00",532 * "formattedConvertedAmount": "$0.00"533 * },534 * "shipping": {535 * "amount": "0",536 * "convertedAmount": "0",537 * "formattedAmount": "$0.00",538 * "formattedConvertedAmount": "$0.00"539 * },540 * "tax": {541 * "amount": "0",542 * "convertedAmount": "0",543 * "formattedAmount": "$0.00",544 * "formattedConvertedAmount": "$0.00"545 * },546 * "discount": {547 * "amount": "0",548 * "convertedAmount": "0",549 * "formattedAmount": "$0.00",550 * "formattedConvertedAmount": "$0.00"551 * },552 * "total": {553 * "amount": "0",554 * "convertedAmount": "0",555 * "formattedAmount": "$0.00",556 * "formattedConvertedAmount": "$0.00"557 * },558 * "additionalFees": {559 * "amount": "0",560 * "convertedAmount": "0",561 * "formattedAmount": "$0.00",562 * "formattedConvertedAmount": "$0.00"563 * }564 * },565 * "membershipOptions": {566 * "eligibleMemberships": [],567 * "invalidMemberships": [],568 * "selectedMemberships": {569 * "memberships": []570 * }571 * },572 * "additionalFees": []573 * }574 *575 */576
Remove coupon from a checkout (export from backend code)
Copy Code
1/**************************************2 * Backend code - my-backend-file.web.js *3 **************************************/45import { Permissions, webMethod } from 'wix-web-module';6import { checkout } from 'wix-ecom-backend';78export const myRemoveCouponFunction = webMethod(Permissions.Anyone, async (checkoutId) => {9 try {10 const updatedCheckout = await checkout.removeCoupon(checkoutId);11 console.log('Success! Updated checkout:', updatedCheckout);12 return updatedCheckout;13 } catch (error) {14 console.error(error);15 // Handle the error16 }17});1819/*************20 * Page code *21 ************/2223import { myRemoveCouponFunction } from 'backend/my-backend-file.web';2425// Sample checkoutId:26const checkoutId = '75b0d071-8ca0-4227-962f-91d0605c8c3a';2728myRemoveCouponFunction(checkoutId)29 .then((updatedCheckout) => {30 const checkoutId = updatedCheckout._id;31 const appliedDiscounts = updatedCheckout.appliedDiscounts;32 // appliedCoupon boolean value is false if no coupon exists on checkout33 const appliedCoupon = appliedDiscounts.some(({ coupon }) => coupon);3435 console.log('Success! Updated checkout:', updatedCheckout);36 return updatedCheckout;37 })38 .catch((error) => {39 console.error(error);40 // Handle the error41 });4243/* Promise resolves to:44 *45 * {46 * "_id": "75b0d071-8ca0-4227-962f-91d0605c8c3a",47 * "lineItems": [48 * {49 * "_id": "00000000-0000-0000-0000-000000000001",50 * "quantity": 3,51 * "catalogReference": {52 * "catalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a",53 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e"54 * },55 * "productName": {56 * "original": "Shirt",57 * "translated": "Shirt"58 * },59 * "url": "https://example.wixsite.com",60 * "price": {61 * "amount": "10",62 * "convertedAmount": "10",63 * "formattedAmount": "$10.00",64 * "formattedConvertedAmount": "$10.00"65 * },66 * "lineItemPrice": {67 * "amount": "30",68 * "convertedAmount": "30",69 * "formattedAmount": "$30.00",70 * "formattedConvertedAmount": "$30.00"71 * },72 * "fullPrice": {73 * "amount": "10",74 * "convertedAmount": "10",75 * "formattedAmount": "$10.00",76 * "formattedConvertedAmount": "$10.00"77 * },78 * "priceBeforeDiscounts": {79 * "amount": "10",80 * "convertedAmount": "10",81 * "formattedAmount": "$10.00",82 * "formattedConvertedAmount": "$10.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 * "media": "wix:image://v1/3c76e2_c5331f937348492a97df87b0a3b34ea4~mv2.jpg#originWidth=1000&originHeight=1000",120 * "availability": {121 * "status": "AVAILABLE"122 * },123 * "physicalProperties": {124 * "sku": "364115376135191",125 * "shippable": true126 * },127 * "couponScopes": [128 * {129 * "namespace": "stores",130 * "group": {131 * "name": "collection",132 * "entityId": "00000000-000000-000000-000000000001"133 * }134 * },135 * {136 * "namespace": "stores",137 * "group": {138 * "name": "product",139 * "entityId": "c8539b66-7a44-fe18-affc-afec4be8562a"140 * }141 * }142 * ],143 * "itemType": {144 * "preset": "PHYSICAL"145 * },146 * "paymentOption": "FULL_PAYMENT_ONLINE",147 * "rootCatalogItemId": "c8539b66-7a44-fe18-affc-afec4be8562a"148 * },149 * {150 * "_id": "00000000-0000-0000-0000-000000000002",151 * "quantity": 1,152 * "catalogReference": {153 * "catalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",154 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",155 * "options": {156 * "variantId": "2f430d69-9b75-4874-bfbd-c5f6fa5aff3d",157 * "customTextFields": {158 * "birthday card": "Happy Birthday!"159 * }160 * }161 * },162 * "productName": {163 * "original": "Shoe",164 * "translated": "Shoe"165 * },166 * "url": "https://example.wixsite.com",167 * "price": {168 * "amount": "85",169 * "convertedAmount": "85",170 * "formattedAmount": "$85.00",171 * "formattedConvertedAmount": "$85.00"172 * },173 * "lineItemPrice": {174 * "amount": "85",175 * "convertedAmount": "85",176 * "formattedAmount": "$85.00",177 * "formattedConvertedAmount": "$85.00"178 * },179 * "fullPrice": {180 * "amount": "85",181 * "convertedAmount": "85",182 * "formattedAmount": "$85.00",183 * "formattedConvertedAmount": "$85.00"184 * },185 * "priceBeforeDiscounts": {186 * "amount": "85",187 * "convertedAmount": "85",188 * "formattedAmount": "$85.00",189 * "formattedConvertedAmount": "$85.00"190 * },191 * "totalPriceAfterTax": {192 * "amount": "85",193 * "convertedAmount": "85",194 * "formattedAmount": "$85.00",195 * "formattedConvertedAmount": "$85.00"196 * },197 * "totalPriceBeforeTax": {198 * "amount": "85",199 * "convertedAmount": "85",200 * "formattedAmount": "$85.00",201 * "formattedConvertedAmount": "$85.00"202 * },203 * "taxDetails": {204 * "taxableAmount": {205 * "amount": "85",206 * "convertedAmount": "85",207 * "formattedAmount": "$85.00",208 * "formattedConvertedAmount": "$85.00"209 * },210 * "taxRate": "0",211 * "totalTax": {212 * "amount": "0",213 * "convertedAmount": "0",214 * "formattedAmount": "$0.00",215 * "formattedConvertedAmount": "$0.00"216 * },217 * "rateBreakdown": []218 * },219 * "discount": {220 * "amount": "0",221 * "convertedAmount": "0",222 * "formattedAmount": "$0.00",223 * "formattedConvertedAmount": "$0.00"224 * },225 * "descriptionLines": [226 * {227 * "name": {228 * "original": "Color",229 * "translated": "Color"230 * },231 * "colorInfo": {232 * "original": "Brown",233 * "translated": "Brown",234 * "code": "#783f04"235 * },236 * "lineType": "COLOR",237 * "color": "Brown"238 * },239 * {240 * "name": {241 * "original": "birthday card",242 * "translated": "birthday card"243 * },244 * "plainText": {245 * "original": "Happy Birthday!",246 * "translated": "Happy Birthday!"247 * },248 * "lineType": "PLAIN_TEXT",249 * "plainTextValue": {250 * "original": "Happy Birthday!",251 * "translated": "Happy Birthday!"252 * }253 * }254 * ],255 * "media": "wix:image://v1/3c76e2_bf235c38610f4d2a905db71095b351cf~mv2.jpg#originWidth=1000&originHeight=1000",256 * "availability": {257 * "status": "AVAILABLE",258 * "quantityAvailable": 30259 * },260 * "physicalProperties": {261 * "sku": "364215376135191",262 * "shippable": true263 * },264 * "couponScopes": [265 * {266 * "namespace": "stores",267 * "group": {268 * "name": "collection",269 * "entityId": "00000000-000000-000000-000000000001"270 * }271 * },272 * {273 * "namespace": "stores",274 * "group": {275 * "name": "product",276 * "entityId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"277 * }278 * }279 * ],280 * "itemType": {281 * "preset": "PHYSICAL"282 * },283 * "paymentOption": "FULL_PAYMENT_ONLINE",284 * "rootCatalogItemId": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e"285 * },286 * {287 * "_id": "00000000-0000-0000-0000-000000000003",288 * "quantity": 1,289 * "catalogReference": {290 * "catalogItemId": "9fe8c5b2-9c94-7153-ebb9-8533695e2b6f",291 * "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e",292 * "options": {293 * "Size": "Large",294 * "Color": "White"295 * }296 * },297 * "price": {298 * "amount": "0",299 * "convertedAmount": "0",300 * "formattedAmount": "$0.00",301 * "formattedConvertedAmount": "$0.00"302 * },303 * "fullPrice": {304 * "amount": "0",305 * "convertedAmount": "0",306 * "formattedAmount": "$0.00",307 * "formattedConvertedAmount": "$0.00"308 * },309 * "priceBeforeDiscounts": {310 * "amount": "0",311 * "convertedAmount": "0",312 * "formattedAmount": "$0.00",313 * "formattedConvertedAmount": "$0.00"314 * },315 * "descriptionLines": [],316 * "availability": {317 * "status": "NOT_FOUND"318 * },319 * "couponScopes": [],320 * "paymentOption": "FULL_PAYMENT_ONLINE"321 * }322 * ],323 * "billingInfo": {324 * "address": {325 * "addressLine1": "235 West 23rd Street",326 * "addressLine2": "3rd floor",327 * "city": "New York",328 * "subdivision": "US-NY",329 * "country": "US",330 * "postalCode": "10011"331 * },332 * "contactDetails": {333 * "firstName": "Jane",334 * "lastName": "Doe",335 * "phone": "+1234567890"336 * }337 * },338 * "shippingInfo": {339 * "shippingDestination": {340 * "address": {341 * "addressLine1": "235 West 23rd Street",342 * "addressLine2": "3rd floor",343 * "city": "New York",344 * "subdivision": "US-NY",345 * "country": "US",346 * "postalCode": "10011"347 * },348 * "contactDetails": {349 * "firstName": "Jane",350 * "lastName": "Doe",351 * "phone": "+1234567890"352 * }353 * },354 * "selectedCarrierServiceOption": {355 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",356 * "title": "Standard US Shipping",357 * "logistics": {358 * "deliveryTime": ""359 * },360 * "cost": {361 * "totalPriceAfterTax": {362 * "amount": "10",363 * "convertedAmount": "10",364 * "formattedAmount": "$10.00",365 * "formattedConvertedAmount": "$10.00"366 * },367 * "totalPriceBeforeTax": {368 * "amount": "10",369 * "convertedAmount": "10",370 * "formattedAmount": "$10.00",371 * "formattedConvertedAmount": "$10.00"372 * },373 * "taxDetails": {374 * "taxRate": "0",375 * "totalTax": {376 * "amount": "0",377 * "convertedAmount": "0",378 * "formattedAmount": "$0.00",379 * "formattedConvertedAmount": "$0.00"380 * },381 * "rateBreakdown": []382 * },383 * "price": {384 * "amount": "10",385 * "convertedAmount": "10",386 * "formattedAmount": "$10.00",387 * "formattedConvertedAmount": "$10.00"388 * }389 * },390 * "requestedShippingOption": true,391 * "otherCharges": [],392 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc"393 * },394 * "region": {395 * "_id": "009fbe5d-89d3-7825-cbbf-1aab4d908b73",396 * "name": "USA shipping"397 * },398 * "carrierServiceOptions": [399 * {400 * "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc",401 * "shippingOptions": [402 * {403 * "code": "ed5bbce2-9533-dff4-7db0-13702fd139c5",404 * "title": "Standard US Shipping",405 * "logistics": {406 * "deliveryTime": ""407 * },408 * "cost": {409 * "price": {410 * "amount": "10",411 * "convertedAmount": "10",412 * "formattedAmount": "$10.00",413 * "formattedConvertedAmount": "$10.00"414 * },415 * "otherCharges": []416 * }417 * }418 * ]419 * }420 * ]421 * },422 * "buyerNote": "Please wrap it up as a present",423 * "buyerInfo": {424 * "contactId": "f7dc17a6-825a-466e-a78e-c4abea0217db",425 * "email": "Janedoe@example.com",426 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"427 * },428 * "conversionCurrency": "USD",429 * "priceSummary": {430 * "subtotal": {431 * "amount": "115",432 * "convertedAmount": "115",433 * "formattedAmount": "$115.00",434 * "formattedConvertedAmount": "$115.00"435 * },436 * "shipping": {437 * "amount": "10",438 * "convertedAmount": "10",439 * "formattedAmount": "$10.00",440 * "formattedConvertedAmount": "$10.00"441 * },442 * "tax": {443 * "amount": "0",444 * "convertedAmount": "0",445 * "formattedAmount": "$0.00",446 * "formattedConvertedAmount": "$0.00"447 * },448 * "discount": {449 * "amount": "0",450 * "convertedAmount": "0",451 * "formattedAmount": "$0.00",452 * "formattedConvertedAmount": "$0.00"453 * },454 * "total": {455 * "amount": "125",456 * "convertedAmount": "125",457 * "formattedAmount": "$125.00",458 * "formattedConvertedAmount": "$125.00"459 * },460 * "additionalFees": {461 * "amount": "0",462 * "convertedAmount": "0",463 * "formattedAmount": "$0.00",464 * "formattedConvertedAmount": "$0.00"465 * }466 * },467 * "calculationErrors": {468 * "orderValidationErrors": []469 * },470 * "appliedDiscounts": [],471 * "customFields": [472 * {473 * "value": "12345",474 * "title": "Tax ID",475 * "translatedTitle": "Tax ID"476 * }477 * ],478 * "weightUnit": "KG",479 * "currency": "USD",480 * "channelType": "WEB",481 * "siteLanguage": "en",482 * "buyerLanguage": "en",483 * "completed": false,484 * "taxIncludedInPrice": false,485 * "createdBy": {486 * "memberId": "c43190d2-eea3-493e-b6e8-f146850c6873"487 * },488 * "_createdDate": "2022-10-19T14:22:03.847Z",489 * "_updatedDate": "2022-10-19T14:22:30.842Z",490 * "payNow": {491 * "subtotal": {492 * "amount": "115",493 * "convertedAmount": "115",494 * "formattedAmount": "$115.00",495 * "formattedConvertedAmount": "$115.00"496 * },497 * "shipping": {498 * "amount": "10",499 * "convertedAmount": "10",500 * "formattedAmount": "$10.00",501 * "formattedConvertedAmount": "$10.00"502 * },503 * "tax": {504 * "amount": "0",505 * "convertedAmount": "0",506 * "formattedAmount": "$0.00",507 * "formattedConvertedAmount": "$0.00"508 * },509 * "discount": {510 * "amount": "0",511 * "convertedAmount": "0",512 * "formattedAmount": "$0.00",513 * "formattedConvertedAmount": "$0.00"514 * },515 * "total": {516 * "amount": "125",517 * "convertedAmount": "125",518 * "formattedAmount": "$125.00",519 * "formattedConvertedAmount": "$125.00"520 * },521 * "additionalFees": {522 * "amount": "0",523 * "convertedAmount": "0",524 * "formattedAmount": "$0.00",525 * "formattedConvertedAmount": "$0.00"526 * }527 * },528 * "payLater": {529 * "subtotal": {530 * "amount": "0",531 * "convertedAmount": "0",532 * "formattedAmount": "$0.00",533 * "formattedConvertedAmount": "$0.00"534 * },535 * "shipping": {536 * "amount": "0",537 * "convertedAmount": "0",538 * "formattedAmount": "$0.00",539 * "formattedConvertedAmount": "$0.00"540 * },541 * "tax": {542 * "amount": "0",543 * "convertedAmount": "0",544 * "formattedAmount": "$0.00",545 * "formattedConvertedAmount": "$0.00"546 * },547 * "discount": {548 * "amount": "0",549 * "convertedAmount": "0",550 * "formattedAmount": "$0.00",551 * "formattedConvertedAmount": "$0.00"552 * },553 * "total": {554 * "amount": "0",555 * "convertedAmount": "0",556 * "formattedAmount": "$0.00",557 * "formattedConvertedAmount": "$0.00"558 * },559 * "additionalFees": {560 * "amount": "0",561 * "convertedAmount": "0",562 * "formattedAmount": "$0.00",563 * "formattedConvertedAmount": "$0.00"564 * }565 * },566 * "membershipOptions": {567 * "eligibleMemberships": [],568 * "invalidMemberships": [],569 * "selectedMemberships": {570 * "memberships": []571 * }572 * },573 * "additionalFees": []574 * }575 *576 */