Update the status of a payment link
Updates the status of a payment link. Use this endpoint to force the expiry of a payment link.
In: header
Path Parameters
Unique identifier of the payment link.
Request Body
application/json
Status of the payment link. Possible values:
- expired
Value in
- "expired"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/paymentLinks/string" \ -H "Content-Type: application/json" \ -d '{ "status": "expired" }'{ "amount": { "currency": "EUR", "value": 8700 }, "countryCode": "NL", "expiresAt": "2021-04-08T14:06:39Z", "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "reference": "shopper-reference-ekvL83", "shopperLocale": "hu-HU", "shopperReference": "shopper-reference-LZfdWZ", "status": "expired", "url": "https://test.adyen.link/PL61C53A8B97E6915A", "id": "PL61C53A8B97E6915A"}Get a payment link GET
Retrieves the payment link details using the payment link `id`.
Cancel an authorised payment POST
Cancels the authorisation on a payment that has not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures), and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**TECHNICAL_CANCEL** webhook](https://docs.adyen.com/online-payments/cancel#cancellation-webhook). If you want to cancel a payment using the [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference), use the [`/payments/{paymentPspReference}/cancels`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/cancels) endpoint instead. If you want to cancel a payment but are not sure whether it has been captured, use the [`/payments/{paymentPspReference}/reversals`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/reversals) endpoint instead. For more information, refer to [Cancel](https://docs.adyen.com/online-payments/cancel).
