POST api/TourTransactions/TopUp
Request Information
URI Parameters
None.
Body Parameters
TopUpBindingModelName | Description | Type | Additional information |
---|---|---|---|
PaymentGateway | PaymentGatewayChoice |
Required |
|
Amount | decimal number |
Required |
|
CompanyCode | string |
None. |
|
CurrencyId | string |
None. |
|
Description | string |
String length: inclusive between 0 and 256 |
Request Formats
application/json, text/json
Sample:
{ "PaymentGateway": 0, "Amount": 1.0, "CompanyCode": "sample string 2", "CurrencyId": "sample string 3", "Description": "sample string 4" }
application/xml, text/xml
Sample:
<TopUpBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Amount>1</Amount> <CompanyCode>sample string 2</CompanyCode> <CurrencyId>sample string 3</CurrencyId> <Description>sample string 4</Description> <PaymentGateway>Deposit</PaymentGateway> </TopUpBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ConfirmationResponseViewModelName | Description | Type | Additional information |
---|---|---|---|
Status | string |
None. |
|
Url | string |
None. |
|
Message | string |
None. |
|
InvoiceCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": "sample string 1", "Url": "sample string 2", "Message": "sample string 3", "InvoiceCode": "sample string 4" }
application/xml, text/xml
Sample:
<ConfirmationResponseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <InvoiceCode>sample string 4</InvoiceCode> <Message>sample string 3</Message> <Status>sample string 1</Status> <Url>sample string 2</Url> </ConfirmationResponseViewModel>