Cupons
Remover Cupom
DELETE
/v1/coupons/:couponIdBase URL Produção:
https://api.validapay.com.brBase URL Sandbox:
https://sandbox.validapay.com.brAuthorizations
bearer
Authorization
string obrigatório
Cabeçalho de autenticação Bearer no formato Bearer {{token}} onde {{token}} é o seu token OAuth2.
Escopos requeridos
products/write
Path Parameters
couponIdstringobrigatórioCouponid
Remove um cupom (soft delete: o registro vira status=INACTIVE, não é apagado). Resgates já concluídos com este cupom não são afetados.
const url = 'https://sandbox.validapay.com.br/v1/coupons/:couponId';
const options = {
method: 'DELETE',
headers: {
'Authorization': 'Bearer {{token}}'
},
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Response Examples
200200▾
JSON
{
"success": true
}404404▾
JSON
{
"error": {
"message": "Cupom não encontrado",
"code": "COUPON_NOT_FOUND",
"details": null,
"timestamp": "2026-09-11T21:00:00.000Z"
}
}