Update Coupon
PUT
{{ecommercev2_url}}/coupons/{id}
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location -g --request PUT '{{ecommercev2_url}}/coupons/' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"title": {
"en": "Summer Sale",
"ar": "تخفيضات الصيف"
},
"code": "SUMMER2026",
"description": {
"en": "Get 20% off on all summer items",
"ar": "احصل على خصم 20% على جميع منتجات الصيف"
},
"appliedOn": "general",
"type": "manual",
"discount": {
"type": "percentage",
"value": 20,
"upTo": [
{
"currencyCode": "AED",
"value": 500
}
]
},
"totalUsages": 1000,
"usage": {
"interval": {
"type": "days",
"value": 1
},
"maxUsagePerCustomer": 10,
"maxUsage": 1,
"minimumSubtotal": 0,
"startDate": "2024-06-01T00:00:00Z",
"endDate": "2024-08-31T23:59:59Z"
},
"orderType": "pickup",
"isActive": true,
"appliedAutomatically": false
}'
Response Response Example
{}
Request
Path Params
id
string
required
Header Params
x-access-token
string
optional
Example:
{{admin-token}}
x-client
string
optional
Example:
{{client}}
accept-language
string
optional
Example:
{{acceptLanguage}}
Body Params application/json
Responses
Modified at 2025-06-03 12:13:20