Skip to main content
Learn more about how Primer handles webhooks.

Headers

X-Signature-Primary
string
required

An HMAC signature generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string.

X-Signature-Secondary
string
required

A secondary signature that is added when you have rotated your secret within the past 24 hours.

Body

application/json
eventType
string
required

The type of the webhook raised. PAYMENT.STATUS in this case.

date
string<date-time>
required

The date-time that the webhook was sent.

signedAt
string
required

The Unix timestamp at which the webhook payload was signed.

Example:

"1689221338"

notificationConfig
Notification Config · object
required

The notification configuration details.

payment
Payment Details · object
required
version
string

The payload version

Example:

"2.3"

Response

200

Return a 200 status to indicate that the data was received successfully