Verify data with signature
A signature is used to verify data integrity between your system and SimplifyTrip. It is generated from checksumKey and request/response data fields defined by each API.
Whenever you receive data from SimplifyTrip, verify the signature to ensure payload authenticity.
Try with Signature Generator
How to generate a signature
- SimplifyTrip uses HMAC with SHA-256.
- Signature input data format:
key1=value1&key2=value2… - Fields must be sorted alphabetically by key.
- Formula:
hash_hmac("sha256", data, checksum_key)
💡
Note Checksum Key is generated when API key is created. You can rotate Checksum Key anytime if leakage is suspected.
Sample code to validate data
Example flow
Input data
Use webhook payload and current signature.
Flatten object
Flatten nested object/array data into a single-level object with underscore key path.
Sort and stringify
Sort keys alphabetically and join as key=value with &.
Generate signature
Hash using HMAC_SHA256(dataString, checksumKey) and compare with the received signature.
Try with Signature Generator