post https://api.aerocrs.com/v5/useDeposit
This method will allow to pay (full or partial amount) with customers deposit via API.
ImportantAfter full payment, no need to use TicketBooking.
Request parameters
| Parameter | Type | Description | 
|---|---|---|
| bookingid | Number | Booking ID (from createBooking) | 
| customerid | Number | Customer ID (from getCustomerDataNew) | 
| currency | String | Deposit Currency code | 
| amount | Number | Amount of the deposit to use; possitive values only | 
- Mandatory parameters
Response
This method will respond with a list of customers, including personal details and additional information.
| Parameter | Type | Description | 
|---|---|---|
| success | String | true/false | 
| custid | Number | Customer ID | 
| Customer E-mail | ||
| name | String | First and last name of the customer | 
| phone | Number | Phone number of the customer | 
| passport | Number | Customer passport number | 
| ffnumber | Number | Customer frequent flyer number | 
| fflevel | String | Customer frequent flyer level name | 
| ffcategory | Element | Customer frequent flyer category Points | 
| status | Number | Amount of Status Points | 
| bonus | Number | Amount of Bonus Points | 
| award | Number | Amount of Award Points | 
| dob | Date | YYYY/MM/DD date of customer birth date | 
| city | String | City of the customer | 
| zipcode | Number | Customer zip code | 
| company | String | Company of the customer (if applicable) | 
| vatNumber | Number | VAT of the customer (if applicable) | 
| totalDeposit | Element | Customer Total Deposit details per Currency | 
| rtname | String | Deposit Currency 3 letters code | 
| rtsymbol | String | Deposit Currency symbol | 
| rtdecimals | Number | Deposit Currency decimals | 
| rtconvert | Number | Deposit Currency Conversion Rate | 
| rtid | Number | Deposit Currency ID | 
| dpcurrencyamount | Number | Total amount of Deposit with the mentioned currency | 
| depositTransactionsHistory | Element | Customer Deposit Transactions History | 
| dpamount | Number | Deposit Amount: in case of payment, display negative amount. In case of adding Amount, display positive Amount. | 
| rtname | String | Deposit Currency name | 
| pnrref | Number | PNR number of the adding or using refund | 
| pnrcreateddate | Date | PNR creation date | 
| trips | Element | The list Customer PNRs | 
| pnrref | Number | Customer PNR number | 
| status | String | Confirmed/Pending/Cancelled | 
| createddate | Date | PNR creation date | 
| dstfromname | String | From destination name | 
| dstfromcode | String | From destination code | 
| dsttoname | String | To destination name | 
| dsttocode | String | To destination code | 
| departuredate | Date | Departure date | 
| arrivaldate | Date | Arrival date | 
| Optional error messages: | 
|---|
No {field name} defined on segment {i} | 
mandatory fields misssing: {fields name} | 
| Your booking ID does not match the records | 
| You do not have permission to do this action | 
| Currency doesn’t match the records. please check currency already set in CRS system | 
| There are no funds on this currency, please pay using a currency which have available deposit. | 
The received amount is larger than the PNR current balance. You have {amount} left to pay | 
There are not enough funds on this currency, please pay using a currency which have available deposit, or pay by parts. You have {amount} left. | 
| The amount parameter must be greater than zero | 
| PNR is not valid for this operation, please check your PNR | 
| Multiple pending PNRs found, please contact support | 
| Unexpected error, please try again later | 
