Features - Connectors Framework - Inbound REST API - Estimates
Add Estimate
Overview
Creates a estimate in MobiWork
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/estimate/add.html?token=XXXXXXXX&userId={userId}
Arguments
clientId
required
MobiWork assigned unique ID of the company
versionNumber
required
Version number of MobiWork API SDK release. Current version is: 10.0.78
token
required
Part of URL as a request parameter and is required in every call to verify access to API calls
userId
optional
If provided, this User ID will be taken as a logged in user. If not provided we use an active global administrator ID
Return
Returns a estimate Object if estimate creation is successful or errors will be returned
Curl Example
HTTP Method: POST
Request: curl -k -X POST "https://www.mobiwork.com/api/rest/12026/5.0.141/estimate/add.html?token=COJL8X2FKSLMMRTYCH2B" -data '<request>
<estimate>
<description></description>
<status></status>
<customer>1</customer>
<locationId>123</locationId>
<category></category>
<assignedTo></assignedTo>
<externalId></externalId>
<dueDate>Mon Sep 26 06:35:29 EDT 2018</dueDate>
<address>
<addressName>Primary Address</addressName>
<address1>160 Congress Park Dr</address1>
<address2></address2>
<city>Delray Beach</city>
<state>Florida</state>
<postalCode>33445</postalCode>
<country>1</country>
<latitude>26.4582132</latitude>
<longitude>-80.0940502</longitude>
</address>
<contact>
<firstName>John</firstName>
<lastName>Doe</lastName>
<phoneNumber>1231231234</phoneNumber>
<phoneExt></phoneExt>
<title></title>
<email></email>
<fax></fax>
<altPhone></altPhone>
<altPhoneExt></altPhoneExt>
</contact>
</estimate>
</request>'
Response: <?xml version="1.0" encoding="UTF-8" ?>
<response>
<estimate>
<description></description>
<status></status>
<customer>1</customer>
<locationId>123</locationId>
<category></category>
<assignedTo></assignedTo>
<externalId></externalId>
<dueDate>Mon Sep 26 06:35:29 EDT 2018</dueDate>
<address>
<addressName>Primary Address</addressName>
<address1>160 Congress Park Dr</address1>
<address2></address2>
<city>Delray Beach</city>
<state>Florida</state>
<postalCode>33445</postalCode>
<country>1</country>
<latitude>26.4582132</latitude>
<longitude>-80.0940502</longitude>
</address>
<contact>
<firstName>John</firstName>
<lastName>Doe</lastName>
<phoneNumber>1231231234</phoneNumber>
<phoneExt></phoneExt>
<title></title>
<email></email>
<fax></fax>
<altPhone></altPhone>
<altPhoneExt></altPhoneExt>
</contact>
</estimate>
</response>'