POST api/GetPaymentByRideId

Request Information

URI Parameters

None.

Body Parameters

GetPaymentByRideIdPost
NameDescriptionTypeAdditional information
RideId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RideId": 1
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetPaymentByRideIdResponse
NameDescriptionTypeAdditional information
Payments

Collection of PaymentDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "Payments": [
    {
      "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
    },
    {
      "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:
<GetPaymentByRideIdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Payment.Response">
  <Payments>
    <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>
    <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>
  </Payments>
</GetPaymentByRideIdResponse>