POST api/Products/GetProduct

Check to see if the device exists in the team leader

Request Information

Body Parameters

ProductsModel
NameDescriptionTypeAdditional information
Phone

string

None.

TypeId

integer

None.

Imei

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Phone": "sample string 1",
  "TypeId": 2,
  "Imei": "sample string 3",
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

Sample:
<ProductsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 6</AppId>
  <Language>sample string 5</Language>
  <Token>sample string 4</Token>
  <Imei>sample string 3</Imei>
  <Phone>sample string 1</Phone>
  <TypeId>2</TypeId>
</ProductsModel>

Response Information

Resource Description

ProductsResult
NameDescriptionTypeAdditional information
Item

Collection of Products

None.

counttime

integer

None.

residuetime

string

None.

residuedays

integer

None.

IsAll

integer

None.

ProtocolUrl

string

None.

IsMobile

boolean

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Item": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Price": 4.0,
      "PublishOn": "sample string 5",
      "Appid": 6,
      "ProductCategory_Id": 7,
      "ProductCategory_Name": "sample string 8",
      "SjPrice": 9.0
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Price": 4.0,
      "PublishOn": "sample string 5",
      "Appid": 6,
      "ProductCategory_Id": 7,
      "ProductCategory_Name": "sample string 8",
      "SjPrice": 9.0
    }
  ],
  "counttime": 1,
  "residuetime": "sample string 2",
  "residuedays": 3,
  "IsAll": 4,
  "ProtocolUrl": "sample string 5",
  "IsMobile": true,
  "State": 7
}

application/xml, text/xml

Sample:
<ProductsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>7</State>
  <IsAll>4</IsAll>
  <IsMobile>true</IsMobile>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.Entity.Entity">
    <d2p1:Products>
      <d2p1:Appid>6</d2p1:Appid>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>4</d2p1:Price>
      <d2p1:ProductCategory_Id>7</d2p1:ProductCategory_Id>
      <d2p1:ProductCategory_Name>sample string 8</d2p1:ProductCategory_Name>
      <d2p1:PublishOn>sample string 5</d2p1:PublishOn>
      <d2p1:SjPrice>9</d2p1:SjPrice>
    </d2p1:Products>
    <d2p1:Products>
      <d2p1:Appid>6</d2p1:Appid>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>4</d2p1:Price>
      <d2p1:ProductCategory_Id>7</d2p1:ProductCategory_Id>
      <d2p1:ProductCategory_Name>sample string 8</d2p1:ProductCategory_Name>
      <d2p1:PublishOn>sample string 5</d2p1:PublishOn>
      <d2p1:SjPrice>9</d2p1:SjPrice>
    </d2p1:Products>
  </Item>
  <ProtocolUrl>sample string 5</ProtocolUrl>
  <counttime>1</counttime>
  <residuedays>3</residuedays>
  <residuetime>sample string 2</residuetime>
</ProductsResult>