Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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"
}
}
Exclua um cupom da sua loja.
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"
}
}
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"
}
}
Esta página foi útil?