Brand
Cart
Remove Discount

Remove Discount

DELETE endpoint for /brand/cart/remove-discount in brand category

Overview

  • Method: DELETE
  • Path: /brand/cart/remove-discount
  • Tags: brand

Parameters

No parameters required.

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "type": "object",
  "properties": {
    "cart": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "billing_address_id": {
      "type": "string"
    },
    "shipping_address_id": {
      "type": "string"
    },
    "region_id": {
      "type": "string"
    },
    "customer_id": {
      "type": "string"
    },
    "payment_id": {
      "type": "string"
    },
    "completed_at": {
      "type": "string",
      "format": "date-time"
    },
    "payment_authorized_at": {
      "type": "string",
      "format": "date-time"
    },
    "idempotency_key": {
      "type": "string"
    },
    "context": {
      "type": "object",
      "additionalProperties": true
    },
    "sales_channel_id": {
      "type": "string"
    },
    "shipping_total": {
      "type": "number"
    },
    "discount_total": {
      "type": "number"
    },
    "item_tax_total": {
      "type": "number"
    },
    "shipping_tax_total": {
      "type": "number"
    },
    "tax_total": {
      "type": "number"
    },
    "refunded_total": {
      "type": "number"
    },
    "total": {
      "type": "number"
    },
    "subtotal": {
      "type": "number"
    },
    "refundable_amount": {
      "type": "number"
    },
    "gift_card_total": {
      "type": "number"
    },
    "gift_card_tax_total": {
      "type": "number"
    },
    "returnable_items": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "deleted_at": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "sales_channel": {
      "type": "object"
    },
    "shipping_address": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "address_1": {
      "type": "string"
    },
    "address_2": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "country_code": {
      "type": "string"
    },
    "province": {
      "type": "string"
    },
    "postal_code": {
      "type": "string"
    },
    "phone": {
      "type": "string"
    }
  },
  "required": [
    "cart",
    "region_id",
    "context",
    "shipping_total",
    "discount_total",
    "refunded_total",
    "total",
    "subtotal",
    "refundable_amount",
    "gift_card_total",
    "gift_card_tax_total",
    "returnable_items",
    "created_at",
    "updated_at",
    "metadata",
    "shipping_address",
    "first_name",
    "last_name",
    "address_1",
    "city",
    "country_code",
    "postal_code",
    "created_at",
    "updated_at",
    "metadata"
  ]
}

400

Bad Request

Content Type: application/json

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "details": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "required": [
    "error",
    "details"
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X DELETE \
  http://localhost:9000/brand/cart/remove-discount \
  -H "Content-Type: application/json" \
  

Interactive Testing

You can test this endpoint interactively in the Swagger UI (opens in a new tab).