GET api/Product/GetProductByScanCode?scanCode={scanCode}&advsearch={advsearch}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| scanCode | string |
Required |
|
| advsearch | boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
Collection of ProductModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| PhotoCount | integer |
None. |
|
| Description | string |
None. |
|
| ScanCode | string |
None. |
|
| State | ProductState |
None. |
|
| CreatedDate | date |
None. |
|
| IsRevised | boolean |
None. |
|
| IsSelected | boolean |
None. |
|
| ProductUser | Collection of ProductUserModel |
None. |
|
| Price | Collection of PriceModel |
None. |
|
| Provider | Collection of ProviderModel |
None. |
|
| ProductPhoto | Collection of ProductPhotoModel |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "af3a4095-1a90-4e7f-8651-39dea408dd40",
"Name": "sample string 2",
"PhotoCount": 3,
"Description": "sample string 4",
"ScanCode": "sample string 5",
"State": 0,
"CreatedDate": "2026-01-01T14:21:16.3114491+02:00",
"IsRevised": true,
"IsSelected": true,
"ProductUser": [
{
"UserId": 1,
"DepartmentId": 2,
"DepartmentName": "sample string 3",
"UserName": "sample string 4",
"RoleName": "sample string 5",
"Quantity": 6
},
{
"UserId": 1,
"DepartmentId": 2,
"DepartmentName": "sample string 3",
"UserName": "sample string 4",
"RoleName": "sample string 5",
"Quantity": 6
}
],
"Price": [
{
"Id": "633d1d30-83c0-4a92-98d3-875299e2d5e6",
"Amount": 2.0,
"PriceTypeName": "sample string 3",
"PriceTypeId": 4,
"IsFixed": true
},
{
"Id": "633d1d30-83c0-4a92-98d3-875299e2d5e6",
"Amount": 2.0,
"PriceTypeName": "sample string 3",
"PriceTypeId": 4,
"IsFixed": true
}
],
"Provider": [
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
}
],
"ProductPhoto": [
{
"ImageId": "6c2cbf47-b47d-4fd7-861c-254feda285d6",
"OrgImage": "QEA=",
"ProductId": "3d968f98-cc03-4547-a76c-da0cd13d5f04"
},
{
"ImageId": "6c2cbf47-b47d-4fd7-861c-254feda285d6",
"OrgImage": "QEA=",
"ProductId": "3d968f98-cc03-4547-a76c-da0cd13d5f04"
}
]
},
{
"Id": "af3a4095-1a90-4e7f-8651-39dea408dd40",
"Name": "sample string 2",
"PhotoCount": 3,
"Description": "sample string 4",
"ScanCode": "sample string 5",
"State": 0,
"CreatedDate": "2026-01-01T14:21:16.3114491+02:00",
"IsRevised": true,
"IsSelected": true,
"ProductUser": [
{
"UserId": 1,
"DepartmentId": 2,
"DepartmentName": "sample string 3",
"UserName": "sample string 4",
"RoleName": "sample string 5",
"Quantity": 6
},
{
"UserId": 1,
"DepartmentId": 2,
"DepartmentName": "sample string 3",
"UserName": "sample string 4",
"RoleName": "sample string 5",
"Quantity": 6
}
],
"Price": [
{
"Id": "633d1d30-83c0-4a92-98d3-875299e2d5e6",
"Amount": 2.0,
"PriceTypeName": "sample string 3",
"PriceTypeId": 4,
"IsFixed": true
},
{
"Id": "633d1d30-83c0-4a92-98d3-875299e2d5e6",
"Amount": 2.0,
"PriceTypeName": "sample string 3",
"PriceTypeId": 4,
"IsFixed": true
}
],
"Provider": [
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
},
{
"Id": 1,
"Name": "sample string 2",
"IsSelected": true
}
],
"ProductPhoto": [
{
"ImageId": "6c2cbf47-b47d-4fd7-861c-254feda285d6",
"OrgImage": "QEA=",
"ProductId": "3d968f98-cc03-4547-a76c-da0cd13d5f04"
},
{
"ImageId": "6c2cbf47-b47d-4fd7-861c-254feda285d6",
"OrgImage": "QEA=",
"ProductId": "3d968f98-cc03-4547-a76c-da0cd13d5f04"
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRetail.Helpers">
<ProductModel>
<CreatedDate>2026-01-01T14:21:16.3114491+02:00</CreatedDate>
<Description>sample string 4</Description>
<Id>af3a4095-1a90-4e7f-8651-39dea408dd40</Id>
<IsRevised>true</IsRevised>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
<PhotoCount>3</PhotoCount>
<Price>
<PriceModel>
<Amount>2</Amount>
<Id>633d1d30-83c0-4a92-98d3-875299e2d5e6</Id>
<IsFixed>true</IsFixed>
<PriceTypeId>4</PriceTypeId>
<PriceTypeName>sample string 3</PriceTypeName>
</PriceModel>
<PriceModel>
<Amount>2</Amount>
<Id>633d1d30-83c0-4a92-98d3-875299e2d5e6</Id>
<IsFixed>true</IsFixed>
<PriceTypeId>4</PriceTypeId>
<PriceTypeName>sample string 3</PriceTypeName>
</PriceModel>
</Price>
<ProductPhoto>
<ProductPhotoModel>
<ImageId>6c2cbf47-b47d-4fd7-861c-254feda285d6</ImageId>
<OrgImage>QEA=</OrgImage>
<ProductId>3d968f98-cc03-4547-a76c-da0cd13d5f04</ProductId>
</ProductPhotoModel>
<ProductPhotoModel>
<ImageId>6c2cbf47-b47d-4fd7-861c-254feda285d6</ImageId>
<OrgImage>QEA=</OrgImage>
<ProductId>3d968f98-cc03-4547-a76c-da0cd13d5f04</ProductId>
</ProductPhotoModel>
</ProductPhoto>
<ProductUser>
<ProductUserModel>
<DepartmentId>2</DepartmentId>
<DepartmentName>sample string 3</DepartmentName>
<Quantity>6</Quantity>
<RoleName>sample string 5</RoleName>
<UserId>1</UserId>
<UserName>sample string 4</UserName>
</ProductUserModel>
<ProductUserModel>
<DepartmentId>2</DepartmentId>
<DepartmentName>sample string 3</DepartmentName>
<Quantity>6</Quantity>
<RoleName>sample string 5</RoleName>
<UserId>1</UserId>
<UserName>sample string 4</UserName>
</ProductUserModel>
</ProductUser>
<Provider>
<ProviderModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</ProviderModel>
<ProviderModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</ProviderModel>
</Provider>
<ScanCode>sample string 5</ScanCode>
<State>Available</State>
</ProductModel>
<ProductModel>
<CreatedDate>2026-01-01T14:21:16.3114491+02:00</CreatedDate>
<Description>sample string 4</Description>
<Id>af3a4095-1a90-4e7f-8651-39dea408dd40</Id>
<IsRevised>true</IsRevised>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
<PhotoCount>3</PhotoCount>
<Price>
<PriceModel>
<Amount>2</Amount>
<Id>633d1d30-83c0-4a92-98d3-875299e2d5e6</Id>
<IsFixed>true</IsFixed>
<PriceTypeId>4</PriceTypeId>
<PriceTypeName>sample string 3</PriceTypeName>
</PriceModel>
<PriceModel>
<Amount>2</Amount>
<Id>633d1d30-83c0-4a92-98d3-875299e2d5e6</Id>
<IsFixed>true</IsFixed>
<PriceTypeId>4</PriceTypeId>
<PriceTypeName>sample string 3</PriceTypeName>
</PriceModel>
</Price>
<ProductPhoto>
<ProductPhotoModel>
<ImageId>6c2cbf47-b47d-4fd7-861c-254feda285d6</ImageId>
<OrgImage>QEA=</OrgImage>
<ProductId>3d968f98-cc03-4547-a76c-da0cd13d5f04</ProductId>
</ProductPhotoModel>
<ProductPhotoModel>
<ImageId>6c2cbf47-b47d-4fd7-861c-254feda285d6</ImageId>
<OrgImage>QEA=</OrgImage>
<ProductId>3d968f98-cc03-4547-a76c-da0cd13d5f04</ProductId>
</ProductPhotoModel>
</ProductPhoto>
<ProductUser>
<ProductUserModel>
<DepartmentId>2</DepartmentId>
<DepartmentName>sample string 3</DepartmentName>
<Quantity>6</Quantity>
<RoleName>sample string 5</RoleName>
<UserId>1</UserId>
<UserName>sample string 4</UserName>
</ProductUserModel>
<ProductUserModel>
<DepartmentId>2</DepartmentId>
<DepartmentName>sample string 3</DepartmentName>
<Quantity>6</Quantity>
<RoleName>sample string 5</RoleName>
<UserId>1</UserId>
<UserName>sample string 4</UserName>
</ProductUserModel>
</ProductUser>
<Provider>
<ProviderModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</ProviderModel>
<ProviderModel>
<Id>1</Id>
<IsSelected>true</IsSelected>
<Name>sample string 2</Name>
</ProviderModel>
</Provider>
<ScanCode>sample string 5</ScanCode>
<State>Available</State>
</ProductModel>
</ArrayOfProductModel>