GET api/Search?userGuid={userGuid}&ApiKey={ApiKey}&Article={Article}&Brand={Brand}&Sources[0]={Sources[0]}&Sources[1]={Sources[1]}&includeAnalogs={includeAnalogs}&ContragentGuid={ContragentGuid}

Поиск по бренду и артикулу. Возвращает цены и наличие

Информация о запросе

URI параметры

ИмяОписаниеТипДополнительная информация
userGuid

Ваш UserGuid

globally unique identifier

Required

ApiKey

Ваш ApiKey

string

Required

Article

Артикул

string

Required

Brand

Бренд

string

Required

Sources

Массив источников товаров 1 - Товары в наличии на складах Phaeton 2 - Товары локальных поставщиков 3 - Товары удаленных поставщиков

Коллекция ProdutsSource

Required

includeAnalogs

Включить аналоги в результат (если в Sources задано значение 3, то аналоги будут включены в любом случае)

boolean

Default value is True

ContragentGuid

Guid контрагента, если не задан будет использован контрагент пользователя по умолчанию

globally unique identifier

Нет.

Параметры тела запроса

Нет.

Пример запроса

/api/Search?Article=1002101&Brand=LEMFORDER&Sources[]=1&Sources[]=2&Sources[]=3&includeAnalogs=true&UserGuid=00000000-0000-0000-0000-000000000000&ApiKey=dss333dddd333

Информация об ответе

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

Возвращает список найденных товаров

SearchProductResponse
ИмяОписаниеТипДополнительная информация
Items

Список товаров

Коллекция ProductItem

Нет.

IsError

Указывает завершился ли запрос с ошибкой или нет

boolean

Нет.

ErrorMessage

Сообщение об ошибке

string

Нет.

Форматы ответа

application/json, text/json

Пример:
{
  "Items": [
    {
      "CleanArticle": "sample string 1",
      "Presence": "sample string 2",
      "Price": 3,
      "CurrencyCode": "sample string 4",
      "ExpectedShipmentDays": 5,
      "GuaranteedShipmentDays": 6,
      "CountInPack": 7,
      "WarehouseId": "51e93912-993a-4117-9df5-ddb50159cbeb",
      "Warehouse": "sample string 9",
      "Unit": "sample string 10",
      "CategoryId": "b418a0fb-e64f-4c35-aa51-b671158221c9",
      "ItemId": "753f1167-3d11-4e11-93f0-84ebc7217813",
      "Discount": "sample string 13",
      "TotalDiscount": 14,
      "PriceWithoutDiscount": 15,
      "IsnotProduced": "sample string 16",
      "AvailableCount": 17,
      "SupplierCode": "sample string 18",
      "ExpectedDelivery": 1,
      "GuaranteedDelivery": 1,
      "DeliveryProbability": 1.1,
      "Brand": "sample string 19",
      "Article": "sample string 20",
      "Name": "sample string 21"
    },
    {
      "CleanArticle": "sample string 1",
      "Presence": "sample string 2",
      "Price": 3,
      "CurrencyCode": "sample string 4",
      "ExpectedShipmentDays": 5,
      "GuaranteedShipmentDays": 6,
      "CountInPack": 7,
      "WarehouseId": "51e93912-993a-4117-9df5-ddb50159cbeb",
      "Warehouse": "sample string 9",
      "Unit": "sample string 10",
      "CategoryId": "b418a0fb-e64f-4c35-aa51-b671158221c9",
      "ItemId": "753f1167-3d11-4e11-93f0-84ebc7217813",
      "Discount": "sample string 13",
      "TotalDiscount": 14,
      "PriceWithoutDiscount": 15,
      "IsnotProduced": "sample string 16",
      "AvailableCount": 17,
      "SupplierCode": "sample string 18",
      "ExpectedDelivery": 1,
      "GuaranteedDelivery": 1,
      "DeliveryProbability": 1.1,
      "Brand": "sample string 19",
      "Article": "sample string 20",
      "Name": "sample string 21"
    }
  ],
  "IsError": true,
  "ErrorMessage": "sample string 2"
}

multipart/form-data

