Push Transactions (JSON)

Description

This Push Transaction message delivers a notification that a payment or refund has occurred by Levart or a third party payment gateway.

Note

Transactions can be unrelated to bookings i.e. paying for a drinks at the bar. It is still recommended to confirm every Transaction  as any unconfirmed transactions will continue to be sent until confirmation is received.

Direction

Levart → PMS

Request

{
    "Authentication": {
        "Username": "abc1",
        "Password": "abc2"
    },
    "TimeStamp": "2024-01-17T16:44:33+08:00",
    "MessageID": "d5a5da66-e01c-4ed5-9897-3c6824a96755",
    "MessageType": "PushTransaction",
    "TransactionData": {
        "TransactionID": "169",
        "RelatedReference": "15688811",
        "RelatedSource": "Levart",
        "GatewayID": "StripeSmart",
        "GatewayReference": "pi_3OCycjGh4NcHCnHJ1N7tufm8",
        "CardMask": "XXXXXXXXXXXX6700",
        "CardType": "visa",
        "Type": "Payment",
        "Currency": "AUD",
        "CardFee": "10.61",
        "TransactionFee": "0.33",
        "AmountNet": "1000.00",
        "AmountGross": "1010.94",
        "ProcessedTime": "2024-01-16T14:00:23+08:00",
        "Description": "Deposit"
    }
}

Specification JSON Request

ElementNumTypeDescription
Authentication1ObjectAuthentication object
Authentication > Username1StringUnique username for the property.
Authentication > Password1StringUnique password for the property.
MessageID1StringUnique Message ID
MessageType1StringSet to 'PushTransaction'
TimeStamp1DateTimeDate and time of the transaction in ISO 8601 format. e.g. 2024-01-28T15:15:00+08:00
TransactionData1ObjectTransactionData object
TransactionData > TransactionID1StringUnique ID for Levart
TransactionData > RelatedReference1StringRelated booking reference.
TransactionData > RelatedSource1StringThe source of the booking e.g. Levart, Booking.com, Expedia 
TransactionData > GatewayID1StringThe gateway identifier. e.g. LevartPay, StripeSmart
TransactionData > GatewayReference1StringThe reference given by the payment gateway for this payment.
TransactionData > CardMask1StringMasked out card detailed used to make the payment.
TransactionData > CardType1StringCard type: visa, mastercard, amex, dinersCard
TransactionData > Type1StringPayment or Refund
TransactionData > Currency1StringCurrency of the transacion e.g. AUD, USD or NZD
TransactionData > CardFee1CurrencyCard fee included in the transaction
TransactionData > TransactionFee1CurrencyTransaction fee included in the transaction
TransactionData > AmountNet1CurrencyAmount of the transaction net of any TransactionFee or CardFee
TransactionData > AmountGross1CurrencyGross amount of the transation including all fees
TransactionData > ProcessedTime1DateTimeTime the transaction was processed by the payment gateway.
TransactionData > Description1StringFree form description text e.g. First nights accommodation.

Response (Success)

{
  "MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
  "TimeStamp": "2017-04-06T13:42:45+08:00",
  "Status": "Success",
  "ConfirmationID":"234234"
}

Response (Error)

{
  "MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
  "TimeStamp": "2017-04-06T13:42:45+08:00",
  "Status": "Error",
  "ErrorMessage": "Invalid username or password."
}


Specification JSON Response

ElementNumTypeDescription
MessageID1StringUnique Message ID (Same as the Request Message ID)
TimeStamp1DateTimeDate and time of the transaction in ISO 8601 format. e.g. 2016-01-28T15:15:00+08:00
Status1StringElement contains either Error or Success
ErrorMessage0..1StringThe description of the error (On Error only)
ConfirmationID0..1StringThe Confirmation string provided by the PMS system. (On Success only)