Invoices
Get invoice
Retrieve invoice records from Alvys by invoice number or reference, including carrier and customer invoices, line items, aging status, and payment history.
GET
Get invoice
The Invoices endpoint allows you to retrieve detailed information about a specific invoice using its unique ID and version. To ensure compatibility and stability, it is essential to include the correct version number in the URL path when making a request. For more information on versioning, refer to the Versioning page.
CURL Example using Invoice Number:
Replace
Using Invoice Number:
Request Parameters
The following parameters are accepted as query parameters, exceptversion which is part of the URL path:
Example CURL request
CURL Example using Invoice ID:{version} with the API version number, {invoiceNumber} with the actual invoice number, and YOUR_ACCESS_TOKEN with your actual Bearer token:
Using Invoice ID:
Response Parameters
The following table lists the parameters included in the response for invoice-related requests.Example Response
On the right side, you can see examples of different error codes by clicking “Example” and selecting the response code.Rate Limits
All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits page. This page is interactive, allowing you to try a request by specifying the API version in the URL path and providing the necessary request body. As you fill out the parameters, the Curl command on the right side of the page will be automatically updated. Alternatively, you can directly edit the Curl command. Make sure to authorize yourself before trying a request.Authorizations
OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.
Path Parameters
API version (e.g., 1.0)
Example:
"1.0"
Response
OK