Skip to Content
Docs
Standalone authentication

Create an independent authentication session

POST/authentication/session/independent

Creates a new independent (standalone) 3D Secure authentication session for a payment method, without creating a charge or hold.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.
idempotency-keystring

A unique key, such as a UUID, that makes a POST or DELETE request safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace.

  • A retry with the same key, endpoint and body gets the first request's stored status and body, without running the request again.
  • If the first request is still being processed, a retry gets 409 idempotency_error (request_in_progress).
  • The same key on another endpoint, or with another body, gets 400 idempotency_error (invalid_parameters).
  • GET, PUT and PATCH requests ignore the key.

The response repeats the key in its Idempotency-Key header.

Parameters

paymentbooleanRequired

Whether the authentication session is for a payment (true) or a setup (false).

amountinteger

Amount to authenticate, in the smallest currency unit. Required when payment is true, and not allowed when payment is false.

currencystring

Three-letter ISO currency code, in lowercase. Required when payment is true, and not allowed when payment is false.

payment_methodstring

Unique identifier of the payment method (pm_<type>_<id>) or card token (tok_card_<id>) to authenticate. Exactly one of payment_method and payment_method_data is required.

referencestring

A string to reference the authentication session, useful for reconciliation with your internal systems.

settlement_accountstring

Unique identifier of the settlement account to use for this authentication session.

return_urlstring

URL to redirect the customer to after authentication completes.

shippingobject

Shipping information for the payment.

Show 3 child parametersHide child parameters
addressobject

Address details.

Show 6 child parametersHide child parameters
citystring

City, district, suburb, town, or village.

countrystring

Two-letter country code (ISO 3166-1 alpha-2).

line1string

Address line 1 (for example, street, PO Box, or company name).

line2string or null

Address line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.

postal_codestring

ZIP or postal code.

statestring or null

State, county, province, or region. Null is accepted and returned when not set.

namestring

Full name of the recipient.

phonestring

Phone number of the recipient, preferably in E.164 format. The leading + is optional.

metadataobject

Set of key-value pairs attached to the object.

payment_method_dataobject

Payment method details to authenticate. Exactly one of payment_method and payment_method_data is required. Raw card, network token and wallet data require an API key enabled for raw card data and are tokenized before they reach the payment API.

Show 10 child parametersHide child parameters
billing_detailsobject

Billing information for the payment.

Show 11 child parametersHide child parameters
addressobject

Address details.

Show 6 child parametersHide child parameters
citystring

City, district, suburb, town, or village.

countrystring

Two-letter country code (ISO 3166-1 alpha-2).

line1string

Address line 1 (for example, street, PO Box, or company name).

line2string or null

Address line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.

postal_codestring

ZIP or postal code.

statestring or null

State, county, province, or region. Null is accepted and returned when not set.

namestring

Full name of the billing contact.

emailstring

Email address of the billing contact.

phonestring

Phone number of the billing contact, preferably in E.164 format. The leading + is optional, and an empty string is accepted.

dobstring

Date of birth in YYYY-MM-DD format.

national_identification_numberstring

National identification number of the billing contact.

ip_addressstring

IP address (IPv4 or IPv6) of the customer. Used for tax calculation when no address is available.

tax_idsarray of objects

Tax identifiers of the customer. Used for tax calculation.

Show 2 child parametersHide child parameters
typestringRequired

Type of the tax identifier. One of eu_vat, gb_vat, us_ein, ca_gst_hst, ca_bn, au_abn, in_gst, or pl_nip.

One of eu_vat, gb_vat, us_ein, ca_gst_hst, ca_bn, au_abn, in_gst or pl_nip.

valuestringRequired

Value of the tax identifier.

kyc_datestring

Time at which the customer's KYC check was completed, in ISO 8601 format.

screening_datestring

Time at which the customer was last screened, in ISO 8601 format.

signature_datestring

Time at which the customer signed the agreement, in ISO 8601 format.

typestringRequired

The type of the payment method. Send the object with the same name. One of card, token, source, network_token, googlepay, or applepay.

One of card, token, source, network_token, googlepay or applepay.

underlying_network_idstring

Unique transaction identifier assigned by the card network.

setup_future_usagestring

Indicates intent to use this payment method for future payments. One of on_session or off_session.

One of on_session or off_session.

cardobject

Raw details of a card payment method. External 3D Secure (three_ds) and 3RI (three_ri) results are not accepted here.

