Create a pre-authorization

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

preAuth

Boolean

No

Set to true if want to do a pre-authorization

expiryTime

String

No

Schedule Time in format ISO 8601 format (2024-12-02T15:30:00+08:00) (Optional - Required only if preAuth is set to true)

isVirtualCard

Boolean

No

Enabling this will turn off credit card fee for the transaction (Optional)

descriptionStringNoDescription of charge (Optional)
transactionTypeEnumNoType of transaction - Deposit, Balance, Bond or Manual
tokenStringNoIf not provided, will try to use token attached to the booking reference (Optional)

Request Data

{
    reference: '123456789',
    amount: 123.12,
	isVirtualCard: false,
	preAuth: true,
    expiryTime: 2025-01-15T12:00:00+08:00,
    description: 'Deposit'
}

Response Data

{
	"success": true,
	"transaction": {
		"id": 5270,
		"amount": 154.64,
		"creditCardFee": 4.64,
		"transationFee": 0,
		"reference": "9de682998eb24502af87e01f68c99d0d",
		"bookingReference": "12222233",
		"type": "PaymentManual",
		"timeStamp": "2025-01-06T11:19:53+08:00",
		"cardDetails": {
			"cardNumber": "1111",
			"cardType": "visa",
			"currency": "AUD",
			"token": "03b0725121e9c3690a5fa9ce3c778dd6"
		},
		"preAuth": true,
		"expiryTime": "2025-01-15T12:00:00+08:00"
	}
}