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": "8a3c1e68-fe0d-403d-9ca1-1fe03ce531f5",
"Warehouse": "sample string 9",
"Unit": "sample string 10",
"CategoryId": "ce3002a9-49c5-4d37-8274-caad51a5ad9f",
"ItemId": "f9e596e2-646d-446d-b21f-1e6855f71a3f",
"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": "05032c08-8c8b-40d1-8f88-ae211e5acef5",
"Category1CGuid": "5319b8f3-6928-4b01-94f8-cd18ba78c05e",
"AgentContract1CGuid": "7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c",
"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": "8cd73eb2-4921-4a83-9723-dc398ca5f7d9",
"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 28",
"PhotoItem": "sample string 29"
},
{
"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": "05032c08-8c8b-40d1-8f88-ae211e5acef5",
"Category1CGuid": "5319b8f3-6928-4b01-94f8-cd18ba78c05e",
"AgentContract1CGuid": "7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c",
"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": "8cd73eb2-4921-4a83-9723-dc398ca5f7d9",
"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 28",
"PhotoItem": "sample string 29"
}
],
"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": "8a3c1e68-fe0d-403d-9ca1-1fe03ce531f5",
"Warehouse": "sample string 9",
"Unit": "sample string 10",
"CategoryId": "ce3002a9-49c5-4d37-8274-caad51a5ad9f",
"ItemId": "f9e596e2-646d-446d-b21f-1e6855f71a3f",
"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": "05032c08-8c8b-40d1-8f88-ae211e5acef5",
"Category1CGuid": "5319b8f3-6928-4b01-94f8-cd18ba78c05e",
"AgentContract1CGuid": "7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c",
"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": "8cd73eb2-4921-4a83-9723-dc398ca5f7d9",
"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 28",
"PhotoItem": "sample string 29"
},
{
"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": "05032c08-8c8b-40d1-8f88-ae211e5acef5",
"Category1CGuid": "5319b8f3-6928-4b01-94f8-cd18ba78c05e",
"AgentContract1CGuid": "7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c",
"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": "8cd73eb2-4921-4a83-9723-dc398ca5f7d9",
"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 28",
"PhotoItem": "sample string 29"
}
],
"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":"8a3c1e68-fe0d-403d-9ca1-1fe03ce531f5","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"ce3002a9-49c5-4d37-8274-caad51a5ad9f","ItemId":"f9e596e2-646d-446d-b21f-1e6855f71a3f","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":"05032c08-8c8b-40d1-8f88-ae211e5acef5","Category1CGuid":"5319b8f3-6928-4b01-94f8-cd18ba78c05e","AgentContract1CGuid":"7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c","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":"8cd73eb2-4921-4a83-9723-dc398ca5f7d9","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 28","PhotoItem":"sample string 29"},{"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":"05032c08-8c8b-40d1-8f88-ae211e5acef5","Category1CGuid":"5319b8f3-6928-4b01-94f8-cd18ba78c05e","AgentContract1CGuid":"7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c","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":"8cd73eb2-4921-4a83-9723-dc398ca5f7d9","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 28","PhotoItem":"sample string 29"}],"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":"8a3c1e68-fe0d-403d-9ca1-1fe03ce531f5","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"ce3002a9-49c5-4d37-8274-caad51a5ad9f","ItemId":"f9e596e2-646d-446d-b21f-1e6855f71a3f","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":"05032c08-8c8b-40d1-8f88-ae211e5acef5","Category1CGuid":"5319b8f3-6928-4b01-94f8-cd18ba78c05e","AgentContract1CGuid":"7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c","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":"8cd73eb2-4921-4a83-9723-dc398ca5f7d9","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 28","PhotoItem":"sample string 29"},{"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":"05032c08-8c8b-40d1-8f88-ae211e5acef5","Category1CGuid":"5319b8f3-6928-4b01-94f8-cd18ba78c05e","AgentContract1CGuid":"7ebd5e5a-3b14-4fb6-9feb-cce833dc1f7c","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":"8cd73eb2-4921-4a83-9723-dc398ca5f7d9","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 28","PhotoItem":"sample string 29"}],"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"}