Show 7 child parametersHide child parameters
numberstringRequired

The card number, as a string without any separators.

expiry_monthstringRequired

Two-digit number representing the card's expiration month.

expiry_yearstringRequired

Two or four-digit number representing the card's expiration year.

cvvstring

Card security code. cvc is accepted as an alias.

Required when the CVV check is enabled (payment_method_options.card.security_checks.cvv_check in the request or in your account defaults), unless underlying_network_id is sent.

namestring

Cardholder's full name.

billing_addressobject

Billing address of the card. Used as the billing address when billing_details is not sent.

Show 6 child parametersHide child parameters
citystring

City, district, suburb, town, or village.

countrystring

Two-letter country code (ISO 3166-1 alpha-2).

line1string

Address line 1 (for example, street, PO Box, or company name).

line2string or null

Address line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.

postal_codestring

ZIP or postal code.

statestring or null

State, county, province, or region. Null is accepted and returned when not set.

authentication_contextobject
Show 2 child parametersHide child parameters
customer_ip_addressstring

Customer IP address.

browser_detailsobject

Customer browser details.

Show 9 child parametersHide child parameters
accept_headerstringRequired

Exact content of the HTTP accept headers.

javascript_enabledbooleanRequired

Whether Javascript is enabled in browser.

languagestringRequired

Browser language. Returned from navigator.language property from the HTML DOM API.

user_agentstringRequired

Exact content of the HTTP user-agent header.

screen_widthintegerRequired

Screen width of a device. Obtained from cardholder browser using the screen.width property.

screen_heightintegerRequired

Screen height of a device. Obtained from cardholder browser using the screen.height property.

timezone_offsetstringRequired

Offset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.

java_enabledbooleanRequired

Whether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.

color_depthintegerRequired

Color depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.

sourceobject
Show 2 child parametersHide child parameters
idstringRequired

A payment method to be used as the source for the authentication session.

authentication_contextobject
Show 2 child parametersHide child parameters
customer_ip_addressstring

Customer IP address.

browser_detailsobject

Customer browser details.

Show 9 child parametersHide child parameters
accept_headerstringRequired

Exact content of the HTTP accept headers.

javascript_enabledbooleanRequired

Whether Javascript is enabled in browser.

languagestringRequired

Browser language. Returned from navigator.language property from the HTML DOM API.

user_agentstringRequired

Exact content of the HTTP user-agent header.

screen_widthintegerRequired

Screen width of a device. Obtained from cardholder browser using the screen.width property.

screen_heightintegerRequired

Screen height of a device. Obtained from cardholder browser using the screen.height property.

timezone_offsetstringRequired

Offset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.

java_enabledbooleanRequired

Whether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.

color_depthintegerRequired

Color depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.

tokenobject
Show 3 child parametersHide child parameters
idstringRequired

A Pay.com card token (tok_card_).

cvvstring

Card security code.

authentication_contextobject
Show 2 child parametersHide child parameters
customer_ip_addressstring

Customer IP address.

browser_detailsobject

Customer browser details.

Show 9 child parametersHide child parameters
accept_headerstringRequired

Exact content of the HTTP accept headers.

javascript_enabledbooleanRequired

Whether Javascript is enabled in browser.

languagestringRequired

Browser language. Returned from navigator.language property from the HTML DOM API.

user_agentstringRequired

Exact content of the HTTP user-agent header.

screen_widthintegerRequired

Screen width of a device. Obtained from cardholder browser using the screen.width property.

screen_heightintegerRequired

Screen height of a device. Obtained from cardholder browser using the screen.height property.

timezone_offsetstringRequired

Offset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.

java_enabledbooleanRequired

Whether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.

color_depthintegerRequired

Color depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.

googlepayobject

The payload that was retrieved from the Google Pay response.

Show 5 child parametersHide child parameters
signaturestringRequired

Signature that verifies the message came from Google.

protocolVersionstringRequired

Version of the Google Pay encryption protocol used to create the token.

signedMessagestringRequired

The encrypted payment data and its metadata, as a serialized JSON string.

intermediateSigningKeyobjectRequired

Intermediate signing key from Google, used with protocolVersion ECv2.

Show 2 child parametersHide child parameters
signedKeystringRequired

The intermediate signing key, as a serialized JSON string.

signaturesarray of strings

Signatures that verify the intermediate signing key came from Google.

authentication_contextobject
Show 2 child parametersHide child parameters
customer_ip_addressstring

