# Cancelling and Refunding

## PUT /custom/hpp/{idOrInvoiceNumber}/cancel

> Cancel payment link ---- \[auth scope:  merchant]

```json
{"openapi":"3.0.0","info":{"title":"Merchant API","version":"1.0"},"paths":{"/custom/hpp/{idOrInvoiceNumber}/cancel":{"put":{"operationId":"CustomHppController_cancelPaymentLink","summary":"Cancel payment link ---- [auth scope:  merchant]","deprecated":false,"parameters":[{"name":"idOrInvoiceNumber","required":true,"in":"path","description":"custom link id or invoice-number","schema":{"type":"string"}}],"responses":{"200":{"description":"Link cancelled successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/"}}}}},"tags":["custom"]}}},"components":{"schemas":{}}}
```
