Discussions
Site redirection when downloading a bill
Hello,
I'm a developer that uses Pennylane APIs to integrate the latter with Salesforce CRM. I'm using for now a test environment.
At some point, I need to download the bill from Pennylane using code.
For that, I'm using the public_file_url property of the customer invoice object in Pennylane.
The original link starts with https://app.pennylane.com/... and then I'm redirected towards something like https://jeancaisse-20190924.s3.eu-west-1.amazonaws.com/...
My question is : will the redirect link always be like 'https://jeancaisse-20190924.s3.eu-west-1.amazonaws.com/...' ?
Both in sandbox and production environment ? Or will it change from time to time ?
(Today, the download is working well since I added the 2 domains linked above with my remote permissions)
It is important for me since I have to authorize the endpoints on the Salesforce side, otherwise a callout exception will occur and the file will not be downloaded.
Thank you very much for your help !
Best regards,
Claude Mariampillai