Customer IP address.

browser_detailsobject

Customer browser details.

Show 9 child parametersHide child parameters
accept_headerstringRequired

Exact content of the HTTP accept headers.

javascript_enabledbooleanRequired

Whether Javascript is enabled in browser.

languagestringRequired

Browser language. Returned from navigator.language property from the HTML DOM API.

user_agentstringRequired

Exact content of the HTTP user-agent header.

screen_widthintegerRequired

Screen width of a device. Obtained from cardholder browser using the screen.width property.

screen_heightintegerRequired

Screen height of a device. Obtained from cardholder browser using the screen.height property.

timezone_offsetstringRequired

Offset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.

java_enabledbooleanRequired

Whether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.

color_depthintegerRequired

Color depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.

applepayobject

The payload that was retrieved from the Apple Pay response.

Show 6 child parametersHide child parameters
signaturestringRequired

Signature of the payment and header data, as a Base64-encoded string.

versionstringRequired

Version of the Apple Pay payment token.

datastringRequired

Encrypted payment data, as a Base64-encoded string.

headerobjectRequired

Additional version-dependent information used to decrypt and verify the payment.

Show 3 child parametersHide child parameters
publicKeyHashstringRequired

Hash of the X.509 encoded public key bytes of the merchant's certificate, as a Base64-encoded string.

ephemeralPublicKeystringRequired

Ephemeral public key bytes, as a Base64-encoded string.

transactionIdstringRequired

Transaction identifier generated on the device, as a hexadecimal string.

paymentMethodobject

The paymentMethod object of the Apple Pay token, if available.

Show 3 child parametersHide child parameters
displayNamestring

Description of the card, suitable for display.

networkstring

Payment network of the card.

typestring

Type of the card.

authentication_contextobject
Show 2 child parametersHide child parameters
customer_ip_addressstring

Customer IP address.

browser_detailsobject

Customer browser details.

Show 9 child parametersHide child parameters
accept_headerstringRequired

Exact content of the HTTP accept headers.

javascript_enabledbooleanRequired

Whether Javascript is enabled in browser.

languagestringRequired

Browser language. Returned from navigator.language property from the HTML DOM API.

user_agentstringRequired

Exact content of the HTTP user-agent header.

screen_widthintegerRequired

Screen width of a device. Obtained from cardholder browser using the screen.width property.

screen_heightintegerRequired

Screen height of a device. Obtained from cardholder browser using the screen.height property.

timezone_offsetstringRequired

Offset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.

java_enabledbooleanRequired

Whether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.

color_depthintegerRequired

Color depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.

network_tokenobject

Raw network token details. Only a token cryptogram is accepted here; an external 3D Secure result is rejected.

Show 8 child parametersHide child parameters
tokenstringRequired

The network token (token PAN).

token_typestringRequired

Origin of the network token, for example applepay or googlepay.

expiry_monthstringRequired

Expiry month of the token.

expiry_yearstringRequired

Expiry year of the token.

namestring

Cardholder's full name.

cryptogramstring

Cryptogram for the token.

three_dsobject

Alternative way to send the token cryptogram. Only eci and cryptogram are accepted; more fields are rejected.

Show 2 child parametersHide child parameters
ecistring

The Electronic Commerce Indicator returned with the cryptogram.

cryptogramstring

Cryptogram for the token.

authentication_contextobject
Show 2 child parametersHide child parameters
customer_ip_addressstring

Customer IP address.

browser_detailsobject

Customer browser details.

Show 9 child parametersHide child parameters
accept_headerstringRequired

Exact content of the HTTP accept headers.

javascript_enabledbooleanRequired

Whether Javascript is enabled in browser.

languagestringRequired

Browser language. Returned from navigator.language property from the HTML DOM API.

user_agentstringRequired

Exact content of the HTTP user-agent header.

screen_widthintegerRequired

Screen width of a device. Obtained from cardholder browser using the screen.width property.

screen_heightintegerRequired

Screen height of a device. Obtained from cardholder browser using the screen.height property.

timezone_offsetstringRequired

Offset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.

java_enabledbooleanRequired

Whether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.

color_depthintegerRequired

Color depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.

authentication_optionsobject

Options controlling authentication.

Show 5 child parametersHide child parameters
typestringRequired

Type of authentication. One of three_ds, three_ri, or bep.

One of three_ds, three_ri or bep.

return_urlstringRequired

