> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Excluir cupom

> Exclua um cupom da sua loja.

<ParamField path="app_id" type="string" required>
  O ID da sua loja no Jelou Shop.
</ParamField>

<ParamField path="coupon_id" type="string" required>
  ID do cupom a excluir.
</ParamField>

<Note>
  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.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://gateway.jelou.ai/ecommerce/v2/apps/{app_id}/coupons/{coupon_id}" \
    -H "x-api-key: YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "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"
    }
  }
  ```
</ResponseExample>
