sales Rule Coupon Repository V1Save Post
POST {{baseUrl}}/V1/coupons
Save a coupon.
Request Body
{"coupon"=>{"rule_id"=>"<integer>", "times_used"=>"<integer>", "is_primary"=>"<boolean>", "code"=>"<string>", "coupon_id"=>"<integer>", "created_at"=>"<string>", "expiration_date"=>"<string>", "extension_attributes"=>"<object>", "type"=>"<integer>", "usage_limit"=>"<integer>", "usage_per_customer"=>"<integer>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
""