HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
PATCH /Bills/{BillID} HTTP/1.1
Host: api.jiwa.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"BillID":"String","BillNo":"String","Description":"String","IsEnabled":false,"MaximumProductionCapability":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","RowHash":"AA==","Stages":[{"StageID":"String","ItemNo":0,"Name":"String","RequiredCapacity":0,"ProductionLineWorkCentre":{"ProductionLineWorkCentreID":"String","WorkCentre":{"WorkCentreID":"String","Name":"String","Description":"String","Capacity":0,"IsEnabled":false}},"Inputs":[{"InputID":"String","ItemNo":0,"InventoryID":"String","PartNo":"String","Description":"String","IsRatio":false,"Quantity":0,"Note":"String","IsBoMItem":false,"SubAssemblyBillID":"String","SubAssemblyExplodePolicy":"AlwaysExplode","CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}],"TotalLineCost":0,"LastCost":0,"UnitMeasure":"String"}],"Instructions":[{"InstructionID":"String","ItemNo":0,"InstructionText":"String","CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}]}],"CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}]}],"Outputs":[{"OutputID":"String","ItemNo":0,"InventoryID":"String","PartNo":"String","Description":"String","IsRatio":false,"Quantity":0,"Note":"String","IsPrimary":false,"CostPercentage":0,"Cost":0,"LastCost":0,"CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"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=="}],"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"}],"ProductionLine":{"ProductionLineID":"String","Name":"String","Description":"String","IsEnabled":false,"ProductionArea":{"ProductionAreaID":"String","ProductionAreaNo":"String","Name":"String","Description":"String","IsEnabled":false}},"BillParents":[{"BillID":"String","BillNo":"String","Description":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"BillID":"String","BillNo":"String","Description":"String","IsEnabled":false,"MaximumProductionCapability":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","RowHash":"AA==","Stages":[{"StageID":"String","ItemNo":0,"Name":"String","RequiredCapacity":0,"ProductionLineWorkCentre":{"ProductionLineWorkCentreID":"String","WorkCentre":{"WorkCentreID":"String","Name":"String","Description":"String","Capacity":0,"IsEnabled":false}},"Inputs":[{"InputID":"String","ItemNo":0,"InventoryID":"String","PartNo":"String","Description":"String","IsRatio":false,"Quantity":0,"Note":"String","IsBoMItem":false,"SubAssemblyBillID":"String","SubAssemblyExplodePolicy":"AlwaysExplode","CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}],"TotalLineCost":0,"LastCost":0,"UnitMeasure":"String"}],"Instructions":[{"InstructionID":"String","ItemNo":0,"InstructionText":"String","CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}]}],"CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}]}],"Outputs":[{"OutputID":"String","ItemNo":0,"InventoryID":"String","PartNo":"String","Description":"String","IsRatio":false,"Quantity":0,"Note":"String","IsPrimary":false,"CostPercentage":0,"Cost":0,"LastCost":0,"CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"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=="}],"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"}],"ProductionLine":{"ProductionLineID":"String","Name":"String","Description":"String","IsEnabled":false,"ProductionArea":{"ProductionAreaID":"String","ProductionAreaNo":"String","Name":"String","Description":"String","IsEnabled":false}},"BillParents":[{"BillID":"String","BillNo":"String","Description":"String"}]}