| POST | /Warehousing/SavePActionProducts |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Iud | body | string | No | |
| Prod_id | body | string | No | |
| Bcode | body | string | No | |
| Name | body | string | No | |
| StartDate | body | DateTime | No | |
| EndDate | body | DateTime | No | |
| Spend | body | bool | No | |
| ProducerId | body | string | No | |
| CategoryId | body | string | No | |
| PpcatId | body | string | No | |
| UnitId | body | int? | No | |
| Det | body | List<TfPActionProductDet> | No | |
| MobUsers | body | List<int> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| ProdId | form | string | No | |
| ProdppId | form | string | No | |
| Scount | form | decimal | No | |
| Price | form | decimal | No | |
| IsGift | form | bool | No | |
| Bcode | form | string | No | |
| ProductsName | form | string | No | |
| CategoryName | form | string | No | |
| ProducerName | form | string | No | |
| Cost | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Successs | form | bool | 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 /Warehousing/SavePActionProducts HTTP/1.1
Host: 10.10.0.107
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Iud: String,
Prod_id: String,
Bcode: String,
Name: String,
StartDate: 0001-01-01,
EndDate: 0001-01-01,
Spend: False,
ProducerId: String,
CategoryId: String,
PpcatId: String,
UnitId: 0,
Det:
[
{
Id: 0,
ProdId: String,
ProdppId: String,
Scount: 0,
Price: 0,
IsGift: False,
Bcode: String,
ProductsName: String,
CategoryName: String,
ProducerName: String,
Cost: 0
}
],
MobUsers:
[
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
}
},
Successs: False
}