POST api/order/save-order-item

Request Information

URI Parameters

None.

Body Parameters

OrderServiceParams
NameDescriptionTypeAdditional information
EmployeeCreate

integer

None.

BookingId

integer

None.

ComId

string

None.

InvoiceCode

string

None.

VAT

decimal number

None.

CustomerId

integer

None.

CustomerName

string

None.

CustomerPhone

string

None.

SelectedServices

Collection of ServiceItemObj

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeCreate": 1,
  "BookingId": 2,
  "ComId": "sample string 3",
  "InvoiceCode": "sample string 4",
  "VAT": 5.1,
  "CustomerId": 6,
  "CustomerName": "sample string 7",
  "CustomerPhone": "sample string 8",
  "SelectedServices": [
    {
      "ItemId": 1,
      "Quantity": 2,
      "ItemPrice": 3.1
    },
    {
      "ItemId": 1,
      "Quantity": 2,
      "ItemPrice": 3.1
    }
  ]
}

application/xml, text/xml

Sample:
<OrderServiceParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJPosPortal.Entities.ApiEntities">
  <BookingId>2</BookingId>
  <ComId>sample string 3</ComId>
  <CustomerId>6</CustomerId>
  <CustomerName>sample string 7</CustomerName>
  <CustomerPhone>sample string 8</CustomerPhone>
  <EmployeeCreate>1</EmployeeCreate>
  <InvoiceCode>sample string 4</InvoiceCode>
  <SelectedServices>
    <ServiceItemObj>
      <ItemId>1</ItemId>
      <ItemPrice>3.1</ItemPrice>
      <Quantity>2</Quantity>
    </ServiceItemObj>
    <ServiceItemObj>
      <ItemId>1</ItemId>
      <ItemPrice>3.1</ItemPrice>
      <Quantity>2</Quantity>
    </ServiceItemObj>
  </SelectedServices>
  <VAT>5.1</VAT>
</OrderServiceParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.