Coupons

sales Rule Coupon Repository V1Get By Id Get

get

Get coupon by coupon id.

Path parameters
couponIdstringRequired

(Required)

Example: <integer>
Responses
200

OK

application/json
Responseobject
get
/V1/coupons/{couponId}

sales Rule Coupon Repository V1Save Put

put

Save a coupon.

Path parameters
couponIdstringRequired

(Required)

Example: <string>
Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"coupon":{"rule_id":"<integer>","times_used":"<integer>","is_primary":"<boolean>","coupon_id":"<integer>","code":"<string>","usage_limit":"<integer>","usage_per_customer":"<integer>","expiration_date":"<string>","created_at":"<string>","type":"<integer>","extension_attributes":{"ddg_extension_attributes":{"email":"<string>","expires_at":"<string>"}}}}
Responses
200

OK

application/json
Responseobject
put
/V1/coupons/{couponId}

sales Rule Coupon Repository V1Delete By Id Delete

delete

Delete coupon by coupon id.

Path parameters
couponIdstringRequired

(Required)

Example: <integer>
Responses
200

OK

application/json
Responseobject
delete
/V1/coupons/{couponId}

sales Rule Coupon Repository V1Save Post

post

Save a coupon.

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"coupon":{"rule_id":"<integer>","times_used":"<integer>","is_primary":"<boolean>","coupon_id":"<integer>","code":"<string>","usage_limit":"<integer>","usage_per_customer":"<integer>","expiration_date":"<string>","created_at":"<string>","type":"<integer>","extension_attributes":{"ddg_extension_attributes":{"email":"<string>","expires_at":"<string>"}}}}
Responses
200

OK

application/json
Responseobject
post
/V1/coupons