Skip to main content

Authorization Request Resources

This page documents the resources related to Authorization Requests. For the complete list of all resources, see Resources.

PurchaseAuthorizationRequest

PurchaseAuthorizationRequest is a JSON:API resource representing a purchase authorization request. Top-level fields:

NameTypeDescription
idstringIdentifier of the authorization request resource.
typestringType of the resource. The value is always purchaseAuthorizationRequest.
attributesJSON ObjectJSON object representing the authorization request data.
relationshipsJSON:API RelationshipsDescribes relationships between the authorization request and other resources.

Attributes

NameTypeDescription
createdAtRFC3339 Date stringThe date the resource was created.
amountintegerThe amount (cents) of the authorization request.
statusstringThe status of the authorization request.
outcome OptionalstringOptional. What your programmatic integration produced when the request reached a terminal decision. See Understanding authorization decisions. One of Approved, Declined, PostTimeout, PostError, WaitTimeout.
partialApprovalAllowedbooleanWhether partial approval is allowed.
merchantobjectInformation about the merchant.
recurringbooleanWhether this is a recurring authorization.
ecommercebooleanWhether this is an e-commerce transaction.
cardPresentbooleanWhether the card was present.
tagsobjectSee Tags. When the authorization request was auto-completed using the timeout strategy, this field may also contain decision_source and timeout_strategy; prefer the outcome attribute for new integrations.

Relationships

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account.
customerJSON:API RelationshipThe Customer.
cardJSON:API RelationshipThe Card.
Example PurchaseAuthorizationRequest resource:
{
"type": "purchaseAuthorizationRequest",
"id": "1",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"status": "Approved",
"outcome": "Approved",
"partialApprovalAllowed": false,
"merchant": {
"name": "Merchant name",
"type": "6012",
"id": "311204598883"
},
"recurring": false,
"ecommerce": true,
"cardPresent": false,
"tags": {}
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10001"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"card": {
"data": {
"type": "card",
"id": "7"
}
}
}
}

CardTransactionAuthorizationRequest

CardTransactionAuthorizationRequest is a JSON:API resource representing a card transaction authorization request. Top-level fields:

NameTypeDescription
idstringIdentifier of the authorization request resource.
typestringType of the resource. The value is always cardTransactionAuthorizationRequest.
attributesJSON ObjectJSON object representing the authorization request data.
relationshipsJSON:API RelationshipsDescribes relationships between the authorization request and other resources.

Attributes

NameTypeDescription
createdAtRFC3339 Date stringThe date the resource was created.
amountintegerThe amount (cents) of the authorization request.
statusstringThe status of the authorization request.
outcome OptionalstringOptional. What your programmatic integration produced when the request reached a terminal decision. See Understanding authorization decisions.
partialApprovalAllowedbooleanWhether partial approval is allowed.
merchantobjectInformation about the merchant.
recurringbooleanWhether this is a recurring authorization.
directionstringThe direction of the transaction (Credit or Debit).

Relationships

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account.
customerJSON:API RelationshipThe Customer.
cardJSON:API RelationshipThe Card.
Example CardTransactionAuthorizationRequest resource:
{
"type": "cardTransactionAuthorizationRequest",
"id": "1",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"status": "Approved",
"outcome": "Approved",
"partialApprovalAllowed": false,
"merchant": {
"name": "Merchant name",
"type": "6012",
"id": "311204598883"
},
"recurring": false,
"direction": "Debit",
"tags": {}
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10001"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"card": {
"data": {
"type": "card",
"id": "7"
}
}
}
}

AtmAuthorizationRequest

AtmAuthorizationRequest is a JSON:API resource representing an ATM authorization request. Top-level fields:

NameTypeDescription
idstringIdentifier of the authorization request resource.
typestringType of the resource. The value is always atmAuthorizationRequest.
attributesJSON ObjectJSON object representing the authorization request data.
relationshipsJSON:API RelationshipsDescribes relationships between the authorization request and other resources.

Attributes

NameTypeDescription
createdAtRFC3339 Date stringThe date the resource was created.
amountintegerThe amount (cents) of the authorization request.
statusstringThe status of the authorization request.
outcome OptionalstringOptional. What your programmatic integration produced when the request reached a terminal decision. See Understanding authorization decisions.
directionstringThe direction of the transaction (Credit or Debit).
atmNamestringThe name of the ATM.
atmLocationstringThe location of the ATM.
surchargeintegerThe surcharge amount in cents.
tagsobjectSee Tags. When the authorization request was auto-completed using the timeout strategy, this field may also contain decision_source and timeout_strategy; prefer the outcome attribute for new integrations.

Relationships

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account.
customerJSON:API RelationshipThe Customer.
cardJSON:API RelationshipThe Card.
Example AtmAuthorizationRequest resource:
{
"type": "atmAuthorizationRequest",
"id": "1",
"attributes": {
"createdAt": "2021-06-24T08:10:08.081Z",
"amount": 2000,
"status": "Approved",
"outcome": "Approved",
"direction": "Debit",
"atmName": "ATM Name",
"atmLocation": "123 Main St",
"surcharge": 250,
"tags": {}
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10001"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"card": {
"data": {
"type": "card",
"id": "7"
}
}
}
}