POST products
Request Information
URI Parameters
None.
Body Parameters
ProductRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| DosesForm | byte |
None. |
|
| Description | string |
None. |
|
| PharmaCompanyId | globally unique identifier |
None. |
|
| Compositions | Collection of ProductCompositionRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "db93639a-08f4-4e81-bdf6-ebcabd7525f9",
"Name": "sample string 2",
"DosesForm": 64,
"Description": "sample string 4",
"PharmaCompanyId": "49ed74ef-441d-48b9-b014-e1b608cfc50b",
"Compositions": [
{
"Id": "c2849743-3d7d-438d-a80f-a1d341e45f4a",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "1d099a3a-3e6b-44e8-bcd1-250f6d09ca69"
},
{
"Id": "c2849743-3d7d-438d-a80f-a1d341e45f4a",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "1d099a3a-3e6b-44e8-bcd1-250f6d09ca69"
}
]
}
application/xml, text/xml
Sample:
<ProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZoeLife.BusinessEntities.Requests.Medicine">
<Compositions>
<ProductCompositionRequest>
<Id>c2849743-3d7d-438d-a80f-a1d341e45f4a</Id>
<SaltID>1d099a3a-3e6b-44e8-bcd1-250f6d09ca69</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
<ProductCompositionRequest>
<Id>c2849743-3d7d-438d-a80f-a1d341e45f4a</Id>
<SaltID>1d099a3a-3e6b-44e8-bcd1-250f6d09ca69</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
</Compositions>
<Description>sample string 4</Description>
<DosesForm>64</DosesForm>
<Id>db93639a-08f4-4e81-bdf6-ebcabd7525f9</Id>
<Name>sample string 2</Name>
<PharmaCompanyId>49ed74ef-441d-48b9-b014-e1b608cfc50b</PharmaCompanyId>
</ProductRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultOfGuid| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | globally unique identifier |
None. |
|
| Messages | Collection of string |
None. |
|
| Succeeded | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": "f4dd3681-91ca-45e0-801c-a715e72279da",
"Messages": [
"sample string 1",
"sample string 2"
],
"Succeeded": true
}
application/xml, text/xml
Sample:
<ResultOfguid 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>f4dd3681-91ca-45e0-801c-a715e72279da</Data>
</ResultOfguid>