POST api/Formula
Add and update formula by passing the request object as givin sample format, If you will pass formula id then it would be considered as update request otherwise add request
Request Information
URI Parameters
None.
Body Parameters
Request object for create/update formula
DetailVM| Name | Description | Type | Additional information |
|---|---|---|---|
| orderID |
It's a formula id |
integer |
None. |
|
It's email id |
string |
None. |
|
| accessURL |
Url for access formula |
string |
None. |
| statusURL | string |
None. |
|
| provider |
provider |
SupplementalInfo |
None. |
| accession | Accession |
None. |
|
| nutrientNeeds |
Supplement need for genova |
Collection of SupplementalNeeds |
None. |
| bottleQTY |
bottle QTY |
integer |
None. |
| id |
Id is the formula id generated by system |
integer |
None. |
| name |
Formula name |
string |
None. |
| forid |
It is a formula id generated by system |
integer |
None. |
| dose |
It is a formula dose It's deprecated. |
string |
None. |
| price |
It is formula cost |
decimal number |
None. |
| basecost | decimal number |
None. |
|
| notes |
It is a notes field. |
string |
None. |
| meta |
Formula meeta |
string |
None. |
| type |
Formula type |
integer |
None. |
| supply |
Supply quantity |
integer |
Required Range: inclusive between 1 and 2147483647 |
| filleridnumber |
It is filler id number |
string |
None. |
| exactserving |
It is exact serving size |
string |
None. |
| numberofdoses |
It is number of does |
string |
None. |
| totalvolume |
It is total valume |
string |
None. |
| totalweight |
It is total weight |
string |
None. |
| supplyweight |
It is supply weight |
string |
None. |
| totalservings |
It is total serving. |
string |
None. |
| Contents |
It is formula contents list. |
Collection of ContentVM |
None. |
| protocols |
It is protocol list |
Collection of OrderProtocolVM |
None. |
| flavors | Collection of flavorsVM |
None. |
|
| locked |
It is lock property to check formula locked or unlocked |
boolean |
None. |
| IngredientPrice | boolean |
None. |
|
| uniqueformulaname |
Unique formula name If it value is false then unique condition will not work means user will able to create duplicate formula |
boolean |
None. |
| isOrderable |
It's indicate formula is orderable or not |
boolean |
None. |
| ValidateErrorMessage |
Validation error message |
string |
None. |
Request Formats
application/json, text/json
{
"bottleQTY": 0,
"name": "Combiflame",
"forid": 123,
"price": 100.12,
"basecost": 0.0,
"notes": "Packaging should be proper and item should be covered with the thermacol",
"type": 0,
"supply": 90,
"filleridnumber": "PN94203",
"exactserving": "1",
"numberofdoses": "1",
"totalvolume": "30",
"totalweight": "12.345",
"totalservings": "90",
"contents": [
{
"weight": 12.23,
"name": "aniline analgesics",
"activecomponent": "aniline",
"idnumber": "PN79809",
"unit": "mg"
},
{
"weight": 12.23,
"name": "ethanamide",
"activecomponent": "actamide",
"idnumber": "PN79889",
"unit": "mg"
}
],
"flavors": null,
"locked": true,
"isOrderable": false,
"validateErrorMessage": ""
}
application/x-www-form-urlencoded
Response Information
Resource Description
DetailVM| Name | Description | Type | Additional information |
|---|---|---|---|
| orderID |
It's a formula id |
integer |
None. |
|
It's email id |
string |
None. |
|
| accessURL |
Url for access formula |
string |
None. |
| statusURL | string |
None. |
|
| provider |
provider |
SupplementalInfo |
None. |
| accession | Accession |
None. |
|
| nutrientNeeds |
Supplement need for genova |
Collection of SupplementalNeeds |
None. |
| bottleQTY |
bottle QTY |
integer |
None. |
| id |
Id is the formula id generated by system |
integer |
None. |
| name |
Formula name |
string |
None. |
| forid |
It is a formula id generated by system |
integer |
None. |
| dose |
It is a formula dose It's deprecated. |
string |
None. |
| price |
It is formula cost |
decimal number |
None. |
| basecost | decimal number |
None. |
|
| notes |
It is a notes field. |
string |
None. |
| meta |
Formula meeta |
string |
None. |
| type |
Formula type |
integer |
None. |
| supply |
Supply quantity |
integer |
Required Range: inclusive between 1 and 2147483647 |
| filleridnumber |
It is filler id number |
string |
None. |
| exactserving |
It is exact serving size |
string |
None. |
| numberofdoses |
It is number of does |
string |
None. |
| totalvolume |
It is total valume |
string |
None. |
| totalweight |
It is total weight |
string |
None. |
| supplyweight |
It is supply weight |
string |
None. |
| totalservings |
It is total serving. |
string |
None. |
| Contents |
It is formula contents list. |
Collection of ContentVM |
None. |
| protocols |
It is protocol list |
Collection of OrderProtocolVM |
None. |
| flavors | Collection of flavorsVM |
None. |
|
| locked |
It is lock property to check formula locked or unlocked |
boolean |
None. |
| IngredientPrice | boolean |
None. |
|
| uniqueformulaname |
Unique formula name If it value is false then unique condition will not work means user will able to create duplicate formula |
boolean |
None. |
| isOrderable |
It's indicate formula is orderable or not |
boolean |
None. |
| ValidateErrorMessage |
Validation error message |
string |
None. |
Response Formats
application/json, text/json
{
"bottleQTY": 0,
"name": "Combiflame",
"forid": 123,
"price": 100.12,
"basecost": 0.0,
"notes": "Packaging should be proper and item should be covered with the thermacol",
"type": 0,
"supply": 90,
"filleridnumber": "PN94203",
"exactserving": "1",
"numberofdoses": "1",
"totalvolume": "30",
"totalweight": "12.345",
"totalservings": "90",
"contents": [
{
"weight": 12.23,
"name": "aniline analgesics",
"activecomponent": "aniline",
"idnumber": "PN79809",
"unit": "mg"
},
{
"weight": 12.23,
"name": "ethanamide",
"activecomponent": "actamide",
"idnumber": "PN79889",
"unit": "mg"
}
],
"flavors": null,
"locked": true,
"isOrderable": false,
"validateErrorMessage": ""
}