This service will be in charge of notifying you of events related to credit cards.
We send a set of HTTP headers to authenticate it along with the notification.
The HTTP headers we send are:
x-api-key
: this header allows you to identify which api-secret you have to use in the event that multiple api-key and api-secret pairs have been configured.
x-signature
: This header contains the digital signature (body + timestamp + endpoint) that must be verified to ensure request integrity. If the signature does not match, reject the order.
x-timestamp
: this header contains the moment the order was signed in unix-epoch format so that you can verify that the signature has not expired.
x-endpoint
: the endpoint to which the request is made and used to generate the signature. Use this header to regenerate the signature to be validated, compare it with the endpoint of your service and verify that they match.
The digital signature is an HMAC-SHA256 code constructed using the 'api-secret' and a series of bytes, composed of a timestamp concatenation, endpoint and request body coded in UTF-8.
The following is a pseudo-code to verify that the digital signature of a request is legitimate:
requestSignature = request.headers['x-signature']
signatureData = encode(request.headers['x-timestamp'] + request.headers['x-endpoint'] + request.body , 'UTF-8')
recreatedSignature = hmac(apiSecret, signatureData, 'SHA256')
validSignature = requestSignature == recreatedSignature
api-secret
to use if multiple api-key
and api-secret
pairs were configured.api-secret
to use if multiple api-key
and api-secret
pairs were configured.api-secret
to use if multiple api-key
and api-secret
pairs were configured.You will need to provide us with this endpoint to receive notifications of a user's entry, exit, or continued delinquency. We expect a 2XX response to ensure you received the notification. Otherwise, we will resend it.
api-secret
to use if multiple api-key
and api-secret
pairs were configured.api-secret
to use if multiple api-key
and api-secret
pairs were configured.