Coupons
Get coupon by coupon id.
Path parameters
couponIdstringRequiredExample:
(Required)
<integer>Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
/V1/coupons/{couponId}Save a coupon.
Path parameters
couponIdstringRequiredExample:
(Required)
<string>Header parameters
Content-TypestringOptionalExample:
application/jsonBody
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
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
put
/V1/coupons/{couponId}Delete coupon by coupon id.
Path parameters
couponIdstringRequiredExample:
(Required)
<integer>Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
/V1/coupons/{couponId}Save a coupon.
Header parameters
Content-TypestringOptionalExample:
application/jsonBody
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
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
/V1/coupons