URL to redirect the customer to after the authentication challenge.

future_usageobject

Declares intended future usage of the card.

Show 3 child parametersHide child parameters
typestring

Type of future usage. One of instalment, recurring, or card_on_file.

One of instalment, recurring or card_on_file.

installmentobject

Instalment details. Required when type is instalment, and not allowed otherwise.

Show 5 child parametersHide child parameters
numberinteger

Number of instalments.

amountinteger

Amount of each instalment, in the smallest currency unit.

intervalstringRequired

Interval between instalments. One of day, month, or year.

One of day, month or year.

interval_countintegerRequired

Number of intervals between instalments.

expiryobject

Expiry of the instalment agreement, if applicable.

Show 1 child parameterHide child parameters
typestringRequired

Type of expiry.

recurringobject

Recurring payment details. Required when type is recurring, and not allowed otherwise.

Show 4 child parametersHide child parameters
amountinteger

Amount of each payment, in the smallest currency unit.

intervalstringRequired

Interval between payments. One of day, month, or year.

One of day, month or year.

interval_countintegerRequired

Number of intervals between payments.

expiryobject

Expiry of the recurring agreement, if applicable.

Show 1 child parameterHide child parameters
typestringRequired

Type of expiry.

three_dsobject

3D Secure options. Required when type is three_ds, and not allowed otherwise.

Show 3 child parametersHide child parameters
channelobjectRequired

The channel the customer authenticates in.

Show 2 child parametersHide child parameters
typestringRequired

Channel type.

One of browser.

browserobjectRequired

Details of the customer's browser.

Show 2 child parametersHide child parameters
customer_ip_addressstring

IP address of the customer.

browser_detailsobjectRequired

Browser data collected from the customer's browser.

Show 9 child parametersHide child parameters
accept_headerstringRequired

The browser's HTTP Accept header.

javascript_enabledbooleanRequired

Whether JavaScript is enabled in the browser.

languagestringRequired

The browser language.

user_agentstringRequired

The browser's user agent.

screen_widthintegerRequired

Screen width in pixels.

screen_heightintegerRequired

Screen height in pixels.

timezone_offsetstringRequired

Time zone offset from UTC, in minutes.

java_enabledbooleanRequired

Whether Java is enabled in the browser.

color_depthintegerRequired

Screen color depth, in bits.

flow_indicatorobject

Flow indicator for 3D Secure authentication.

Show 3 child parametersHide child parameters
typestring

Type of 3D Secure flow. One of challenge, frictionless, or data_share.

One of challenge, frictionless or data_share.

challengeobject

Challenge flow options. Only allowed when type is challenge.

Show 2 child parametersHide child parameters
typestringRequired

Type of challenge, such as mandated.

allow_frictionlessboolean

Whether to allow the frictionless flow as a fallback.

frictionlessobject

Frictionless flow options. Only allowed when type is frictionless.

Show 1 child parameterHide child parameters
sca_exemption_typestring

Type of SCA exemption. One of low_value, transaction_risk_analysis, or secure_corporate_process.

One of low_value, transaction_risk_analysis or secure_corporate_process.

submitstring

When to submit the session automatically. One of if_fingerprinting_not_supported, never, or always.

One of if_fingerprinting_not_supported, never or always.

Default: never

three_riobject

3RI options. Required when type is three_ri, and not allowed otherwise.

Show 2 child parametersHide child parameters
indicatorstringRequired

3RI indicator, for example recurring.

initial_authentication_infoobject

Information about the initial cardholder authentication, if available.

Show 3 child parametersHide child parameters
typestring

How the initial authentication is identified. One of data or transaction.

One of data or transaction.

transactionobject

The initial authentication transaction. Required when type is transaction.

Show 1 child parameterHide child parameters
idstringRequired

Identifier of the initial authentication transaction.

dataobject

The initial authentication data. Required when type is data.

Show 4 child parametersHide child parameters
authentication_flowstringRequired

Flow of the initial authentication.

date_timestringRequired

Time of the initial authentication.

acs_transaction_idstringRequired

ACS transaction ID of the initial authentication.

ds_transaction_idstringRequired

Directory Server transaction ID of the initial authentication.

Returns

Returns the created authentication session object.

idstringRequired

Unique identifier for the authentication session.

resourcestringRequired

String representing the object's type.

One of independent_authentication_session.

typestringRequired

Session type indicating whether this is a setup or payment authentication.

