Receive and react to real-time event notifications from Imprint
POST
to the endpoint configured. This event notification contains a JSON payload with details about the event.
As part of event notification enrollment, you will receive a secret shared only between Imprint and you.All requests are signed (HMAC SHA-256) using the shared secret.
For increased security, you can restrict your endpoint to only allow requests from Imprint’s IP Ranges, which can be provided by your Imprint team.
Your system should acknowledge events with a 2XX
HTTP response status to confirm successful receipt. If a delivery fails, Imprint will retry the request based on an exponential back-off strategy.
X-IMPRINT-HMAC-SIGNATURE
header.
Status | Description |
---|---|
APPROVED | Authorization request was received from the merchant and approved by Imprint, which creates a pending transaction on the customer’s statement. |
UPDATED | Authorization request was updated by the merchant, which updates the pending transaction on the customer’s statement. |
VOIDED | Approved authorization has been cancelled by the merchant or expired by Imprint, which removes the pending transaction from the customer’s statement. |
CAPTURED | Approved authorization has been captured, or a force capture has been created (e.g., bypassing the authorization step), which creates a confirmed transaction on the customer’s statement with the final purchase amount. |
REFUNDED | Refund has been created by the merchant, either related to a previous capture or standalone (e.g., “blind return”), which creates a confirmed transaction on the customer’s statement with the final refund amount. |
transaction_id
to track a transaction throughout the lifecycle of different statuses and event_id
to identify each step uniquelyCustomer completes $50 purchase
APPROVED
event. However, it may take several hours for the merchant to finalize the transaction through the card network. Once a transaction is finalized, you will receive a CAPTURED
event with the confirmed purchase amount. Event ID | Transaction ID | Amount | Status |
---|---|---|---|
123 | 123 | $50 | APPROVED |
234 | 123 | $50 | CAPTURED |
APPROVED
step (e.g., force capture) or capture for more/less than the APPROVED
amount. Regardless, CAPTURED
always represents a confirmed purchase amount.Customer completes $50 purchase, which is partially captured multiple times
CAPTURED
events with the amount
encompassing each individual charge. Event ID | Transaction ID | Amount | Status | … |
---|---|---|---|---|
123 | 123 | $50 | APPROVED | … |
234 | 123 | $20 | CAPTURED | … |
345 | 123 | $30 | CAPTURED | … |
Merchant updates transaction amount
Event ID | Transaction ID | Amount | Status | … |
---|---|---|---|---|
123 | 123 | $100 | APPROVED | … |
234 | 123 | $50 | UPDATED | … |
… | … | … | … | … |
Merchant cancels the order
APPROVED
authorization or lets the authorization expire (e.g., after nine days without capture), you will receive a VOIDED
event. Event ID | Transaction ID | Amount | Status | … |
---|---|---|---|---|
123 | 123 | $50 | APPROVED | … |
234 | 123 | $50 | VOIDED | … |
Customer completes $50 purchase, then receives a $30 refund
REFUNDED
event for each. In most cases, refunds are linked to an existing transaction (e.g., example below), but standalone refunds are possible as well.Event ID | Transaction ID | Amount | Status | … |
---|---|---|---|---|
123 | 123 | $50 | APPROVED | … |
234 | 123 | $50 | CAPTURED | … |
345 | 123 | $30 | REFUNDED | … |
$50 purchase is disputed and won by the customer
CAPTURED
transaction is disputed and won by the customer (e.g., example below), it translates to a new refund. If the dispute is lost, no change - it’s still a purchase on the customer’s statement. Event ID | Transaction ID | Amount | Status | … |
---|---|---|---|---|
123 | 123 | $50 | APPROVED | … |
234 | 123 | $50 | CAPTURED | … |
345 | 123 | $50 | REFUNDED | … |