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

Create coupon

Register a coupon to use in offers.

POST/couponscoupons:write

Request

marketplacestring · bodyMarketplace.mandatory
codestring · bodyCoupon code.mandatory
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 POST 'https://achadu.com/api/v1/coupons' \
+  -H 'Authorization: Bearer ach_live_...' \
+  -H 'Accept: application/json' \
+  -H 'Content-Type: application/json' \
+  --data '{
  "marketplace": "string",
  "code": "string",
  "description": "string",
  "value": "string",
  "minimum": 10
}'

Answer

201Resource created
4xxError with code, message and request_id