ReDoc documentation

coupons

coupons

post/V1/coupons

Save a coupon.

Request
Request Body schema:
required
object (sales-rule-data-coupon-interface)

Interface CouponInterface

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

500

Internal Server error

default

Unexpected error

Request samples
{
  • "coupon": {
    }
}
Response samples
{
  • "coupon_id": 0,
  • "rule_id": 0,
  • "code": "string",
  • "usage_limit": 0,
  • "usage_per_customer": 0,
  • "times_used": 0,
  • "expiration_date": "string",
  • "is_primary": true,
  • "created_at": "string",
  • "type": 0,
  • "extension_attributes": { }
}