One of setup or payment.

amountintegerRequired

Amount, in the smallest currency unit.

amount_human_readablestring

Amount in human-readable format.

billing_detailsobject or null
Show 2 child attributesHide child attributes
Option 1object

Billing information for the payment. Fields that were not provided are returned as null.

Show 6 child attributesHide child attributes
addressobject or null

Billing address, if available.

Show 2 child attributesHide child attributes
Option 1object

Address details.

Show 6 child attributesHide child attributes
citystring

City, district, suburb, town, or village.

countrystring

Two-letter country code (ISO 3166-1 alpha-2).

line1string

Address line 1 (for example, street, PO Box, or company name).

line2string or null

Address line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.

postal_codestring

ZIP or postal code.

statestring or null

State, county, province, or region. Null is accepted and returned when not set.

Option 2null
namestring or null

Full name of the billing contact.

emailstring or null

Email address of the billing contact.

phonestring or null

Phone number of the billing contact, if available.

dobstring or null

Date of birth in YYYY-MM-DD format.

national_identification_numberstring or null

National identification number of the billing contact.

Option 2null
createdstringRequired

Time at which the object was created, in ISO 8601 format.

currencystringRequired

Three-letter ISO currency code, in lowercase.

Show 14 more attributesShow fewer attributes
metadataobject

Set of key-value pairs attached to the object.

payment_methodstring or null

Unique identifier of the Payment Method used in this authentication session, if applicable.

payment_method_detailsobject or null

Details about the payment method, including third_party_tokens, card.payout and card.three_d_secure.

Show 2 child attributesHide child attributes
Option 1object

Details about the payment method at the time of the transaction.

Show 6 child attributesHide child attributes
typestring

The type of the payment method.

cardobject

Details about the card, if the payment method is a card.

Show 21 child attributesHide child attributes
binstring

The first six digits of the card number.

brandstring

The brand of the card.

One of visa, mastercard, amex, discover, unionpay, jcb or diners.

cardholder_currencystring

Three-letter ISO currency code of the cardholder's card, in lowercase.

countrystring

Two-letter ISO code representing the country of the card issuer.

exp_monthstring

Two-digit string representing the card's expiration month.

exp_yearstring

Four-digit string representing the card's expiration year.

fingerprintstring

Unique identifier for this card number, useful for detecting duplicate cards across customers.

fundingstring

The funding type of the card.

One of debit, credit, prepaid or unknown.

last4string

The last four digits of the card number.

networkstring

The card's brand, such as visa. The payment's network data is in underlying_network_details.

categorystring

Card category.

One of consumer or business.

security_checksobject

Results of security checks performed on the card.

Show 3 child attributesHide child attributes
address_line1_checkstring or null

Result of the AVS check for address line 1. Null when the acquirer returned no address result.

One of pass, fail, unavailable or unchecked.

address_postal_code_checkstring or null

Result of the AVS check for postal code. Null when the acquirer returned no address result.

One of pass, fail, unavailable or unchecked.

cvc_checkstring

Result of the CVC check. unchecked when the acquirer returned no result.

One of pass, fail, unavailable or unchecked.

walletobject or null

Details about the digital wallet used, if applicable.

Show 4 child attributesHide child attributes
typestring

Type of the digital wallet. One of googlepay, applepay, or ctp (Click to Pay).

One of googlepay, applepay or ctp.

googlepayobject

Google Pay details. Present when type is googlepay.

Show 2 child attributesHide child attributes
typestring

Google Pay authentication method. One of cryptogram_3ds (tokenized card) or pan_only (card stored in the Google account).

One of cryptogram_3ds or pan_only.

physical_card_last4string

The last four digits of the physical card behind the wallet token, if available.

applepayobject

Apple Pay details, if available.

Show 1 child attributeHide child attributes
physical_card_last4string

The last four digits of the physical card behind the wallet token.

ctpobject

Click to Pay details, if available.

Show 4 child attributesHide child attributes
physical_card_last4string

The last four digits of the physical card.

physical_card_binstring

The BIN of the physical card, if available.

physical_card_exp_monthstring

Expiration month of the physical card, if available.

physical_card_exp_yearstring

Expiration year of the physical card, if available.

tokenstring

Token identifier for the card payment method.

three_d_secureobject or null

Details 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 1object

Populated 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 null

For authenticated transactions: how the customer was authenticated by the issuing bank, for example challenge or frictionless.

resultstring or null