Пример:
{"Items":[{"CleanArticle":"sample string 1","Presence":"sample string 2","Price":3,"CurrencyCode":"sample string 4","ExpectedShipmentDays":5,"GuaranteedShipmentDays":6,"CountInPack":7,"WarehouseId":"51e93912-993a-4117-9df5-ddb50159cbeb","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"b418a0fb-e64f-4c35-aa51-b671158221c9","ItemId":"753f1167-3d11-4e11-93f0-84ebc7217813","Discount":"sample string 13","TotalDiscount":14,"PriceWithoutDiscount":15,"IsnotProduced":"sample string 16","AvailableCount":17,"SupplierCode":"sample string 18","ExpectedDelivery":1,"GuaranteedDelivery":1,"DeliveryProbability":1.1,"Brand":"sample string 19","Article":"sample string 20","Name":"sample string 21"},{"CleanArticle":"sample string 1","Presence":"sample string 2","Price":3,"CurrencyCode":"sample string 4","ExpectedShipmentDays":5,"GuaranteedShipmentDays":6,"CountInPack":7,"WarehouseId":"51e93912-993a-4117-9df5-ddb50159cbeb","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"b418a0fb-e64f-4c35-aa51-b671158221c9","ItemId":"753f1167-3d11-4e11-93f0-84ebc7217813","Discount":"sample string 13","TotalDiscount":14,"PriceWithoutDiscount":15,"IsnotProduced":"sample string 16","AvailableCount":17,"SupplierCode":"sample string 18","ExpectedDelivery":1,"GuaranteedDelivery":1,"DeliveryProbability":1.1,"Brand":"sample string 19","Article":"sample string 20","Name":"sample string 21"}],"IsError":true,"ErrorMessage":"sample string 2"}

application/xml, text/xml

Пример:
<SearchProductResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <IsError>true</IsError>
  <ErrorMessage>sample string 2</ErrorMessage>
  <Items>
    <ProductItem>
      <Brand>sample string 19</Brand>
      <Article>sample string 20</Article>
      <Name>sample string 21</Name>
      <CleanArticle>sample string 1</CleanArticle>
      <Presence>sample string 2</Presence>
      <Price>3</Price>
      <CurrencyCode>sample string 4</CurrencyCode>
      <ExpectedShipmentDays>5</ExpectedShipmentDays>
      <GuaranteedShipmentDays>6</GuaranteedShipmentDays>
      <CountInPack>7</CountInPack>
      <WarehouseId>51e93912-993a-4117-9df5-ddb50159cbeb</WarehouseId>
      <Warehouse>sample string 9</Warehouse>
      <Unit>sample string 10</Unit>
      <CategoryId>b418a0fb-e64f-4c35-aa51-b671158221c9</CategoryId>
      <ItemId>753f1167-3d11-4e11-93f0-84ebc7217813</ItemId>
      <Discount>sample string 13</Discount>
      <TotalDiscount>14</TotalDiscount>
      <PriceWithoutDiscount>15</PriceWithoutDiscount>
      <IsnotProduced>sample string 16</IsnotProduced>
      <AvailableCount>17</AvailableCount>
      <SupplierCode>sample string 18</SupplierCode>
      <ExpectedDelivery>1</ExpectedDelivery>
      <GuaranteedDelivery>1</GuaranteedDelivery>
      <DeliveryProbability>1.1</DeliveryProbability>
    </ProductItem>
    <ProductItem>
      <Brand>sample string 19</Brand>
      <Article>sample string 20</Article>
      <Name>sample string 21</Name>
      <CleanArticle>sample string 1</CleanArticle>
      <Presence>sample string 2</Presence>
      <Price>3</Price>
      <CurrencyCode>sample string 4</CurrencyCode>
      <ExpectedShipmentDays>5</ExpectedShipmentDays>
      <GuaranteedShipmentDays>6</GuaranteedShipmentDays>
      <CountInPack>7</CountInPack>
      <WarehouseId>51e93912-993a-4117-9df5-ddb50159cbeb</WarehouseId>
      <Warehouse>sample string 9</Warehouse>
      <Unit>sample string 10</Unit>
      <CategoryId>b418a0fb-e64f-4c35-aa51-b671158221c9</CategoryId>
      <ItemId>753f1167-3d11-4e11-93f0-84ebc7217813</ItemId>
      <Discount>sample string 13</Discount>
      <TotalDiscount>14</TotalDiscount>
      <PriceWithoutDiscount>15</PriceWithoutDiscount>
      <IsnotProduced>sample string 16</IsnotProduced>
      <AvailableCount>17</AvailableCount>
      <SupplierCode>sample string 18</SupplierCode>
      <ExpectedDelivery>1</ExpectedDelivery>
      <GuaranteedDelivery>1</GuaranteedDelivery>
      <DeliveryProbability>1.1</DeliveryProbability>
    </ProductItem>
  </Items>
</SearchProductResponse>