Service
https://api.timewax.com/purchaseinvoices/list/
Goal
Getting a list with all purchase invoices of a project.
Request
The following xml structure must be provided:
<request>
<token></token>
<project></project>
</request>
Parameter | Description | Required |
---|---|---|
token | Token for this request | yes |
project | Code or name. The project for this request | yes |
The following xml structure is received after an successful execution:
<response>
<valid>yes</valid> <purchaseInvoices>
<purchaseInvoice>
<invoiceDate></invoiceDate>
<invoiceNumber></invoiceNumber>
<invoiceAmount></invoiceAmount>
<budgetCost></budgetcost>
<breakdown></breakdown>
<type></type>
<invoiceType></invoiceType>
<salesInvoiceDate></salesInvoiceDate>
<salesInvoiceAmount></salesInvoiceAmount>
<salesInvoiceStatus></salesInvoiceStatus>
<description></description>
</purchaseInvoice>
</purchaseInvoices>
</response>
Parameter | Description |
---|---|
valid | Indication that service was executed successfully |
invoiceDate | Invoice date. Format:yyyy-mm-dd |
invoiceNumber | The number of the original invoice. |
invoiceAmount | The amount of the invoice. |
budgetCost | The related budget cost line. see purchaseinvoices/list/. |
breakdown | Name of breakdown. |
type | Attribute value. |
invoiceType | Type for invoicing. Options: Non-chargeable, Fixed price or Costing |
salesInvoiceDate | The date per when this line can be invoiced (invoiceStatus is open) or when the line is invoice (invoiceStatus is invoiced). |
salesInvoiceAmount | The amount which is invoiced or will be invoiced. |
salesInvoiceStatus | The invoice status of this line. |
description | Description of the line. |
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 |
error | Reason why the service has executed unsuccessfully |
Opmerkingen