Retrieve an independent authentication session
/authentication/{id}Retrieves the details of an independent authentication session.
Headers
AuthorizationstringRequiredPath parameters
idstringRequiredThe unique identifier of the authentication session.
Returns
Returns the authentication session object.
idstringRequiredUnique identifier for the authentication session.
resourcestringRequiredString representing the object's type.
typestringRequiredSession type indicating whether this is a setup or payment authentication.
amountintegerRequiredAmount, in the smallest currency unit.
amount_human_readablestringAmount in human-readable format.
billing_detailsobject or nullShow 2 child attributesHide child attributes
Option 1objectBilling information for the payment. Fields that were not provided are returned as null.
Show 6 child attributesHide child attributes
addressobject or nullBilling address, if available.
Show 2 child attributesHide child attributes
Option 1objectAddress details.
Show 6 child attributesHide child attributes
citystringCity, district, suburb, town, or village.
countrystringTwo-letter country code (ISO 3166-1 alpha-2).
line1stringAddress line 1 (for example, street, PO Box, or company name).
line2string or nullAddress line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.
postal_codestringZIP or postal code.
statestring or nullState, county, province, or region. Null is accepted and returned when not set.
Option 2nullnamestring or nullFull name of the billing contact.
emailstring or nullEmail address of the billing contact.
phonestring or nullPhone number of the billing contact, if available.
dobstring or nullDate of birth in YYYY-MM-DD format.
national_identification_numberstring or nullNational identification number of the billing contact.
Option 2nullcreatedstringRequiredTime at which the object was created, in ISO 8601 format.
currencystringRequiredThree-letter ISO currency code, in lowercase.
Show 14 more attributesShow fewer attributes
metadataobjectSet of key-value pairs attached to the object.
payment_methodstring or nullUnique identifier of the Payment Method used in this authentication session, if applicable.
payment_method_detailsobject or nullDetails about the payment method, including third_party_tokens, card.payout and card.three_d_secure.
Show 2 child attributesHide child attributes
Option 1objectDetails about the payment method at the time of the transaction.
Show 6 child attributesHide child attributes
typestringThe type of the payment method.
cardobjectDetails about the card, if the payment method is a card.
Show 21 child attributesHide child attributes
binstringThe first six digits of the card number.
brandstringThe brand of the card.
cardholder_currencystringThree-letter ISO currency code of the cardholder's card, in lowercase.
countrystringTwo-letter ISO code representing the country of the card issuer.
exp_monthstringTwo-digit string representing the card's expiration month.
exp_yearstringFour-digit string representing the card's expiration year.
fingerprintstringUnique identifier for this card number, useful for detecting duplicate cards across customers.
fundingstringThe funding type of the card.
last4stringThe last four digits of the card number.
networkstringThe card's brand, such as visa. The payment's network data is in underlying_network_details.
categorystringCard category.
security_checksobjectResults of security checks performed on the card.
Show 3 child attributesHide child attributes
address_line1_checkstring or nullResult of the AVS check for address line 1. Null when the acquirer returned no address result.
address_postal_code_checkstring or nullResult of the AVS check for postal code. Null when the acquirer returned no address result.
cvc_checkstringResult of the CVC check. unchecked when the acquirer returned no result.
walletobject or nullDetails about the digital wallet used, if applicable.
Show 4 child attributesHide child attributes
typestringType of the digital wallet. One of googlepay, applepay, or ctp (Click to Pay).
googlepayobjectGoogle Pay details. Present when type is googlepay.
Show 2 child attributesHide child attributes
typestringGoogle Pay authentication method. One of cryptogram_3ds (tokenized card) or pan_only (card stored in the Google account).
physical_card_last4stringThe last four digits of the physical card behind the wallet token, if available.
applepayobjectApple Pay details, if available.
Show 1 child attributeHide child attributes
physical_card_last4stringThe last four digits of the physical card behind the wallet token.
ctpobjectClick to Pay details, if available.
Show 4 child attributesHide child attributes
physical_card_last4stringThe last four digits of the physical card.
physical_card_binstringThe BIN of the physical card, if available.
physical_card_exp_monthstringExpiration month of the physical card, if available.
physical_card_exp_yearstringExpiration year of the physical card, if available.
tokenstringToken identifier for the card payment method.
three_d_secureobject or nullDetails about the 3D Secure authentication, if the payment used 3D Secure. Null otherwise. Not returned to accounts with the new 3D Secure fields enabled, which receive three_ds instead.
Show 2 child attributesHide child attributes
Option 1objectPopulated if this payment used 3D Secure authentication. This is the default format; accounts with the new 3D Secure fields enabled receive three_ds instead.
Show 7 child attributesHide child attributes
authentication_flowstring or nullFor authenticated transactions: how the customer was authenticated by the issuing bank, for example challenge or frictionless.
resultstring or nullOutcome of the 3D Secure authentication, for example success, failure or error.
result_reasonstring or nullReason for the result. One of authenticated, rejected, processing_errors, out_of_scope, high_risk, invalid, network_not_supported, acquirer_not_supported, not_enrolled, unavailable, or unknown, if applicable.
versionstring or nullThe version of 3D Secure that was used.
ecistring or nullECI Indicator from the 3D Secure authentication.
cardholder_infostring or nullText provided by the ACS/issuer to the cardholder during authentication, if applicable.
liability_shiftbooleanWhether the liability shift was applied.
Option 2nullthree_dsobject or nullDetails about the 3D Secure authentication in the new fields format, if the payment used 3D Secure. Only returned to accounts with the new 3D Secure fields enabled, instead of three_d_secure.
Show 2 child attributesHide child attributes
Option 1objectPopulated if this payment used 3D Secure authentication. Returned as three_ds only for accounts with the new 3D Secure fields enabled; other accounts receive three_d_secure.
Show 14 child attributesHide child attributes
authentication_flowstringFor authenticated transactions: how the customer was authenticated by the issuing bank.
resultstringOutcome of the 3D Secure authentication, for example success, failure or error.
result_reasonstringReason for the result. One of authenticated, rejected, processing_errors, out_of_scope, high_risk, invalid, network_not_supported, acquirer_not_supported, not_enrolled, unavailable, or unknown, if applicable.
status_reasonstring or nullStatus reason code from the 3D Secure authentication.
protocol_versionstringThe version of 3D Secure that was used.
ecistringECI Indicator from the 3D Secure authentication.
cryptogramstringCryptogram from the 3D Secure authentication.
liability_shiftbooleanWhether the liability shift was applied.
cardholder_infostring or nullText provided by the ACS/issuer to the cardholder during authentication.
acs_transaction_idstringACS Transaction ID from the 3D Secure authentication.
three_ds_server_transaction_idstring3DS Server Transaction ID from the 3D Secure authentication.
ds_transaction_idstringDS Transaction ID from the 3D Secure authentication.
aresstringAuthentication Response (ARes) from the 3D Secure authentication.
rreqstringRequestor Response (RReq) from the 3D Secure authentication.
Option 2nullpayoutstring or nullWhether the card can receive payouts. One of available or not_available, if known.
name_verificationstringResult of name verification using ANI (Account Name Inquiry). One of match, partial_match, no_match, not_performed, or not_supported.
partial_approvalobject or nullDetails about the partial approval, if the transaction was partially approved. Null otherwise.
Show 2 child attributesHide child attributes
Option 1objectDetails about the partial approval, if the transaction was partially approved.
Show 5 child attributesHide child attributes
statusstringStatus of the partial approval:
pending: the issuer approved a lower amount, and the payment waits for you to confirm or cancel it.accepted: the lower amount was accepted.canceled: the partial approval was canceled, and the payment wasn't completed.rejected: a partial approval was requested, but the issuer declined the payment for insufficient funds instead. Its amounts are 0.
amount_requestedintegerAmount requested, in the smallest currency unit.
amount_chargedintegerAmount charged, in the smallest currency unit.
product_idstringUnique identifier of the product associated with the partial approval.
Option 2nullnamestringThe cardholder's name. Only present for specific merchants.
issuerstringName of the card issuer. Only present for specific merchants.
cashappobjectDetails about the Cash App account, if the payment method is Cash App.
Show 2 child attributesHide child attributes
cashtagstringThe Cash App account the customer set up.
namestringName of the Cash App account holder, if applicable.
referencestring or nullExternal reference to the payment method, if applicable.
setup_future_usagestring or nullThe context in which this payment method was set up to be reused for future payments, if applicable. One of on_session or off_session.
third_party_tokensarray of objectsTokens for this card held by third-party providers (for example tokenex, stripe, centrobill or aptpay). Empty when there are none.
Show 5 child attributesHide child attributes
typestringThe third-party provider. The provider's details are in a field with the same name.
tokenexobjectShow 1 child attributeHide child attributes
tokenstringThe TokenEx token.
stripeobjectShow 3 child attributesHide child attributes
accountstringThe Stripe account.
customerstringThe Stripe customer.
payment_methodstringThe Stripe payment method.
centrobillobjectShow 3 child attributesHide child attributes
accountstringThe Centrobill account.
customerstringThe Centrobill customer.
sitestringThe Centrobill site.
aptpayobjectShow 1 child attributeHide child attributes
customerstringThe AptPay customer.
Option 2nullreferencestring or nullA string to reference the authentication session, useful for reconciliation with your internal systems.
shippingobject or nullShow 2 child attributesHide child attributes
Option 1objectShipping information for the payment.
Show 3 child attributesHide child attributes
addressobjectAddress details.
Show 6 child attributesHide child attributes
citystringCity, district, suburb, town, or village.
countrystringTwo-letter country code (ISO 3166-1 alpha-2).
line1stringAddress line 1 (for example, street, PO Box, or company name).
line2string or nullAddress line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.
postal_codestringZIP or postal code.
statestring or nullState, county, province, or region. Null is accepted and returned when not set.
namestringFull name of the recipient.
phonestringPhone number of the recipient, preferably in E.164 format. The leading + is optional.
Option 2nulltest_modebooleanRequiredWhether the authentication session was created in the sandbox.
return_urlstring or nullURL to redirect the customer to after authentication completes, if set.
authentication_optionsobjectOptions to influence or describe the desired authentication behavior.
Show 2 child attributesHide child attributes
three_dsobjectOptions for 3-D Secure (2.x) authentication.
Show 1 child attributeHide child attributes
flow_indicatorobjectIndicates supported/desired 3DS flows.
Show 3 child attributesHide child attributes
typestringThe supported 3DS flow type.
challengeobjectParameters specific to challenge flow.
Show 1 child attributeHide child attributes
typestringChallenge type or mandate indicator.
frictionlessobjectParameters specific to frictionless flow.
Show 1 child attributeHide child attributes
sca_exemption_typestringSCA exemption type.
three_riobjectOptions for 3DS Requestor Initiated (3RI) authentication.
Show 2 child attributesHide child attributes
indicatorstring3RI indicator or reason.
initial_authentication_infoobjectInformation about the initial cardholder authentication event.
Show 3 child attributesHide child attributes
typestringThe type of initial authentication info. One of data or transaction.
transactionobjectRelated transaction reference.
Show 1 child attributeHide child attributes
idstringTransaction identifier of the initial charge.
dataobjectAdditional data for the initial authentication event.
Show 4 child attributesHide child attributes
authentication_flowstringHow the initial authentication was performed.
date_timestringTime at which the initial authentication occurred, in ISO 8601 format.
acs_transaction_idstringACS transaction ID of the initial authentication.
ds_transaction_idstringDS transaction ID of the initial authentication.
authentication_typestringThe authentication mechanism used. One of three_ds, three_ri, or bep.
authentication_detailsobjectResult of the authentication.
Show 1 child attributeHide child attributes
three_dsobject or nullResult of the 3D Secure authentication, in the new fields format. The cryptogram is returned as cavv. Null until the customer is authenticated.
Show 2 child attributesHide child attributes
Option 1object3D Secure authentication result of an authentication session.
- In
authentication_details.three_ds(standalone sessions) and inthree_ds(authentication sessions, for accounts with the new 3D Secure fields enabled), the result usesauthentication_flow,protocol_version,ds_transaction_id,acs_transaction_id,three_ds_server_transaction_id,aresandrreq. - In
three_d_secure_details(authentication sessions, default format), it usesflow,versionandds_trans_idinstead.
cavv, xid, eci, cardholder_info and status_reason appear in both formats. Values that are not available are null.
Show 15 child attributesHide child attributes
cavvstring or nullCardholder Authentication Verification Value (CAVV), the cryptogram returned by the 3D Secure authentication.
xidstring or nullTransaction identifier from 3D Secure 1 authentication, if applicable.
ecistring or nullElectronic Commerce Indicator returned by the authentication, for example 05 or 06.
cardholder_infostring or nullText provided by the ACS/issuer to the cardholder during authentication, if any.
status_reasonstring or nullReason code when authentication failed or was not completed, if applicable.
authentication_flowstring or nullFlow performed, for example challenge or frictionless. New format only.
protocol_versionstring or null3D Secure protocol version used. New format only.
ds_transaction_idstring or nullDirectory Server transaction ID. New format only.
acs_transaction_idstring or nullACS transaction ID. New format only.
three_ds_server_transaction_idstring or nullTransaction ID assigned by the 3DS Server. New format only.
aresstring or nullRaw Authentication Response (ARes) returned by the ACS, as a JSON string. New format only.
rreqstring or nullRaw Results Request (RReq) from the ACS, as a JSON string. New format only.
flowstring or nullFlow performed, for example challenge or frictionless. Default format only.
versionstring or null3D Secure protocol version used. Default format only.
ds_trans_idstring or nullDirectory Server transaction ID. Default format only.
Option 2nullfingerprint_urlstring or nullURL used for device fingerprinting during risk assessment and 3D Secure authentication. Only set while status is requires_submission.
urlstring or nullURL to start or continue the authentication flow. Only set while status is requires_authentication.
statusstringRequiredCurrent status of the authentication session. One of requires_submission, requires_authentication, error, failed, or succeeded.
resultstring or nullFinal outcome of the authentication session, once completed. One of abandoned, attempt_acknowledged, authenticated, denied, not_supported, processing_error, or rejected.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.404500503Retry-After, or after a few seconds when there's none.