...
Table of contents
Table of Contents |
---|
Searching for jobs
The following table provides the URI and method that can be used to search for jobs in Crittah.
Method | Result |
---|---|
URI | https://[CompanyID].crittah.com/ws/apiv2/[json or xml]/jobs/[IDJob] |
DELETE | Deletes one job |
GET | Returns data for one job |
POST | Create or modify only the supplied data for one job; returns job data after request |
PUT | Not supported |
Data fields
search | |
POST | Post a JSON or XML object with search criteria. |
Search Fields
Field | Value type | Mandatory | Description | Example | ||||||
---|---|---|---|---|---|---|---|---|---|---|
IDJobTypeDateSrchType | string |
| ID of the job type being created. Job type information can be retrieved from here. | 7090fad1-c4da-4488-9ceb-55ee9847edcc | ||||||
IDStatus | string | ID of the job status. Job statuses can be retries from here . | 926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa | |||||||
IDSiteDefiones which date to apply the date range search on. Accepted values are DUEDATE, CREATEDDATE, UPDATEDDATE, FOLLOWUPDATE, STARTDATE, FINISHDATE | DUEDATE | |||||||||
FromDateTime | string |
| UTC date in ISO 8601 format. | 2010-08-20T15:00:00Z | ||||||
ToDateTime | string |
| ID of the site the job belongs toUTC date in ISO 8601 format. | 200582332010-7388-418b-9193-6b57e28604f9 | ||||||
IDCustomer | string | Either IDCustomer and/or IDContact is Required | ID of the customer. More information on the API for customers can be found here. | c0fd94f3-2ddd-4eea-bc24-40189480d10f | ||||||
IDContact | string | Either IDCustomer and/or IDContact is Required | ID of the contact. More information on the API for contacts can be found here. | 20058233-7388-418b-9193-6b57e28604f9 | ||||||
DueDate | string | UTC date in ISO 8601 format | 2010-08-20T15:00:00Z | |||||||
FollowUpDate | string | UTC date in ISO 8601 format. If omitted the follow up time will default to the current time. | 2010-08-20T15:00:00Z | |||||||
ChargeAmount | decimal | Amount to charge for the job. If omitted the default charge amount will be used as configured in the job type. | 20.52 | |||||||
StartDate | string | UTC date in ISO 8601 format. Omit this values if the job has not started. | 2010-08-20T15:00:00Z | |||||||
FinishDate | string | UTC date in ISO 8601 format. Omit this values if the job has not finished. | 2010-08-20T15:00:00Z | |||||||
Duration | int | Duration of job in minutes | 20 | |||||||
Address | Address Object | Address of the job. | ||||||||
AddressDelivery | Address Object | Delivery address if the job has a start and a destination. This address will be displayed if the job type has been configured to use a delivery address. | See Address Object | |||||||
CustFields | Array of custom fields objects | An array of all custom field data for the job. Custom field attributes are described below. | ||||||||
Notes | Array of Notes Object | Notes for the job. | See Notes Object | |||||||
Items | Array of Items objects | Inventory items used on the job. These items can be items from the inventory information in Crittah or free text line items. |
Custom field, fields
Field | Value type | Mandatory | Description | Example | ||
---|---|---|---|---|---|---|
IDCF | string | ID of the job type being created. Job type information can be retrieved from here. | 7090fad1-c4da-4488-9ceb-55ee9847edcc | |||
VDate | string | UTC date in ISO 8601 format | 2010-08-20T15:00:00Z | |||
VDec | decimal | Number value for Numeric and Measurement fields.
| 23.45 | |||
VStr | string | String value for String fields | Hello this is a string | |||
VID | string | Value selected if field is a selector field. | 7090fad1-c4da-4488-9ceb-55ee9847edcc |
Examples
Get a job details
Sample cURL call:
Code Block |
---|
curl -H "Content-Type: application/json" \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://[companyID].crittah.com/ws/apiv2/json/jobs/c1ed6b2c-40c2-4d98-8445-148ae1890b67
|
JSON Rsponse:
...
08-20T15:00:00Z | ||||
CompanyName | string | Name of company assigned to the job. Partial matches will return results also. | Megga Corp | |
CompanyNo | string | Company number of comapny assigned to the job. Partial matches will return results also. | 5466542 | |
City | string | City of company assigned to the job. Partial matches will return results also. | Sydney | |
PostalCode | string | Postcode of company assign to the job. Partial matches will return results also. | 2201 | |
ContactFirstName | string | Contacts first name assign to job. Partial matches will return results also. | John | |
ContactLastName | string | Contacts last name assigned to the job. Partial matches will return results also. | Smith | |
IDSites | Array of Type IDVal | An array of Site ID's | "IDSites": [ { "IDVal": "20058233-7388-418b-9193-6b57e28604f9" }, { "IDVal": "a6224de2-2aae-4b52-8f7f-c2dcd4186b34" } | |
IDLeadSources | Array of Type IDVal | An array of lead source ID's. | "IDLeadSources": [ |
Example Search
Perform a POST to the following URL https://[companyID].crittah.com/ws/apiv2/json/jobs/search
Code Block |
---|
{
"DateSrchType": "DUEDATE",
"FromDateTime": "201609091521",
"ToDateTime": "201609161551",
"CompanyName": "CompanyName",
"ContactFirstName": "John",
"ContactLastName": "Smith",
"IDSites": [
{
"IDVal": "20058233-7388-418b-9193-6b57e28604f9"
},
{
"IDVal": "a6224de2-2aae-4b52-8f7f-c2dcd4186b34"
}
]
} |
Working with a single job
The following table provides the URI and methods that can be used to add, updated, delete and get a job from Crittah.
Method | Result |
---|---|
URI | https://[CompanyID].crittah.com/ws/apiv2/[json or xml]/jobs/[IDJob] |
DELETE | Deletes one job |
GET | Returns data for one job |
POST | Create or modify only the supplied data for one job; returns job data after request |
PUT | Not supported |
Data fields
Field | Value type | Mandatory | Description | Example | ||||||
---|---|---|---|---|---|---|---|---|---|---|
IDJobType | string |
| ID of the job type being created. Job type information can be retrieved from here. | 7090fad1-c4da-4488-9ceb-55ee9847edcc | ||||||
IDLeadSource | string | ID of the lead source. A list of Lead source ID's can be retrieved by calling a help web service here. | 926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa | |||||||
IDStatus | string | ID of the job status. Job statuses can be retries from here . | 926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa | |||||||
IDSite | string |
| ID of the site the job belongs to. | 20058233-7388-418b-9193-6b57e28604f9 | ||||||
IDCustomer | string | Either IDCustomer and/or IDContact is Required | ID of the customer. More information on the API for customers can be found here. | c0fd94f3-2ddd-4eea-bc24-40189480d10f | ||||||
IDContact | string | Either IDCustomer and/or IDContact is Required | ID of the contact. More information on the API for contacts can be found here. | 20058233-7388-418b-9193-6b57e28604f9 | ||||||
DueDate | string | UTC date in ISO 8601 format | 2010-08-20T15:00:00Z | |||||||
FollowUpDate | string | UTC date in ISO 8601 format. If omitted the follow up time will default to the current time. | 2010-08-20T15:00:00Z | |||||||
ChargeAmount | decimal | Amount to charge for the job. If omitted the default charge amount will be used as configured in the job type. | 20.52 | |||||||
StartDate | string | UTC date in ISO 8601 format. Omit this values if the job has not started. | 2010-08-20T15:00:00Z | |||||||
FinishDate | string | UTC date in ISO 8601 format. Omit this values if the job has not finished. | 2010-08-20T15:00:00Z | |||||||
Duration | int | Duration of job in minutes | 20 | |||||||
Address | Address Object | Address of the job. | ||||||||
AddressDelivery | Address Object | Delivery address if the job has a start and a destination. This address will be displayed if the job type has been configured to use a delivery address. | See Address Object | |||||||
CustFields | Array of custom fields objects | An array of all custom field data for the job. Custom field attributes are described below. | ||||||||
Notes | Array of Notes Object | Notes for the job. | See Notes Object | |||||||
Items | Array of Items objects | Inventory items used on the job. These items can be items from the inventory information in Crittah or free text line items. |
Custom field, fields
Field | Value type | Mandatory | Description | Example | ||
---|---|---|---|---|---|---|
IDCF | string | ID of the job type being created. Job type information can be retrieved from here. | 7090fad1-c4da-4488-9ceb-55ee9847edcc | |||
VDate | string | UTC date in ISO 8601 format | 2010-08-20T15:00:00Z | |||
VDec | decimal | Number value for Numeric and Measurement fields.
| 23.45 | |||
VStr | string | String value for String fields | Hello this is a string | |||
VID | string | Value selected if field is a selector field. | 7090fad1-c4da-4488-9ceb-55ee9847edcc |
Examples
Get a job details
Sample cURL call:
Code Block |
---|
curl -H "Content-Type: application/json" \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://[companyID].crittah.com/ws/apiv2/json/jobs/c1ed6b2c-40c2-4d98-8445-148ae1890b67
|
JSON Rsponse:
Code Block |
---|
{ "IDJob": "c1ed6b2c-40c2-4d98-8445-148ae1890b67", "IDShift": "00000000-0000-0000-0000-000000000000", "JobOrder": 0, "JobReference": "AHC817040595", "IDJobType": "49b86bf8-a610-4594-baea-30b76c21974d", "JobType": "AdHoc", "Colour": "#f5c9cb", "IDStatus": "a610305a-1a34-4c3d-b271-d710ba6b3be3", "IDLeadSource": "a610305a-1a34-4c3d-b271-d710ba6b3be3", "Status": "New", "Customer": { "IDCustomer": "5f3f2135-d0f5-47a4-906e-7274b0128054", "IDSite": "20058233-7388-418b-9193-6b57e28604f9", "Site": "SYD", "Types": [ { "IDType": "4d819963-731c-41fd-9378-fd7a10199b78", "Type": "Associates" }, { "IDType": "27ec5309-9426-4a05-b51c-532f8582c436", "Type": "Financial" }, { "IDLocationIDType": "e97c85a521a952eb-62c0089e-4e13467a-bb6398bf-ed8a43050360f8cb9a0ebd88", "LatLngType": {"Producer" } "Lat": -33.869738 ], "IDStatus": "926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa", "LngStatus": 151.209448 "Active", "Parent": null, } "CompanyName": "North Bunting Supplies", } "CompanyNo": "111 222 }3333", "AccountOwnerCustomerRef": "00000000-0000-0000-0000-0000000000007193032", "NotesPhone": ["9575 545", { "Mobile": "0414 656 654", "IDNoteFax": "05629a9b-2869-4197-82af-b6f975be93c8654 654 124", "Council": "Sydney", "IDEntityWebSite": "5f3f2135-d0f5-47a4-906e-7274b0128054", http:\/\/www.buntingsupplies.com.au", "AddressBilling": { "IDNoteTypeIDAddress": "77d5d244368321fe-eb29de7e-4b5b4f38-8b1480a7-87d92b4215eae7ea8e34fe26", "TypeAddressLine1": "General99 Castlereagh Street", "NoteInfoAddressLine2": "Contactnull, the front desk for assistance" "City": }"NORTH SYDNEY", { "State": "NSW", "IDCountry": 1013, "IDNote "Country": "cf67b514-3ba2-44d9-82f0-c0d5f8d57816Australia", "IDEntityPostCode": "5f3f2135-d0f5-47a4-906e-7274b0128054", 2001", "LocRef": { "IDNoteTypeIDLocation": "77d5d2446db14940-eb29f906-4b5b4c20-8b14949a-87d92b4215eae332f6798336", "TypeLatLng": "General",{ "NoteInfoLat": "Entry is via 120 King st - last driveway on right before Castlereagh st."-33.869738, "Lng": 151.209448 } } ] }, "ContactAddress": { "IDContactIDAddress": "cd62aad82d69c03b-9e0d5b57-408a46b4-827b8d67-c620ff9b359843d2f27d225a", "ContactRefAddressLine1": "471382891 Castlereagh Street", "IDSiteAddressLine2": "20058233-7388-418b-9193-6b57e28604f9"null, "SiteCity": "SYDNORTH SYDNEY", "TypesState": ["NSW", "IDCountry": 1013, ], "SalutationCountry": "MrAustralia", "FirstNamePostCode": "John2000", "LastNameLocRef": "Peterson", { "EmailIDLocation": "j.peterson@gmal.come97c85a5-62c0-4e13-bb63-ed8a43050360", "PhoneLatLng": "(02) 9506 3560", { "MobileLat": "0412 544 654", -33.869738, "Fax": "9567 680", "BirthDateLng": null,151.209448 "Position": "", } "Department": "", } "IDStatus": "926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa }, "AccountOwner": "00000000-0000-0000-0000-000000000000", "StatusNotes": "Active", [ { "CustomerIDNote": { "05629a9b-2869-4197-82af-b6f975be93c8", "IDCustomerIDEntity": "5f3f2135-d0f5-47a4-906e-7274b0128054", "IDSiteIDNoteType": "2005823377d5d244-7388eb29-418b4b5b-91938b14-6b57e28604f987d92b4215ea", "SiteType": "SYDGeneral", "TypesNoteInfo": [ "Contact the front desk for assistance" }, { { "IDTypeIDNote": "4d819963cf67b514-731c3ba2-41fd44d9-937882f0-fd7a10199b78c0d5f8d57816", "TypeIDEntity": "Associates"5f3f2135-d0f5-47a4-906e-7274b0128054", }, "IDNoteType": "77d5d244-eb29-4b5b-8b14-87d92b4215ea", { "Type": "General", "IDTypeNoteInfo": "27ec5309-9426-4a05-b51c-532f8582c436", "Type": "Financial"Entry is via 120 King st - last driveway on right before Castlereagh st." }, ] }, { "Contact": { "IDTypeIDContact": "21a952ebcd62aad8-089e9e0d-467a408a-98bf827b-f8cb9a0ebd88c620ff9b3598", "ContactRef": "4713828", "TypeIDSite": "Producer"20058233-7388-418b-9193-6b57e28604f9", "Site": "SYD", } "Types": [ ], "IDStatus": "926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa" ], "StatusSalutation": "ActiveMr", "Parent"FirstName": null, "CompanyName": "North Bunting Supplies", "John", "CompanyNoLastName": "111 222 3333Peterson", "CustomerRefEmail": "7193032j.peterson@gmal.com", "Phone": "9575 545(02) 9506 3560", "Mobile": "04140412 656544 654", "Fax": "6549567 654 124680", "CouncilBirthDate": "Sydney"null, "WebSitePosition": "http:\/\/www.buntingsupplies.com.au", "AddressBillingDepartment": {"", "IDAddressIDStatus": "368321fe926a4185-de7e6cb3-4f384a2a-80a7a8ec-e7ea8e34fe261fadc1cf4caa", "AddressLine1Status": "99 Castlereagh StreetActive", "AddressLine2Customer": null,{ "CityIDCustomer": "NORTH SYDNEY5f3f2135-d0f5-47a4-906e-7274b0128054", "StateIDSite": "NSW20058233-7388-418b-9193-6b57e28604f9", "IDCountrySite": 1013, "Country": "Australia"SYD", "PostCodeTypes": "2001",[ "LocRef": { "IDLocationIDType": "6db149404d819963-f906731c-4c2041fd-949a9378-e332f6798336fd7a10199b78", "LatLngType": {"Associates" }, "Lat": -33.869738, { "LngIDType": 151.209448 "27ec5309-9426-4a05-b51c-532f8582c436", }"Type": "Financial" }, }, "Address": {{ "IDAddressIDType": "2d69c03b21a952eb-5b57089e-46b4467a-8d6798bf-43d2f27d225af8cb9a0ebd88", "AddressLine1Type": "91Producer" Castlereagh Street", } "AddressLine2": null, ], "CityIDStatus": "NORTH SYDNEY926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa", "StateStatus": "NSWActive", "IDCountryParent": 1013null, "CountryCompanyName": "AustraliaNorth Bunting Supplies", "PostCodeCompanyNo": "2000111 222 3333", "LocRefCustomerRef": {"7193032", "IDLocationPhone": "e97c85a5-62c0-4e13-bb63-ed8a430503609575 545", "LatLngMobile": {"0414 656 654", "LatFax": -33.869738, "654 654 124", "LngCouncil": 151.209448"Sydney", }"WebSite": "http:\/\/www.buntingsupplies.com.au", "AddressBilling": { } }, "AccountOwnerIDAddress": "00000000368321fe-0000de7e-00004f38-000080a7-000000000000e7ea8e34fe26", "NotesAddressLine1": "99 [Castlereagh Street", { "AddressLine2": null, "IDNoteCity": "05629a9b-2869-4197-82af-b6f975be93c8NORTH SYDNEY", "IDEntityState": "5f3f2135-d0f5-47a4-906e-7274b0128054NSW", "IDNoteTypeIDCountry": "77d5d244-eb29-4b5b-8b14-87d92b4215ea"1013, "TypeCountry": "GeneralAustralia", "NoteInfoPostCode": "Contact the front desk for assistance"2001", }, "LocRef": { "IDNoteIDLocation": "cf67b5146db14940-3ba2f906-44d94c20-82f0949a-c0d5f8d57816e332f6798336", "IDEntityLatLng": "5f3f2135-d0f5-47a4-906e-7274b0128054",{ "IDNoteTypeLat": "77d5d244-eb29-4b5b-8b14-87d92b4215ea", "Type": "General",-33.869738, "NoteInfoLng": "Entry151.209448 is via 120 King st - last driveway on right before Castlereagh st." } } ]}, }, "Address": { "IDAddress": "b8ec46142d69c03b-cbcc5b57-4a2046b4-9bc38d67-64ab2ba89fda43d2f27d225a", "AddressLine1": "2691 WolongongCastlereagh ROadStreet", "AddressLine2": null, "City": "ARNCLIFFENORTH SYDNEY", "State": "NSW", "IDCountry": 1013, "Country": "Australia", "PostCode": "22052000", "LocRef": { "IDLocation": "2be70140e97c85a5-b95362c0-49354e13-b075bb63-02660288bb1eed8a43050360", "LatLng": { "Lat": -33.934813869738, "Lng": 151.146104209448 } } }, "AccountOwner": "00000000-0000-0000-0000-000000000000", "Notes": [ { "IDNote": "5b4dac6305629a9b-e2262869-42704197-99d382af-17e289115ba7b6f975be93c8", "IDEntity": "cd62aad85f3f2135-9e0dd0f5-408a47a4-827b906e-c620ff9b35987274b0128054", "IDNoteType": "2b11efc377d5d244-2a43eb29-4c034b5b-92ac8b14-923e77f821a287d92b4215ea", "Type": "ImportantGeneral", "NoteInfo": "MaincontactContact the front desk for organisationassistance" }, ]{ }, "DueDateIDNote": "2014-10-06T10:55:00Z",cf67b514-3ba2-44d9-82f0-c0d5f8d57816", "Address": { "IDAddressIDEntity": "362eb1245f3f2135-d124d0f5-4a4747a4-ba94906e-6585e8bf44267274b0128054", "AddressLine1 "IDNoteType": "91 Castlereagh Street77d5d244-eb29-4b5b-8b14-87d92b4215ea", "AddressLine2": null, "CityType": "NORTH SYDNEYGeneral", "StateNoteInfo": "NSW",Entry is via 120 King st - last driveway on right before Castlereagh st." "IDCountry": 1013, } "Country": "Australia", ] "PostCode": "2000" }, "LocRefAddress": { "IDLocationIDAddress": "3ac45077b8ec4614-b768cbcc-42644a20-b0859bc3-506892b4669164ab2ba89fda", "LatLngAddressLine1": {"26 Wolongong ROad", "LatAddressLine2": -33.869738null, "LngCity": 151.209448"ARNCLIFFE", } } }, "AddressDelivery": { "IDAddress": "9f446daf-c80f-4112-9e1f-c8d867632e38""State": "NSW", "AddressLine1": "91 Castlereagh Street", "AddressLine2"IDCountry": null1013, "City": "NORTH SYDNEY", "State""Country": "NSWAustralia", "IDCountry": 1013, "CountryPostCode": "Australia2205", "PostCode": "2000", "LocRef": { "IDLocation": "4e8781772be70140-7de5b953-431e4935-b843b075-3ecdc4b6e8f002660288bb1e", "LatLng": { "Lat": -33.869738934813, "Lng": 151.209448146104 } } } }, "CustFields": { }, "CFNotes": [ { "OrderIDNote": 1"5b4dac63-e226-4270-99d3-17e289115ba7", "IDCFIDEntity": "ac0a7cf2cd62aad8-24969e0d-4147408a-a8e0827b-f679a538f3bcc620ff9b3598", "NameIDNoteType": "# Containers2b11efc3-2a43-4c03-92ac-923e77f821a2", "Type": "NumberImportant", "DescrNoteInfo": "NumberMaincontact offor containers requiredorganisation", } "DV": "0", ] }, "DPDueDate": 0"2014-10-06T10:55:00Z", "Address": { "AddVIDAddress": 1"362eb124-d124-4a47-ba94-6585e8bf4426", "MandAddressLine1": true,"91 Castlereagh Street", "MLAddressLine2": 0null, "AbrevCity": "NCNTNORTH SYDNEY", "VDateState": "NSW", "VDecIDCountry": 221013, "VStrCountry": "Australia", "VIDPostCode": null }"2000", { "Order"LocRef": 2,{ "IDCFIDLocation": "555356463ac45077-a0d5b768-48d94264-b718b085-e5abdc792192506892b46691", "NameLatLng": "Fruit\/Veg\/Salad",{ "TypeLat": "Measurement"-33.869738, "DescrLng": "Fruit, Vegetables and Salad", 151.209448 } } "DV": "0" }, "AddressDelivery": { "DPIDAddress": 0, "9f446daf-c80f-4112-9e1f-c8d867632e38", "AddVAddressLine1": 1,"91 Castlereagh Street", "MandAddressLine2": truenull, "MLCity": 0"NORTH SYDNEY", "State": "NSW", "AbrevIDCountry": "FVS"1013, "Country": "Australia", "VDatePostCode": "2000", "LocRef": { "VDecIDLocation": 1, "4e878177-7de5-431e-b843-3ecdc4b6e8f0", "LatLng": { "VStrLat": ""-33.869738, "VIDLng": null 151.209448 } } }, "CustFields": { "CF": [ { "Order": 31, "IDCF": "d4602f75ac0a7cf2-d0b12496-46b44147-968ba8e0-549cfac7ef79f679a538f3bc", "Name": "Cooked# MealsContainers", "Type": "MeasurementNumber", "Descr": "Cooked MealsNumber of containers required", "DV": "0", "DP": 0, "AddV": 1, "Mand": true, "ML": 0, "Abrev": "CMNCNT", "VDate": "", "VDec": 222, "VStr": "", "VID": null }, { "Order": 42, "IDCF": "122727dc55535646-b753a0d5-4a3948d9-8fb2b718-921a2b483523e5abdc792192", "Name": "SandwichesFruit\/Veg\/Salad", "Type": "Measurement", "Descr": "SandwichesFruit, Vegetables and Salad", "DV": "0", "DP": 0, "AddV": 1, "Mand": true, "ML": 0, "Abrev": "SFVS", "VDate": "", "VDec": 31, "VStr": "", "VID": null }, { "Order": 53, "IDCF": "b980cf94d4602f75-c37cd0b1-49fe46b4-bcc1968b-ff63c552923f549cfac7ef79", "Name": "DairyCooked Meals", "Type": "Measurement", "Descr": "DairyCooked Meals", "DV": "0", "DP": 0, "AddV": 1, "Mand": true, "ML": 0, "Abrev": "DCM", "VDate": "", "VDec": 452, "VStr": "", "VID": null }, { "Order": 64, "IDCF": "9edc2d59122727dc-36d9b753-40ce4a39-87d08fb2-cb0250098787921a2b483523", "Name": "Raw MeatSandwiches", "Type": "Measurement", "Descr": "Raw MeatSandwiches", "DV": "0", "DP": 0, "AddV": 1, "Mand": true, "ML": 0, "Abrev": "RMS", "VDate": "", "VDec": 63, "VStr": "", "VID": null }, { "Order": 75, "IDCF": "fa609e1cb980cf94-4775c37c-414f49fe-af6cbcc1-e957cff27eafff63c552923f", "Name": "Raw Meat Used ByDairy", "Type": "DateMeasurement", "Descr": "Raw Meat Used By date. The date in which the raw meat expires.Dairy", "DV": "0", "DP": 0, "AddV": 1, "Mand": falsetrue, "ML": 0, "Abrev": "RMED", "VDate": "", "VDec": 045, "VStr": "", "VID": null }, { "Order": 86, "IDCF": "313c714f9edc2d59-2f8d36d9-463840ce-98f287d0-b18be1155e1dcb0250098787", "Name": "DesertsRaw and PastriesMeat", "Type": "Measurement", "Descr": "DesertsRaw and PastriesMeat", "DV": "0", "DP": 0, "AddV": 1, "Mand": true, "ML": 0, "Abrev": "DPRM", "VDate": "", "VDec": 06, "VStr": "", "VID": null }, { "Order": 97, "IDCF": "e24167b0fa609e1c-6bb04775-4cc6414f-8e03af6c-ee85ee233d52e957cff27eaf", "Name": "BreadRaw Meat Used By", "Type": "MeasurementDate", "Descr": "BreadRaw Meat Used By date. The date in which the raw meat expires.", "DV": "0", "DP": 0, "AddV": 1, "Mand": truefalse, "ML": 0, "Abrev": "BRME", "VDate": "", "VDec": 0, "VStr": "", "VID": null }, { "Order": 108, "IDCF": "3013af25313c714f-b9c82f8d-4c5d4638-b74d98f2-a6c9bddf2120b18be1155e1d", "Name": "DryDeserts and StockPastries", "Type": "Measurement", "Descr": "DryDeserts and StockPastries", "DV": "0", "DP": 0, "AddV": 1, "Mand": true, "ML": 0, "Abrev": "DSDP", "VDate": "", "VDec": 0, "VStr": "", "VID": null }, { "Order": 119, "IDCF": "7c8039fee24167b0-681d6bb0-4ffe4cc6-a0c68e03-1b58c2c5c635ee85ee233d52", "Name": "Dry Stock Used ByBread", "Type": "DateMeasurement", "Descr": "Dry Stock used by dateBread", "DV": "0", "DP": 0, "AddV": 1, "Mand": falsetrue, "ML": 0, "Abrev": "DSUB", "VDate": "", "VDec": 0, "VStr": "", "VID": null }, { "Order": 1210, "IDCF": "6117a1683013af25-bfc3b9c8-482a4c5d-b0efb74d-74edb8b85ca8a6c9bddf2120", "Name": "DrinksDry Stock", "Type": "Measurement", "Descr": "DrinksDry Stock", "DV": "0", "DP": 0, "AddV": 1, "Mand": true, "ML": 0, "Abrev": "DRINKDS", "VDate": "", "VDec": 0, "VStr": "", "VID": null }, ]{ }, "NotesOrder": [11, ], "ItemsIDCF": ["7c8039fe-681d-4ffe-a0c6-1b58c2c5c635", ] } |
XML Response:
Code Block |
---|
<JobObj xmlns="http://schemas.datacontract.org/2004/07/Spinifex.lib.objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <IDJob>c1ed6b2c-40c2-4d98-8445-148ae1890b67</IDJob> "Name": "Dry Stock Used By", <IDShift>00000000-0000-0000-0000-000000000000</IDShift> "Type": "Date", <JobOrder>0</JobOrder> <JobReference>AHC817040595</JobReference> <IDJobType>49b86bf8-a610-4594-baea-30b76c21974d</IDJobType> "Descr": "Dry Stock used by date", <JobType>AdHoc</JobType> <Colour>#f5c9cb</Colour> "DV": "", <IDStatus>a610305a-1a34-4c3d-b271-d710ba6b3be3</IDStatus> <Status>New</Status> "DP": 0, <Customer> "AddV": 1, <IDCustomer>5f3f2135-d0f5-47a4-906e-7274b0128054</IDCustomer> "Mand": false, <IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite> "ML": 0, <Site>SYD</Site> <Types>"Abrev": "DSU", "VDate": "", <TypeObj> "VDec": 0, <IDType>4d819963-731c-41fd-9378-fd7a10199b78</IDType>"VStr": "", "VID": null <Type>Associates</Type>}, { </TypeObj> "Order": 12, <TypeObj> "IDCF": "6117a168-bfc3-482a-b0ef-74edb8b85ca8", "Name": "Drinks", <IDType>27ec5309-9426-4a05-b51c-532f8582c436</IDType> "Type": "Measurement", "Descr": "Drinks", <Type>Financial</Type> "DV": "0", </TypeObj> "DP": 0, <TypeObj> "AddV": 1, "Mand": true, <IDType>21a952eb-089e-467a-98bf-f8cb9a0ebd88</IDType> "ML": 0, "Abrev": "DRINK", <Type>Producer</Type> "VDate": "", </TypeObj> "VDec": 0, </Types> "VStr": "", <IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus> "VID": null <Status>Active</Status> } <Parent i:nil="true" /> ] }, "Notes": [ <CompanyName>North Bunting Supplies</CompanyName> ], "Items": [ <CompanyNo>111 222 3333</CompanyNo> ] } |
XML Response:
Code Block |
---|
<JobObj <CustomerRef>7193032</CustomerRef>xmlns="http://schemas.datacontract.org/2004/07/Spinifex.lib.objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <IDJob>c1ed6b2c-40c2-4d98-8445-148ae1890b67</IDJob> <Phone>9575 545</Phone> <IDShift>00000000-0000-0000-0000-000000000000</IDShift> <JobOrder>0</JobOrder> <Mobile>0414 656 654<<JobReference>AHC817040595</Mobile>JobReference> <IDJobType>49b86bf8-a610-4594-baea-30b76c21974d</IDJobType> <Fax>654 654 124</Fax><JobType>AdHoc</JobType> <Colour>#f5c9cb</Colour> <Council>Sydney</Council><IDStatus>a610305a-1a34-4c3d-b271-d710ba6b3be3</IDStatus> <Status>New</Status> <WebSite>http://www.buntingsupplies.com.au</WebSite> <Customer> <AddressBilling> <IDCustomer>5f3f2135-d0f5-47a4-906e-7274b0128054</IDCustomer> <IDAddress>368321fe-de7e-4f38-80a7-e7ea8e34fe26</IDAddress><IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite> <Site>SYD</Site> <AddressLine1>99 Castlereagh Street</AddressLine1> <Types> <AddressLine2 i:nil="true" /> <TypeObj> <City>NORTH SYDNEY</City> <IDType>4d819963-731c-41fd-9378-fd7a10199b78</IDType> <State>NSW</State> <Type>Associates</Type> <IDCountry>1013</IDCountry> </TypeObj> <Country>Australia</Country> <TypeObj> <PostCode>2001</PostCode> <LocRef> <IDLocation>6db14940-f906-4c20-949a-e332f6798336</IDLocation><IDType>27ec5309-9426-4a05-b51c-532f8582c436</IDType> <LatLng><Type>Financial</Type> </TypeObj> <Lat>-33.869738</Lat> <TypeObj> <Lng>151.209448</Lng><IDType>21a952eb-089e-467a-98bf-f8cb9a0ebd88</IDType> <<Type>Producer</LatLng>Type> </LocRef>TypeObj> </AddressBilling>Types> <Address> <IDAddress>2d69c03b-5b57-46b4-8d67-43d2f27d225a</IDAddress><IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus> <AddressLine1>91 Castlereagh Street</AddressLine1><Status>Active</Status> <Parent <AddressLine2 i:nil="true" /> <CompanyName>North Bunting <City>NORTH SYDNEY</City>Supplies</CompanyName> <CompanyNo>111 222 <State>NSW<3333</State>CompanyNo> <CustomerRef>7193032</CustomerRef> <IDCountry>1013</IDCountry> <Phone>9575 545</Phone> <Country>Australia</Country> <Mobile>0414 656 654</Mobile> <PostCode>2000</PostCode><Fax>654 654 124</Fax> <Council>Sydney</Council> <LocRef> <WebSite>http://www.buntingsupplies.com.au</WebSite> <IDLocation>e97c85a5-62c0-4e13-bb63-ed8a43050360</IDLocation><AddressBilling> <IDAddress>368321fe-de7e-4f38-80a7-e7ea8e34fe26</IDAddress> <LatLng> <AddressLine1>99 Castlereagh Street</AddressLine1> <Lat>-33.869738</Lat> <AddressLine2 i:nil="true" /> <Lng>151.209448</Lng><City>NORTH SYDNEY</City> </LatLng><State>NSW</State> <<IDCountry>1013</LocRef>IDCountry> </Address> <Country>Australia</Country> <AccountOwner>00000000-0000-0000-0000-000000000000</AccountOwner> <PostCode>2001</PostCode> <Notes> <LocRef> <NoteObj> <IDNote>05629a9b<IDLocation>6db14940-2869f906-41974c20-82af949a-b6f975be93c8<e332f6798336</IDNote>IDLocation> <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity><LatLng> <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType><Lat>-33.869738</Lat> <Type>General</Type> <Lng>151.209448</Lng> <NoteInfo>Contact the front desk for assistance<</NoteInfo>LatLng> </NoteObj>LocRef> </AddressBilling> <NoteObj> <Address> <IDNote>cf67b514<IDAddress>2d69c03b-3ba25b57-44d946b4-82f08d67-c0d5f8d57816<43d2f27d225a</IDNote>IDAddress> <AddressLine1>91 Castlereagh Street</AddressLine1> <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity> <AddressLine2 i:nil="true" /> <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType> <City>NORTH SYDNEY</City> <Type>General</Type> <State>NSW</State> <NoteInfo>Entry<IDCountry>1013</IDCountry> is via 120 King st - last driveway on right before Castlereagh st.<<Country>Australia</NoteInfo>Country> <<PostCode>2000</NoteObj>PostCode> </Notes> <LocRef> </Customer> <Contact> <IDContact>cd62aad8<IDLocation>e97c85a5-9e0d62c0-408a4e13-827bbb63-c620ff9b3598<ed8a43050360</IDContact>IDLocation> <ContactRef>4713828</ContactRef> <LatLng> <IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite> <Site>SYD</Site> <Types /><Lat>-33.869738</Lat> <Salutation>Mr</Salutation> <FirstName>John<<Lng>151.209448</FirstName>Lng> <LastName>Peterson</LastName> <Email>j.peterson@gmal.com</Email></LatLng> <Phone>(02) 9506 3560</Phone> </LocRef> <Mobile>0412 544 654<</Mobile>Address> <Fax>9567 680</Fax><AccountOwner>00000000-0000-0000-0000-000000000000</AccountOwner> <BirthDate i:nil="true" /><Notes> <Position /> <NoteObj> <Department /> <IDStatus>926a4185<IDNote>05629a9b-6cb32869-4a2a4197-a8ec82af-1fadc1cf4caa<b6f975be93c8</IDStatus>IDNote> <Status>Active</Status> <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity> <Customer> <IDCustomer>5f3f2135 <IDNoteType>77d5d244-d0f5eb29-47a44b5b-906e8b14-7274b0128054</IDCustomer>87d92b4215ea</IDNoteType> <IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite><Type>General</Type> <Site>SYD</Site> <NoteInfo>Contact the front desk for assistance</NoteInfo> <Types> </NoteObj> <TypeObj> <NoteObj> <IDType>4d819963<IDNote>cf67b514-731c3ba2-41fd44d9-937882f0-fd7a10199b78<c0d5f8d57816</IDType>IDNote> <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity> <Type>Associates</Type> <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType> </TypeObj> <Type>General</Type> <TypeObj> <NoteInfo>Entry is via 120 King st <IDType>27ec5309-9426-4a05-b51c-532f8582c436</IDType> last driveway on right before Castlereagh st.</NoteInfo> <Type>Financial<</Type>NoteObj> </Notes> </TypeObj>Customer> <Contact> <TypeObj> <IDContact>cd62aad8-9e0d-408a-827b-c620ff9b3598</IDContact> <ContactRef>4713828</ContactRef> <IDType>21a952eb<IDSite>20058233-089e7388-467a418b-98bf9193-f8cb9a0ebd88<6b57e28604f9</IDType>IDSite> <Site>SYD</Site> <Types /> <Type>Producer</Type> <Salutation>Mr</Salutation> </TypeObj><FirstName>John</FirstName> <LastName>Peterson</LastName> </Types><Email>j.peterson@gmal.com</Email> <Phone>(02) 9506 3560</Phone> <IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus> <Mobile>0412 544 654</Mobile> <Status>Active</Status> <Fax>9567 680</Fax> <Parent<BirthDate i:nil="true" /> <Position /> <CompanyName>North Bunting Supplies</CompanyName> <Department /> <CompanyNo>111 222 3333</CompanyNo> <IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus> <Status>Active</Status> <CustomerRef>7193032</CustomerRef> <Customer> <Phone>9575 545</Phone> <IDCustomer>5f3f2135-d0f5-47a4-906e-7274b0128054</IDCustomer> <Mobile>0414 656 654</Mobile> <IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite> <Fax>654 654 124<<Site>SYD</Fax>Site> <Council>Sydney</Council><Types> <WebSite>http://www.buntingsupplies.com.au</WebSite> <TypeObj> <AddressBilling> <IDAddress>368321fe-de7e-4f38-80a7-e7ea8e34fe26</IDAddress><IDType>4d819963-731c-41fd-9378-fd7a10199b78</IDType> <AddressLine1>99 Castlereagh Street</AddressLine1> <Type>Associates</Type> <AddressLine2 i:nil="true" </>TypeObj> <City>NORTH<TypeObj> SYDNEY</City> <State>NSW</State> <IDType>27ec5309-9426-4a05-b51c-532f8582c436</IDType> <IDCountry>1013</IDCountry> <Country>Australia</Country><Type>Financial</Type> <PostCode>2001<</PostCode>TypeObj> <LocRef><TypeObj> <IDLocation>6db14940<IDType>21a952eb-f906089e-4c20467a-949a98bf-e332f6798336<f8cb9a0ebd88</IDLocation>IDType> <LatLng><Type>Producer</Type> </TypeObj> <Lat>-33.869738</Lat> </Types> <IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus> <Lng>151.209448</Lng> <Status>Active</Status> </LatLng><Parent i:nil="true" /> <CompanyName>North Bunting Supplies</CompanyName> </LocRef> <CompanyNo>111 222 <3333</AddressBilling>CompanyNo> <Address><CustomerRef>7193032</CustomerRef> <IDAddress>2d69c03b-5b57-46b4-8d67-43d2f27d225a</IDAddress><Phone>9575 545</Phone> <Mobile>0414 656 654</Mobile> <AddressLine1>91 Castlereagh Street</AddressLine1> <Fax>654 654 124</Fax> <AddressLine2 i:nil="true" /> <Council>Sydney</Council> <City>NORTH SYDNEY</City> <WebSite>http://www.buntingsupplies.com.au</WebSite> <AddressBilling> <State>NSW</State> <IDAddress>368321fe-de7e-4f38-80a7-e7ea8e34fe26</IDAddress> <IDCountry>1013</IDCountry> <AddressLine1>99 Castlereagh Street</AddressLine1> <Country>Australia</Country> <AddressLine2 i:nil="true" <PostCode>2000</PostCode>> <LocRef><City>NORTH SYDNEY</City> <State>NSW</State> <IDLocation>e97c85a5-62c0-4e13-bb63-ed8a43050360</IDLocation> <IDCountry>1013</IDCountry> <LatLng> <Country>Australia</Country> <Lat>-33.869738</Lat> <PostCode>2001</PostCode> <LocRef> <Lng>151.209448</Lng> <IDLocation>6db14940-f906-4c20-949a-e332f6798336</IDLocation> </LatLng> <LatLng> </LocRef> </Address><Lat>-33.869738</Lat> <AccountOwner>00000000-0000-0000-0000-000000000000</AccountOwner> <Notes><Lng>151.209448</Lng> <NoteObj> </LatLng> <IDNote>05629a9b-2869-4197-82af-b6f975be93c8</IDNote></LocRef> </AddressBilling> <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity> <Address> <IDNoteType>77d5d244<IDAddress>2d69c03b-eb295b57-4b5b46b4-8b148d67-87d92b4215ea<43d2f27d225a</IDNoteType>IDAddress> <AddressLine1>91 Castlereagh <Type>General<Street</Type>AddressLine1> <AddressLine2 i:nil="true" /> <NoteInfo>Contact the front desk for assistance</NoteInfo> <City>NORTH SYDNEY</City> </NoteObj> <State>NSW</State> <NoteObj> <IDCountry>1013</IDCountry> <IDNote>cf67b514-3ba2-44d9-82f0-c0d5f8d57816</IDNote> <Country>Australia</Country> <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity> <PostCode>2000</PostCode> <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType><LocRef> <Type>General</Type><IDLocation>e97c85a5-62c0-4e13-bb63-ed8a43050360</IDLocation> <NoteInfo>Entry<LatLng> is via 120 King st - last driveway on right before Castlereagh st.</NoteInfo> <Lat>-33.869738</Lat> </NoteObj> </Notes> </Customer> <Lng>151.209448</Lng> <Address> <IDAddress>b8ec4614-cbcc-4a20-9bc3-64ab2ba89fda</IDAddress></LatLng> <AddressLine1>26 Wolongong ROad</AddressLine1> </LocRef> <AddressLine2 i:nil="true" </>Address> <City>ARNCLIFFE</City><AccountOwner>00000000-0000-0000-0000-000000000000</AccountOwner> <State>NSW</State><Notes> <IDCountry>1013</IDCountry> <NoteObj> <Country>Australia</Country> <PostCode>2205</PostCode><IDNote>05629a9b-2869-4197-82af-b6f975be93c8</IDNote> <LocRef> <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity> <IDLocation>2be70140-b953-4935-b075-02660288bb1e</IDLocation> <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType> <LatLng> <Type>General</Type> <Lat>-33.934813</Lat> <NoteInfo>Contact the front desk for <Lng>151.146104<assistance</Lng>NoteInfo> </LatLng> NoteObj> </LocRef> <NoteObj> </Address> <Notes> <IDNote>cf67b514-3ba2-44d9-82f0-c0d5f8d57816</IDNote> <NoteObj> <IDNote>5b4dac63<IDEntity>5f3f2135-e226d0f5-427047a4-99d3906e-17e289115ba7</IDNote>7274b0128054</IDEntity> <IDEntity>cd62aad8-9e0d-408a-827b-c620ff9b3598</IDEntity> <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType> <IDNoteType>2b11efc3-2a43-4c03-92ac-923e77f821a2</IDNoteType> <Type>General</Type> <Type>Important</Type> <NoteInfo>Entry is via 120 King st - last driveway <NoteInfo>Maincontact for organisation</NoteInfo>on right before Castlereagh st.</NoteInfo> </NoteObj> </Notes> </Contact>Customer> <DueDate>2014-10-06T10:55:00Z</DueDate> <Address> <Address> <IDAddress>362eb124<IDAddress>b8ec4614-d124cbcc-4a474a20-ba949bc3-6585e8bf4426<64ab2ba89fda</IDAddress> <AddressLine1>91 Castlereagh Street< <AddressLine1>26 Wolongong ROad</AddressLine1> <AddressLine2 i:nil="true" /> <City>NORTH SYDNEY<<City>ARNCLIFFE</City> <State>NSW</State> <IDCountry>1013</IDCountry> <Country>Australia</Country> <Country>Australia</Country> <PostCode>2000</PostCode> <PostCode>2205</PostCode> <LocRef> <IDLocation>3ac45077-b768-4264-b085-506892b46691</IDLocation><LocRef> <LatLng> <IDLocation>2be70140-b953-4935-b075-02660288bb1e</IDLocation> <Lat>-33.869738</Lat> <LatLng> <Lng>151<Lat>-33.209448<934813</Lng>Lat> </LatLng> </LocRef><Lng>151.146104</Lng> </Address> <AddressDelivery> </LatLng> <IDAddress>9f446daf-c80f-4112-9e1f-c8d867632e38</IDAddress> <AddressLine1>91 Castlereagh Street<</AddressLine1>LocRef> <AddressLine2 i:nil="true" /></Address> <Notes> <City>NORTH SYDNEY</City> <State>NSW</State> <NoteObj> <IDCountry>1013</IDCountry> <Country>Australia</Country><IDNote>5b4dac63-e226-4270-99d3-17e289115ba7</IDNote> <PostCode>2000</PostCode> <IDEntity>cd62aad8-9e0d-408a-827b-c620ff9b3598</IDEntity> <LocRef> <IDLocation>4e878177<IDNoteType>2b11efc3-7de52a43-431e4c03-b84392ac-3ecdc4b6e8f0<923e77f821a2</IDLocation>IDNoteType> <LatLng> <Type>Important</Type> <Lat>-33.869738</Lat> <Lng>151.209448</Lng> <NoteInfo>Maincontact for organisation</NoteInfo> </LatLng>NoteObj> </LocRef>Notes> </AddressDelivery>Contact> <CustFields xmlns:a="http://schemas.datacontract.org/2004/07/"><DueDate>2014-10-06T10:55:00Z</DueDate> <Address> <a:CF> <IDAddress>362eb124-d124-4a47-ba94-6585e8bf4426</IDAddress> <a:CustomFieldObj> <AddressLine1>91 Castlereagh Street</AddressLine1> <AddressLine2 i:nil="true" /> <a:Order>1</a:Order> <City>NORTH SYDNEY</City> <a:IDCF>ac0a7cf2-2496-4147-a8e0-f679a538f3bc</a:IDCF><State>NSW</State> <IDCountry>1013</IDCountry> <a:Name># Containers<<Country>Australia</a:Name>Country> <PostCode>2000</PostCode> <a:Type>Number</a:Type> <LocRef> <IDLocation>3ac45077-b768-4264-b085-506892b46691</IDLocation> <a:Descr>Number of containers required</a:Descr> <LatLng> <a:DV>0</a:DV> <Lat>-33.869738</Lat> <a:DP>0</a:DP> <Lng>151.209448</Lng> <a:AddV>1</a:AddV> </LatLng> </LocRef> <a:Mand>true</a:Mand></Address> <AddressDelivery> <IDAddress>9f446daf-c80f-4112-9e1f-c8d867632e38</IDAddress> <a:ML>0</a:ML> <AddressLine1>91 Castlereagh Street</AddressLine1> <AddressLine2 <a:Abrev>NCNT</a:Abrev>i:nil="true" /> <City>NORTH SYDNEY</City> <a:VDate <State>NSW</>State> <IDCountry>1013</IDCountry> <a:VDec>22</a:VDec><Country>Australia</Country> <PostCode>2000</PostCode> <a:VStr /> <LocRef> <a:VID i:nil="true" /><IDLocation>4e878177-7de5-431e-b843-3ecdc4b6e8f0</IDLocation> <LatLng> </a:CustomFieldObj> <a:CustomFieldObj><Lat>-33.869738</Lat> <a:Order>2</a:Order><Lng>151.209448</Lng> </LatLng> <a:IDCF>55535646-a0d5-48d9-b718-e5abdc792192</a:IDCF> </LocRef> </AddressDelivery> <a:Name>Fruit/Veg/Salad</a:Name><CustFields xmlns:a="http://schemas.datacontract.org/2004/07/"> <a:CF> <a:Type>Measurement</a:Type>CustomFieldObj> <a:Descr>Fruit, Vegetables and Salad<Order>1</a:Descr>Order> <a:DV>0<IDCF>ac0a7cf2-2496-4147-a8e0-f679a538f3bc</a:DV>IDCF> <a:DP>0<Name># Containers</a:DP>Name> <a:AddV>1<Type>Number</a:AddV>Type> <a:Descr>Number of containers required</a:Descr> <a:DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>FVS<Abrev>NCNT</a:Abrev> <a:VDate /> <a:VDec>1<VDec>22</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>3<Order>2</a:Order> <a:IDCF>d4602f75IDCF>55535646-d0b1a0d5-46b448d9-968bb718-549cfac7ef79<e5abdc792192</a:IDCF> <a:Name>Cooked Meals<Name>Fruit/Veg/Salad</a:Name> <a:Type>Measurement</a:Type> <a:Descr>Cooked Meals<Descr>Fruit, Vegetables and Salad</a:Descr> <a:DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>CM<Abrev>FVS</a:Abrev> <a:VDate /> <a:VDec>2<VDec>1</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>4<Order>3</a:Order> <a:IDCF>122727dcIDCF>d4602f75-b753d0b1-4a3946b4-8fb2968b-921a2b483523<549cfac7ef79</a:IDCF> <a:Name>Sandwiches<Name>Cooked Meals</a:Name> <a:Type>Measurement</a:Type> <a:Descr>Sandwiches<Descr>Cooked Meals</a:Descr> <a:DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>S<Abrev>CM</a:Abrev> <a:VDate /> <a:VDec>3<VDec>2</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>5<Order>4</a:Order> <a:IDCF>b980cf94IDCF>122727dc-c37cb753-49fe4a39-bcc18fb2-ff63c552923f<921a2b483523</a:IDCF> <a:Name>Dairy<Name>Sandwiches</a:Name> <a:Type>Measurement</a:Type> <a:Descr>Dairy<Descr>Sandwiches</a:Descr> <a:DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>D<Abrev>S</a:Abrev> <a:VDate /> <a:VDec>45<VDec>3</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>6<Order>5</a:Order> <a:IDCF>9edc2d59IDCF>b980cf94-36d9c37c-40ce49fe-87d0bcc1-cb0250098787<ff63c552923f</a:IDCF> <a:Name>Raw Meat<Name>Dairy</a:Name> <a:Type>Measurement</a:Type> <a:Descr>Raw Meat<Descr>Dairy</a:Descr> <a:DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>RM<Abrev>D</a:Abrev> <a:VDate /> <a:VDec>6<VDec>45</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>7<Order>6</a:Order> <a:IDCF>fa609e1cIDCF>9edc2d59-477536d9-414f40ce-af6c87d0-e957cff27eaf<cb0250098787</a:IDCF> <a:Name>Raw Meat Used By<Meat</a:Name> <a:Type>Date<Type>Measurement</a:Type> <a:Descr>Raw Meat Used By date. The date in which the raw meat expires.<Meat</a:Descr> <a:DV />DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>false<Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>RME<Abrev>RM</a:Abrev> <a:VDate /> <a:VDec>0<VDec>6</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>8<Order>7</a:Order> <a:IDCF>313c714fIDCF>fa609e1c-2f8d4775-4638414f-98f2af6c-b18be1155e1d<e957cff27eaf</a:IDCF> <a:Name>DesertsName>Raw Meat andUsed Pastries<By</a:Name> <a:Type>Measurement<Type>Date</a:Type> <a:Descr>Deserts and Pastries<Descr>Raw Meat Used By date. The date in which the raw meat expires.</a:Descr> <a:DV>0</a:DV>DV /> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true<Mand>false</a:Mand> <a:ML>0</a:ML> <a:Abrev>DP<Abrev>RME</a:Abrev> <a:VDate /> <a:VDec>0</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>9<Order>8</a:Order> <a:IDCF>e24167b0IDCF>313c714f-6bb02f8d-4cc64638-8e0398f2-ee85ee233d52<b18be1155e1d</a:IDCF> <a:Name>Bread<Name>Deserts and Pastries</a:Name> <a:Type>Measurement</a:Type> <a:Descr>Bread<Descr>Deserts and Pastries</a:Descr> <a:DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>B<Abrev>DP</a:Abrev> <a:VDate /> <a:VDec>0</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>10<Order>9</a:Order> <a:IDCF>3013af25IDCF>e24167b0-b9c86bb0-4c5d4cc6-b74d8e03-a6c9bddf2120<ee85ee233d52</a:IDCF> <a:Name>Dry Stock<Name>Bread</a:Name> <a:Type>Measurement</a:Type> <a:Descr>Dry Stock<Descr>Bread</a:Descr> <a:DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>DS<Abrev>B</a:Abrev> <a:VDate /> <a:VDec>0</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>11<Order>10</a:Order> <a:IDCF>7c8039feIDCF>3013af25-681db9c8-4ffe4c5d-a0c6b74d-1b58c2c5c635<a6c9bddf2120</a:IDCF> <a:Name>Dry Stock Used By<Stock</a:Name> <a:Type>Date<Type>Measurement</a:Type> <a:Descr>Dry Stock used by date<Stock</a:Descr> <a:DV />DV>0</a:DV> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>false<Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>DSU<Abrev>DS</a:Abrev> <a:VDate /> <a:VDec>0</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> <a:CustomFieldObj> <a:Order>12<Order>11</a:Order> <a:IDCF>6117a168IDCF>7c8039fe-bfc3681d-482a4ffe-b0efa0c6-74edb8b85ca8<1b58c2c5c635</a:IDCF> <a:Name>Drinks<Name>Dry Stock Used By</a:Name> <a:Type>Measurement<Type>Date</a:Type> <a:Descr>Drinks<Descr>Dry Stock used by date</a:Descr> <a:DV>0</a:DV>DV /> <a:DP>0</a:DP> <a:AddV>1</a:AddV> <a:Mand>true<Mand>false</a:Mand> <a:ML>0</a:ML> <a:Abrev>DRINK<Abrev>DSU</a:Abrev> <a:VDate /> <a:VDec>0</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> </a:CF> <a:CustomFieldObj> </CustFields> <Notes /> <Items /> </JobObj> |
Add Job Basic
Add the following contents to a file called "add_job_basic.data"
Code Block |
---|
{ "IDJobType": "49b86bf8-a610-4594-baea-30b76c21974d", "IDContact": "cd62aad8-9e0d-408a-827b-c620ff9b3598", "IDSite": "20058233-7388-418b-9193-6b57e28604f9", "Address": { "AddressLine1": "91 Castlereagh Street", "AddressLine2": null, "City": "NORTH SYDNEY", "State": "NSW", "Country": "Australia", "PostCode": "2000", "LocRef": {<a:Order>12</a:Order> <a:IDCF>6117a168-bfc3-482a-b0ef-74edb8b85ca8</a:IDCF> <a:Name>Drinks</a:Name> <a:Type>Measurement</a:Type> <a:Descr>Drinks</a:Descr> "IDLocation": "3ac45077-b768-4264-b085-506892b46691", "LatLng": {<a:DV>0</a:DV> "Lat": -33.869738, <a:DP>0</a:DP> "Lng": 151.209448 } } <a:AddV>1</a:AddV> } } |
Run the follow cURL command
Code Block |
---|
curl -X POST -d add_job_basic.data \ -H "Content-Type: application/json" \ -H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \ -H "Api-Username: jsmith" \ -H "API-Password: abc123" \ http://YourCompanyID.crittah.com/ws/apiv2/json/jobs |
Add Job Complicated
Add the following contents to a file called "add_job_complicated.data"
Code Block |
---|
{ "IDJobType": "49b86bf8-a610-4594-baea-30b76c21974d", "IDSite": "20058233-7388-418b-9193-6b57e28604f9", "IDStatus": "a610305a-1a34-4c3d-b271-d710ba6b3be3", "IDCustomer": "5f3f2135-d0f5-47a4-906e-7274b0128054", "IDContact": "cd62aad8-9e0d-408a-827b-c620ff9b3598", "DueDate": "2014-10-06T10:55:00Z", "Address": { "AddressLine1": "91 Castlereagh Street", "AddressLine2": null, "City": "NORTH SYDNEY", "State": "NSW", "Country": "Australia", "PostCode": "2000", "LocRef": { "IDLocation": "3ac45077-b768-4264-b085-506892b46691", "LatLng": { "Lat": -33.869738, <a:Mand>true</a:Mand> <a:ML>0</a:ML> <a:Abrev>DRINK</a:Abrev> <a:VDate /> <a:VDec>0</a:VDec> <a:VStr /> <a:VID i:nil="true" /> </a:CustomFieldObj> "Lng": 151.209448</a:CF> </CustFields> } <Notes /> } },<Items "AddressDelivery": /> </JobObj> |
Add Job Basic
Add the following contents to a file called "add_job_basic.data"
Code Block |
---|
{ "AddressLine1IDJobType": "200 George St49b86bf8-a610-4594-baea-30b76c21974d", "AddressLine2IDContact": null, "City": ""cd62aad8-9e0d-408a-827b-c620ff9b3598", "IDSite": "20058233-7388-418b-9193-6b57e28604f9", "Address": { "AddressLine1": "91 Castlereagh Street", "AddressLine2": null, "City": "NORTH SYDNEY", "State": "NSW", "Country": "Australia", "PostCode": "2000", "LocRef": { "IDLocation": "4e8781773ac45077-7de5b768-431e4264-b843b085-3ecdc4b6e8f0506892b46691", "LatLng": { "Lat": -33.869738, "Lng": 151.209448 } } }, "CustFields": { "CF": [ { "IDCF": "ac0a7cf2-2496-4147-a8e0-f679a538f3bc", "VDec": 33 }, { "IDCF": "55535646-a0d5-48d9-b718-e5abdc792192", "VDec": 34 } ] }, "Notes": [ { "IDNoteType": "77d5d244-eb29-4b5b-8b14-87d92b4215ea", "NoteInfo": "This just came in from the web" } ], "Items": [ ] } |
Run the follow cURL command
Code Block |
---|
curl -X POST -d add_job_complicated.data \
-H "Content-Type: application/json" \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://YourCompanyID.crittah.com/ws/apiv2/json/jobs |
Update job
Add the following contents to a file calls "update_job.data"
Code Block |
---|
{ "IDSite": "20058233-7388-418b-9193-6b57e28604f9", "IDShift": "1b64b18f-2799-4e18-a9ee-b483323b4153", "JobOrder": 5, "DueDate": "2014-10-06T14:55:00Z", "Address": { "AddressLine1": "22 Castlereagh Driver", "City": "SYDNEY" }, "AddressDelivery": { "AddressLine1": "300 George Drive" } |
Run the follow cURL command
Code Block |
---|
curl -X POST -d add_job_basic.data \
-H "Content-Type: application/json" \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://YourCompanyID.crittah.com/ws/apiv2/json/jobs |
Add Job Complicated
Add the following contents to a file called "add_job_complicated.data"
Code Block |
---|
{ "IDJobType": "49b86bf8-a610-4594-baea-30b76c21974d", "IDSite": "20058233-7388-418b-9193-6b57e28604f9", "IDStatus": "a610305a-1a34-4c3d-b271-d710ba6b3be3", "IDCustomer": "5f3f2135-d0f5-47a4-906e-7274b0128054", "IDContact": "cd62aad8-9e0d-408a-827b-c620ff9b3598", "DueDate": "2014-10-06T10:55:00Z", "Address": { "AddressLine1": "91 Castlereagh Street", "AddressLine2": null, "City": "NORTH SYDNEY", "State": "NSW", "Country": "Australia", "PostCode": "2000", "LocRef": { "IDLocation": "3ac45077-b768-4264-b085-506892b46691", "LatLng": { "Lat": -33.869738, "Lng": 151.209448 } } }, "AddressDelivery": { "AddressLine1": "200 George St", "AddressLine2": null, "City": "SYDNEY", "State": "NSW", "Country": "Australia", "PostCode": "2000", "LocRef": { "IDLocation": "4e878177-7de5-431e-b843-3ecdc4b6e8f0", "LatLng": { "Lat": -33.869738, "Lng": 151.209448 } } }, "CustFields": { "CF": [ { "IDCF": "ac0a7cf2-2496-4147-a8e0-f679a538f3bc", "VDec": "10" }, { "IDCF": "55535646-a0d5-48d9-b718-e5abdc792192", "VDec": 11 }, { "IDCF": "d4602f75-d0b1-46b4-968b-549cfac7ef79", "VDec": 12 }, { "IDCF": "122727dc-b753-4a39-8fb2-921a2b483523", "VDec": 13 } ] }, "Notes": [ { "IDNoteType": "77d5d244-eb29-4b5b-8b14-87d92b4215ea", "NoteInfo": "Additional note for the job" } ] } |
Run the follow cURL command
Code Block |
---|
curl -X POST -d update_job"CF": [ { "IDCF": "ac0a7cf2-2496-4147-a8e0-f679a538f3bc", "VDec": 33 }, { "IDCF": "55535646-a0d5-48d9-b718-e5abdc792192", "VDec": 34 } ] }, "Notes": [ { "IDNoteType": "77d5d244-eb29-4b5b-8b14-87d92b4215ea", "NoteInfo": "This just came in from the web" } ], "Items": [ ] } |
Run the follow cURL command
Code Block |
---|
curl -X POST -d add_job_complicated.data \
-H "Content-Type: application/json" \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://YourCompanyID.crittah.com/ws/apiv2/json/jobs |
Update job
Add the following contents to a file calls "update_job.data"
Code Block |
---|
{
"IDSite": "20058233-7388-418b-9193-6b57e28604f9",
"IDShift": "1b64b18f-2799-4e18-a9ee-b483323b4153",
"JobOrder": 5,
"DueDate": "2014-10-06T14:55:00Z",
"Address": {
"AddressLine1": "22 Castlereagh Driver",
"City": "SYDNEY"
},
"AddressDelivery": {
"AddressLine1": "300 George Drive"
},
"CustFields": {
"CF": [
{
"IDCF": "ac0a7cf2-2496-4147-a8e0-f679a538f3bc",
"VDec": "10"
},
{
"IDCF": "55535646-a0d5-48d9-b718-e5abdc792192",
"VDec": 11
},
{
"IDCF": "d4602f75-d0b1-46b4-968b-549cfac7ef79",
"VDec": 12
},
{
"IDCF": "122727dc-b753-4a39-8fb2-921a2b483523",
"VDec": 13
}
]
},
"Notes": [
{
"IDNoteType": "77d5d244-eb29-4b5b-8b14-87d92b4215ea",
"NoteInfo": "Additional note for the job"
}
]
} |
Run the follow cURL command
Code Block |
---|
curl -X POST -d update_job.data \
-H "Content-Type: application/json" \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://YourCompanyID.crittah.com/ws/apiv2/json/jobs/[IDJob] |
Update job status
The following table provides the URI and methods that can be used to update the job status.
Method | Result |
---|---|
URI | https://[CompanyID].crittah.com/ws/apiv2/[json or xml]/workflow/updatestatus |
DELETE | Not used |
GET | Not used |
POST | Change status of an entity (e.g. Job) |
PUT | Not used |
Data fields
Field | Value type | Mandatory | Description | Example | ||||||
---|---|---|---|---|---|---|---|---|---|---|
IDEntity | string |
| ID of the entity that you are changing the status for (e.g. IDJob) | 7090fad1-c4da-4488-9ceb-55ee9847edcc | ||||||
Entity | string |
| Entity type that the status is being updated for (Accepted Entity types: "JOB") | 926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa | ||||||
IDNextStaus | string |
| The IS of the status that you would like to change the job to | 926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa | ||||||
IDJobClosedReason | string | If the job is set to closed lost or closed cancel status and it is mandatory to provide a reason then the reason ID must be provided. | 926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa | |||||||
BypassNotifications | bool |
| If you would like to change the status without triggering notifications link to the status change (i.e. Emails or SMS) | false |
Sample of body
Code Block |
---|
{
"IDEntity": "d2617c62-b1e9-4d76-9ee0-7fef5a90f3d0",
"Entity": "JOB",
"IDNextStaus": "a610305a-1a34-4c3d-b271-d710ba6b3be3",
"BypassNotifications":false
} |
Sample call
Code Block |
---|
curl -X POST -d change_job_status.data \ -H "Content-Type: application/json" \ -H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \ -H "Api-Username: jsmith" \ -H "API-Password: abc123" \ http://YourCompanyID.crittah.com/ws/apiv2/json/jobs/[IDJob] |
...
workflow/updatestatus
|
Delete a job
Code Block |
---|
curl -X DELETE \ -H "Content-Type: application/json" \ -H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \ -H "Api-Username: jsmith" \ -H "API-Password: abc123" \ http://YourCompanyID.crittah.com/ws/apiv2/json/delete/fde3e1d7-5a7c-493d-b49f-dd514fa3b3af |
...