Outcome of the 3D Secure authentication, for example success, failure or error.

result_reasonstring or null

Reason 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 null

The version of 3D Secure that was used.

ecistring or null

ECI Indicator from the 3D Secure authentication.

cardholder_infostring or null

Text provided by the ACS/issuer to the cardholder during authentication, if applicable.

liability_shiftboolean

Whether the liability shift was applied.

Option 2null
three_dsobject or null

Details 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 1object

Populated 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_flowstring

For authenticated transactions: how the customer was authenticated by the issuing bank.

resultstring

Outcome of the 3D Secure authentication, for example success, failure or error.

result_reasonstring

Reason 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 null

Status reason code from the 3D Secure authentication.

protocol_versionstring

The version of 3D Secure that was used.

ecistring

ECI Indicator from the 3D Secure authentication.

cryptogramstring

Cryptogram from the 3D Secure authentication.

liability_shiftboolean

Whether the liability shift was applied.

cardholder_infostring or null

Text provided by the ACS/issuer to the cardholder during authentication.

acs_transaction_idstring

ACS Transaction ID from the 3D Secure authentication.

three_ds_server_transaction_idstring

3DS Server Transaction ID from the 3D Secure authentication.

ds_transaction_idstring

DS Transaction ID from the 3D Secure authentication.

aresstring

Authentication Response (ARes) from the 3D Secure authentication.

rreqstring

Requestor Response (RReq) from the 3D Secure authentication.

Option 2null
payoutstring or null

Whether the card can receive payouts. One of available or not_available, if known.

One of available or not_available.

name_verificationstring

Result of name verification using ANI (Account Name Inquiry). One of match, partial_match, no_match, not_performed, or not_supported.

One of match, partial_match, no_match, not_performed or not_supported.

partial_approvalobject or null

Details about the partial approval, if the transaction was partially approved. Null otherwise.

Show 2 child attributesHide child attributes
Option 1object

Details about the partial approval, if the transaction was partially approved.

Show 5 child attributesHide child attributes
statusstring

Status 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.

One of pending, accepted, canceled or rejected.

amount_requestedinteger

Amount requested, in the smallest currency unit.

amount_authorizedinteger

Amount authorized, in the smallest currency unit.

amount_chargedinteger

Amount charged, in the smallest currency unit.

product_idstring

Unique identifier of the product associated with the partial approval.

Option 2null
namestring

The cardholder's name. Only present for specific merchants.

issuerstring

Name of the card issuer. Only present for specific merchants.

cashappobject

Details about the Cash App account, if the payment method is Cash App.

Show 2 child attributesHide child attributes
cashtagstring

The Cash App account the customer set up.

namestring

Name of the Cash App account holder, if applicable.

referencestring or null

External reference to the payment method, if applicable.

setup_future_usagestring or null

The context in which this payment method was set up to be reused for future payments, if applicable. One of on_session or off_session.

One of on_session or off_session.

third_party_tokensarray of objects

Tokens 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
typestring

The third-party provider. The provider's details are in a field with the same name.

tokenexobject
Show 1 child attributeHide child attributes
tokenstring

The TokenEx token.

stripeobject
Show 3 child attributesHide child attributes
accountstring

The Stripe account.

customerstring

The Stripe customer.

payment_methodstring

The Stripe payment method.

centrobillobject
Show 3 child attributesHide child attributes
accountstring

The Centrobill account.

customerstring

The Centrobill customer.

sitestring

The Centrobill site.

aptpayobject
Show 1 child attributeHide child attributes
customerstring

The AptPay customer.

Option 2null
referencestring or null

A string to reference the authentication session, useful for reconciliation with your internal systems.

shippingobject or null
Show 2 child attributesHide child attributes
Option 1object

Shipping information for the payment.

Show 3 child attributesHide child attributes
addressobject

Address details.

Show 6 child attributesHide child attributes
citystring

City, district, suburb, town, or village.

countrystring

Two-letter country code (ISO 3166-1 alpha-2).

line1string

Address line 1 (for example, street, PO Box, or company name).

line2string or null

Address line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.

postal_codestring

ZIP or postal code.

statestring or null

State, county, province, or region. Null is accepted and returned when not set.

namestring

Full name of the recipient.

phonestring

Phone number of the recipient, preferably in E.164 format. The leading + is optional.

Option 2null
test_modebooleanRequired

Whether the authentication session was created in the sandbox.

return_urlstring or null

