| GET | /TFM/Documents/Invoices/{InvoiceHistoryID} | One delivery's printed tax invoice (the fields the invoice prints, from usp_TFM_TaxInvoice) and its ledger row id. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InvoiceHistoryID | path | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InvoiceHistoryID | form | string | No | |
| DBTransID | form | string | No | |
| InvoiceNo | form | string | No | |
| HistoryNo | form | int? | No | |
| CreditNote | form | bool? | No | |
| OrderNo | form | string | No | |
| SOReference | form | string | No | |
| AccountNo | form | string | No | |
| SalesPerson | form | string | No | |
| RecordDate | form | DateTime? | No | |
| CustomerName | form | string | No | |
| CustomerAddress1 | form | string | No | |
| CustomerAddress2 | form | string | No | |
| CustomerAddress3 | form | string | No | |
| CustomerAddress4 | form | string | No | |
| CustomerPostCode | form | string | No | |
| DelContactName | form | string | No | |
| DeliveryAddress1 | form | string | No | |
| DeliveryAddress2 | form | string | No | |
| DeliveryAddress3 | form | string | No | |
| DeliveryAddress4 | form | string | No | |
| DeliveryPostCode | form | string | No | |
| CashSaleContactName | form | string | No | |
| CashSaleCompany | form | string | No | |
| CashSaleAddress1 | form | string | No | |
| CashSaleAddress2 | form | string | No | |
| CashSaleAddress3 | form | string | No | |
| CashSaleAddress4 | form | string | No | |
| CashSalePostCode | form | string | No | |
| DebtorID | form | string | No | |
| ParentDebtorID | form | string | No | |
| TermsDays | form | int? | No | |
| TermsType | form | int? | No | |
| ParentName | form | string | No | |
| ParentAddress1 | form | string | No | |
| ParentAddress2 | form | string | No | |
| ParentAddress3 | form | string | No | |
| ParentAddress4 | form | string | No | |
| ParentPostCode | form | string | No | |
| CompanyName | form | string | No | |
| CompanyABN | form | string | No | |
| CompanyAddress1 | form | string | No | |
| CompanyAddress2 | form | string | No | |
| CompanyPhone | form | string | No | |
| CompanyFax | form | string | No | |
| CompanyEmail | form | string | No | |
| CompanyLegalName | form | string | No | |
| CompanyTradingName | form | string | No | |
| SubTotalIncGST | form | decimal? | No | |
| SubTotalGST | form | decimal? | No | |
| FreightExGST | form | decimal? | No | |
| InvoiceTotalGST | form | decimal? | No | |
| InvoiceTotalIncGST | form | decimal? | No | |
| TotalAmountPaid | form | decimal? | No | |
| Bank | form | TFMDocumentBank | No | |
| Lines | form | List<TFMInvoiceDocumentLine> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccountName | form | string | No | |
| BSB | form | string | No | |
| AccountNumber | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LineNum | form | int? | No | |
| LineType | form | string | No | |
| PartDescription | form | string | No | |
| SupplierPartno | form | string | No | |
| QuantityOrdered | form | decimal? | No | |
| QuantityOnBackOrder | form | decimal? | No | |
| QuantityThisDelivery | form | decimal? | No | |
| QuantityPreviousDelivery | form | decimal? | No | |
| AvgPriceEachExGST | form | decimal? | No | |
| LineGSTAmount | form | decimal? | No | |
| PriceTotalIncGST | form | decimal? | No | |
| KitHeader | form | int? | No | |
| KitComponent | form | int? | No | |
| Comment | form | string | No | |
| LineOpmetrixNote | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /TFM/Documents/Invoices/{InvoiceHistoryID} HTTP/1.1
Host: testapi.redpoint.com.au
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"InvoiceHistoryID":"String","DBTransID":"String","InvoiceNo":"String","HistoryNo":0,"CreditNote":false,"OrderNo":"String","SOReference":"String","AccountNo":"String","SalesPerson":"String","RecordDate":"0001-01-01T00:00:00.0000000","CustomerName":"String","CustomerAddress1":"String","CustomerAddress2":"String","CustomerAddress3":"String","CustomerAddress4":"String","CustomerPostCode":"String","DelContactName":"String","DeliveryAddress1":"String","DeliveryAddress2":"String","DeliveryAddress3":"String","DeliveryAddress4":"String","DeliveryPostCode":"String","CashSaleContactName":"String","CashSaleCompany":"String","CashSaleAddress1":"String","CashSaleAddress2":"String","CashSaleAddress3":"String","CashSaleAddress4":"String","CashSalePostCode":"String","DebtorID":"String","ParentDebtorID":"String","TermsDays":0,"TermsType":0,"ParentName":"String","ParentAddress1":"String","ParentAddress2":"String","ParentAddress3":"String","ParentAddress4":"String","ParentPostCode":"String","CompanyName":"String","CompanyABN":"String","CompanyAddress1":"String","CompanyAddress2":"String","CompanyPhone":"String","CompanyFax":"String","CompanyEmail":"String","CompanyLegalName":"String","CompanyTradingName":"String","SubTotalIncGST":0,"SubTotalGST":0,"FreightExGST":0,"InvoiceTotalGST":0,"InvoiceTotalIncGST":0,"TotalAmountPaid":0,"Bank":{"AccountName":"String","BSB":"String","AccountNumber":"String"},"Lines":[{"LineNum":0,"LineType":"String","PartDescription":"String","SupplierPartno":"String","QuantityOrdered":0,"QuantityOnBackOrder":0,"QuantityThisDelivery":0,"QuantityPreviousDelivery":0,"AvgPriceEachExGST":0,"LineGSTAmount":0,"PriceTotalIncGST":0,"KitHeader":0,"KitComponent":0,"Comment":"String","LineOpmetrixNote":"String"}]}