Get Invoice
I'm trying to retrieve an invoice via the API with the endpoint /accounts/{accountId}/invoices/{invoiceId} but in the documentation it is impossible to make the call work:
https://app.swaggerhub.com/apis-docs/WildApricot/wild-apricot_public_api/8.03.0#/Finances.Invoices/GetInvoiceDetails
The first parameter which should correspond to accountId is replaced by () and in the return example there is only "string".
If I test the endpoint, the accountId parameter is not sent with my value.
For information, I tested other API endpoints and they work:
- /
- /accounts
- /accounts/{accountId}
- /accounts/{accountId}/contacts
- /accounts/{accountId}/contacts/{contactId}
So I tested a PHP example provided by Wildapricot:
https://github.com/WildApricot/ApiSamples/blob/master/PHP/sampleApplication.php
I replaced the connection values and everything works fine.
I tested the endpoint /accounts/{accountId}/invoices/{invoiceId}
and I have a 404 return code which means not found.
I made a call to the endpoint /accounts/{accountId}/invoices
and I have a return code 400 which means bad request.
I added the invoiceId parameter but still the same error.
Do you need to do anything special to use endpoint invoices?
Note that in the authorized app, I checked full access.
![](https://secure.gravatar.com/avatar/5287898de1bd6c72d80963ebcb352d17?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
The API documentation has been fixed.
-
Hello,
You can get the info about a particular invoice by adding the invoice ID at the end of the URL: /accounts/{accountId}/invoices/[invoiceId]
Also I can confirm we have issues with the API documentation currently, thanks for the signal! We are working on fixing it right now.