- Overview
- Account Settings
- Assets
- Connectors Framework
- Customer Portal
- Customers
- Dashboards
- Devices
- Dispatching
- Forms
- Inventory
- Invoices & Billing
- Locations
- Payments
- Parts
- Projects
- Quotes
- Recurrent Routes
- Recurrent Services
- Reports
- Sales Orders
- Schedule
- Services
- Tasks
- Text Messaging
- Time Tracking
- Users
- Work Orders
Overview
Retrieve a Work Order's information of the client
Retrieve a Work Order's information of the client
URL Format
https://{domain}/api/rest/{clientId}/{versionNumber}/workorder/{workorderId}/view.html?token=XXXXXXXX&userId={userId}
https://{domain}/api/rest/{clientId}/{versionNumber}/workorder/{workorderId}/view.html?token=XXXXXXXX&userId={userId}
Arguments
token required |
Part of URL as a request parameter and is required in every call to verify access to API calls |
workOrderId required |
The identifier of the work order to be retrieved |
userId optional |
If provided, this User ID will be taken as a logged in user |
Return
Returns a Work Order Object if valid arguments are provided. Returns an error if not a valid request
Returns a Work Order Object if valid arguments are provided. Returns an error if not a valid request
Request Body XSD
None
None
Response Body XSD
Curl Example
HTTP Method: | GET |
Request: | curl -k -X GET "https://www.mobiwork.com/api/rest/12014/10.0.78/workOrder/3200090/view.html?token=COJL8X2FKSLMMRTYCH2B" |
Response: | <?xml version="1.0" encoding="UTF-8" ?> <response version="10.0.78" statusCode="1"> <workOrder> <mobiworkWorkOrderId>3200090</mobiworkWorkOrderId> <externalId></externalId> <customerId>18614</customerId> <customerName>herve rivere</customerName> <description>yrdyhsfd dfshfdsfhds</description> <workOrderTypeId>2415</workOrderTypeId> <workOrderType>EstimateQuote</workOrderType> <status>ASSIGNED</status> <customStatusId>600</customStatusId> <customStatus>Atcustomersite</customStatus> <location> <addressId>36180</addressId> <address1>4972 garden drive</address1> <address2></address2> <city>delray beach</city> <state>Florida</state> <zipCode>33445</zipCode> <countryId>1</countryId> <latitude>26.431517</latitude> <longitude>-80.120069</longitude> <name>Primary Address</name> <baseDistance>9024759</baseDistance> </location> <createdDate>Wed Aug 24 12:22:52 EDT 2016</createdDate> <customFields> <customField> <fieldType>1</fieldType> <apiName>AnewField</apiName> <value></value> <name>A new Field</name> </customField> </customFields> <mobiForms> <mobiForm> <filledFormId>0</filledFormId> <name>GV Panel Form Order</name> <apiName>GVPanelFormOrder</apiName> <pdfUrl>http://www.mobiwork.com/internal/forms/8516/filledForm/0/pdfView.html?token=qx%2FriLnGbkSd1JT4OxGX%2BDzB6rHu1Duk78JLNjY0BSs%3D</pdfUrl> <createdDate></createdDate> <formFields> <formField> <fieldType>6</fieldType> <apiName>PlaceVisited</apiName> <value></value> <name>Place Visited</name> </formField> <formField> <fieldType>26</fieldType> <apiName>SelecttheParts</apiName> <name>Select the Parts</name> </formField> <formField> <fieldType>26</fieldType> <apiName>SelecttheParts</apiName> <value></value> <name>Select the Parts</name> </formField> <formField> <fieldType>1</fieldType> <apiName>SelectTeam</apiName> <value></value> <name>Select Team</name> </formField> <formField> <fieldType>1</fieldType> <apiName>Observations</apiName> <value></value> <name>Observations</name> </formField> <formField> <fieldType>1</fieldType> <apiName>SelectTeam1</apiName> <value></value> <name>Select Team</name> </formField> <formField> <fieldType>1</fieldType> <apiName>RepairDetails</apiName> <value></value> <name>Repair Details</name> </formField> <formField> <fieldType>1</fieldType> <apiName>Reasonnottovisit</apiName> <value></value> <name>Reason not to visit</name> </formField> <formField> <fieldType>1</fieldType> <apiName>Observations1</apiName> <value></value> <name>Observations</name> </formField> <formField> <fieldType>1</fieldType> <apiName>Datenextvisit</apiName> <value></value> <name>Date next visit</name> </formField> <formField> <fieldType>6</fieldType> <apiName>VisitType</apiName> <value></value> <name>Visit Type</name> </formField> <formField> <fieldType>6</fieldType> <apiName>SparePartsUsed</apiName> <value></value> <name>Spare Parts Used?</name> </formField> </formFields> </mobiForm> </mobiForms> <scheduleList> <schedule> <userId>34445</userId> <date>2016/09/20</date> <duration>60</duration> </schedule> <schedule> <userId>34445</userId> <date>2016/09/21</date> <duration>60</duration> </schedule> <schedule> <userId>34445</userId> <date>2016/09/22</date> <duration>60</duration> </schedule> </scheduleList> <timeTrackingList></timeTrackingList> <timeTrackingList></timeTrackingList> <timeTrackingList></timeTrackingList> </workOrder> </response> |