php-ovh icon indicating copy to clipboard operation
php-ovh copied to clipboard

Inconsistency between EU/US API - Cannot download invoices

Open josiasmontag opened this issue 1 year ago • 0 comments

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.

josiasmontag avatar Dec 12 '23 09:12 josiasmontag