POST api/GetPaymentById

Request Information

URI Parameters

None.

Body Parameters

GetPaymentByIdPost
NameDescriptionTypeAdditional information
PaymentId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentId": 1
}

application/xml, text/xml

Sample:
<GetPaymentByIdPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Payment.Post">
  <PaymentId>1</PaymentId>
</GetPaymentByIdPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetPaymentByIdResponse
NameDescriptionTypeAdditional information
PaymentDetails

PaymentDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "PaymentDetails": {
    "PaymentId": 1,
    "PaymentDate": "sample string 2",
    "Amount": 1.1,
    "Reason": "sample string 3",
    "PaymentStatusId": 1,
    "StatusMessage": "sample string 4",
    "AccountId": 1,
    "PaymentType": "sample string 5",
    "PaymentMethod": "sample string 6",
    "RideId": 1
  }
}

application/xml, text/xml

Sample:
<GetPaymentByIdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Payment.Response">
  <PaymentDetails>
    <AccountId>1</AccountId>
    <Amount>1.1</Amount>
    <PaymentDate>sample string 2</PaymentDate>
    <PaymentId>1</PaymentId>
    <PaymentMethod>sample string 6</PaymentMethod>
    <PaymentStatusId>1</PaymentStatusId>
    <PaymentType>sample string 5</PaymentType>
    <Reason>sample string 3</Reason>
    <RideId>1</RideId>
    <StatusMessage>sample string 4</StatusMessage>
  </PaymentDetails>
</GetPaymentByIdResponse>