GET products/by-company?companyId={companyId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
ResultOfIEnumerableOfProductResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of ProductResponse |
None. |
|
| Messages | Collection of string |
None. |
|
| Succeeded | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": [
{
"ID": "85b8ba0e-ab06-48cc-a7da-b10d1105979f",
"Name": "sample string 2",
"DosesForm": 64,
"DosesFormName": "sample string 4",
"Description": "sample string 5",
"PharmaCompanyId": "bb66a378-6186-4253-8c4a-9f77c8c3b4c6",
"Compositions": [
{
"ID": "dab319cc-a406-4b55-bd4a-91f676f90c41",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "2feb434f-42ea-4ad2-85bf-7d588db5a1b1",
"SaltName": "sample string 7"
},
{
"ID": "dab319cc-a406-4b55-bd4a-91f676f90c41",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "2feb434f-42ea-4ad2-85bf-7d588db5a1b1",
"SaltName": "sample string 7"
}
]
},
{
"ID": "85b8ba0e-ab06-48cc-a7da-b10d1105979f",
"Name": "sample string 2",
"DosesForm": 64,
"DosesFormName": "sample string 4",
"Description": "sample string 5",
"PharmaCompanyId": "bb66a378-6186-4253-8c4a-9f77c8c3b4c6",
"Compositions": [
{
"ID": "dab319cc-a406-4b55-bd4a-91f676f90c41",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "2feb434f-42ea-4ad2-85bf-7d588db5a1b1",
"SaltName": "sample string 7"
},
{
"ID": "dab319cc-a406-4b55-bd4a-91f676f90c41",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "2feb434f-42ea-4ad2-85bf-7d588db5a1b1",
"SaltName": "sample string 7"
}
]
}
],
"Messages": [
"sample string 1",
"sample string 2"
],
"Succeeded": true
}
application/xml, text/xml
Sample:
<ResultOfArrayOfProductResponseKc8EBiTH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZoeLife.Shared.Wrapper">
<Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Messages>
<Succeeded>true</Succeeded>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/ZoeLife.BusinessEntities.Responses.Medicine">
<d2p1:ProductResponse>
<d2p1:Compositions>
<d2p1:ProductCompositionResponse>
<d2p1:ID>dab319cc-a406-4b55-bd4a-91f676f90c41</d2p1:ID>
<d2p1:SaltID>2feb434f-42ea-4ad2-85bf-7d588db5a1b1</d2p1:SaltID>
<d2p1:SaltName>sample string 7</d2p1:SaltName>
<d2p1:SaltQty>3.1</d2p1:SaltQty>
<d2p1:SaltQtyUom>64</d2p1:SaltQtyUom>
<d2p1:SaltQtyUomName>sample string 5</d2p1:SaltQtyUomName>
<d2p1:SeqNo>2</d2p1:SeqNo>
</d2p1:ProductCompositionResponse>
<d2p1:ProductCompositionResponse>
<d2p1:ID>dab319cc-a406-4b55-bd4a-91f676f90c41</d2p1:ID>
<d2p1:SaltID>2feb434f-42ea-4ad2-85bf-7d588db5a1b1</d2p1:SaltID>
<d2p1:SaltName>sample string 7</d2p1:SaltName>
<d2p1:SaltQty>3.1</d2p1:SaltQty>
<d2p1:SaltQtyUom>64</d2p1:SaltQtyUom>
<d2p1:SaltQtyUomName>sample string 5</d2p1:SaltQtyUomName>
<d2p1:SeqNo>2</d2p1:SeqNo>
</d2p1:ProductCompositionResponse>
</d2p1:Compositions>
<d2p1:Description>sample string 5</d2p1:Description>
<d2p1:DosesForm>64</d2p1:DosesForm>
<d2p1:DosesFormName>sample string 4</d2p1:DosesFormName>
<d2p1:ID>85b8ba0e-ab06-48cc-a7da-b10d1105979f</d2p1:ID>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:PharmaCompanyId>bb66a378-6186-4253-8c4a-9f77c8c3b4c6</d2p1:PharmaCompanyId>
</d2p1:ProductResponse>
<d2p1:ProductResponse>
<d2p1:Compositions>
<d2p1:ProductCompositionResponse>
<d2p1:ID>dab319cc-a406-4b55-bd4a-91f676f90c41</d2p1:ID>
<d2p1:SaltID>2feb434f-42ea-4ad2-85bf-7d588db5a1b1</d2p1:SaltID>
<d2p1:SaltName>sample string 7</d2p1:SaltName>
<d2p1:SaltQty>3.1</d2p1:SaltQty>
<d2p1:SaltQtyUom>64</d2p1:SaltQtyUom>
<d2p1:SaltQtyUomName>sample string 5</d2p1:SaltQtyUomName>
<d2p1:SeqNo>2</d2p1:SeqNo>
</d2p1:ProductCompositionResponse>
<d2p1:ProductCompositionResponse>
<d2p1:ID>dab319cc-a406-4b55-bd4a-91f676f90c41</d2p1:ID>
<d2p1:SaltID>2feb434f-42ea-4ad2-85bf-7d588db5a1b1</d2p1:SaltID>
<d2p1:SaltName>sample string 7</d2p1:SaltName>
<d2p1:SaltQty>3.1</d2p1:SaltQty>
<d2p1:SaltQtyUom>64</d2p1:SaltQtyUom>
<d2p1:SaltQtyUomName>sample string 5</d2p1:SaltQtyUomName>
<d2p1:SeqNo>2</d2p1:SeqNo>
</d2p1:ProductCompositionResponse>
</d2p1:Compositions>
<d2p1:Description>sample string 5</d2p1:Description>
<d2p1:DosesForm>64</d2p1:DosesForm>
<d2p1:DosesFormName>sample string 4</d2p1:DosesFormName>
<d2p1:ID>85b8ba0e-ab06-48cc-a7da-b10d1105979f</d2p1:ID>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:PharmaCompanyId>bb66a378-6186-4253-8c4a-9f77c8c3b4c6</d2p1:PharmaCompanyId>
</d2p1:ProductResponse>
</Data>
</ResultOfArrayOfProductResponseKc8EBiTH>