POST api/TotalAyushCare/GetOrderDetailsByOrderId

Documentation for 'GetOrderDetailsByOrderId'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "objOrderDetails": {
    "ID": 1,
    "OrderId": 2,
    "ProductId": 3,
    "ProductName": "sample string 4",
    "Qty": 5,
    "UnitPrice": 6.1,
    "TotlalPrice": 7.1,
    "Tax": 8.1,
    "ShippingAmt": 9.1,
    "Createddate": "2021-11-27T15:14:59.6458776-05:00",
    "Action": "sample string 11",
    "Source": "sample string 12"
  }
}

application/xml, text/xml

Sample:
<GetOrderDetailsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
  <objOrderDetails>
    <Action>sample string 11</Action>
    <Createddate>2021-11-27T15:14:59.6458776-05:00</Createddate>
    <ID>1</ID>
    <OrderId>2</OrderId>
    <ProductId>3</ProductId>
    <ProductName>sample string 4</ProductName>
    <Qty>5</Qty>
    <ShippingAmt>9.1</ShippingAmt>
    <Source>sample string 12</Source>
    <Tax>8.1</Tax>
    <TotlalPrice>7.1</TotlalPrice>
    <UnitPrice>6.1</UnitPrice>
  </objOrderDetails>
</GetOrderDetailsRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'GetOrderDetailsRequest'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "OrderMaster": {
    "ID": 1,
    "PrescriptionId": 2,
    "Totalprice": "sample string 3",
    "TotalItemQty": 4,
    "ShippingAmt": 5.1,
    "TAXAmt": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentReferenceNo": "sample string 8",
    "Status": "sample string 9",
    "TrackingNumber": "sample string 10",
    "ShippingRemarks": "sample string 11",
    "ShippingDate": "2021-11-27T15:14:59.6614776-05:00",
    "DeliveryDate": "2021-11-27T15:14:59.6614776-05:00",
    "Action": "sample string 14",
    "Source": "sample string 15",
    "PatientName": "sample string 16",
    "PatientEmailId": "sample string 17",
    "PatientPhone": "sample string 18",
    "DoctorName": "sample string 19",
    "AppointmentDate": "sample string 20",
    "AppointmentTime": "sample string 21",
    "AppointmentId": "sample string 22",
    "PatientId": "sample string 23"
  },
  "lstOrderDetails": [
    {
      "ID": 1,
      "OrderId": 2,
      "ProductId": 3,
      "ProductName": "sample string 4",
      "Qty": 5,
      "UnitPrice": 6.1,
      "TotlalPrice": 7.1,
      "Tax": 8.1,
      "ShippingAmt": 9.1,
      "Createddate": "2021-11-27T15:14:59.6614776-05:00",
      "Action": "sample string 11",
      "Source": "sample string 12"
    },
    {
      "ID": 1,
      "OrderId": 2,
      "ProductId": 3,
      "ProductName": "sample string 4",
      "Qty": 5,
      "UnitPrice": 6.1,
      "TotlalPrice": 7.1,
      "Tax": 8.1,
      "ShippingAmt": 9.1,
      "Createddate": "2021-11-27T15:14:59.6614776-05:00",
      "Action": "sample string 11",
      "Source": "sample string 12"
    },
    {
      "ID": 1,
      "OrderId": 2,
      "ProductId": 3,
      "ProductName": "sample string 4",
      "Qty": 5,
      "UnitPrice": 6.1,
      "TotlalPrice": 7.1,
      "Tax": 8.1,
      "ShippingAmt": 9.1,
      "Createddate": "2021-11-27T15:14:59.6614776-05:00",
      "Action": "sample string 11",
      "Source": "sample string 12"
    }
  ]
}

application/xml, text/xml

Sample:
<GetOrderDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <OrderMaster>
    <Action>sample string 14</Action>
    <AppointmentDate>sample string 20</AppointmentDate>
    <AppointmentId>sample string 22</AppointmentId>
    <AppointmentTime>sample string 21</AppointmentTime>
    <DeliveryDate>2021-11-27T15:14:59.6614776-05:00</DeliveryDate>
    <DoctorName>sample string 19</DoctorName>
    <ID>1</ID>
    <PatientEmailId>sample string 17</PatientEmailId>
    <PatientId>sample string 23</PatientId>
    <PatientName>sample string 16</PatientName>
    <PatientPhone>sample string 18</PatientPhone>
    <PaymentMethod>sample string 7</PaymentMethod>
    <PaymentReferenceNo>sample string 8</PaymentReferenceNo>
    <PrescriptionId>2</PrescriptionId>
    <ShippingAmt>5.1</ShippingAmt>
    <ShippingDate>2021-11-27T15:14:59.6614776-05:00</ShippingDate>
    <ShippingRemarks>sample string 11</ShippingRemarks>
    <Source>sample string 15</Source>
    <Status>sample string 9</Status>
    <TAXAmt>6.1</TAXAmt>
    <TotalItemQty>4</TotalItemQty>
    <Totalprice>sample string 3</Totalprice>
    <TrackingNumber>sample string 10</TrackingNumber>
  </OrderMaster>
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <lstOrderDetails>
    <OrderDetails>
      <Action>sample string 11</Action>
      <Createddate>2021-11-27T15:14:59.6614776-05:00</Createddate>
      <ID>1</ID>
      <OrderId>2</OrderId>
      <ProductId>3</ProductId>
      <ProductName>sample string 4</ProductName>
      <Qty>5</Qty>
      <ShippingAmt>9.1</ShippingAmt>
      <Source>sample string 12</Source>
      <Tax>8.1</Tax>
      <TotlalPrice>7.1</TotlalPrice>
      <UnitPrice>6.1</UnitPrice>
    </OrderDetails>
    <OrderDetails>
      <Action>sample string 11</Action>
      <Createddate>2021-11-27T15:14:59.6614776-05:00</Createddate>
      <ID>1</ID>
      <OrderId>2</OrderId>
      <ProductId>3</ProductId>
      <ProductName>sample string 4</ProductName>
      <Qty>5</Qty>
      <ShippingAmt>9.1</ShippingAmt>
      <Source>sample string 12</Source>
      <Tax>8.1</Tax>
      <TotlalPrice>7.1</TotlalPrice>
      <UnitPrice>6.1</UnitPrice>
    </OrderDetails>
    <OrderDetails>
      <Action>sample string 11</Action>
      <Createddate>2021-11-27T15:14:59.6614776-05:00</Createddate>
      <ID>1</ID>
      <OrderId>2</OrderId>
      <ProductId>3</ProductId>
      <ProductName>sample string 4</ProductName>
      <Qty>5</Qty>
      <ShippingAmt>9.1</ShippingAmt>
      <Source>sample string 12</Source>
      <Tax>8.1</Tax>
      <TotlalPrice>7.1</TotlalPrice>
      <UnitPrice>6.1</UnitPrice>
    </OrderDetails>
  </lstOrderDetails>
  <message>sample string 1</message>
  <result>sample string 2</result>
</GetOrderDetailsResponse>