POST api/Pyment/GetDataForpayment

Request Information

URI Parameters

None.

Body Parameters

PaymentsDTO
NameDescriptionTypeAdditional information
Id

integer

None.

TravelRequestId

integer

None.

EmployeeCode

string

None.

PNR

string

None.

OrderId

string

None.

TxnID

string

None.

AuthCode

string

None.

Amount

decimal number

None.

Comment

string

None.

CDate

date

None.

ConvenienceFee

decimal number

None.

Status

string

None.

CreatedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TravelRequestId": 2,
  "EmployeeCode": "sample string 3",
  "PNR": "sample string 4",
  "OrderId": "sample string 5",
  "TxnID": "sample string 6",
  "AuthCode": "sample string 7",
  "Amount": 8.0,
  "Comment": "sample string 9",
  "CDate": "2021-04-20T14:55:39.4657597+05:30",
  "ConvenienceFee": 11.0,
  "Status": "sample string 12",
  "CreatedBy": "sample string 13"
}

application/xml, text/xml

Sample:
<PaymentsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FlightDisruptionUI.CommonWebMethod">
  <Amount>8</Amount>
  <AuthCode>sample string 7</AuthCode>
  <CDate>2021-04-20T14:55:39.4657597+05:30</CDate>
  <Comment>sample string 9</Comment>
  <ConvenienceFee>11</ConvenienceFee>
  <CreatedBy>sample string 13</CreatedBy>
  <EmployeeCode>sample string 3</EmployeeCode>
  <Id>1</Id>
  <OrderId>sample string 5</OrderId>
  <PNR>sample string 4</PNR>
  <Status>sample string 12</Status>
  <TravelRequestId>2</TravelRequestId>
  <TxnID>sample string 6</TxnID>
</PaymentsDTO>

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

Response Information

Resource Description

JuspayProcessRequestViewModel
NameDescriptionTypeAdditional information
requestId

string

None.

service

string

None.

betaAssets

boolean

None.

payload

payload

None.

entry_point

string

None.

integration

string

None.

Response Formats

application/json, text/json

Sample:
{
  "requestId": "sample string 1",
  "service": "sample string 2",
  "betaAssets": true,
  "payload": {
    "action": "sample string 1",
    "entry_point_id": "sample string 2",
    "amount": "sample string 3",
    "customerEmail": "sample string 4",
    "customerMobile": "sample string 5",
    "signature": "sample string 6",
    "language": "sample string 7",
    "environment": "sample string 8",
    "merchantId": "sample string 9",
    "clientId": "sample string 10",
    "merchantKeyId": "sample string 11",
    "customerId": "sample string 12",
    "orderId": "sample string 13",
    "orderDetails": "sample string 14"
  },
  "entry_point": "sample string 4",
  "integration": "sample string 5"
}

application/xml, text/xml

Sample:
<JuspayProcessRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FlightDisruptionUI.PaymentIntegration">
  <betaAssets>true</betaAssets>
  <entry_point>sample string 4</entry_point>
  <integration>sample string 5</integration>
  <payload>
    <action>sample string 1</action>
    <amount>sample string 3</amount>
    <clientId>sample string 10</clientId>
    <customerEmail>sample string 4</customerEmail>
    <customerId>sample string 12</customerId>
    <customerMobile>sample string 5</customerMobile>
    <entry_point_id>sample string 2</entry_point_id>
    <environment>sample string 8</environment>
    <language>sample string 7</language>
    <merchantId>sample string 9</merchantId>
    <merchantKeyId>sample string 11</merchantKeyId>
    <orderDetails>sample string 14</orderDetails>
    <orderId>sample string 13</orderId>
    <signature>sample string 6</signature>
  </payload>
  <requestId>sample string 1</requestId>
  <service>sample string 2</service>
</JuspayProcessRequestViewModel>