Card Authorization Result Webhooks
Card authorization webhooks notify you when a card authorization result is available, such as APPROVED, DECLINED, or another non-approval outcome.
They also return estimated platform fees. Use these estimates to understand merchant charges before settlement.
The following card authorization response types are available:
The following table describes the payload fields in each response type.
PayLoadType
string
Identifies the event type for routing and filtering.
Approved → card.authorization.approved
Declined → card.authorization.declined
Failed → card.authorization.failed
Payload
object
Contains the authorization result details.
All response types
Payload.data
object
Contains the Gateway transaction payload for the authorization. The field set varies by transaction type and version.
All response types
Payload.data.payloadType
string
The Gateway payload type. This is typically transaction.
All response types
Payload.data.transaction
object
Contains transaction details returned by the Gateway.
All response types
Payload.data.transaction.id
string
The unique identifier of the card transaction.
All response types
Payload.data.transaction.amount
string
The transaction amount.
All response types
Payload.data.transaction.result
string
The Gateway result for the authorization, such as APPROVED or DECLINED.
All response types
Payload.data.transaction.type
string
The transaction type, such as AUTH or SALE.
All response types
Payload.data.transaction.created
string
The date and time when the transaction was created.
All response types
Payload.data.transaction.card-type
string
The card brand, such as VISA.
All response types
Payload.data.transaction.last-four
string
The last four digits of the card.
All response types
Payload.data.transaction.authorization-code
string
The authorization code when the transaction is approved.
Approved → card.authorization.approved
Payload.data.transaction.display-message
string
A readable message describing the result.
All response types
Payload.data.transaction.merchant-id
string
The merchant identifier associated with the transaction.
All response types
Payload.data.transaction.terminal-id
string
The terminal identifier associated with the transaction.
All response types
Payload.data.transaction.billing
object
Billing address for the transaction. This field is included only when billing was supplied in the original authorization request. Nested fields can include first-name, last-name, company, street, street2, city, state, zip, country, and phone.
All response types
Payload.platform-fees
array
Estimated platform fees for the transaction. This array can be empty ([]).
All response types
Payload.platform-fees[].fee
number
The flat fee from the merchant pricing plan.
All response types
Payload.platform-fees[].rate
number
The rate from the merchant pricing plan.
All response types
Payload.platform-fees[].description
string
The fee description from the pricing plan.
All response types
Payload.platform-fees[].estimated-fee-amount
string
The estimated fee amount for this transaction, formatted to five decimal places. If rate is 0, this value equals fee. Otherwise, it equals the transaction amount multiplied by rate.
All response types
When each response type is sent
The Gateway sends a webhook based on the card authorization result. The following table describes when each response type is sent with example.
Approved
card.authorization.approved
The Gateway reports an approved or approval-like result, such as APPROVED or APPROVED_FOR_PARTIAL_AMOUNT.
Declined
card.authorization.declined
The Gateway reports a declined or decline-like result, such as DECLINED, DECLINED_CARD_EXPIRED, or Declined by Issuer - Closed account.
Failed
card.authorization.failed
The result is neither approved-like nor declined-like, such as NOT_SUFFICIENT_FUNDS, CARD_EXPIRED, system or retry errors, or an empty or unknown status.
Last updated
Was this helpful?

