| POST | /Manufacturing/Recipes/SaveProdRecipe |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Recipe | body | ProdRecipeWithDetails | No | |
| iud | body | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Recipe | form | ProdRecipe | No | |
| MaterialList | form | List<ProdRecipeMaterial> | No | |
| ResultList | form | List<ProdRecipeResult> | No | |
| CheckList | form | List<ProdRecipeCheck> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| recipe_id | form | int? | No | |
| recipe_type | form | int | No | |
| prodpp_id | form | string | No | |
| cost_split_type | form | int | No | |
| spend | form | bool | No | |
| bcode | form | string | No | |
| products_nu | form | string | No | |
| category_id | form | string | No | |
| category_nu | form | string | No | |
| packcount | form | int | No | |
| packbcount | form | decimal | No | |
| unit | form | string | No | |
| recipe_name | form | string | No | |
| IsMain | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| material_id | form | int | No | |
| recipe_id | form | int | No | |
| prodpp_id | form | string | No | |
| mcount | form | decimal | No | |
| sub_recipe_id | form | int | No | |
| priority | form | int | No | |
| location_id | form | int | No | |
| bcode | form | string | No | |
| products_nu | form | string | No | |
| category_id | form | string | No | |
| category_nu | form | string | No | |
| packcount | form | int | No | |
| packbcount | form | decimal | No | |
| unit | form | string | No | |
| location_name | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| result_id | form | int | No | |
| recipe_id | form | int | No | |
| prodpp_id | form | string | No | |
| icount | form | decimal | No | |
| cost_k | form | decimal | No | |
| bcode | form | string | No | |
| products_nu | form | string | No | |
| category_id | form | string | No | |
| category_nu | form | string | No | |
| packcount | form | int | No | |
| packbcount | form | decimal | No | |
| unit | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| id | form | int | No | |
| recipe_id | form | int | No | |
| prodpp_id | form | string | No | |
| check_id | form | int | No | |
| bcode | form | string | No | |
| products_nu | form | string | No | |
| category_id | form | string | No | |
| category_nu | form | string | No | |
| packcount | form | int | No | |
| packbcount | form | decimal | No | |
| unit | form | string | No | |
| ex_data | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| RecipeId | form | int? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Manufacturing/Recipes/SaveProdRecipe HTTP/1.1
Host: 10.10.0.107
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Recipe:
{
Recipe:
{
recipe_id: 0,
recipe_type: 0,
prodpp_id: String,
cost_split_type: 0,
spend: False,
bcode: String,
products_nu: String,
category_id: String,
category_nu: String,
packcount: 0,
packbcount: 0,
unit: String,
recipe_name: String,
IsMain: False
},
MaterialList:
[
{
material_id: 0,
recipe_id: 0,
prodpp_id: String,
mcount: 0,
sub_recipe_id: 0,
priority: 0,
location_id: 0,
bcode: String,
products_nu: String,
category_id: String,
category_nu: String,
packcount: 0,
packbcount: 0,
unit: String,
location_name: String
}
],
ResultList:
[
{
result_id: 0,
recipe_id: 0,
prodpp_id: String,
icount: 0,
cost_k: 0,
bcode: String,
products_nu: String,
category_id: String,
category_nu: String,
packcount: 0,
packbcount: 0,
unit: String
}
],
CheckList:
[
{
id: 0,
recipe_id: 0,
prodpp_id: String,
check_id: 0,
bcode: String,
products_nu: String,
category_id: String,
category_nu: String,
packcount: 0,
packbcount: 0,
unit: String,
ex_data: String
}
]
},
iud: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
RecipeId: 0
}