Building links into SmartCMS reservations

Summary

How to build links into reservations on the SmartCMS booking engine. In order to build a deep link into the smartCMS booking engine a payload parameter must be generated. The payload parameter must be encrypted with AES-256-CBC and base64 encoded as well as url encoded.

Endpoint

https://www.site.com/reservations/reservationlookup

Sample endpoint

https://www.site.com/reservations/reservationlookup?payload=encrypted&iv=123

Query parameters and specification

The smartCMS booking engine endpoint takes two parameters payload and iv. The payload parameter is encrypted, the resulting string is then base64 encoded and then url encoded using RFC 1738.

Parameters

payload - a JSON encrypted and encoded string

  • Contains two properties

    • confirmation (reservation confirmation number)

    • lastname - (last name on the reservation)

iv - 16 byte randomly generated string used as the initialization vector when encoding the payload. iv must also be url encoded using RFC 1738.

circle-info

The iv parameter is optional but highly encouraged as it would significantly increase security

Security

triangle-exclamation
Securely sending private datachevron-right

Example

sample JSON

Example secret

Sample iv parameter

Resulting AES 256 encrypted string

Resulting URL encoded string

Last updated