Skip to main content
DELETE
/
shops
/
{shopId}
/
applydiscount
/
cart
/
{cartId}
Remove Discount from Cart
curl --request DELETE \
  --url http://staging.qshop.ng/apiv2/shops/{shopId}/applydiscount/cart/{cartId}
{
  "msg": "<string>",
  "data": {
    "entityId": "<string>",
    "shop": "<string>",
    "email": "<unknown>",
    "items": [
      {
        "setAttributesForVariants": true,
        "_id": "<string>",
        "name": "<string>",
        "shop": "<string>",
        "tags": [
          {
            "_id": "<string>",
            "name": "<string>",
            "tempId": "<string>",
            "shop": "<string>",
            "__v": 123,
            "slug": "<string>",
            "productCount": 123,
            "imageUrl": "<string>"
          }
        ],
        "costPrice": 123,
        "price": 123,
        "sku": "<string>",
        "sale_price": 123,
        "stock": 123,
        "alwaysInStock": true,
        "media": "<string>",
        "media_type": "<string>",
        "digital": true,
        "draft": true,
        "type": "<string>",
        "variantsInheritPrice": true,
        "slug": "<string>",
        "__v": 123,
        "qty": 123,
        "originalPrice": 123,
        "finalPrice": 123,
        "subTotal": 123,
        "downloadCount": 123,
        "downloadLimit": "<unknown>",
        "cartItemId": "<string>"
      }
    ],
    "subTotal": 123,
    "total": 123,
    "created": "<string>",
    "_id": "<string>",
    "discountsApplied": "<array>",
    "discountAmount": 123,
    "shipping": 123,
    "shippingRate": {},
    "user": "<string>",
    "exclusiveDiscount": true,
    "order": "<unknown>"
  },
  "success": true
}

Query Parameters

id
string

Response

200 - application/json
msg
string
required
data
object
required
success
boolean
required