Deactivate payment link
Use this method to deactivate a payment link.
To deactivate a payment link, you need its paymentLinkId. Our gateway returned the paymentLinkId in the response of the [Create Payment Link](https://docs.payroc.com/api/schema/payments/payment-links/create) method.
**Note:** If you don't have the paymentLinkId, use our [List Payment Links](https://docs.payroc.com/api/schema/payments/payment-links/list) method to search for the payment link.
If your request is successful, our gateway deactivates the payment link. The customer can't use the link to make a payment, and you can't reactivate the payment link.
Path parameters
paymentLinkId
Unique identifier that we assigned to the payment link.
Headers
Authorization
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Response
Successful request. We deactivated the payment link.
Multi-use link
OR
Single-use link