POST api/checkout/create

Request Information

URI Parameters

None.

Body Parameters

CheckoutCreateDto
NameDescriptionTypeAdditional information
BusinessID

integer

None.

BranchID

integer

None.

OrderType

string

None.

PaymentMethod

string

None.

CustomerName

string

None.

CustomerPhone

string

None.

CustomerEmail

string

None.

CustomerAddress

string

None.

Items

Collection of CheckoutItemDto

None.

Request Formats

application/json, text/json

Sample:
{
  "BusinessID": 1,
  "BranchID": 2,
  "OrderType": "sample string 3",
  "PaymentMethod": "sample string 4",
  "CustomerName": "sample string 5",
  "CustomerPhone": "sample string 6",
  "CustomerEmail": "sample string 7",
  "CustomerAddress": "sample string 8",
  "Items": [
    {
      "ProductID": 1,
      "Quantity": 2.0,
      "Notes": "sample string 3",
      "Extras": [
        {
          "ExtraID": 1,
          "Name": "sample string 2",
          "Price": 3.0
        },
        {
          "ExtraID": 1,
          "Name": "sample string 2",
          "Price": 3.0
        }
      ]
    },
    {
      "ProductID": 1,
      "Quantity": 2.0,
      "Notes": "sample string 3",
      "Extras": [
        {
          "ExtraID": 1,
          "Name": "sample string 2",
          "Price": 3.0
        },
        {
          "ExtraID": 1,
          "Name": "sample string 2",
          "Price": 3.0
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<CheckoutCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <BranchID>2</BranchID>
  <BusinessID>1</BusinessID>
  <CustomerAddress>sample string 8</CustomerAddress>
  <CustomerEmail>sample string 7</CustomerEmail>
  <CustomerName>sample string 5</CustomerName>
  <CustomerPhone>sample string 6</CustomerPhone>
  <Items>
    <CheckoutItemDto>
      <Extras>
        <CheckoutExtraDto>
          <ExtraID>1</ExtraID>
          <Name>sample string 2</Name>
          <Price>3</Price>
        </CheckoutExtraDto>
        <CheckoutExtraDto>
          <ExtraID>1</ExtraID>
          <Name>sample string 2</Name>
          <Price>3</Price>
        </CheckoutExtraDto>
      </Extras>
      <Notes>sample string 3</Notes>
      <ProductID>1</ProductID>
      <Quantity>2</Quantity>
    </CheckoutItemDto>
    <CheckoutItemDto>
      <Extras>
        <CheckoutExtraDto>
          <ExtraID>1</ExtraID>
          <Name>sample string 2</Name>
          <Price>3</Price>
        </CheckoutExtraDto>
        <CheckoutExtraDto>
          <ExtraID>1</ExtraID>
          <Name>sample string 2</Name>
          <Price>3</Price>
        </CheckoutExtraDto>
      </Extras>
      <Notes>sample string 3</Notes>
      <ProductID>1</ProductID>
      <Quantity>2</Quantity>
    </CheckoutItemDto>
  </Items>
  <OrderType>sample string 3</OrderType>
  <PaymentMethod>sample string 4</PaymentMethod>
</CheckoutCreateDto>

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.