Generate Access Token
Preparation
In order to create an Access Token, you first need to get the following:
- A valid API key. Read more on Managing API Keys.
- The PCI Booking certificate's public key. You can download the certificate and the public key from our web site:
- Please disregard the error message displayed. Access to this page is solely for downloading the certificate.
- Follow the instructions for downloading the certificate in your browser:
Generating the Access Token
The process involves 3 steps:
- Generate a data block.
- The data block is comprised of the following items:
- An API key.
- A GUID: a unique string, up to 64 printable ASCII characters, must not include "#."
- An expiration time [absolute time in GMT], no earlier than 10 seconds from the current time and no later than one hour from the current time.
- The data block is comprised of the following items:
- Encrypt the data block (to an encrypted byte array).
- Stringify the encrypted byte array.
The time should be in ISO 8601 format.
This data block has the following structure:
<APIKey>/#<GUID>/#<Expiration Time>
Example:
bd3ce883352e42539a2b7644f72e63aa#123459876543#2017-12-15T07:36:25Z
Available code samples
View our code samples to generate an Access Token here.
Updated almost 3 years ago