POST

Remove Coupon


Removes the coupon from a specified checkout.

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ecom/v1/checkouts/{id}/remove-coupon

Path Params
idstringRequired

ID of the checkout to remove the coupon from.

Response Object
checkoutCheckout

Updated checkout after removal of coupon.

Remove Coupon Example 1
Request
cURL
curl -X POST 'https://www.wixapis.com/ecom/v1/checkouts/98efbd87-8097-44e9-9005-72093d7a21d5/remove-coupon' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "checkout": { "id": "98efbd87-8097-44e9-9005-72093d7a21d5", "lineItems": [ { "id": "00000000-0000-0000-0000-000000000001", "quantity": 10, "catalogReference": { "catalogItemId": "6b332137-422d-c53b-57b1-5130e01c7e0c", "appId": "215238eb-22a5-4c36-9e7b-e7c08025e04e" }, "productName": { "original": "T-shirt", "translated": "T-shirt" }, "url": { "relativePath": "/product-page/t-shirt", "url": "https://wixsite.com/coffeestore" }, "price": { "amount": "45", "convertedAmount": "45", "formattedAmount": "$45.00", "formattedConvertedAmount": "$45.00" }, "fullPrice": { "amount": "50", "convertedAmount": "50", "formattedAmount": "$50.00", "formattedConvertedAmount": "$50.00" }, "totalPriceAfterTax": { "amount": "450", "convertedAmount": "450", "formattedAmount": "$450.00", "formattedConvertedAmount": "$450.00" }, "totalPriceBeforeTax": { "amount": "375", "convertedAmount": "375", "formattedAmount": "$375.00", "formattedConvertedAmount": "$375.00" }, "taxDetails": { "taxableAmount": { "amount": "450", "convertedAmount": "450", "formattedAmount": "$450.00", "formattedConvertedAmount": "$450.00" }, "taxRate": "0.2", "totalTax": { "amount": "75", "convertedAmount": "75", "formattedAmount": "$75.00", "formattedConvertedAmount": "$75.00" }, "rateBreakdown": [] }, "discount": { "amount": "0", "convertedAmount": "0", "formattedAmount": "$0.00", "formattedConvertedAmount": "$0.00" }, "descriptionLines": [], "media": { "id": "47ab5a_b162aea573dd4e708e2e6c21536a0f5e~mv2.png", "url": "https://static.wixstatic.com/media/47ab5a_b162aea573dd4e708e2e6c21536a0f5e~mv2.png/v1/fit/w_4032,h_3024,q_90/file.png", "height": 3024, "width": 4032 }, "availability": { "status": "AVAILABLE" }, "physicalProperties": { "weight": 0.1, "sku": "1234", "shippable": true }, "couponScopes": [ { "namespace": "stores", "group": { "name": "product", "entityId": "6b332137-422d-c53b-57b1-5130e01c7e0c" } } ], "itemType": { "preset": "PHYSICAL" } } ], "billingInfo": { "address": { "country": "US", "subdivision": "US-ME", "city": "Richmond", "postalCode": "04357", "addressLine": "1772 Fantages Way", "countryFullname": "United States", "subdivisionFullname": "Maine" }, "contactDetails": { "firstName": "John", "lastName": "Doe", "phone": "2075555217" } }, "shippingInfo": { "shippingDestination": { "address": { "country": "US", "subdivision": "US-ME", "city": "Richmond", "postalCode": "04357", "addressLine": "1773 Fantages Way", "countryFullname": "United States", "subdivisionFullname": "Maine" }, "contactDetails": { "firstName": "John", "lastName": "Doe", "phone": "2075555218" } }, "selectedCarrierServiceOption": { "code": "c0feaab1-60d1-8eed-4283-b3bc10765af9", "title": "standard", "logistics": { "deliveryTime": "" }, "cost": { "totalPriceAfterTax": { "amount": "10", "convertedAmount": "10", "formattedAmount": "$10.00", "formattedConvertedAmount": "$10.00" }, "totalPriceBeforeTax": { "amount": "8.33", "convertedAmount": "8.33", "formattedAmount": "$8.33", "formattedConvertedAmount": "$8.33" }, "taxDetails": { "taxRate": "0.2", "totalTax": { "amount": "1.67", "convertedAmount": "1.67", "formattedAmount": "$1.67", "formattedConvertedAmount": "$1.67" }, "rateBreakdown": [] }, "price": { "amount": "10", "convertedAmount": "10", "formattedAmount": "$10.00", "formattedConvertedAmount": "$10.00" } }, "requestedShippingOption": true, "otherCharges": [], "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc" }, "region": { "id": "9249fd9c-7424-5ec3-21b6-7c28b8c0b485", "name": "Region 2" }, "carrierServiceOptions": [ { "carrierId": "c8a08776-c095-4dec-8553-8f9698d86adc", "shippingOptions": [ { "code": "c0feaab1-60d1-8eed-4283-b3bc10765af9", "title": "standard", "logistics": { "deliveryTime": "" }, "cost": { "price": { "amount": "10", "convertedAmount": "10", "formattedAmount": "$10.00", "formattedConvertedAmount": "$10.00" }, "otherCharges": [] } }, { "code": "83f392e7-ec2e-4931-9449-7a85b8217704", "title": "qfvbge", "logistics": { "deliveryTime": "", "instructions": "sGW", "pickupDetails": { "address": { "country": "US", "subdivision": "US-ME", "city": "Richmond", "postalCode": "04357", "addressLine": "1773 Fantages Way", "countryFullname": "United States", "subdivisionFullname": "Maine" }, "businessLocation": true } }, "cost": { "price": { "amount": "0", "convertedAmount": "0", "formattedAmount": "$0.00", "formattedConvertedAmount": "$0.00" }, "otherCharges": [] } } ] } ] }, "buyerNote": "wrap it as present", "buyerInfo": { "contactId": "3ba28845-0904-490a-94a7-9ba0cd6d9465", "email": "janedoe@example.com", "visitorId": "9cef4c21-ad14-4a3b-8526-0d8628160965" }, "conversionCurrency": "USD", "priceSummary": { "subtotal": { "amount": "375", "convertedAmount": "375", "formattedAmount": "$375.00", "formattedConvertedAmount": "$375.00" }, "shipping": { "amount": "8.33", "convertedAmount": "8.33", "formattedAmount": "$8.33", "formattedConvertedAmount": "$8.33" }, "tax": { "amount": "76.67", "convertedAmount": "76.67", "formattedAmount": "$76.67", "formattedConvertedAmount": "$76.67" }, "discount": { "amount": "0", "convertedAmount": "0", "formattedAmount": "$0.00", "formattedConvertedAmount": "$0.00" }, "total": { "amount": "460", "convertedAmount": "460", "formattedAmount": "$460.00", "formattedConvertedAmount": "$460.00" } }, "calculationErrors": {}, "giftCard": { "id": "f78f162c-b6e9-4230-a97c-fd4c784160c8", "obfuscatedCode": "******lars", "amount": { "amount": "100", "convertedAmount": "100", "formattedAmount": "$100.00", "formattedConvertedAmount": "$100.00" }, "appId": "ca5af76c-16be-4ff7-96cc-02c0920bce70" }, "appliedDiscounts": [], "customFields": [ { "value": "12345", "title": "Tax id", "translatedTitle": "Tax id" } ], "weightUnit": "KG", "taxSummary": { "taxableAmount": { "amount": "375", "convertedAmount": "375", "formattedAmount": "$375.00", "formattedConvertedAmount": "$375.00" }, "totalTax": { "amount": "76.67", "convertedAmount": "0", "formattedAmount": "", "formattedConvertedAmount": "" }, "manualTaxRate": "0.2", "calculationDetails": { "rateType": "MANUAL_RATE", "manualRateReason": "GLOBAL_SETTING_TO_MANUAL" } }, "currency": "USD", "channelType": "WEB", "siteLanguage": "en", "buyerLanguage": "en", "completed": false, "taxIncludedInPrice": true, "createdBy": { "visitorId": "9cef4c21-ad14-4a3b-8526-0d8628160965" } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?