This endpoint provides comprehensive data about the invoice, including its status, payment details, and associated line items.

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.

Request Parameters

The following parameters are required in the URL path:

ParameterTypeRequiredDescription
idStringConditionallyThe unique Alvys identifier of the invoice. This field is required if the other conditionally required fields are left empty.
invoice_numberStringConditionallyThe invoice number to retrieve details. This field is required if the other conditionally required fields are left empty.
versionStringYesThe API version to interact with.

Example CURL request

CURL Example using Invoice ID:

curl --location 'https://integrations.alvys.com/api/p/v{version}/invoices?id={invoiceId}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

CURL Example using Invoice Number:

curl --location 'https://integrations.alvys.com/api/p/v{version}/invoices?invoiceNumber={invoiceNumber}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Replace {version} with the API version number, {invoiceNumber} with the actual invoice number, and YOUR_ACCESS_TOKEN with your actual Bearer token:

Using Invoice ID:

curl --location 'https://integrations.alvys.com/api/p/v1/invoices?id=15fd1695595a48a48163490e3f21ddd6' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpX....'

Using Invoice Number:

curl --location 'https://integrations.alvys.com/api/p/v1/invoices?invoiceNumber=123456789' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpX....'

Response Parameters

The following table lists the parameters included in the response for invoice-related requests.

ParameterTypeDescription
idStringThe unique identifier of the invoice.
numberStringThe invoice number.
typeStringThe type of the invoice (e.g., Standard, Credit Memo).
statusStringThe current status of the invoice (e.g., Open, Paid, Overdue).
createdDateString (Date-Time)The date and time when the invoice was created.
invoicedDateString (Date-Time)The date and time when the invoice was issued.
dueDateString (Date-Time)The due date for the invoice payment.
paidDateString (Date-Time)The date when the invoice was fully paid.
totalObjectThe total amount of the invoice.
total.amountNumberThe monetary value of the total amount.
total.currencyStringThe currency in which the invoice is issued.
amountPaidObjectThe amount that has been paid towards the invoice.
amountPaid.amountNumberThe monetary value of the amount paid.
amountPaid.currencyStringThe currency in which the payment was made.
remainingBalanceObjectThe remaining balance due on the invoice.
remainingBalance.amountNumberThe monetary value of the remaining balance.
remainingBalance.currencyStringThe currency in which the balance is due.
overPaymentAmountObjectThe overpayment amount if any.
overPaymentAmount.amountNumberThe monetary value of the overpayment.
overPaymentAmount.currencyStringThe currency in which the overpayment was made.
isSubmittedBooleanIndicates if the invoice has been submitted.
lastSendDateString (Date-Time)The last date and time when the invoice was sent.
supplementalInvoiceTypeStringThe type of supplemental invoice if applicable.
vendorObjectVendor details associated with the invoice.
vendor.idStringThe unique identifier of the vendor.
vendor.nameStringThe name of the vendor.
vendor.remitAddressObjectThe remit address of the vendor.
vendor.remitAddress.streetStringThe street address of the vendor.
vendor.remitAddress.cityStringThe city of the vendor's address.
vendor.remitAddress.stateStringThe state of the vendor's address.
vendor.remitAddress.zipCodeStringThe zip code of the vendor's address.
vendor.remitEmailStringThe email address for remittances to the vendor.
vendor.remitPhoneStringThe phone number for remittances to the vendor.
customerObjectCustomer details associated with the invoice.
customer.idStringThe unique identifier of the customer.
customer.nameStringThe name of the customer.
customer.emailAddressesArray of StringsThe list of email addresses for the customer.
customer.phoneNumbersArray of StringsThe list of phone numbers for the customer.
customer.billingAddressObjectThe billing address of the customer.
customer.billingAddress.streetStringThe street address of the customer.
customer.billingAddress.cityStringThe city of the customer's billing address.
customer.billingAddress.stateStringThe state of the customer's billing address.
customer.billingAddress.zipCodeStringThe zip code of the customer's billing address.
customer.shippingAddressObjectThe shipping address of the customer.
customer.shippingAddress.streetStringThe street address of the customer.
customer.shippingAddress.cityStringThe city of the customer's shipping address.
customer.shippingAddress.stateStringThe state of the customer's shipping address.
customer.shippingAddress.zipCodeStringThe zip code of the customer's shipping address.
lineItemsArray of ObjectsThe line items included in the invoice.
lineItems.idStringThe unique identifier of the line item.
lineItems.nameStringThe name of the line item.
lineItems.amountObjectThe amount associated with the line item.
lineItems.amount.amountNumberThe monetary value of the line item.
lineItems.amount.currencyStringThe currency in which the line item is priced.
lineItems.rateObjectThe rate details for the line item.
lineItems.rate.unitOfMeasurementStringThe unit of measurement for the rate (e.g., hours, miles).
lineItems.rate.unitsNumberThe number of units billed.
lineItems.rate.rateNumberThe rate per unit.
lineItems.loadNumberStringThe load number associated with the line item.
lineItems.customerIdStringThe customer ID associated with the line item.
lineItems.categoryStringThe category of the line item.
loadsArray of ObjectsThe loads associated with the invoice.
loads.idStringThe unique identifier of the load.
loads.loadNumberStringThe load number associated with the invoice.
loads.subsidiaryNameStringThe name of the subsidiary associated with the load.
loads.sourceStringThe source of the load.
loads.orderNumberStringThe order number associated with the load.
loads.poNumberStringThe purchase order number associated with the load.
paymentsArray of ObjectsThe payments made against the invoice.
payments.idStringThe unique identifier of the payment.
payments.paymentDateString (Date-Time)The date and time when the payment was made.
payments.amountObjectThe amount paid in the payment.
payments.amount.amountNumberThe monetary value of the payment.
payments.amount.currencyStringThe currency in which the payment was made.
payments.checkNumberStringThe check number associated with the payment.
payments.paymentReferenceStringThe payment reference number.

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.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!