POST api/TourTransactions/TopUp/ByCustomerCredit
Request Information
URI Parameters
None.
Body Parameters
TopUpBindingModel| Name | 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
TransferTransactionTouressCreditViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| WalletBalance | decimal number |
Required |
|
| CompanyCode | string |
Required String length: inclusive between 0 and 5 |
|
| CreditLimit | decimal number |
Required |
|
| CreditBalance | decimal number |
Required |
Response Formats
application/json, text/json
Sample:
{
"WalletBalance": 1.0,
"CompanyCode": "sample string 2",
"CreditLimit": 3.0,
"CreditBalance": 4.0
}
application/xml, text/xml
Sample:
<TransferTransactionTouressCreditViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <CompanyCode>sample string 2</CompanyCode> <CreditBalance>4</CreditBalance> <CreditLimit>3</CreditLimit> <WalletBalance>1</WalletBalance> </TransferTransactionTouressCreditViewModel>