getInvoicesByCustomer
Get invoices by customer.
This function allows you to get all invoices for a specific customer.
This is basically a GetPaymentInfo call based on all invoices for a customers.
An example can be found here Get invoices by customer example
Request
Data
Property | Required | Type | Description |
---|---|---|---|
customerno | true | string | The customer number of the customer. The organization number will also be tested. The match for customer number and/or organization number must be a full match. |
Function
Property | Required | Type | Description |
---|---|---|---|
function | true | string | The function name to be used, for this page it’s getInvoicesByCustomer |
Response
The response will contain an array of invoices.
Invoice properties
Property | Type | Description |
---|---|---|
status | string | Status |
name | string | Customer name |
invoicedate | string | Invoice date |
duedate | string | Due date |
topay | string | Amount to pay. Will be negative for credit invoices. |
invoiceid_real | int | Invoice number |
fileurl | string | File URL. The fileurl is not always present. The url might also point to a non-existing address due to changes over time. |
balancedue | int | Balance due for this payment |
invoicetype | string | Type of invoice. F = Invoice (Faktura) , K = Credit invoice (Kreditfaktura), KN = Cash invoice (Kontantnota), RF = Interest invoice (Räntefaktura) |
distributor_status | string | Distributor status. |
creditinvoiceid | int | Invoice id for credit invoice if not empty |
hash | string | Hash value for the invoice |
mm3servicesid | int | Internal service id |
mexcModulesid | int | Internal module id |
mexcCustomerinvoicesid | int | Invoice id |