POST api/MobileOrdering/CreateOrderLines

Request Information

URI Parameters

None.

Body Parameters

Collection of MobileOrderLineModel
NameDescriptionTypeAdditional 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": "d7cf93bb-a319-4caf-af77-112f44bf7ed9",
    "_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>d7cf93bb-a319-4caf-af77-112f44bf7ed9</_SyncGuid>
  </MobileOrderLineModel>
</ArrayOfMobileOrderLineModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

MobileReturnResponseOfListOfMobileOrderLineModel
NameDescriptionTypeAdditional 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": "63ac9c63-464c-44d3-a47e-9e1c9366bbb1",
      "_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>63ac9c63-464c-44d3-a47e-9e1c9366bbb1</_SyncGuid>
    </MobileOrderLineModel>
  </_Data>
  <_Response>
    <_ErrorMessage>sample string 2</_ErrorMessage>
    <_Result>true</_Result>
    <_ShowDialog>true</_ShowDialog>
  </_Response>
</MobileReturnResponseOfArrayOfMobileOrderLineModel2_PY0mizd>