Skip to main content

Authorization Request Webhook Events

The following events are triggered for authorization request-related activities. For detailed information about setting up webhooks, see Webhooks.

authorizationRequest.approved​

Occurs when an AuthorizationRequest is approved. The outcome attribute reflects what your integration produced when the request reached a terminal decision. See Understanding authorization decisions.

Example authorizationRequest.approved payload:
{
"data": [
{
"id": "412",
"type": "authorizationRequest.approved",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"available": 2500,
"status": "Approved",
"approvedAmount": 2000,
"outcome": "Approved",
"partialApprovalAllowed": false,
"merchant": {
"name": "Merchant name",
"type": "6012",
"id": "311204598883"
},
"recurring": false,
"tags": {
"tag": "value"
}
},
"relationships": {
"authorizationRequest": {
"data": {
"id": "6",
"type": "purchaseAuthorizationRequest"
}
},
"account": {
"data": {
"id": "10001",
"type": "account"
}
},
"customer": {
"data": {
"id": "10000",
"type": "customer"
}
},
"card": {
"data": {
"id": "7",
"type": "card"
}
}
}
}
]
}

Occurs when an ATM AuthorizationRequest is approved. The ATM variant includes atmName, surcharge, and direction, and does not include merchant or recurring.

AttributeTypeDescription
createdAtRequest for Comments (RFC) 3339 Date stringThe date the event was created.
amountintegerThe requested amount (in cents).
availableintegerThe available balance (in cents).
statusstringThe authorization request status.
approvedAmountintegerThe approved amount (in cents).
partialApprovalAllowedbooleanWhether partial approval is allowed.
directionstringThe direction of the transaction.
atmNamestringThe name of the ATM.
surchargeintegerThe ATM surcharge (in cents).
tagsobjectSee Tags.
atmLocationstringOptional. The location of the ATM.
internationalServiceFeeintegerOptional. The international service fee (in cents).
currencyConversionobjectOptional. Currency conversion details for the transaction.
isInternationalbooleanOptional. Whether the transaction is international.
outcomestringOptional. What your integration produced when the request reached a terminal decision.
RelationshipTypeDescription
authorizationRequestJSON:API RelationshipThe ATM authorization request. Resource type: atmAuthorizationRequest.
accountJSON:API RelationshipThe account of the card. Resource type: account.
customerJSON:API RelationshipThe customer. Resource type: customer.
cardJSON:API RelationshipThe card used. Resource type: card.
Example authorizationRequest.approved payload (ATM):
{
"data": [
{
"id": "412",
"type": "authorizationRequest.approved",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"available": 2500,
"status": "Approved",
"approvedAmount": 2000,
"outcome": "Approved",
"partialApprovalAllowed": false,
"direction": "Debit",
"atmName": "HOME FED SAV BK",
"atmLocation": "Cupertino, CA, US",
"surcharge": 300,
"internationalServiceFee": 150,
"currencyConversion": {
"originalCurrency": "EUR",
"amountInOriginalCurrency": 1000,
"fxRate": "1.164"
},
"isInternational": true,
"tags": {
"tag": "value"
}
},
"relationships": {
"authorizationRequest": {
"data": {
"id": "6",
"type": "atmAuthorizationRequest"
}
},
"account": {
"data": {
"id": "10001",
"type": "account"
}
},
"customer": {
"data": {
"id": "10000",
"type": "customer"
}
},
"card": {
"data": {
"id": "7",
"type": "card"
}
}
}
}
]
}

authorizationRequest.declined​

Occurs when an AuthorizationRequest is declined. The outcome attribute reflects what your integration produced when the request reached a terminal decision. See Understanding authorization decisions.

Example authorizationRequest.declined payload:
{
"data": [
{
"id": "412",
"type": "authorizationRequest.declined",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"available": 1900,
"status": "Declined",
"declineReason": "InsufficientFunds",
"outcome": "Declined",
"partialApprovalAllowed": false,
"merchant": {
"name": "Merchant name",
"type": "6012",
"id": "311204598883"
},
"recurring": false,
"tags": {
"tag": "value"
}
},
"relationships": {
"authorizationRequest": {
"data": {
"id": "6",
"type": "purchaseAuthorizationRequest"
}
},
"account": {
"data": {
"id": "10001",
"type": "account"
}
},
"customer": {
"data": {
"id": "10000",
"type": "customer"
}
},
"card": {
"data": {
"id": "7",
"type": "card"
}
}
}
}
]
}

