I figured out how to make, list, and delete successful payment links with the square API using curl.
On my website, I internally generate a grand total price based on the services a customer orders, and the generation of links this way is useful, however, if I had 100,000 different customers each placing 1,000 orders, then I’d have 100,000,000 different links created which consumes storage space on squares servers, and if enough space is consumed, then there’s none left for others to create links.
Is there a way to configure the link through the square API’s to have the link automatically be deleted after a set number of hours or at a specific time?
And when a payment link is deleted, does it affect my reporting in my square dashboard in any way? (example: if I removed a link after someone made a payment through it, would that entry be deleted from my logs on the square dashboard?)