POST api/MobileOrdering/CreateOrderLines
Request Information
URI Parameters
None.
Body Parameters
Collection of MobileOrderLineModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderId | integer |
None. |
|
| ProductId | integer |
None. |
|
| FacilityId | integer |
None. |
|
| PalletTypeId | integer |
None. |
|
| Quantity | decimal number |
None. |
|
| Price | decimal number |
None. |
|
| Comment | string |
None. |
|
| SyncGuid | globally unique identifier |
None. |
|
| DespatchedQuantity | decimal number |
None. |
|
| AppUserId | integer |
None. |
|
| Id | integer |
None. |
|
| OldId | integer |
None. |
|
| ConcurTimeStamp | Collection of byte |
None. |
|
| RowVersion | Object |
None. |
|
| RowVersionNumeric | integer |
None. |
|
| DeletedDate | date |
None. |
|
| ValidationErrors | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
[
null,
{
"_OrderId": 1,
"_ProductId": 2,
"_FacilityId": 3,
"_PalletTypeId": 4,
"_Quantity": 5.0,
"_Price": 6.0,
"_Comment": "sample string 7",
"_SyncGuid": "384db644-2dae-41c0-818c-98aa1dc970d3",
"_DespatchedQuantity": 9.0,
"_AppUserId": 10,
"_Id": 11,
"_OldId": 12,
"_ConcurTimeStamp": "QEA=",
"_RowVersionNumeric": null,
"_DeletedDate": "2099-12-31T00:00:00",
"_ValidationErrors": []
}
]
application/xml, text/xml
Sample:
<ArrayOfMobileOrderLineModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshPackMultiProduce.BusinessObjects">
<MobileOrderLineModel i:nil="true" />
<MobileOrderLineModel>
<_ConcurTimeStamp>QEA=</_ConcurTimeStamp>
<_DeletedDate>2099-12-31T00:00:00</_DeletedDate>
<_Id>11</_Id>
<_OldId>12</_OldId>
<_RowVersionNumeric i:nil="true" />
<_ValidationErrors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<_AppUserId>10</_AppUserId>
<_Comment>sample string 7</_Comment>
<_DespatchedQuantity>9</_DespatchedQuantity>
<_FacilityId>3</_FacilityId>
<_OrderId>1</_OrderId>
<_PalletTypeId>4</_PalletTypeId>
<_Price>6</_Price>
<_ProductId>2</_ProductId>
<_Quantity>5</_Quantity>
<_SyncGuid>384db644-2dae-41c0-818c-98aa1dc970d3</_SyncGuid>
</MobileOrderLineModel>
</ArrayOfMobileOrderLineModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MobileReturnResponseOfListOfMobileOrderLineModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Response | MobileResponseModel |
None. |
|
| Data | Collection of MobileOrderLineModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"_Response": {
"_Result": true,
"_ErrorMessage": "sample string 2",
"_ShowDialog": true
},
"_Data": [
null,
{
"_OrderId": 1,
"_ProductId": 2,
"_FacilityId": 3,
"_PalletTypeId": 4,
"_Quantity": 5.0,
"_Price": 6.0,
"_Comment": "sample string 7",
"_SyncGuid": "86857791-6fc3-4634-9b82-47613d47d56d",
"_DespatchedQuantity": 9.0,
"_AppUserId": 10,
"_Id": 11,
"_OldId": 12,
"_ConcurTimeStamp": "QEA=",
"_RowVersionNumeric": null,
"_DeletedDate": "2099-12-31T00:00:00",
"_ValidationErrors": []
}
]
}
application/xml, text/xml
Sample:
<MobileReturnResponseOfArrayOfMobileOrderLineModel2_PY0mizd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshPackMultiProduce.BusinessObjects">
<_Data>
<MobileOrderLineModel i:nil="true" />
<MobileOrderLineModel>
<_ConcurTimeStamp>QEA=</_ConcurTimeStamp>
<_DeletedDate>2099-12-31T00:00:00</_DeletedDate>
<_Id>11</_Id>
<_OldId>12</_OldId>
<_RowVersionNumeric i:nil="true" />
<_ValidationErrors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<_AppUserId>10</_AppUserId>
<_Comment>sample string 7</_Comment>
<_DespatchedQuantity>9</_DespatchedQuantity>
<_FacilityId>3</_FacilityId>
<_OrderId>1</_OrderId>
<_PalletTypeId>4</_PalletTypeId>
<_Price>6</_Price>
<_ProductId>2</_ProductId>
<_Quantity>5</_Quantity>
<_SyncGuid>86857791-6fc3-4634-9b82-47613d47d56d</_SyncGuid>
</MobileOrderLineModel>
</_Data>
<_Response>
<_ErrorMessage>sample string 2</_ErrorMessage>
<_Result>true</_Result>
<_ShowDialog>true</_ShowDialog>
</_Response>
</MobileReturnResponseOfArrayOfMobileOrderLineModel2_PY0mizd>