| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ApplianceId | query | Guid | Yes | Guid of the Appliance this Device is Registering under. |
| DeviceId | query | Guid | Yes | Guid of the Device. If empty the Device will be inserted, if provided the device will be updated. |
| ManufacturerDeviceNumber | query | string | No | The Device manufacturers number. |
| MacAddress | query | string | No | The Device MAC Address. |
| ModelName | query | string | Yes | The Device Model Name. |
| FormFactor | query | string | Yes | The Device Form, e.g Phone | Tablet. |
| Brand | query | string | No | The Device Brand. |
| Dimensions | query | string | No | The Device Dimensions (Height x Width x Depth). |
| DisplayResolutionWidthPixels | query | int | No | The Device display resolution width in pixels. |
| DisplayResolutionHeightPixels | query | int | No | The Device display resolution height in pixels. |
| DisplaySizeWidthInches | query | decimal | No | The Device display width size in inches. |
| DisplaySizeHeightInches | query | decimal | No | The Device display height size in inches. |
| OperatingSystem | query | string | No | The Device operating system. |
| OperatingSystemVersion | query | string | No | The Device operating system version. |
| IpAddress | query | string | No | The Device IP Address. |
| Notes | query | string | No | Any Notes about the device. |
| TotalMemorySize | query | string | No | Total memory size available (in bytes). |
| CellularProviderName | query | string | No | The Network provider name. |
| ISOCountryCode | query | string | No | The ISO Country Code of the country the device is currently located in. |
| MobileCountryCode | query | string | No | The Mobile Country Code the device is currently located in. |
| MobileNetworkCode | query | string | No | The Mobile Network Code the device is currently using. |
| LanguageCodeIdentifier | query | string | No | The Language Code Identifier that represents the language used on the device. |
| LastKnownTimeZone | query | string | No | The name of the Timezone the device was last used in. |
| LastKnownTimeZoneOffset | query | string | No | The UTC Offset of the Timezone the device was last used in. Formatted as +-##:## |
| Latitude | query | double | Yes | The latitude the device was last located at. |
| Longitude | query | double | Yes | The longitude the device was last located at. |
| InstanceSeed | query | int | Yes | The current value of InstanceSeed that the device has stored. |
| InstanceCounterLastValue | query | int | Yes | The current value of InstanceCounterLastValue that the device has stored |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DeviceId | query | Guid | No | Guid representing the saved Device |
| DeviceType | query | DeviceTypeModel | No | Details of the Type of Device |
| CurrentHistory | query | DeviceHistoryModel | No | Current saved settings of the Device |
| ModelName | query | string | Yes | The Device Model Name. |
| ModelNumber | query | string | No | The Device model number. |
| SerialNumber | query | string | No | The Device serial number. |
| ManufacturerDeviceNumber | query | string | No | The Device manufacturers number. |
| MacAddress | query | string | No | The Device MAC Address. |
| InstanceSeed | query | int | Yes | The current value of InstanceSeed that the device has stored. If InstanceCounterLastValue has gone over 99999, this will contain a new seed value for the device. |
| InstanceCounterLastValue | query | int | Yes | The current value of InstanceCounterLastValue that the device has stored |
| ResponseStatus | query | ResponseStatus | No | ServiceStack ResponseStatus. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DeviceTypeId | query | Guid | No | Guid representing the saved Device Type |
| DeviceClassId | query | Guid | No | Guid representing the saved Device Class |
| DeviceClassName | query | string | No | The Device Class Name |
| Brand | query | string | No | The Device Brand. |
| ModelName | query | string | Yes | The Device Model Name. |
| FormFactor | query | string | No | The Device Form, e.g Phone | Tablet. |
| Dimensions | query | string | No | The Device Dimensions (Height x Width x Depth). |
| DisplayResolutionWidthPixels | query | int | No | The Device display resolution width in pixels. |
| DisplayResolutionHeightPixels | query | int | No | The Device display resolution height in pixels. |
| DisplaySizeWidthInches | query | decimal | No | The Device display width size in inches. |
| DisplaySizeHeightInches | query | decimal | No | The Device display height size in inches. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DeviceHistoryId | query | Guid | No | Guid representing the current Device History |
| PrimaryDeviceHistoryDeviceConfigurationId | query | Guid | No | Guid representing the current Device History Device Configuration record. |
| DeviceName | query | string | No | The Device name. |
| OperatingSystem | query | string | No | The Device operating system. |
| OperatingSystemVersion | query | string | No | The Device operating system version. |
| IpAddress | query | string | No | The Device IP Address. |
| Notes | query | string | No | Any Notes about the device. |
| TotalMemorySize | query | string | No | Total memory size available (in bytes). |
| CellularProviderName | query | string | No | The Network provider name. |
| MobileCountryCode | query | string | No | The Mobile Country Code the device is currently located in. |
| MobileNetworkCode | query | string | No | The Mobile Network Code the device is currently using. |
| LanguageCodeIdentifier | query | string | No | The Language Code Identifier that represents the language used on the device. |
| Latitude | query | double | No | The latitude the device was last located at. |
| Longitude | query | double | No | The longitude the device was last located at. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/RegisterDevice HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RegisterDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<ApplianceId>00000000-0000-0000-0000-000000000000</ApplianceId>
<Brand>String</Brand>
<CellularProviderName>String</CellularProviderName>
<DeviceId>00000000-0000-0000-0000-000000000000</DeviceId>
<Dimensions>String</Dimensions>
<DisplayResolutionHeightPixels>0</DisplayResolutionHeightPixels>
<DisplayResolutionWidthPixels>0</DisplayResolutionWidthPixels>
<DisplaySizeHeightInches>0</DisplaySizeHeightInches>
<DisplaySizeWidthInches>0</DisplaySizeWidthInches>
<FormFactor>String</FormFactor>
<ISOCountryCode>String</ISOCountryCode>
<InstanceCounterLastValue>0</InstanceCounterLastValue>
<InstanceSeed>0</InstanceSeed>
<IpAddress>String</IpAddress>
<LanguageCodeIdentifier>String</LanguageCodeIdentifier>
<LastKnownTimeZone>String</LastKnownTimeZone>
<LastKnownTimeZoneOffset>String</LastKnownTimeZoneOffset>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<MacAddress>String</MacAddress>
<ManufacturerDeviceNumber>String</ManufacturerDeviceNumber>
<MobileCountryCode>String</MobileCountryCode>
<MobileNetworkCode>String</MobileNetworkCode>
<ModelName>String</ModelName>
<Notes>String</Notes>
<OperatingSystem>String</OperatingSystem>
<OperatingSystemVersion>String</OperatingSystemVersion>
<TotalMemorySize>0</TotalMemorySize>
</RegisterDevice>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<CurrentHistory>
<CellularProviderName>String</CellularProviderName>
<DeviceHistoryId>00000000-0000-0000-0000-000000000000</DeviceHistoryId>
<DeviceName>String</DeviceName>
<IpAddress>String</IpAddress>
<LanguageCodeIdentifier>String</LanguageCodeIdentifier>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<MobileCountryCode>String</MobileCountryCode>
<MobileNetworkCode>String</MobileNetworkCode>
<Notes>String</Notes>
<OperatingSystem>String</OperatingSystem>
<OperatingSystemVersion>String</OperatingSystemVersion>
<PrimaryDeviceHistoryDeviceConfigurationId>00000000-0000-0000-0000-000000000000</PrimaryDeviceHistoryDeviceConfigurationId>
<TotalMemorySize>0</TotalMemorySize>
</CurrentHistory>
<DeviceId>00000000-0000-0000-0000-000000000000</DeviceId>
<DeviceType>
<Brand>String</Brand>
<DeviceClassId>00000000-0000-0000-0000-000000000000</DeviceClassId>
<DeviceClassName>String</DeviceClassName>
<DeviceTypeId>00000000-0000-0000-0000-000000000000</DeviceTypeId>
<Dimensions>String</Dimensions>
<DisplayResolutionHeightPixels>0</DisplayResolutionHeightPixels>
<DisplayResolutionWidthPixels>0</DisplayResolutionWidthPixels>
<DisplaySizeHeightInches>0</DisplaySizeHeightInches>
<DisplaySizeWidthInches>0</DisplaySizeWidthInches>
<FormFactor>String</FormFactor>
<ModelName>String</ModelName>
</DeviceType>
<InstanceCounterLastValue>0</InstanceCounterLastValue>
<InstanceSeed>0</InstanceSeed>
<MacAddress>String</MacAddress>
<ManufacturerDeviceNumber>String</ManufacturerDeviceNumber>
<ModelName>String</ModelName>
<ModelNumber>String</ModelNumber>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<SerialNumber>String</SerialNumber>
</DeviceModel>