curl -X POST 'https://api.wovepay.com/v1/coupons/create' \
-H 'X-API-Key: wp_live_SUA_CHAVE' \
-H 'Content-Type: application/json' \
-d '{
"code": "VERAO10",
"discountType": "PERCENT",
"discountValue": 10,
"maxUses": 100,
"expiresAt": "2026-12-31T23:59:59.000Z",
"paymentLinkIds": ["clx_link"]
}'
{
"success": true,
"message": "Cupom criado",
"data": {
"id": "clx_coupon",
"code": "VERAO10",
"discountType": "PERCENT",
"discountValue": 10,
"maxUses": 100,
"uses": 0,
"status": "ACTIVE",
"productIds": [],
"paymentLinkIds": ["clx_link"]
},
"requestId": "req_abc"
}
Cupons
Criar cupom
Cria cupom de desconto para links de pagamento.
POST
/
coupons
/
create
curl -X POST 'https://api.wovepay.com/v1/coupons/create' \
-H 'X-API-Key: wp_live_SUA_CHAVE' \
-H 'Content-Type: application/json' \
-d '{
"code": "VERAO10",
"discountType": "PERCENT",
"discountValue": 10,
"maxUses": 100,
"expiresAt": "2026-12-31T23:59:59.000Z",
"paymentLinkIds": ["clx_link"]
}'
{
"success": true,
"message": "Cupom criado",
"data": {
"id": "clx_coupon",
"code": "VERAO10",
"discountType": "PERCENT",
"discountValue": 10,
"maxUses": 100,
"uses": 0,
"status": "ACTIVE",
"productIds": [],
"paymentLinkIds": ["clx_link"]
},
"requestId": "req_abc"
}
URL:
POST https://api.wovepay.com/v1/coupons/create · Permissão: coupons/createcurl -X POST 'https://api.wovepay.com/v1/coupons/create' \
-H 'X-API-Key: wp_live_SUA_CHAVE' \
-H 'Content-Type: application/json' \
-d '{
"code": "VERAO10",
"discountType": "PERCENT",
"discountValue": 10,
"maxUses": 100,
"expiresAt": "2026-12-31T23:59:59.000Z",
"paymentLinkIds": ["clx_link"]
}'
{
"success": true,
"message": "Cupom criado",
"data": {
"id": "clx_coupon",
"code": "VERAO10",
"discountType": "PERCENT",
"discountValue": 10,
"maxUses": 100,
"uses": 0,
"status": "ACTIVE",
"productIds": [],
"paymentLinkIds": ["clx_link"]
},
"requestId": "req_abc"
}
Corpo
Guia: Cupons.Authorizations
Body
application/json

