HTTP + CSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
PATCH /PurchaseInvoices/{PurchaseInvoiceID} HTTP/1.1
Host: api.jiwa.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"PurchaseInvoiceID":"String","CreditorID":"String","CreditorAccountNo":"String","CreditorName":"String","LastSavedDateTime":"0001-01-01T00:00:00.0000000","InvoiceNo":"String","InvoiceDate":"0001-01-01T00:00:00.0000000","Status":"UnActivated","Freight":0,"Duty":0,"Insurance":0,"TaxTotal":0,"FreightTaxID":"String","FreightTaxRate":0,"FreightTaxAmount":0,"DutyTaxID":"String","DutyTaxRate":0,"DutyTaxAmount":0,"InsuranceTaxID":"String","InsuranceTaxRate":0,"InsuranceTaxAmount":0,"Lines":[{"PurchaseInvoiceLineID":"String","Quantity":0,"InventoryID":"String","PartNo":"String","Aux2":"String","Description":"String","SupplierPartNo":"String","PurchaseInvoiceLineType":"0","QuantityDecimalPlaces":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","TaxAmount":0,"TaxID":"String","TaxRate":0,"Cost":0,"CurrencyRateUsed":0,"PurchasingClassificationID":"String","PurchasingClassificationDescription":"String","LineDetails":[{"LineDetailID":"String","LinkID":"String","Quantity":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","SerialNo":"String","BinLocationID":"String","BinLocationDescription":"String","ExpiryDate":"0001-01-01T00:00:00.0000000","RE_LineDetails_RecID":"String"}],"UseSerialNo":false,"FXCost":0,"PhysicalItem":false,"InventoryExpectedLiability_LedgerAccountID":"String","InventoryExpectedLiability_LedgerAccountNo":"String","InventoryExpectedLiability_LedgerAccountDescription":"String","InventoryExpectedAsset_LedgerAccountID":"String","InventoryExpectedAsset_LedgerAccountNo":"String","InventoryExpectedAsset_LedgerAccountDescription":"String","InventoryDeliveredAsset_LedgerAccountID":"String","InventoryDeliveredAsset_LedgerAccountNo":"String","InventoryDeliveredAsset_LedgerAccountDescription":"String","InventoryValue_LedgerAccountID":"String","InventoryValue_LedgerAccountNo":"String","InventoryValue_LedgerAccountDescription":"String","InventoryDeliveredLiability_LedgerAccountID":"String","InventoryDeliveredLiability_LedgerAccountNo":"String","InventoryDeliveredLiability_LedgerAccountDescription":"String","InventoryCreditorPurchases_LedgerAccountID":"String","InventoryCreditorPurchases_LedgerAccountNo":"String","InventoryCreditorPurchases_LedgerAccountDescription":"String","InventoryCostOfGoodsVariance_LedgerAccountID":"String","InventoryCostOfGoodsVariance_LedgerAccountNo":"String","InventoryCostOfGoodsVariance_LedgerAccountDescription":"String","InventoryStockMovement_LedgerAccountID":"String","InventoryStockMovement_LedgerAccountNo":"String","InventoryStockMovement_LedgerAccountDescription":"String","InventoryLastSavedDateTime":"0001-01-01T00:00:00.0000000","OrderUnits":0,"ItemNo":0,"IN_SupplierWarehouse_RecID":"String","IncPrice":0,"LineTotal":0,"FXTotal":0,"FXDecimalPlaces":0,"HomeDecimalPlaces":0,"UseExpiryDate":false,"PostedToWIP":false,"JobCostingStageID":"String","JobCostingStageNo":"String","JobCostingStageName":"String","JobCostingCostCentreID":"String","JobCostingCostCentreNo":"String","JobCostingCostCentreName":"String","JobCostingJobID":"String","JobCostingJobNo":"String","OrderNo":"String","OrderID":"String","PurchaseOrderLineNo":0,"PurchaseOrderType":"DefaultOrderType","CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}],"LineTotalExTax":0,"RE_Lines_SourceID":"String"}],"GoodsReceivedNotes":[{"GoodsReceivedNoteInvoicedID":"String","GRNID":"String","SlipNo":"String","ReceivedDate":"0001-01-01T00:00:00.0000000","FreightTaxID":"String","Freight":0,"FreightTaxAmount":0,"DutyTaxID":"String","Duty":0,"DutyTaxAmount":0,"InsuranceTaxID":"String","Insurance":0,"InsuranceTaxAmount":0,"RE_Main_LastSavedDateTime":"0001-01-01T00:00:00.0000000"}],"TotalGross":0,"TotalNet":0,"TotalFx":0,"FreightInc":0,"DutyInc":0,"InsuranceInc":0,"HomeDecimalPlaces":0,"FXDecimalPlaces":0,"TaxAdjustment":0,"DueDate":"0001-01-01T00:00:00.0000000","CurrencyID":"String","TotalNetOnInventoryReceivals":0,"CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}],"Notes":[{"NoteID":"String","NoteType":{"NoteTypeID":"String","Description":"String","DefaultType":false,"ItemNo":0},"LineNo":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","LastModifiedByStaffID":"String","LastModifiedByStaffUsername":"String","LastModifiedByStaffTitle":"String","LastModifiedByStaffFirstName":"String","LastModifiedByStaffSurname":"String","NoteText":"String"}],"Documents":[{"DocumentID":"String","DocumentType":{"DocumentTypeID":"String","Description":"String","DefaultType":false,"ItemNo":0},"FileID":"String","PhysicalFileName":"String","FullPhysicalFileName":"String","Description":"String","LastSavedDateTime":"0001-01-01T00:00:00.0000000","LastModifiedByStaffID":"String","LastModifiedByStaffUsername":"String","LastModifiedByStaffTitle":"String","LastModifiedByStaffFirstName":"String","LastModifiedByStaffSurname":"String","FileBinary":"AA=="}],"LogicalWarehouseID":"String","LogicalWarehouseDescription":"String","PhysicalWarehouseID":"String","PhysicalWarehouseDescription":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"PurchaseInvoiceID":"String","CreditorID":"String","CreditorAccountNo":"String","CreditorName":"String","LastSavedDateTime":"0001-01-01T00:00:00.0000000","InvoiceNo":"String","InvoiceDate":"0001-01-01T00:00:00.0000000","Status":"UnActivated","Freight":0,"Duty":0,"Insurance":0,"TaxTotal":0,"FreightTaxID":"String","FreightTaxRate":0,"FreightTaxAmount":0,"DutyTaxID":"String","DutyTaxRate":0,"DutyTaxAmount":0,"InsuranceTaxID":"String","InsuranceTaxRate":0,"InsuranceTaxAmount":0,"Lines":[{"PurchaseInvoiceLineID":"String","Quantity":0,"InventoryID":"String","PartNo":"String","Aux2":"String","Description":"String","SupplierPartNo":"String","PurchaseInvoiceLineType":"0","QuantityDecimalPlaces":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","TaxAmount":0,"TaxID":"String","TaxRate":0,"Cost":0,"CurrencyRateUsed":0,"PurchasingClassificationID":"String","PurchasingClassificationDescription":"String","LineDetails":[{"LineDetailID":"String","LinkID":"String","Quantity":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","SerialNo":"String","BinLocationID":"String","BinLocationDescription":"String","ExpiryDate":"0001-01-01T00:00:00.0000000","RE_LineDetails_RecID":"String"}],"UseSerialNo":false,"FXCost":0,"PhysicalItem":false,"InventoryExpectedLiability_LedgerAccountID":"String","InventoryExpectedLiability_LedgerAccountNo":"String","InventoryExpectedLiability_LedgerAccountDescription":"String","InventoryExpectedAsset_LedgerAccountID":"String","InventoryExpectedAsset_LedgerAccountNo":"String","InventoryExpectedAsset_LedgerAccountDescription":"String","InventoryDeliveredAsset_LedgerAccountID":"String","InventoryDeliveredAsset_LedgerAccountNo":"String","InventoryDeliveredAsset_LedgerAccountDescription":"String","InventoryValue_LedgerAccountID":"String","InventoryValue_LedgerAccountNo":"String","InventoryValue_LedgerAccountDescription":"String","InventoryDeliveredLiability_LedgerAccountID":"String","InventoryDeliveredLiability_LedgerAccountNo":"String","InventoryDeliveredLiability_LedgerAccountDescription":"String","InventoryCreditorPurchases_LedgerAccountID":"String","InventoryCreditorPurchases_LedgerAccountNo":"String","InventoryCreditorPurchases_LedgerAccountDescription":"String","InventoryCostOfGoodsVariance_LedgerAccountID":"String","InventoryCostOfGoodsVariance_LedgerAccountNo":"String","InventoryCostOfGoodsVariance_LedgerAccountDescription":"String","InventoryStockMovement_LedgerAccountID":"String","InventoryStockMovement_LedgerAccountNo":"String","InventoryStockMovement_LedgerAccountDescription":"String","InventoryLastSavedDateTime":"0001-01-01T00:00:00.0000000","OrderUnits":0,"ItemNo":0,"IN_SupplierWarehouse_RecID":"String","IncPrice":0,"LineTotal":0,"FXTotal":0,"FXDecimalPlaces":0,"HomeDecimalPlaces":0,"UseExpiryDate":false,"PostedToWIP":false,"JobCostingStageID":"String","JobCostingStageNo":"String","JobCostingStageName":"String","JobCostingCostCentreID":"String","JobCostingCostCentreNo":"String","JobCostingCostCentreName":"String","JobCostingJobID":"String","JobCostingJobNo":"String","OrderNo":"String","OrderID":"String","PurchaseOrderLineNo":0,"PurchaseOrderType":"DefaultOrderType","CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}],"LineTotalExTax":0,"RE_Lines_SourceID":"String"}],"GoodsReceivedNotes":[{"GoodsReceivedNoteInvoicedID":"String","GRNID":"String","SlipNo":"String","ReceivedDate":"0001-01-01T00:00:00.0000000","FreightTaxID":"String","Freight":0,"FreightTaxAmount":0,"DutyTaxID":"String","Duty":0,"DutyTaxAmount":0,"InsuranceTaxID":"String","Insurance":0,"InsuranceTaxAmount":0,"RE_Main_LastSavedDateTime":"0001-01-01T00:00:00.0000000"}],"TotalGross":0,"TotalNet":0,"TotalFx":0,"FreightInc":0,"DutyInc":0,"InsuranceInc":0,"HomeDecimalPlaces":0,"FXDecimalPlaces":0,"TaxAdjustment":0,"DueDate":"0001-01-01T00:00:00.0000000","CurrencyID":"String","TotalNetOnInventoryReceivals":0,"CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}],"Notes":[{"NoteID":"String","NoteType":{"NoteTypeID":"String","Description":"String","DefaultType":false,"ItemNo":0},"LineNo":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","LastModifiedByStaffID":"String","LastModifiedByStaffUsername":"String","LastModifiedByStaffTitle":"String","LastModifiedByStaffFirstName":"String","LastModifiedByStaffSurname":"String","NoteText":"String"}],"Documents":[{"DocumentID":"String","DocumentType":{"DocumentTypeID":"String","Description":"String","DefaultType":false,"ItemNo":0},"FileID":"String","PhysicalFileName":"String","FullPhysicalFileName":"String","Description":"String","LastSavedDateTime":"0001-01-01T00:00:00.0000000","LastModifiedByStaffID":"String","LastModifiedByStaffUsername":"String","LastModifiedByStaffTitle":"String","LastModifiedByStaffFirstName":"String","LastModifiedByStaffSurname":"String","FileBinary":"AA=="}],"LogicalWarehouseID":"String","LogicalWarehouseDescription":"String","PhysicalWarehouseID":"String","PhysicalWarehouseDescription":"String"}