POST api/TotalAyushCare/CancelAppointment

Documentation for 'CancelAppointment'.

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"
  },
  "AppointmentId": "sample string 1",
  "Action": "sample string 2",
  "Source": "sample string 3"
}

application/xml, text/xml

Sample:
<CancelAppointmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Action>sample string 2</Action>
  <AppointmentId>sample string 1</AppointmentId>
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
  <Source>sample string 3</Source>
</CancelAppointmentRequest>

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

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",
  "PaytmResponse": {
    "MID": "sample string 1",
    "ORDERID": "sample string 2",
    "TXNAMOUNT": "sample string 3",
    "CURRENCY": "sample string 4",
    "TXNID": "sample string 5",
    "BANKTXNID": "sample string 6",
    "STATUS": "sample string 7",
    "RESPCODE": "sample string 8",
    "RESPMSG": "sample string 9",
    "TXNDATE": "sample string 10",
    "GETWAYNAME": "sample string 11",
    "BANKNAME": "sample string 12",
    "PAYMENTMODE": "sample string 13",
    "CHECKSUMHASH": "sample string 14",
    "Id": "sample string 15",
    "AppointmentId": "sample string 16",
    "MobileNumber": "sample string 17",
    "Email": "sample string 18",
    "Amount": "sample string 19",
    "PatientId": "sample string 20",
    "AppointmentDate": "sample string 21",
    "AppointmentTime": "sample string 22",
    "Category": "sample string 23",
    "PreferredDoctor": "sample string 24",
    "Note": "sample string 25",
    "AppointmentType": "sample string 26",
    "AppointmentFor": "sample string 27",
    "Action": "sample string 28",
    "Source": "sample string 29",
    "TimeZone": "sample string 30"
  }
}

application/xml, text/xml

Sample:
<CancelAppointmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <PaytmResponse>
    <Action>sample string 28</Action>
    <Amount>sample string 19</Amount>
    <AppointmentDate>sample string 21</AppointmentDate>
    <AppointmentFor>sample string 27</AppointmentFor>
    <AppointmentId>sample string 16</AppointmentId>
    <AppointmentTime>sample string 22</AppointmentTime>
    <AppointmentType>sample string 26</AppointmentType>
    <BANKNAME>sample string 12</BANKNAME>
    <BANKTXNID>sample string 6</BANKTXNID>
    <CHECKSUMHASH>sample string 14</CHECKSUMHASH>
    <CURRENCY>sample string 4</CURRENCY>
    <Category>sample string 23</Category>
    <Email>sample string 18</Email>
    <GETWAYNAME>sample string 11</GETWAYNAME>
    <Id>sample string 15</Id>
    <MID>sample string 1</MID>
    <MobileNumber>sample string 17</MobileNumber>
    <Note>sample string 25</Note>
    <ORDERID>sample string 2</ORDERID>
    <PAYMENTMODE>sample string 13</PAYMENTMODE>
    <PatientId>sample string 20</PatientId>
    <PreferredDoctor>sample string 24</PreferredDoctor>
    <RESPCODE>sample string 8</RESPCODE>
    <RESPMSG>sample string 9</RESPMSG>
    <STATUS>sample string 7</STATUS>
    <Source>sample string 29</Source>
    <TXNAMOUNT>sample string 3</TXNAMOUNT>
    <TXNDATE>sample string 10</TXNDATE>
    <TXNID>sample string 5</TXNID>
    <TimeZone>sample string 30</TimeZone>
  </PaytmResponse>
  <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>
  <result>sample string 2</result>
</CancelAppointmentResponse>