Create a charge
REQUEST_PATH : Payment/v1/Create
Parameter | Type | Required | Description |
---|---|---|---|
reference | String | Yes | Unique Reference that identifies a booking in PMS |
amount | Float | Yes | Transaction Amount |
isVirtualCard | Boolean | No | Enabling this will turn off credit card fee for the transaction (Optional) |
description | String | No | Description of charge (Optional) |
transactionType | Enum | No | Type of transaction - Deposit, Balance, Bond or Manual |
token | String | No | If not provided, will try to use token attached to the booking reference (Optional) |
Request Data
{
reference: '123456789',
amount: 123.12,
isVirtualCard: false,
description: 'Deposit'
}
Response Data
{
"success": true,
"transaction": {
"id": 4877,
"amount": 103.09,
"creditCardFee": 3.09,
"transationFee": 0,
"reference": "9dbca480455a4eb996f856818c9e731e",
"bookingReference": "123456789",
"type": "PaymentManual",
"timeStamp": "2024-12-16 15:49:56",
"cardDetails": {
"cardNumber": "1111",
"cardType": "visa",
"currency": "AUD",
"token": "80ab96c20e59610c06d4c8b66207132c"
}
}
}