Pular para o conteúdo principal
DELETE
/
ecommerce
/
v2
/
apps
/
{app_id}
/
coupons
/
{coupon_id}
curl -X DELETE "https://gateway.jelou.ai/ecommerce/v2/apps/{app_id}/coupons/{coupon_id}" \
  -H "x-api-key: YOUR_API_KEY"
{
  "data": {
    "id": "9e3f2c1a-8b7d-4e6f-a5c4-d3b2a1e0f9c8",
    "code": "BLACKFRIDAY25",
    "name": "Black Friday 25%",
    "discount_type": "percentage",
    "discount_value": "25.000000",
    "status": true,
    "applies_to_all_branches": true,
    "state": "inactive",
    "created_at": "2026-07-02T15:30:00.000000Z",
    "updated_at": "2026-07-02T15:30:00.000000Z"
  }
}
app_id
string
obrigatório
O ID da sua loja no Jelou Shop.
coupon_id
string
obrigatório
ID do cupom a excluir.
Se preferir parar de oferecer o cupom sem excluí-lo, atualize-o com status: false em vez de removê-lo. Assim você preserva o histórico de usos.
curl -X DELETE "https://gateway.jelou.ai/ecommerce/v2/apps/{app_id}/coupons/{coupon_id}" \
  -H "x-api-key: YOUR_API_KEY"
{
  "data": {
    "id": "9e3f2c1a-8b7d-4e6f-a5c4-d3b2a1e0f9c8",
    "code": "BLACKFRIDAY25",
    "name": "Black Friday 25%",
    "discount_type": "percentage",
    "discount_value": "25.000000",
    "status": true,
    "applies_to_all_branches": true,
    "state": "inactive",
    "created_at": "2026-07-02T15:30:00.000000Z",
    "updated_at": "2026-07-02T15:30:00.000000Z"
  }
}