action api2cart_cart_coupon_condition_add { label: "CartCouponConditionAdd" description: "Create new coupon condition" provider: api2cart method: POST path: "/cart.coupon.condition.add.json" encoding: json input: { type: "object" properties: { coupon_id: { type: "string" } entity: { type: "string" enum: ["order", "order_shipping_address", "product", "customer"] } key: { type: "string" enum: ["total", "subtotal", "shipping_total", "total_quantity", "total_weight", "country", "product_id", "variant_id", "category_id", "customer_id", "item_price", "item_total_price", "item_quantity"] } operator: { type: "string" enum: ["==", "<", "<=", ">", ">=", "ONE_OF"] } store_id: { type: "string" } target: { type: "string" } value: { type: "string" } } required: ["coupon_id", "entity", "key", "operator", "value"] additionalProperties: false } output: { type: "object" properties: { result: { type: "object" properties: { status: { type: "boolean" } } } return_code: { type: "integer" } return_message: { type: "string" } } } }