HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /JournalSets/ HTTP/1.1
Host: api.jiwa.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"SetNo":"String","SetType":"Normal","Description":"String","Source":"String","SourceID":"String","PostedDate":"0001-01-01T00:00:00.0000000","IsReversed":false,"ReverseType":"None","ReverseDate":"0001-01-01T00:00:00.0000000","RepeatingUnits":0,"RepeatingType":"None","NextRepeatingDate":"0001-01-01T00:00:00.0000000","RepeatingWillEnd":false,"RepeatingEndDate":"0001-01-01T00:00:00.0000000","LastSavedDateTime":"0001-01-01T00:00:00.0000000","Staff":{"StaffID":"String","Title":"String","FirstName":"String","Surname":"String","Username":"String","IsActive":false,"IsEnabled":false},"Lines":[{"JournalSetLineID":"String","ItemNo":0,"Reference":"String","Remark":"String","TransCode1ID":"String","TransCode1Description":"String","TransCode2ID":"String","TransCode2Description":"String","BASCode":"No_Code","TransPostDateTime":"0001-01-01T00:00:00.0000000","DebitAmount":0,"CreditAmount":0,"AllowGroup":false,"Staff":{"StaffID":"String","Title":"String","FirstName":"String","Surname":"String","Username":"String","IsActive":false,"IsEnabled":false},"JobCostingStageID":"String","JobCostingFullJobNo":"String","GeneralLedgerAccountRecID":"String","GeneralLedgerAccountAccountNo":"String","GeneralLedgerAccountDescription":"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=="}],"PostedToPeriodNo":0,"PostedToPeriodName":"String","PostedToYearType":"LastYear","PostedToYearNo":0,"PostedToPeriodNoIsGloballyLocked":false,"PostedToPeriodNoIsExternallyLocked":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"JournalSetID":"String","SetNo":"String","SetType":"Normal","Description":"String","Source":"String","SourceID":"String","PostedDate":"0001-01-01T00:00:00.0000000","IsReversed":false,"ReverseType":"None","ReverseDate":"0001-01-01T00:00:00.0000000","RepeatingUnits":0,"RepeatingType":"None","NextRepeatingDate":"0001-01-01T00:00:00.0000000","RepeatingWillEnd":false,"RepeatingEndDate":"0001-01-01T00:00:00.0000000","LastSavedDateTime":"0001-01-01T00:00:00.0000000","Staff":{"StaffID":"String","Title":"String","FirstName":"String","Surname":"String","Username":"String","IsActive":false,"IsEnabled":false},"Lines":[{"JournalSetLineID":"String","ItemNo":0,"Reference":"String","Remark":"String","TransCode1ID":"String","TransCode1Description":"String","TransCode2ID":"String","TransCode2Description":"String","BASCode":"No_Code","TransPostDateTime":"0001-01-01T00:00:00.0000000","DebitAmount":0,"CreditAmount":0,"AllowGroup":false,"Staff":{"StaffID":"String","Title":"String","FirstName":"String","Surname":"String","Username":"String","IsActive":false,"IsEnabled":false},"JobCostingStageID":"String","JobCostingFullJobNo":"String","GeneralLedgerAccountRecID":"String","GeneralLedgerAccountAccountNo":"String","GeneralLedgerAccountDescription":"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=="}],"PostedToPeriodNo":0,"PostedToPeriodName":"String","PostedToYearType":"LastYear","PostedToYearNo":0,"PostedToPeriodNoIsGloballyLocked":false,"PostedToPeriodNoIsExternallyLocked":false}