#JoaoVitor
1 messages · Page 1 of 1 (latest)
Do you mean a Payment Link? If so, I don't think you can automatically disable it. You'd need to deactivate it by going to the dashboard
https://dashboard.stripe.com/test/payment-links
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
don't have an endpoint in the api to disable?
Ah yes
You can update the PaymentLink by passing in active: false
https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-active
thks
NP! 🙂 Happy to help