JiwaAPI

<back to all web services

TFMInvoiceDocumentGETRequest

Requires Authentication
The following routes are available for this service:
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.
TFMInvoiceDocumentGETRequest Parameters:
NameParameterData TypeRequiredDescription
InvoiceHistoryIDpathstringNo
TFMInvoiceDocument Parameters:
NameParameterData TypeRequiredDescription
InvoiceHistoryIDformstringNo
DBTransIDformstringNo
InvoiceNoformstringNo
HistoryNoformint?No
CreditNoteformbool?No
OrderNoformstringNo
SOReferenceformstringNo
AccountNoformstringNo
SalesPersonformstringNo
RecordDateformDateTime?No
CustomerNameformstringNo
CustomerAddress1formstringNo
CustomerAddress2formstringNo
CustomerAddress3formstringNo
CustomerAddress4formstringNo
CustomerPostCodeformstringNo
DelContactNameformstringNo
DeliveryAddress1formstringNo
DeliveryAddress2formstringNo
DeliveryAddress3formstringNo
DeliveryAddress4formstringNo
DeliveryPostCodeformstringNo
CashSaleContactNameformstringNo
CashSaleCompanyformstringNo
CashSaleAddress1formstringNo
CashSaleAddress2formstringNo
CashSaleAddress3formstringNo
CashSaleAddress4formstringNo
CashSalePostCodeformstringNo
DebtorIDformstringNo
ParentDebtorIDformstringNo
TermsDaysformint?No
TermsTypeformint?No
ParentNameformstringNo
ParentAddress1formstringNo
ParentAddress2formstringNo
ParentAddress3formstringNo
ParentAddress4formstringNo
ParentPostCodeformstringNo
CompanyNameformstringNo
CompanyABNformstringNo
CompanyAddress1formstringNo
CompanyAddress2formstringNo
CompanyPhoneformstringNo
CompanyFaxformstringNo
CompanyEmailformstringNo
CompanyLegalNameformstringNo
CompanyTradingNameformstringNo
SubTotalIncGSTformdecimal?No
SubTotalGSTformdecimal?No
FreightExGSTformdecimal?No
InvoiceTotalGSTformdecimal?No
InvoiceTotalIncGSTformdecimal?No
TotalAmountPaidformdecimal?No
BankformTFMDocumentBankNo
LinesformList<TFMInvoiceDocumentLine>No
TFMDocumentBank Parameters:
NameParameterData TypeRequiredDescription
AccountNameformstringNo
BSBformstringNo
AccountNumberformstringNo
TFMInvoiceDocumentLine Parameters:
NameParameterData TypeRequiredDescription
LineNumformint?No
LineTypeformstringNo
PartDescriptionformstringNo
SupplierPartnoformstringNo
QuantityOrderedformdecimal?No
QuantityOnBackOrderformdecimal?No
QuantityThisDeliveryformdecimal?No
QuantityPreviousDeliveryformdecimal?No
AvgPriceEachExGSTformdecimal?No
LineGSTAmountformdecimal?No
PriceTotalIncGSTformdecimal?No
KitHeaderformint?No
KitComponentformint?No
CommentformstringNo
LineOpmetrixNoteformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + 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: api.wagga.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"}]}