---
title: "cart.coupon.condition.add"
method: POST
path: "/cart.coupon.condition.add.json"
tags: ["cart"]
---

# cart.coupon.condition.add

`POST /cart.coupon.condition.add.json`

## Request

- Base URL: `https://api.api2cart.com/v1.1`
- URL: `https://api.api2cart.com/v1.1/cart.coupon.condition.add.json`
- Auth: API key in header `x-api-key` and API key in header `x-store-key`

Use this method to add additional conditions for coupon application.

## Query parameters

- `coupon_id` string, required
- `entity` 'order' | 'order_shipping_address' | 'product' | 'customer', required
- `key` 'total' | 'subtotal' | 'shipping_total' | 'total_quantity' | 'total_weight' | 'country' | 'product_id' | 'variant_id' | 'category_id' | 'customer_id' | 'item_price' | 'item_total_price' | 'item_quantity' | 'carrier_id', required
- `operator` string, required
- `value` string, required
- `target` string
- `include_tax` boolean
- `include_shipping` boolean
- `store_id` string
- `idempotency_key` string

## Response `200`

successful operation

- object
  - `return_code` integer
  - `return_message` string
  - `result` object
    - `status` boolean

---

[API](https://skmtc.dev/api2cart/apis/api2cart-openapi.md) · [All operations](https://skmtc.dev/api2cart/apis/api2cart-openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/api2cart/apis/api2cart-openapi/revisions/c34440741693?raw)
