POST api/SubmitPayment
Request Information
URI Parameters
None.
Body Parameters
SubmitPaymentPost| Name | Description | Type | Additional information |
|---|---|---|---|
| RideId | integer |
None. |
|
| AccountId | integer |
None. |
|
| PaymentType | integer |
None. |
|
| PaymentMethod | integer |
None. |
|
| Amount | decimal number |
None. |
|
| PaymentDateTime | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"RideId": 1,
"AccountId": 2,
"PaymentType": 3,
"PaymentMethod": 4,
"Amount": 5.1,
"PaymentDateTime": "2025-12-17T07:06:33.1479531+01:00"
}
application/xml, text/xml
Sample:
<SubmitPaymentPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Payment.Post"> <AccountId>2</AccountId> <Amount>5.1</Amount> <PaymentDateTime>2025-12-17T07:06:33.1479531+01:00</PaymentDateTime> <PaymentMethod>4</PaymentMethod> <PaymentType>3</PaymentType> <RideId>1</RideId> </SubmitPaymentPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SubmitPaymentResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Payment | PaymentDetails |
None. |
Response Formats
application/json, text/json
Sample:
{
"Payment": {
"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:
<SubmitPaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Payment.Response">
<Payment>
<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>
</Payment>
</SubmitPaymentResponse>