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": "de661c86-892b-4300-a7d8-b0ce57a2bdcf",
"Warehouse": "sample string 9",
"Unit": "sample string 10",
"CategoryId": "76b8eb5e-c297-4bf7-ad4e-18cd124ee77c",
"ItemId": "00c43614-f3d7-43d5-bd92-b701c1a3c3c4",
"Discount": "sample string 13",
"TotalDiscount": 14,
"PriceWithoutDiscount": 15,
"IsnotProduced": "sample string 16",
"AvailableCount": 17,
"SupplierId": 1,
"ExpectedDelivery": 1,
"GuaranteedDelivery": 1,
"DeliveryProbability": 1.1,
"Offers": [
{
"ImageUrl": "sample string 1",
"Attributes": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
}
],
"ArticleNumber": "sample string 2",
"CleanArticleNumber": "samplestring2",
"BrandName": "sample string 3",
"CleanBrandName": "samplestring3",
"Name": "sample string 4",
"WarehouseName": "sample string 5",
"Warehouse1CGuid": "c850f703-47c1-412c-9f7f-600abeb9d44c",
"Category1CGuid": "5f8c9b48-9101-4a4f-bf81-f8ce1f636a02",
"AgentContract1CGuid": "e5f532c7-0854-4253-8ac0-712c406e3221",
"ExpectedDelivery": 9,
"GuaranteedDelivery": 10,
"AvailableCount": 11,
"ViewAvailableCount": "sample string 12",
"SupplierId": 1,
"SupplierCode": "sample string 13",
"PriceWithoutDiscount": 1.0,
"Discount": 14.0,
"Price": 15.0,
"PriceStr": "15",
"BasePrice": 16.0,
"SupplierPrice": 1.0,
"ArtificialPrice": 17.0,
"ArtificialPriceStr": "17",
"ShowDiscount": true,
"Unit": "sample string 19",
"MinSize": 20.0,
"CurrencySymbol": "sample string 21",
"Count": 22,
"Product1CGuid": "2462d58e-9bac-4403-88aa-d98e716628b6",
"IsCross": true,
"IsSaleItem": true,
"ExpectedDate": "sample string 26",
"DeliveryProbability": 27.1,
"DeliveryProbabilityStr": "27%"
},
{
"ImageUrl": "sample string 1",
"Attributes": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
}
],
"ArticleNumber": "sample string 2",
"CleanArticleNumber": "samplestring2",
"BrandName": "sample string 3",
"CleanBrandName": "samplestring3",
"Name": "sample string 4",
"WarehouseName": "sample string 5",
"Warehouse1CGuid": "c850f703-47c1-412c-9f7f-600abeb9d44c",
"Category1CGuid": "5f8c9b48-9101-4a4f-bf81-f8ce1f636a02",
"AgentContract1CGuid": "e5f532c7-0854-4253-8ac0-712c406e3221",
"ExpectedDelivery": 9,
"GuaranteedDelivery": 10,
"AvailableCount": 11,
"ViewAvailableCount": "sample string 12",
"SupplierId": 1,
"SupplierCode": "sample string 13",
"PriceWithoutDiscount": 1.0,
"Discount": 14.0,
"Price": 15.0,
"PriceStr": "15",
"BasePrice": 16.0,
"SupplierPrice": 1.0,
"ArtificialPrice": 17.0,
"ArtificialPriceStr": "17",
"ShowDiscount": true,
"Unit": "sample string 19",
"MinSize": 20.0,
"CurrencySymbol": "sample string 21",
"Count": 22,
"Product1CGuid": "2462d58e-9bac-4403-88aa-d98e716628b6",
"IsCross": true,
"IsSaleItem": true,
"ExpectedDate": "sample string 26",
"DeliveryProbability": 27.1,
"DeliveryProbabilityStr": "27%"
}
],
"Parameters": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"Using": "sample string 18",
"PhotoItem": "sample string 19",
"Brand": "sample string 20",
"Article": "sample string 21",
"Name": "sample string 22"
},
{
"CleanArticle": "sample string 1",
"Presence": "sample string 2",
"Price": 3,
"CurrencyCode": "sample string 4",
"ExpectedShipmentDays": 5,
"GuaranteedShipmentDays": 6,
"CountInPack": 7,
"WarehouseId": "de661c86-892b-4300-a7d8-b0ce57a2bdcf",
"Warehouse": "sample string 9",
"Unit": "sample string 10",
"CategoryId": "76b8eb5e-c297-4bf7-ad4e-18cd124ee77c",
"ItemId": "00c43614-f3d7-43d5-bd92-b701c1a3c3c4",
"Discount": "sample string 13",
"TotalDiscount": 14,
"PriceWithoutDiscount": 15,
"IsnotProduced": "sample string 16",
"AvailableCount": 17,
"SupplierId": 1,
"ExpectedDelivery": 1,
"GuaranteedDelivery": 1,
"DeliveryProbability": 1.1,
"Offers": [
{
"ImageUrl": "sample string 1",
"Attributes": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
}
],
"ArticleNumber": "sample string 2",
"CleanArticleNumber": "samplestring2",
"BrandName": "sample string 3",
"CleanBrandName": "samplestring3",
"Name": "sample string 4",
"WarehouseName": "sample string 5",
"Warehouse1CGuid": "c850f703-47c1-412c-9f7f-600abeb9d44c",
"Category1CGuid": "5f8c9b48-9101-4a4f-bf81-f8ce1f636a02",
"AgentContract1CGuid": "e5f532c7-0854-4253-8ac0-712c406e3221",
"ExpectedDelivery": 9,
"GuaranteedDelivery": 10,
"AvailableCount": 11,
"ViewAvailableCount": "sample string 12",
"SupplierId": 1,
"SupplierCode": "sample string 13",
"PriceWithoutDiscount": 1.0,
"Discount": 14.0,
"Price": 15.0,
"PriceStr": "15",
"BasePrice": 16.0,
"SupplierPrice": 1.0,
"ArtificialPrice": 17.0,
"ArtificialPriceStr": "17",
"ShowDiscount": true,
"Unit": "sample string 19",
"MinSize": 20.0,
"CurrencySymbol": "sample string 21",
"Count": 22,
"Product1CGuid": "2462d58e-9bac-4403-88aa-d98e716628b6",
"IsCross": true,
"IsSaleItem": true,
"ExpectedDate": "sample string 26",
"DeliveryProbability": 27.1,
"DeliveryProbabilityStr": "27%"
},
{
"ImageUrl": "sample string 1",
"Attributes": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"Value1CGuid": "sample string 3",
"IsChecked": true
}
],
"ArticleNumber": "sample string 2",
"CleanArticleNumber": "samplestring2",
"BrandName": "sample string 3",
"CleanBrandName": "samplestring3",
"Name": "sample string 4",
"WarehouseName": "sample string 5",
"Warehouse1CGuid": "c850f703-47c1-412c-9f7f-600abeb9d44c",
"Category1CGuid": "5f8c9b48-9101-4a4f-bf81-f8ce1f636a02",
"AgentContract1CGuid": "e5f532c7-0854-4253-8ac0-712c406e3221",
"ExpectedDelivery": 9,
"GuaranteedDelivery": 10,
"AvailableCount": 11,
"ViewAvailableCount": "sample string 12",
"SupplierId": 1,
"SupplierCode": "sample string 13",
"PriceWithoutDiscount": 1.0,
"Discount": 14.0,
"Price": 15.0,
"PriceStr": "15",
"BasePrice": 16.0,
"SupplierPrice": 1.0,
"ArtificialPrice": 17.0,
"ArtificialPriceStr": "17",
"ShowDiscount": true,
"Unit": "sample string 19",
"MinSize": 20.0,
"CurrencySymbol": "sample string 21",
"Count": 22,
"Product1CGuid": "2462d58e-9bac-4403-88aa-d98e716628b6",
"IsCross": true,
"IsSaleItem": true,
"ExpectedDate": "sample string 26",
"DeliveryProbability": 27.1,
"DeliveryProbabilityStr": "27%"
}
],
"Parameters": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"Using": "sample string 18",
"PhotoItem": "sample string 19",
"Brand": "sample string 20",
"Article": "sample string 21",
"Name": "sample string 22"
}
],
"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":"de661c86-892b-4300-a7d8-b0ce57a2bdcf","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"76b8eb5e-c297-4bf7-ad4e-18cd124ee77c","ItemId":"00c43614-f3d7-43d5-bd92-b701c1a3c3c4","Discount":"sample string 13","TotalDiscount":14,"PriceWithoutDiscount":15,"IsnotProduced":"sample string 16","AvailableCount":17,"SupplierId":1,"ExpectedDelivery":1,"GuaranteedDelivery":1,"DeliveryProbability":1.1,"Offers":[{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"c850f703-47c1-412c-9f7f-600abeb9d44c","Category1CGuid":"5f8c9b48-9101-4a4f-bf81-f8ce1f636a02","AgentContract1CGuid":"e5f532c7-0854-4253-8ac0-712c406e3221","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"2462d58e-9bac-4403-88aa-d98e716628b6","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"},{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"c850f703-47c1-412c-9f7f-600abeb9d44c","Category1CGuid":"5f8c9b48-9101-4a4f-bf81-f8ce1f636a02","AgentContract1CGuid":"e5f532c7-0854-4253-8ac0-712c406e3221","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"2462d58e-9bac-4403-88aa-d98e716628b6","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"}],"Parameters":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"Using":"sample string 18","PhotoItem":"sample string 19","Brand":"sample string 20","Article":"sample string 21","Name":"sample string 22"},{"CleanArticle":"sample string 1","Presence":"sample string 2","Price":3,"CurrencyCode":"sample string 4","ExpectedShipmentDays":5,"GuaranteedShipmentDays":6,"CountInPack":7,"WarehouseId":"de661c86-892b-4300-a7d8-b0ce57a2bdcf","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"76b8eb5e-c297-4bf7-ad4e-18cd124ee77c","ItemId":"00c43614-f3d7-43d5-bd92-b701c1a3c3c4","Discount":"sample string 13","TotalDiscount":14,"PriceWithoutDiscount":15,"IsnotProduced":"sample string 16","AvailableCount":17,"SupplierId":1,"ExpectedDelivery":1,"GuaranteedDelivery":1,"DeliveryProbability":1.1,"Offers":[{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"c850f703-47c1-412c-9f7f-600abeb9d44c","Category1CGuid":"5f8c9b48-9101-4a4f-bf81-f8ce1f636a02","AgentContract1CGuid":"e5f532c7-0854-4253-8ac0-712c406e3221","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"2462d58e-9bac-4403-88aa-d98e716628b6","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"},{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"c850f703-47c1-412c-9f7f-600abeb9d44c","Category1CGuid":"5f8c9b48-9101-4a4f-bf81-f8ce1f636a02","AgentContract1CGuid":"e5f532c7-0854-4253-8ac0-712c406e3221","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"2462d58e-9bac-4403-88aa-d98e716628b6","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"}],"Parameters":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"Using":"sample string 18","PhotoItem":"sample string 19","Brand":"sample string 20","Article":"sample string 21","Name":"sample string 22"}],"IsError":true,"ErrorMessage":"sample string 2"}