POST api/TotalAyushCare/SavePrescriptionDetails

Documentation for 'SavePrescriptionDetails'.

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"
  },
  "Prescription": {
    "Id": "sample string 1",
    "PrescriptionId": "sample string 2",
    "CategoryId": "sample string 3",
    "ProductId": "sample string 4",
    "Quantity": "sample string 5",
    "Action": "sample string 6",
    "AddedBy": "sample string 7"
  }
}

application/xml, text/xml

Sample:
<PrescriptionDetailsRequest 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>
  <Prescription>
    <Action>sample string 6</Action>
    <AddedBy>sample string 7</AddedBy>
    <CategoryId>sample string 3</CategoryId>
    <Id>sample string 1</Id>
    <PrescriptionId>sample string 2</PrescriptionId>
    <ProductId>sample string 4</ProductId>
    <Quantity>sample string 5</Quantity>
  </Prescription>
</PrescriptionDetailsRequest>

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

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",
  "prescriptionID": "sample string 3"
}

application/xml, text/xml

Sample:
<PrescriptionDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <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>
  <message>sample string 1</message>
  <prescriptionID>sample string 3</prescriptionID>
  <result>sample string 2</result>
</PrescriptionDetailsResponse>