Skip to main content
PATCH
/
ecommerce
/
v2
/
apps
/
{app_id}
/
coupons
/
{coupon_id}
curl -X PATCH "https://gateway.jelou.ai/ecommerce/v2/apps/{app_id}/coupons/{coupon_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Black Friday 30%",
    "discount_value": 30,
    "valid_until": "2026-12-02T23:59:59Z"
  }'
{
  "data": {
    "id": "9e3f2c1a-8b7d-4e6f-a5c4-d3b2a1e0f9c8",
    "code": "BLACKFRIDAY25",
    "name": "Black Friday 30%",
    "description": "25% off the entire store",
    "discount_type": "percentage",
    "discount_value": "30.000000",
    "status": true,
    "valid_from": "2026-11-25T00:00:00.000000Z",
    "valid_until": "2026-12-02T23:59:59.000000Z",
    "max_uses": 100,
    "once_per_client": true,
    "applies_to_all_branches": true,
    "state": "scheduled",
    "created_at": "2026-07-02T15:30:00.000000Z",
    "updated_at": "2026-07-02T16:00:00.000000Z"
  }
}
You only need to send the fields you want to update.
app_id
string
required
Your store ID in Jelou Shop.
coupon_id
string
required
ID of the coupon to update.
Sending branches replaces the coupon’s entire set of branches. Include every branch you want to keep. To activate or pause a coupon use status; to disable it only in one branch, send that branch in branches with status: false.
curl -X PATCH "https://gateway.jelou.ai/ecommerce/v2/apps/{app_id}/coupons/{coupon_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Black Friday 30%",
    "discount_value": 30,
    "valid_until": "2026-12-02T23:59:59Z"
  }'
{
  "data": {
    "id": "9e3f2c1a-8b7d-4e6f-a5c4-d3b2a1e0f9c8",
    "code": "BLACKFRIDAY25",
    "name": "Black Friday 30%",
    "description": "25% off the entire store",
    "discount_type": "percentage",
    "discount_value": "30.000000",
    "status": true,
    "valid_from": "2026-11-25T00:00:00.000000Z",
    "valid_until": "2026-12-02T23:59:59.000000Z",
    "max_uses": 100,
    "once_per_client": true,
    "applies_to_all_branches": true,
    "state": "scheduled",
    "created_at": "2026-07-02T15:30:00.000000Z",
    "updated_at": "2026-07-02T16:00:00.000000Z"
  }
}