POST api/Cart/SaveCartAtSuspend

Request Information

URI Parameters

None.

Body Parameters

CartEntities
NameDescriptionTypeAdditional information
CartId

integer

None.

CartNo

string

None.

date

date

None.

Contact

string

None.

CustomerName

string

None.

CustomerId

integer

None.

Total

decimal number

None.

TaxAmount

decimal number

None.

Discount

decimal number

None.

GrandTotal

decimal number

None.

cartDetails

Collection of CartDetailsEntities

None.

Request Formats

application/json, text/json

Sample:
{
  "CartId": 1,
  "CartNo": "sample string 2",
  "date": "2021-09-26T22:43:36.2142891+05:30",
  "Contact": "sample string 4",
  "CustomerName": "sample string 5",
  "CustomerId": 6,
  "Total": 7.0,
  "TaxAmount": 8.0,
  "Discount": 9.0,
  "GrandTotal": 10.0,
  "cartDetails": [
    {
      "CartDetId": 1,
      "ProductId": 2,
      "ProductName": "sample string 3",
      "SizeId": 4,
      "Rate": 5.0,
      "Qty": "sample string 6",
      "Total": 7.0,
      "TaxId": 8,
      "TaxAmount": 9.0,
      "Discount": 10.0,
      "GrandTotal": 11.0
    },
    {
      "CartDetId": 1,
      "ProductId": 2,
      "ProductName": "sample string 3",
      "SizeId": 4,
      "Rate": 5.0,
      "Qty": "sample string 6",
      "Total": 7.0,
      "TaxId": 8,
      "TaxAmount": 9.0,
      "Discount": 10.0,
      "GrandTotal": 11.0
    }
  ]
}

text/html

Sample:
{"CartId":1,"CartNo":"sample string 2","date":"2021-09-26T22:43:36.2142891+05:30","Contact":"sample string 4","CustomerName":"sample string 5","CustomerId":6,"Total":7.0,"TaxAmount":8.0,"Discount":9.0,"GrandTotal":10.0,"cartDetails":[{"CartDetId":1,"ProductId":2,"ProductName":"sample string 3","SizeId":4,"Rate":5.0,"Qty":"sample string 6","Total":7.0,"TaxId":8,"TaxAmount":9.0,"Discount":10.0,"GrandTotal":11.0},{"CartDetId":1,"ProductId":2,"ProductName":"sample string 3","SizeId":4,"Rate":5.0,"Qty":"sample string 6","Total":7.0,"TaxId":8,"TaxAmount":9.0,"Discount":10.0,"GrandTotal":11.0}]}

application/xml, text/xml

Sample:
<CartEntities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Meridukan_API.Entities.Cart">
  <CartId>1</CartId>
  <CartNo>sample string 2</CartNo>
  <Contact>sample string 4</Contact>
  <CustomerId>6</CustomerId>
  <CustomerName>sample string 5</CustomerName>
  <Discount>9</Discount>
  <GrandTotal>10</GrandTotal>
  <TaxAmount>8</TaxAmount>
  <Total>7</Total>
  <cartDetails>
    <CartDetailsEntities>
      <CartDetId>1</CartDetId>
      <Discount>10</Discount>
      <GrandTotal>11</GrandTotal>
      <ProductId>2</ProductId>
      <ProductName>sample string 3</ProductName>
      <Qty>sample string 6</Qty>
      <Rate>5</Rate>
      <SizeId>4</SizeId>
      <TaxAmount>9</TaxAmount>
      <TaxId>8</TaxId>
      <Total>7</Total>
    </CartDetailsEntities>
    <CartDetailsEntities>
      <CartDetId>1</CartDetId>
      <Discount>10</Discount>
      <GrandTotal>11</GrandTotal>
      <ProductId>2</ProductId>
      <ProductName>sample string 3</ProductName>
      <Qty>sample string 6</Qty>
      <Rate>5</Rate>
      <SizeId>4</SizeId>
      <TaxAmount>9</TaxAmount>
      <TaxId>8</TaxId>
      <Total>7</Total>
    </CartDetailsEntities>
  </cartDetails>
  <date>2021-09-26T22:43:36.2142891+05:30</date>
</CartEntities>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.