Payment links
Turn off a payment link
Turns the link off. Customers who open it see that it no longer exists; invoices already created from it stay payable. Rate limit: 60 per minute per API key, shared with the other endpoints that have this limit.
DELETE
bearerAuthheader
AuthorizationBearer <token>A live API key, sk_live_ followed by 32 base58 characters.
id*stringPayment link id (starts with lnk_).
The payment link, now with active false.
application/json- response
id*stringobject*stringmode*ModeAlways live on the objects your API key creates and reads. Only demo store invoices, seen through the public checkout endpoints, are test.
Value in
"live""test"url*stringThe shareable link.
Format
urititle*stringamount*|Fixed amount, or null for a tip link.
currency*CurrencyValue in
"USD""EUR""INR"redirect_url*|Where the checkout sends the customer after paying. When null, the customer goes to your business website, if you set one.
Format
uriactive*booleancreated_at*stringFormat
date-timecurl -X DELETE 'https://example.com/api/v1/payment-links/string'Example Response
{ "id": "lnk_8Fq2xT4mW9pL3vN7rB2s", "object": "payment_link", "mode": "live", "url": "http://example.com", "title": "string", "amount": "string", "currency": "USD", "redirect_url": "http://example.com", "active": true, "created_at": "2019-08-24T14:15:22Z"}