Cancelar um link de pagamento
Desative um link de pagamento ativo para que ele não possa mais ser pago. Pagamentos já recebidos não são afetados.
POST /payment-link/{id}/cancel desativa um link active; o status passa para cancelled e a página hospedada deixa de aceitar pagamentos.
- Cancelar um link que já está
cancellednão faz nada e retorna o link. - Um link que já está
usedretorna409: não pode ser cancelado. Pagamentos já recebidos nunca são afetados; para devolver o dinheiro, reembolse o pagamento.
Exemplo
Autorizações
Your secret API key: Bearer prv_production_xxx (production) or Bearer prv_sandbox_xxx (sandbox).
Parâmetros de caminho
The payment link id.
Corpo
Your merchant account identifier. Required if the key maps to more than one merchant account.
Resposta
The cancelled link (cancelling an already-cancelled link is a no-op)
The hosted checkout URL to share with the payer.
one-time, subscription used once a single-use link takes its first successful payment, or a reusable link reaches maxUses.
active, used, expired, cancelled fixed, customer_entered Absent on subscription links. For customer_entered links only currency and exponent are set.
Minimum payer-entered amount, minor units.
Maximum payer-entered amount, minor units.
Number of successful payments taken through this link.
production, sandbox 
