POST api/Book/CancelPNR

Request Information

URI Parameters

None.

Body Parameters

FPCancelPNRDetails
NameDescriptionTypeAdditional information
CancelPNRDetails

CancelPNRDetails

None.

SoapAuthentication

SoapAuthentication

None.

Request Formats

application/json, text/json

Sample:
{
  "CancelPNRDetails": {
    "PNR": "sample string 1"
  },
  "SoapAuthentication": {
    "UserName": "sample string 1",
    "Password": "sample string 2"
  }
}

text/html

Sample:
{"CancelPNRDetails":{"PNR":"sample string 1"},"SoapAuthentication":{"UserName":"sample string 1","Password":"sample string 2"}}

application/xml, text/xml

Sample:
<FPCancelPNRDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <CancelPNRDetails>
    <PNR>sample string 1</PNR>
  </CancelPNRDetails>
  <SoapAuthentication>
    <Password>sample string 2</Password>
    <UserName>sample string 1</UserName>
  </SoapAuthentication>
</FPCancelPNRDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FPCancelPNRRS
NameDescriptionTypeAdditional information
Message

string

None.

ErrorCode

string

None.

ErrorAtNode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": "sample string 1",
  "ErrorAtNode": "sample string 2",
  "Message": "sample string 1"
}

text/html

Sample:
{"ErrorCode":"sample string 1","ErrorAtNode":"sample string 2","Message":"sample string 1"}

application/xml, text/xml

Sample:
<FPCancelPNRRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <ErrorAtNode>sample string 2</ErrorAtNode>
  <ErrorCode>sample string 1</ErrorCode>
  <Message>sample string 1</Message>
</FPCancelPNRRS>