curl --request POST \
--url https://backend.codedamn.com/api/public/update-digital-product-coupon \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '
{
"data": [
{
"data": {
"fermionCouponCodeId": "<string>",
"fermionDigitalProductId": "<string>",
"fermionDigitalProductCouponSlug": "<string>",
"description": "<string>",
"expireAtIsoString": "2023-11-07T05:31:56Z",
"shouldApplyAutomatically": false,
"numberOfRedemptionsAllowed": 2,
"couponTypeData": {
"percentOff": 50,
"type": "percent-off"
}
}
}
]
}
'