Basic information

DELETE /{shopId}/carts/{cartId}/coupon/{couponLineItemId}

Deletes a coupon line item from a specific cart and recalculates cart. The link to add a coupon appears in the links section.

URI parameters

Name Type Description
shopId string

The unique identifier of the shop.

Required: true
Example: DemoShop
cartId string

The unique identifier of the cart.

Required: true
Example: 5858FD17-147C-661C-9C33-D5809AB3C8BA
couponLineItemId string
Required: true

Response attributes

Name Type Description

object of cart

Response

HTTP 200

Media type application/json

{
  "cartId": "5858FD17-147C-661C-9C33-D5809AB3C8BA",
  "billingAddress": null,
  "shippingAddress": null,
  "lineItemContainer": {
    "grandTotal": {
      "taxType": "GROSS",
      "formatted": "0.00 €",
      "amount": 0,
      "currency": "EUR"
    },
    "totalBeforeTax": {
      "taxType": "NET",
      "formatted": "0.00 €",
      "amount": 0,
      "currency": "EUR"
    },
    "totalTax": {
      "taxType": "NONE",
      "formatted": "0.00 €",
      "amount": 0,
      "currency": "EUR"
    },
    "lineItemsSubTotal": {
      "taxType": "GROSS",
      "formatted": "0.00 €",
      "amount": 0,
      "currency": "EUR"
    },
    "productLineItems": [],
    "couponLineItem": null,
    "shippingPrice": {
      "taxType": "GROSS",
      "formatted": "0.00 €",
      "amount": 0,
      "currency": "EUR"
    },
    "deposits": [],
    "ecoParticipations": [],
    "shippingOptions": [],
    "basketDiscount": {
      "links": []
    }
  },
  "shippingData": null,
  "paymentData": null,
  "minimumCart": {
    "status": true,
    "code": "SumDiscount",
    "amount": null
  },
  "pickupToken": "YjVkY2ZiYzBmYTZkMzUxNTc0NWFkMzYyNGUxN2Y0MDlmZDU5NzhkYjY0NWY1MDBlMTI0YmRjYmNjZjc1YzQ0ZF8xNDgyMjI4MjQ2",
  "creationDate": "2018-12-17T21:07:29Z",
  "checkoutUrl": "https://pm.epages.com/epages/apidocu.sf/?ObjectPath=/Shops/apidocu/AnonymousUsers/2/Baskets/46072&ChangeAction=PickupBasket&PickupToken=YjVkY2ZiYzBmYTZkMzUxNTc0NWFkMzYyNGUxN2Y0MDlmZDU5NzhkYjY0NWY1MDBlMTI0YmRjYmNjZjc1YzQ0ZF8xNDgyMjI4MjQ2",
  "registerSessionUrl": "https://pm.epages.com/epages/apidocu.sf/?ObjectPath=/Shops/apidocu/AnonymousUsers/2/Baskets/46072&ChangeAction=PickupBasket&PickupToken=NTRjZWJmNjdhNzNlYTUzNDAxZTgyZTc4ODYwYTliMDUxMDIzNDQ2OWY2NWQ5NWRmN2Q2YmVjZjVjNzljOTQ2N18xNDgyMjI3OTE3",
  "cartValidation": {
    "possibleShippingMethods" : [
      "Standard delivery",
      "Express delivery",
      "Customer pickup"
    ]
  },
  "potentialBasketDiscounts": [
    {
      "absolute": {
          "taxType": "GROSS",
          "formatted": "10.00 €",
          "amount": 10,
          "currency": "EUR"
      },
      "minimumAmount": {
          "taxType": "GROSS",
          "formatted": "30.00 €",
          "amount": 30,
          "currency": "EUR"
      },
      "percent": null
    },
    {
      "absolute": null,
      "minimumAmount": {
          "taxType": "GROSS",
          "formatted": "50.00 €",
          "amount": 50,
          "currency": "EUR"
      },
      "percent": {
          "percentage": 10.0,
          "formatted": "10 %"
      }
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://pm.epages.com/rs/shops/apidocu/carts/5858FD17-147C-661C-9C33-D5809AB3C8BA"
    },
    {
      "rel": "add-coupon",
      "href": "https://pm.epages.com/rs/shops/apidocu/carts/5858FD17-147C-661C-9C33-D5809AB3C8BA/coupon"
    }
  ]
}