GET Preference/GetPreference?PreferenceType={PreferenceType}&LocationID={LocationID}
Returns preference information.
Request Information
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| PreferenceType |
Type of preference to get: MobileSales, Invoice, Booking, DeliveryTicket. |
string |
Required |
| LocationID |
Location ID of the location preference. (optional) |
string |
Default value is string.Empty |
Body Parameters
Response Information
Resource Description
Returns preference information.
AgvPreference| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
Status of the API call. |
string | |
| Message |
Message of the API call. |
string | |
| Count |
Count of how many Preferences. |
string | |
| PreferenceRecords |
JSON dictionary of PreferenceRecords. |
Collection of clsAPIPreference |
Response Formats
application/json, text/json
Sample:
{
"Status": "sample string 1",
"Message": "sample string 2",
"Count": "sample string 3",
"PreferenceRecords": [
{
"Name": "sample string 1",
"Value": "sample string 2"
},
{
"Name": "sample string 1",
"Value": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<AgvPreference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Preference">
<Count>sample string 3</Count>
<Message>sample string 2</Message>
<PreferenceRecords xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.API">
<d2p1:clsAPIPreference>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:clsAPIPreference>
<d2p1:clsAPIPreference>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:clsAPIPreference>
</PreferenceRecords>
<Status>sample string 1</Status>
</AgvPreference>