URL to redirect the customer to after authentication completes, if set.

authentication_optionsobject

Options to influence or describe the desired authentication behavior.

Show 2 child attributesHide child attributes
three_dsobject

Options for 3-D Secure (2.x) authentication.

Show 1 child attributeHide child attributes
flow_indicatorobject

Indicates supported/desired 3DS flows.

Show 3 child attributesHide child attributes
typestring

The supported 3DS flow type.

One of challenge, frictionless or data_share.

challengeobject

Parameters specific to challenge flow.

Show 1 child attributeHide child attributes
typestring

Challenge type or mandate indicator.

frictionlessobject

Parameters specific to frictionless flow.

Show 1 child attributeHide child attributes
sca_exemption_typestring

SCA exemption type.

One of low_value, transaction_risk_analysis or secure_corporate_process.

three_riobject

Options for 3DS Requestor Initiated (3RI) authentication.

Show 2 child attributesHide child attributes
indicatorstring

3RI indicator or reason.

initial_authentication_infoobject

Information about the initial cardholder authentication event.

Show 3 child attributesHide child attributes
typestring

The type of initial authentication info. One of data or transaction.

One of data or transaction.

transactionobject

Related transaction reference.

Show 1 child attributeHide child attributes
idstring

Transaction identifier of the initial charge.

dataobject

Additional data for the initial authentication event.

Show 4 child attributesHide child attributes
authentication_flowstring

How the initial authentication was performed.

date_timestring

Time at which the initial authentication occurred, in ISO 8601 format.

acs_transaction_idstring

ACS transaction ID of the initial authentication.

ds_transaction_idstring

DS transaction ID of the initial authentication.

authentication_typestring

The authentication mechanism used. One of three_ds, three_ri, or bep.

One of three_ds, three_ri or bep.

authentication_detailsobject

Result of the authentication.

Show 1 child attributeHide child attributes
three_dsobject or null

Result 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 1object

3D Secure authentication result of an authentication session.

  • In authentication_details.three_ds (standalone sessions) and in three_ds (authentication sessions, for accounts with the new 3D Secure fields enabled), the result uses authentication_flow, protocol_version, ds_transaction_id, acs_transaction_id, three_ds_server_transaction_id, ares and rreq.
  • In three_d_secure_details (authentication sessions, default format), it uses flow, version and ds_trans_id instead.

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 null

Cardholder Authentication Verification Value (CAVV), the cryptogram returned by the 3D Secure authentication.

xidstring or null

Transaction identifier from 3D Secure 1 authentication, if applicable.

ecistring or null

Electronic Commerce Indicator returned by the authentication, for example 05 or 06.

cardholder_infostring or null

Text provided by the ACS/issuer to the cardholder during authentication, if any.

status_reasonstring or null

Reason code when authentication failed or was not completed, if applicable.

authentication_flowstring or null

Flow performed, for example challenge or frictionless. New format only.

protocol_versionstring or null

3D Secure protocol version used. New format only.

ds_transaction_idstring or null

Directory Server transaction ID. New format only.

acs_transaction_idstring or null

ACS transaction ID. New format only.

three_ds_server_transaction_idstring or null

Transaction ID assigned by the 3DS Server. New format only.

aresstring or null

Raw Authentication Response (ARes) returned by the ACS, as a JSON string. New format only.

rreqstring or null

Raw Results Request (RReq) from the ACS, as a JSON string. New format only.

flowstring or null

Flow performed, for example challenge or frictionless. Default format only.

versionstring or null

3D Secure protocol version used. Default format only.

ds_trans_idstring or null

Directory Server transaction ID. Default format only.

Option 2null
fingerprint_urlstring or null

URL used for device fingerprinting during risk assessment and 3D Secure authentication. Only set while status is requires_submission.

urlstring or null

URL to start or continue the authentication flow. Only set while status is requires_authentication.

statusstringRequired

Current status of the authentication session. One of requires_submission, requires_authentication, error, failed, or succeeded.

One of requires_submission, requires_authentication, error, failed or succeeded.

resultstring or null

Final outcome of the authentication session, once completed. One of abandoned, attempt_acknowledged, authenticated, denied, not_supported, processing_error, or rejected.

One of abandoned, attempt_acknowledged, authenticated, denied, not_supported, processing_error or rejected.

Errors

400
Invalid request parameters, or the authentication was declined (payment_method_error).
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_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.
409
Another request with the same idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?