curl --location 'https://api.hyperzod.app/merchant/v1/promotional/coupons/create' \
--header 'x-tenant: 42' \
--header 'x-client-device: web' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"created_by": "merchant",
"discount_category_type": "order",
"sections": [
{
"section": "DiscountApplicationTypeSection",
"type": "automatic",
"description": "Save ten percent on your order."
},
{
"section": "DiscountValueSection",
"type": "percentage",
"value": 10
},
{
"section": "AppliesToSection",
"type": "multipleMerchants",
"merchant_ids": [
"64b7f2a9c1e4d5038a6b9120"
]
},
{
"section": "MinimumRequirementsSection",
"type": "none"
},
{
"section": "EligibleOrderTypesSection",
"order_types": [
"delivery"
],
"payment_methods": [
1
]
},
{
"section": "CombinableWithSection",
"product_discount": false,
"order_discount": false,
"delivery_fee_discount": true
},
{
"section": "ActiveDatesSection",
"start_timestamp": "2026-10-17T00:00:00Z",
"has_end_date": false
},
{
"section": "DiscountSettingsSection",
"is_active": false
}
],
"merchant_id": "64b7f2a9c1e4d5038a6b9120"
}'