GET api/productinfo/{sessionID}/{id}

Получает описание товара по ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionID

ID сессии (получается при логине)

string

Required

id

ID товара

integer

Required

Body Parameters

None.

Response Information

Resource Description

ProductInfoResponse
NameDescriptionTypeAdditional information
retval

Код возврата (0 - ок, иначе - ошибка)

integer

None.

desc

Текстовая расшифровка кода возврата (описание ошибки)

string

None.

productinfo

Описание товара

ProductInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "retval": 1,
  "desc": "sample string 2",
  "productinfo": {
    "Name": "sample string 1",
    "URL": "sample string 2",
    "BaseCurrency": "sample string 3",
    "PriceUSD": "sample string 4",
    "PriceRUR": "sample string 5",
    "PriceEUR": "sample string 6",
    "PriceUAH": "sample string 7",
    "Info": "sample string 8",
    "AddInfo": "sample string 9",
    "Preview": "sample string 10",
    "CountGoodResponses": 11,
    "CountBadResponses": 12,
    "CountSell": 13,
    "CountReturn": 14,
    "ProductURL": "sample string 15"
  }
}

application/xml, text/xml

Sample:
<productinfo.response>
  <retval>1</retval>
  <desc>sample string 2</desc>
  <productinfo>
    <name>sample string 1</name>
    <siteURL>sample string 2</siteURL>
    <currency>sample string 3</currency>
    <priceUSD>sample string 4</priceUSD>
    <priceRUR>sample string 5</priceRUR>
    <priceEUR>sample string 6</priceEUR>
    <priceUAH>sample string 7</priceUAH>
    <info>sample string 8</info>
    <infoAdd>sample string 9</infoAdd>
    <preview>sample string 10</preview>
    <cntGood>11</cntGood>
    <cntBad>12</cntBad>
    <cntSell>13</cntSell>
    <cntReturn>14</cntReturn>
    <productURL>sample string 15</productURL>
  </productinfo>
</productinfo.response>