Features - Connectors Framework - Inbound REST API - Sales Orders
List Sales Order
Overview
Retrieve sales order list based on provided criteria
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/salesOrderId/list.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
Filter or Search Criteria
salesOrderId By ID of sales order
description By description of the sales order
statusType By status type of the sales order
customStatusType By the sales order custom status
customer By customer of the sales order
salesOrderType By the type of the sales order
userId By the sales order user ID
Return
Returns a list of Sales Order Object(s) if valid arguments and search criteria are provided. If no search criteria is provided the list of a maximum 200 salesorders will be returned. Returns an error if not a valid request
Request Body XSD
Response Body XSD
Curl Example
HTTP Method: GET
Request: curl -k -X GET "https://www.mobiwork.com/api/rest/12014/5.0.141/salesorder/list.html?token=COJL8X2FKSLMMRTYCH2B" --header 'content-type: application/xml' --data'<request><status>Status 1</status></request>'
Response: <?xml version="1.0" encoding="UTF-8" ?>
<response version="5.0.141" statusCode="1">
<salesorderList>
<salesorder>
<mobiworksalesorderId>123< /mobiworksalesorderId>
<externalId>null</externalId>
<description>test</description>
<status>Status 1</status>
<categoryId>4< /categoryId>
<category>Category 1</category>
<address>
<addressId>12345</addressId>
<address1>160 Congress Park Dr</address1>
< address2>!</address2>
<city>Delray Beach</city>
<state>Florida</state>
<zipCode>33445</zipCode>
<countryId>1</countryId>
< latitude>26.4582132</latitude>
<longitude>-80.0940502</longitude>
<name>Primary</name>
<baseDistance>123</baseDistance>
</address>
<quoteNumber>null</quoteNumber>
<dueDate>2018/01/04</dueDate>
</salesorder>
</salesorderList>
</response>