POST api/Cart/Add2Cart

Request Information

URI Parameters

None.

Body Parameters

CartOrders
NameDescriptionTypeAdditional information
UserId

integer

None.

UserType

string

None.

orders

Collection of Orders

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "UserType": "sample string 2",
  "orders": [
    {
      "OrderId": 1,
      "UniqueId": "sample string 2",
      "TransactionId": "sample string 3",
      "PlanId": 4,
      "PlanName": "sample string 5",
      "PlanDesc": "sample string 6",
      "PlanDuration": 7,
      "Amount": 8.0,
      "Disc": 9.0,
      "Total": 10.0,
      "Status": "sample string 11",
      "ServiceType": "sample string 12",
      "ServiceId": 13,
      "UserId": 14,
      "UserType": "sample string 15",
      "UserAddress": "sample string 16",
      "DoctorId": 17,
      "DoctorName": "sample string 18",
      "RowDt": "2026-04-25T11:19:54.6255156+00:00",
      "ZipCode": "sample string 20",
      "City": "sample string 21",
      "State": "sample string 22",
      "Country": "sample string 23",
      "offer_type": "sample string 24",
      "offer_code": "sample string 25",
      "discount_value": 26.0,
      "amount_CCA": 27.0,
      "orderDetails": [
        {
          "OrdDetailId": 1,
          "OrderId": 2,
          "PlanId": 3,
          "ProductName": "sample string 4",
          "ProductDesc": "sample string 5",
          "ItemId": 6,
          "Tariff": 7.0,
          "CGST": 8.0,
          "SGST": 9.0,
          "IGST": 10.0,
          "Disc1": 11.0,
          "Disc2": 12.0,
          "Disc3": 13.0,
          "Disc4": 14.0,
          "Amount": 15.0,
          "Status": "sample string 16",
          "RowDt": "2026-04-25T11:19:54.6255156+00:00"
        },
        {
          "OrdDetailId": 1,
          "OrderId": 2,
          "PlanId": 3,
          "ProductName": "sample string 4",
          "ProductDesc": "sample string 5",
          "ItemId": 6,
          "Tariff": 7.0,
          "CGST": 8.0,
          "SGST": 9.0,
          "IGST": 10.0,
          "Disc1": 11.0,
          "Disc2": 12.0,
          "Disc3": 13.0,
          "Disc4": 14.0,
          "Amount": 15.0,
          "Status": "sample string 16",
          "RowDt": "2026-04-25T11:19:54.6255156+00:00"
        }
      ]
    },
    {
      "OrderId": 1,
      "UniqueId": "sample string 2",
      "TransactionId": "sample string 3",
      "PlanId": 4,
      "PlanName": "sample string 5",
      "PlanDesc": "sample string 6",
      "PlanDuration": 7,
      "Amount": 8.0,
      "Disc": 9.0,
      "Total": 10.0,
      "Status": "sample string 11",
      "ServiceType": "sample string 12",
      "ServiceId": 13,
      "UserId": 14,
      "UserType": "sample string 15",
      "UserAddress": "sample string 16",
      "DoctorId": 17,
      "DoctorName": "sample string 18",
      "RowDt": "2026-04-25T11:19:54.6255156+00:00",
      "ZipCode": "sample string 20",
      "City": "sample string 21",
      "State": "sample string 22",
      "Country": "sample string 23",
      "offer_type": "sample string 24",
      "offer_code": "sample string 25",
      "discount_value": 26.0,
      "amount_CCA": 27.0,
      "orderDetails": [
        {
          "OrdDetailId": 1,
          "OrderId": 2,
          "PlanId": 3,
          "ProductName": "sample string 4",
          "ProductDesc": "sample string 5",
          "ItemId": 6,
          "Tariff": 7.0,
          "CGST": 8.0,
          "SGST": 9.0,
          "IGST": 10.0,
          "Disc1": 11.0,
          "Disc2": 12.0,
          "Disc3": 13.0,
          "Disc4": 14.0,
          "Amount": 15.0,
          "Status": "sample string 16",
          "RowDt": "2026-04-25T11:19:54.6255156+00:00"
        },
        {
          "OrdDetailId": 1,
          "OrderId": 2,
          "PlanId": 3,
          "ProductName": "sample string 4",
          "ProductDesc": "sample string 5",
          "ItemId": 6,
          "Tariff": 7.0,
          "CGST": 8.0,
          "SGST": 9.0,
          "IGST": 10.0,
          "Disc1": 11.0,
          "Disc2": 12.0,
          "Disc3": 13.0,
          "Disc4": 14.0,
          "Amount": 15.0,
          "Status": "sample string 16",
          "RowDt": "2026-04-25T11:19:54.6255156+00:00"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<CartOrders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EVERMVCAPIs.Models">
  <UserId>1</UserId>
  <UserType>sample string 2</UserType>
  <orders>
    <Orders>
      <Amount>8</Amount>
      <City>sample string 21</City>
      <Country>sample string 23</Country>
      <Disc>9</Disc>
      <DoctorId>17</DoctorId>
      <DoctorName>sample string 18</DoctorName>
      <OrderId>1</OrderId>
      <PlanDesc>sample string 6</PlanDesc>
      <PlanDuration>7</PlanDuration>
      <PlanId>4</PlanId>
      <PlanName>sample string 5</PlanName>
      <RowDt>2026-04-25T11:19:54.6255156+00:00</RowDt>
      <ServiceId>13</ServiceId>
      <ServiceType>sample string 12</ServiceType>
      <State>sample string 22</State>
      <Status>sample string 11</Status>
      <Total>10</Total>
      <TransactionId>sample string 3</TransactionId>
      <UniqueId>sample string 2</UniqueId>
      <UserAddress>sample string 16</UserAddress>
      <UserId>14</UserId>
      <UserType>sample string 15</UserType>
      <ZipCode>sample string 20</ZipCode>
      <amount_CCA>27</amount_CCA>
      <discount_value>26</discount_value>
      <offer_code>sample string 25</offer_code>
      <offer_type>sample string 24</offer_type>
      <orderDetails>
        <OrderDetails>
          <Amount>15</Amount>
          <CGST>8</CGST>
          <Disc1>11</Disc1>
          <Disc2>12</Disc2>
          <Disc3>13</Disc3>
          <Disc4>14</Disc4>
          <IGST>10</IGST>
          <ItemId>6</ItemId>
          <OrdDetailId>1</OrdDetailId>
          <OrderId>2</OrderId>
          <PlanId>3</PlanId>
          <ProductDesc>sample string 5</ProductDesc>
          <ProductName>sample string 4</ProductName>
          <RowDt>2026-04-25T11:19:54.6255156+00:00</RowDt>
          <SGST>9</SGST>
          <Status>sample string 16</Status>
          <Tariff>7</Tariff>
        </OrderDetails>
        <OrderDetails>
          <Amount>15</Amount>
          <CGST>8</CGST>
          <Disc1>11</Disc1>
          <Disc2>12</Disc2>
          <Disc3>13</Disc3>
          <Disc4>14</Disc4>
          <IGST>10</IGST>
          <ItemId>6</ItemId>
          <OrdDetailId>1</OrdDetailId>
          <OrderId>2</OrderId>
          <PlanId>3</PlanId>
          <ProductDesc>sample string 5</ProductDesc>
          <ProductName>sample string 4</ProductName>
          <RowDt>2026-04-25T11:19:54.6255156+00:00</RowDt>
          <SGST>9</SGST>
          <Status>sample string 16</Status>
          <Tariff>7</Tariff>
        </OrderDetails>
      </orderDetails>
    </Orders>
    <Orders>
      <Amount>8</Amount>
      <City>sample string 21</City>
      <Country>sample string 23</Country>
      <Disc>9</Disc>
      <DoctorId>17</DoctorId>
      <DoctorName>sample string 18</DoctorName>
      <OrderId>1</OrderId>
      <PlanDesc>sample string 6</PlanDesc>
      <PlanDuration>7</PlanDuration>
      <PlanId>4</PlanId>
      <PlanName>sample string 5</PlanName>
      <RowDt>2026-04-25T11:19:54.6255156+00:00</RowDt>
      <ServiceId>13</ServiceId>
      <ServiceType>sample string 12</ServiceType>
      <State>sample string 22</State>
      <Status>sample string 11</Status>
      <Total>10</Total>
      <TransactionId>sample string 3</TransactionId>
      <UniqueId>sample string 2</UniqueId>
      <UserAddress>sample string 16</UserAddress>
      <UserId>14</UserId>
      <UserType>sample string 15</UserType>
      <ZipCode>sample string 20</ZipCode>
      <amount_CCA>27</amount_CCA>
      <discount_value>26</discount_value>
      <offer_code>sample string 25</offer_code>
      <offer_type>sample string 24</offer_type>
      <orderDetails>
        <OrderDetails>
          <Amount>15</Amount>
          <CGST>8</CGST>
          <Disc1>11</Disc1>
          <Disc2>12</Disc2>
          <Disc3>13</Disc3>
          <Disc4>14</Disc4>
          <IGST>10</IGST>
          <ItemId>6</ItemId>
          <OrdDetailId>1</OrdDetailId>
          <OrderId>2</OrderId>
          <PlanId>3</PlanId>
          <ProductDesc>sample string 5</ProductDesc>
          <ProductName>sample string 4</ProductName>
          <RowDt>2026-04-25T11:19:54.6255156+00:00</RowDt>
          <SGST>9</SGST>
          <Status>sample string 16</Status>
          <Tariff>7</Tariff>
        </OrderDetails>
        <OrderDetails>
          <Amount>15</Amount>
          <CGST>8</CGST>
          <Disc1>11</Disc1>
          <Disc2>12</Disc2>
          <Disc3>13</Disc3>
          <Disc4>14</Disc4>
          <IGST>10</IGST>
          <ItemId>6</ItemId>
          <OrdDetailId>1</OrdDetailId>
          <OrderId>2</OrderId>
          <PlanId>3</PlanId>
          <ProductDesc>sample string 5</ProductDesc>
          <ProductName>sample string 4</ProductName>
          <RowDt>2026-04-25T11:19:54.6255156+00:00</RowDt>
          <SGST>9</SGST>
          <Status>sample string 16</Status>
          <Tariff>7</Tariff>
        </OrderDetails>
      </orderDetails>
    </Orders>
  </orders>
</CartOrders>

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 'CartOrders'.

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.