When you receive an EHN from us you will always receive the following fields:

PropertyTypeDescription
EVENT_TYPE
required
stringA string literal indicating the type of notification being sent.
EVENT_TIMESTAMP
required
datetimeUTC timestamp of when the event occurred.

Example: 2016-11-06 12:22:19Z
DELIVERY_TIMESTAMP
required
datetimeUTC timestamp of when this notification delivery is being attempted.

Example: 2016-11-06 12:22:19Z
MERCHANT_ID
required
intThe ID of the merchant account for which the event occurred.
Digest
required
string(40)A SHA-1 hash to be used in verifying the message's origin.

Please see the order in the Digest Calculation Order below.

Digest Calculation Order:

PositionField
1EVENT_TYPE
2EVENT_TIMESTAMP
3DELIVERY_TIMESTAMP
4MERCHANT_ID
5Secret Key (provided to you with your account credentials)

The above fields are concatenated using a semicolon ";" as a separator.

The SHA-1 hash is calculated on the resulting UTF8-encoded string.