Skip to content
AchaduDevelopers
Operational APIGo to website
Dashboard
Developers/API/coupon_update
Coupons

Update coupon

Updates validity, discount and eligibility.

PATCH/coupons/{id}coupons:write

Request

idstring · pathResource identifier.mandatory
marketplacestring · bodyMarketplace.optional
codestring · bodyCoupon code.optional
descriptionstring · bodyDescription.optional
valuestring · bodyValue presented.optional
minimumnumber · bodyMinimum order.optional
valid_untilstring · bodyISO validity.optional
typestring · bodyCoupon type.optional
discountnumber · bodyPercentage or discount amount.optional
capnumber · bodyDiscount ceiling.optional
categoriesarray · bodyEligible categories.optional
verifiedboolean · bodyMark the coupon as verified.optional
activeboolean · bodyActivate or archive the coupon.optional

Example

curl
curl -X PATCH 'https://achadu.com/api/v1/coupons/resource_id' \
+  -H 'Authorization: Bearer ach_live_...' \
+  -H 'Accept: application/json' \
+  -H 'Content-Type: application/json' \
+  --data '{
  "marketplace": "string",
  "code": "string",
  "description": "string"
}'

Answer

200Operation completed
4xxError with code, message and request_id