Brand
Cart
Add To Cart

Add To Cart

POST endpoint for /brand/cart/add-to-cart in brand category

Overview

  • Method: POST
  • Path: /brand/cart/add-to-cart
  • Tags: brand

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes
  • Schema: Defined

Responses

200

Successful response

Content Type: application/json

{
  "type": "object",
  "properties": {
    "cartItemId": {
      "type": "string"
    },
    "cartId": {
      "type": "string"
    },
    "productVariantId": {
      "type": "string"
    },
    "quantity": {
      "type": "number"
    },
    "unitPrice": {
      "type": "number"
    },
    "totalPrice": {
      "type": "number"
    },
    "prescriptionId": {
      "type": "string"
    },
    "customizations": {
      "type": "object",
      "additionalProperties": true
    },
    "added_at": {
      "type": "string"
    }
  },
  "required": [
    "cartItemId",
    "cartId",
    "productVariantId",
    "quantity",
    "unitPrice",
    "totalPrice",
    "customizations",
    "added_at"
  ]
}

400

Bad Request

Content Type: application/json

{
  "$ref": "#/components/schemas/Error"
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  http://localhost:9000/brand/cart/add-to-cart \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'

Interactive Testing

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