php-ovh
php-ovh copied to clipboard
Inconsistency between EU/US API - Cannot download invoices
Hello,
I am using the OVH API to automatically download my invoices. This works fine for OVH EU and SoYouStart.
However, I noticed an inconsistency in the US API.
I am using the API call:
$response = $ovh->get('/me/bill/' . $billId);
Then I am downloading the invoice with:
Http::get($response['pdfUrl'])
This fails with the US API because it requires an additional login to fetch the PDF URL. The EU API does not require this login.
I think this is a bug in the US API. The pdfUrl should be pre-signed to be usable with the API.