Service
https://api.timewax.com/invoices/lines/list/
Goal
Requesting invoice lines.
Request
The following xml structure must be provided:
<request>
<token></token>
<dateFrom></dateFrom>
<dateTo></dateTo>
</request>
Parameter | Description | Required |
---|---|---|
token | Token for this request | yes |
dateFrom | Date from. Format: yyyymmdd. | yes |
dateTo | Date to. Format: yyyymmdd. | yes |
The following xml structure is received after an successful execution:
<response>
<valid>true</valid>
<invoices>
<invoice>
<number></number>
<date></date>
<company></company>
<companyCode></companyCode>
<project></project>
<projectCode></projectCode>
<isCreditNote></isCreditNote>
<lines>
<pageHeader>
<line></line>
<amount></amount>
</pageHeader>
<invoiceHeader>
<line></line>
<amount></amount>
</invoiceHeader>
<invoiceDetails>
<line></line>
<amount></amount>
</invoiceDetails>
<invoiceTotals>
<line></line>
<amount></amount>
</invoiceTotals>
<invoiceFooter>
<line></line>
<amount></amount>
</invoiceFooter>
<pageFooter>
<line></line>
<amount></amount>
</pageFooter>
</lines>
</invoice>
</invoices>
</response>
Parameter | Description |
---|---|
valid | Indication that service was executed successfully |
invoices/invoice/number | The number of the invoice. |
invoices/invoice/date | The invoice date. |
invoices/invoice/company | The name of the customer (company). |
invoices/invoice/companyCode | The customer code (company). |
invoices/invoice/project | The project name for which the invoice was made. |
invoices/invoice/projectCode | The project Code for which the invoice was made. |
invoices/invoice/isCreditNote | Marks if the invoice is a credit note. |
/amount | The amount in the specific section. |
/line | Details of the booking in the specific section. |
The following xml structure is received after an incorrect execution:
<response>
<valid>no</valid>
<errors>no</errors>
</response>
Parameter | Description |
---|---|
valid | Indication that service was not executed successfully |
errors | Reason why the service has executed unsuccessfully |
Comments