Occurs when an ATM AuthorizationRequest is declined. The ATM variant includes atmName, surcharge, and direction, and does not include merchant or recurring.

AttributeTypeDescription
createdAtRFC3339 Date stringThe date the event was created.
amountintegerThe requested amount (in cents).
availableintegerThe available balance (in cents).
statusstringThe authorization request status.
declineReasonstringThe reason the authorization request was declined.
partialApprovalAllowedbooleanWhether partial approval is allowed.
directionstringThe direction of the transaction.
atmNamestringThe name of the ATM.
surchargeintegerThe ATM surcharge (in cents).
tagsobjectSee Tags.
atmLocationstringOptional. The location of the ATM.
internationalServiceFeeintegerOptional. The international service fee (in cents).
currencyConversionobjectOptional. Currency conversion details for the transaction.
isInternationalbooleanOptional. Whether the transaction is international.
outcomestringOptional. What your integration produced when the request reached a terminal decision.
RelationshipTypeDescription
authorizationRequestJSON:API RelationshipThe ATM authorization request. Resource type: atmAuthorizationRequest.
accountJSON:API RelationshipThe account of the card. Resource type: account.
customerJSON:API RelationshipThe customer. Resource type: customer.
cardJSON:API RelationshipThe card used. Resource type: card.
Example authorizationRequest.declined payload (ATM):
{
"data": [
{
"id": "412",
"type": "authorizationRequest.declined",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"available": 1900,
"status": "Declined",
"declineReason": "InsufficientFunds",
"outcome": "Declined",
"partialApprovalAllowed": false,
"direction": "Debit",
"atmName": "HOME FED SAV BK",
"atmLocation": "Cupertino, CA, US",
"surcharge": 300,
"internationalServiceFee": 150,
"currencyConversion": {
"originalCurrency": "EUR",
"amountInOriginalCurrency": 1000,
"fxRate": "1.164"
},
"isInternational": true,
"tags": {
"tag": "value"
}
},
"relationships": {
"authorizationRequest": {
"data": {
"id": "6",
"type": "atmAuthorizationRequest"
}
},
"account": {
"data": {
"id": "10001",
"type": "account"
}
},
"customer": {
"data": {
"id": "10000",
"type": "customer"
}
},
"card": {
"data": {
"id": "7",
"type": "card"
}
}
}
}
]
}

authorizationRequest.pending​

Occurs when an AuthorizationRequest is pending approval. See Programmatic authorization of card use. The outcome attribute is not present while the request is pending.

Note

For healthcare card transactions on purchaseAuthorizationRequest, the authorizationRequest.pending (and the corresponding .approved / .declined) payload may carry the Healthcare Amounts breakdown under two keys with identical content: healthcareAmounts (lowercase, the canonical key — matches the persisted resource attribute) and healthCareAmounts (mixed case, retained for backward compatibility). Read whichever is present and treat them as the same value; do not sum them. cardTransactionAuthorizationRequest and atmAuthorizationRequest events do not carry healthcare amounts.

Example authorizationRequest.pending payload:
{
"data": [
{
"id": "412",
"type": "authorizationRequest.pending",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"available": 150000,
"status": "Pending",
"partialApprovalAllowed": false,
"merchant": {
"name": "Merchant name",
"type": "6012",
"id": "311204598883"
},
"recurring": false,
"ecommerce": true,
"cardPresent": false,
"direction": "Debit",
"mustBeApproved": false,
"tags": {
"tag": "value"
}
},
"relationships": {
"authorizationRequest": {
"data": {
"id": "6",
"type": "purchaseAuthorizationRequest"
}
},
"account": {
"data": {
"id": "10001",
"type": "account"
}
},
"customer": {
"data": {
"id": "10000",
"type": "customer"
}
},
"card": {
"data": {
"id": "7",
"type": "card"
}
}
}
}
]
}