POST api/Order/CreateOrder

Siparis Olustur

Request Information

URI Parameters

None.

Body Parameters

CreateOrderInput
NameDescriptionTypeAdditional information
SellerId

globally unique identifier

None.

Message

string

None.

Items

Collection of CreateOrderItemInput

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SellerId": "9789f4ff-010b-48da-89a0-77d4dcf738ed",
  "Message": "sample string 2",
  "Items": [
    {
      "MenuId": 1,
      "Quantity": 2
    },
    {
      "MenuId": 1,
      "Quantity": 2
    }
  ],
  "Token": "sample string 3"
}

text/xml

Sample:
<CreateOrderInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BiCay.Services.OrderServices.Dtos">
  <Token xmlns="http://schemas.datacontract.org/2004/07/BiCay.Services.Base.Dtos">sample string 3</Token>
  <Items>
    <CreateOrderItemInput>
      <MenuId>1</MenuId>
      <Quantity>2</Quantity>
    </CreateOrderItemInput>
    <CreateOrderItemInput>
      <MenuId>1</MenuId>
      <Quantity>2</Quantity>
    </CreateOrderItemInput>
  </Items>
  <Message>sample string 2</Message>
  <SellerId>9789f4ff-010b-48da-89a0-77d4dcf738ed</SellerId>
</CreateOrderInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateOrderDto
NameDescriptionTypeAdditional information
OrderNo

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "OrderNo": 1,
  "Message": "sample string 2"
}

text/xml

Sample:
<CreateOrderDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BiCay.Services.OrderServices.Dtos">
  <Message>sample string 2</Message>
  <OrderNo>1</OrderNo>
</CreateOrderDto>