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": "849d598e-23cc-49f6-957c-d452293847ee",
"Name": "sample string 2",
"DosesForm": 64,
"DosesFormName": "sample string 4",
"Description": "sample string 5",
"PharmaCompanyId": "7086f3b8-0d75-4ea7-abb9-c031f521701d",
"Compositions": [
{
"ID": "c9f7c1c2-8fa6-451a-a950-a2987feefc75",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "7837b710-167d-459d-9a04-063b4d6e806b",
"SaltName": "sample string 7"
},
{
"ID": "c9f7c1c2-8fa6-451a-a950-a2987feefc75",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "7837b710-167d-459d-9a04-063b4d6e806b",
"SaltName": "sample string 7"
}
]
},
{
"ID": "849d598e-23cc-49f6-957c-d452293847ee",
"Name": "sample string 2",
"DosesForm": 64,
"DosesFormName": "sample string 4",
"Description": "sample string 5",
"PharmaCompanyId": "7086f3b8-0d75-4ea7-abb9-c031f521701d",
"Compositions": [
{
"ID": "c9f7c1c2-8fa6-451a-a950-a2987feefc75",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "7837b710-167d-459d-9a04-063b4d6e806b",
"SaltName": "sample string 7"
},
{
"ID": "c9f7c1c2-8fa6-451a-a950-a2987feefc75",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltQtyUomName": "sample string 5",
"SaltID": "7837b710-167d-459d-9a04-063b4d6e806b",
"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>c9f7c1c2-8fa6-451a-a950-a2987feefc75</d2p1:ID>
<d2p1:SaltID>7837b710-167d-459d-9a04-063b4d6e806b</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>c9f7c1c2-8fa6-451a-a950-a2987feefc75</d2p1:ID>
<d2p1:SaltID>7837b710-167d-459d-9a04-063b4d6e806b</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>849d598e-23cc-49f6-957c-d452293847ee</d2p1:ID>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:PharmaCompanyId>7086f3b8-0d75-4ea7-abb9-c031f521701d</d2p1:PharmaCompanyId>
</d2p1:ProductResponse>
<d2p1:ProductResponse>
<d2p1:Compositions>
<d2p1:ProductCompositionResponse>
<d2p1:ID>c9f7c1c2-8fa6-451a-a950-a2987feefc75</d2p1:ID>
<d2p1:SaltID>7837b710-167d-459d-9a04-063b4d6e806b</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>c9f7c1c2-8fa6-451a-a950-a2987feefc75</d2p1:ID>
<d2p1:SaltID>7837b710-167d-459d-9a04-063b4d6e806b</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>849d598e-23cc-49f6-957c-d452293847ee</d2p1:ID>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:PharmaCompanyId>7086f3b8-0d75-4ea7-abb9-c031f521701d</d2p1:PharmaCompanyId>
</d2p1:ProductResponse>
</Data>
</ResultOfArrayOfProductResponseKc8EBiTH>