Create an independent authentication session
/authentication/session/independentCreates a new independent (standalone) 3D Secure authentication session for a payment method, without creating a charge or hold.
Headers
AuthorizationstringRequiredidempotency-keystringA 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
paymentbooleanRequiredWhether the authentication session is for a payment (true) or a setup (false).
amountintegerAmount to authenticate, in the smallest currency unit. Required when payment is true, and not allowed when payment is false.
currencystringThree-letter ISO currency code, in lowercase. Required when payment is true, and not allowed when payment is false.
payment_methodstringUnique 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.
referencestringA string to reference the authentication session, useful for reconciliation with your internal systems.
settlement_accountstringUnique identifier of the settlement account to use for this authentication session.
return_urlstringURL to redirect the customer to after authentication completes.
shippingobjectShipping information for the payment.
Show 3 child parametersHide child parameters
addressobjectAddress details.
Show 6 child parametersHide child parameters
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.
metadataobjectSet of key-value pairs attached to the object.
payment_method_dataobjectPayment 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_detailsobjectBilling information for the payment.
Show 11 child parametersHide child parameters
addressobjectAddress details.
Show 6 child parametersHide child parameters
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 billing contact.
emailstringEmail address of the billing contact.
phonestringPhone number of the billing contact, preferably in E.164 format. The leading + is optional, and an empty string is accepted.
dobstringDate of birth in YYYY-MM-DD format.
national_identification_numberstringNational identification number of the billing contact.
ip_addressstringIP address (IPv4 or IPv6) of the customer. Used for tax calculation when no address is available.
tax_idsarray of objectsTax identifiers of the customer. Used for tax calculation.
Show 2 child parametersHide child parameters
typestringRequiredType of the tax identifier. One of eu_vat, gb_vat, us_ein, ca_gst_hst, ca_bn, au_abn, in_gst, or pl_nip.
valuestringRequiredValue of the tax identifier.
kyc_datestringTime at which the customer's KYC check was completed, in ISO 8601 format.
screening_datestringTime at which the customer was last screened, in ISO 8601 format.
signature_datestringTime at which the customer signed the agreement, in ISO 8601 format.
typestringRequiredThe type of the payment method. Send the object with the same name. One of card, token, source, network_token, googlepay, or applepay.
underlying_network_idstringUnique transaction identifier assigned by the card network.
setup_future_usagestringIndicates intent to use this payment method for future payments. One of on_session or off_session.
cardobjectRaw 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
numberstringRequiredThe card number, as a string without any separators.
expiry_monthstringRequiredTwo-digit number representing the card's expiration month.
expiry_yearstringRequiredTwo or four-digit number representing the card's expiration year.
cvvstringCard 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.
namestringCardholder's full name.
billing_addressobjectBilling address of the card. Used as the billing address when billing_details is not sent.
Show 6 child parametersHide child parameters
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.
authentication_contextobjectShow 2 child parametersHide child parameters
customer_ip_addressstringCustomer IP address.
browser_detailsobjectCustomer browser details.
Show 9 child parametersHide child parameters
accept_headerstringRequiredExact content of the HTTP accept headers.
javascript_enabledbooleanRequiredWhether Javascript is enabled in browser.
languagestringRequiredBrowser language. Returned from navigator.language property from the HTML DOM API.
user_agentstringRequiredExact content of the HTTP user-agent header.
screen_widthintegerRequiredScreen width of a device. Obtained from cardholder browser using the screen.width property.
screen_heightintegerRequiredScreen height of a device. Obtained from cardholder browser using the screen.height property.
timezone_offsetstringRequiredOffset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.
java_enabledbooleanRequiredWhether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.
color_depthintegerRequiredColor depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.
sourceobjectShow 2 child parametersHide child parameters
idstringRequiredA payment method to be used as the source for the authentication session.
authentication_contextobjectShow 2 child parametersHide child parameters
customer_ip_addressstringCustomer IP address.
browser_detailsobjectCustomer browser details.
Show 9 child parametersHide child parameters
accept_headerstringRequiredExact content of the HTTP accept headers.
javascript_enabledbooleanRequiredWhether Javascript is enabled in browser.
languagestringRequiredBrowser language. Returned from navigator.language property from the HTML DOM API.
user_agentstringRequiredExact content of the HTTP user-agent header.
screen_widthintegerRequiredScreen width of a device. Obtained from cardholder browser using the screen.width property.
screen_heightintegerRequiredScreen height of a device. Obtained from cardholder browser using the screen.height property.
timezone_offsetstringRequiredOffset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.
java_enabledbooleanRequiredWhether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.
color_depthintegerRequiredColor depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.
tokenobjectShow 3 child parametersHide child parameters
idstringRequiredA Pay.com card token (tok_card_).
cvvstringCard security code.
authentication_contextobjectShow 2 child parametersHide child parameters
customer_ip_addressstringCustomer IP address.
browser_detailsobjectCustomer browser details.
Show 9 child parametersHide child parameters
accept_headerstringRequiredExact content of the HTTP accept headers.
javascript_enabledbooleanRequiredWhether Javascript is enabled in browser.
languagestringRequiredBrowser language. Returned from navigator.language property from the HTML DOM API.
user_agentstringRequiredExact content of the HTTP user-agent header.
screen_widthintegerRequiredScreen width of a device. Obtained from cardholder browser using the screen.width property.
screen_heightintegerRequiredScreen height of a device. Obtained from cardholder browser using the screen.height property.
timezone_offsetstringRequiredOffset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.
java_enabledbooleanRequiredWhether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.
color_depthintegerRequiredColor depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.
googlepayobjectThe payload that was retrieved from the Google Pay response.
Show 5 child parametersHide child parameters
signaturestringRequiredSignature that verifies the message came from Google.
protocolVersionstringRequiredVersion of the Google Pay encryption protocol used to create the token.
signedMessagestringRequiredThe encrypted payment data and its metadata, as a serialized JSON string.
intermediateSigningKeyobjectRequiredIntermediate signing key from Google, used with protocolVersion ECv2.
Show 2 child parametersHide child parameters
signedKeystringRequiredThe intermediate signing key, as a serialized JSON string.
signaturesarray of stringsSignatures that verify the intermediate signing key came from Google.
authentication_contextobjectShow 2 child parametersHide child parameters
customer_ip_addressstringCustomer IP address.
browser_detailsobjectCustomer browser details.
Show 9 child parametersHide child parameters
accept_headerstringRequiredExact content of the HTTP accept headers.
javascript_enabledbooleanRequiredWhether Javascript is enabled in browser.
languagestringRequiredBrowser language. Returned from navigator.language property from the HTML DOM API.
user_agentstringRequiredExact content of the HTTP user-agent header.
screen_widthintegerRequiredScreen width of a device. Obtained from cardholder browser using the screen.width property.
screen_heightintegerRequiredScreen height of a device. Obtained from cardholder browser using the screen.height property.
timezone_offsetstringRequiredOffset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.
java_enabledbooleanRequiredWhether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.
color_depthintegerRequiredColor depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.
applepayobjectThe payload that was retrieved from the Apple Pay response.
Show 6 child parametersHide child parameters
signaturestringRequiredSignature of the payment and header data, as a Base64-encoded string.
versionstringRequiredVersion of the Apple Pay payment token.
datastringRequiredEncrypted payment data, as a Base64-encoded string.
headerobjectRequiredAdditional version-dependent information used to decrypt and verify the payment.
Show 3 child parametersHide child parameters
publicKeyHashstringRequiredHash of the X.509 encoded public key bytes of the merchant's certificate, as a Base64-encoded string.
ephemeralPublicKeystringRequiredEphemeral public key bytes, as a Base64-encoded string.
transactionIdstringRequiredTransaction identifier generated on the device, as a hexadecimal string.
paymentMethodobjectThe paymentMethod object of the Apple Pay token, if available.
Show 3 child parametersHide child parameters
displayNamestringDescription of the card, suitable for display.
networkstringPayment network of the card.
typestringType of the card.
authentication_contextobjectShow 2 child parametersHide child parameters
customer_ip_addressstringCustomer IP address.
browser_detailsobjectCustomer browser details.
Show 9 child parametersHide child parameters
accept_headerstringRequiredExact content of the HTTP accept headers.
javascript_enabledbooleanRequiredWhether Javascript is enabled in browser.
languagestringRequiredBrowser language. Returned from navigator.language property from the HTML DOM API.
user_agentstringRequiredExact content of the HTTP user-agent header.
screen_widthintegerRequiredScreen width of a device. Obtained from cardholder browser using the screen.width property.
screen_heightintegerRequiredScreen height of a device. Obtained from cardholder browser using the screen.height property.
timezone_offsetstringRequiredOffset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.
java_enabledbooleanRequiredWhether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.
color_depthintegerRequiredColor depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.
network_tokenobjectRaw network token details. Only a token cryptogram is accepted here; an external 3D Secure result is rejected.
Show 8 child parametersHide child parameters
tokenstringRequiredThe network token (token PAN).
token_typestringRequiredOrigin of the network token, for example applepay or googlepay.
expiry_monthstringRequiredExpiry month of the token.
expiry_yearstringRequiredExpiry year of the token.
namestringCardholder's full name.
cryptogramstringCryptogram for the token.
three_dsobjectAlternative way to send the token cryptogram. Only eci and cryptogram are accepted; more fields are rejected.
Show 2 child parametersHide child parameters
ecistringThe Electronic Commerce Indicator returned with the cryptogram.
cryptogramstringCryptogram for the token.
authentication_contextobjectShow 2 child parametersHide child parameters
customer_ip_addressstringCustomer IP address.
browser_detailsobjectCustomer browser details.
Show 9 child parametersHide child parameters
accept_headerstringRequiredExact content of the HTTP accept headers.
javascript_enabledbooleanRequiredWhether Javascript is enabled in browser.
languagestringRequiredBrowser language. Returned from navigator.language property from the HTML DOM API.
user_agentstringRequiredExact content of the HTTP user-agent header.
screen_widthintegerRequiredScreen width of a device. Obtained from cardholder browser using the screen.width property.
screen_heightintegerRequiredScreen height of a device. Obtained from cardholder browser using the screen.height property.
timezone_offsetstringRequiredOffset from UTC timezone in minutes. Obtained from cardholder browser using the getTimezoneOffset() method.
java_enabledbooleanRequiredWhether Java is enabled in browser. Obtained from cardholder browser using the navigator.javaEnabled property.
color_depthintegerRequiredColor depth of a device screen. Obtained from cardholder browser using the screen.colorDepth property.
authentication_optionsobjectOptions controlling authentication.
Show 5 child parametersHide child parameters
typestringRequiredType of authentication. One of three_ds, three_ri, or bep.
return_urlstringRequiredURL to redirect the customer to after the authentication challenge.
future_usageobjectDeclares intended future usage of the card.
Show 3 child parametersHide child parameters
typestringType of future usage. One of instalment, recurring, or card_on_file.
installmentobjectInstalment details. Required when type is instalment, and not allowed otherwise.
Show 5 child parametersHide child parameters
numberintegerNumber of instalments.
amountintegerAmount of each instalment, in the smallest currency unit.
intervalstringRequiredInterval between instalments. One of day, month, or year.
interval_countintegerRequiredNumber of intervals between instalments.
expiryobjectExpiry of the instalment agreement, if applicable.
Show 1 child parameterHide child parameters
typestringRequiredType of expiry.
recurringobjectRecurring payment details. Required when type is recurring, and not allowed otherwise.
Show 4 child parametersHide child parameters
amountintegerAmount of each payment, in the smallest currency unit.
intervalstringRequiredInterval between payments. One of day, month, or year.
interval_countintegerRequiredNumber of intervals between payments.
expiryobjectExpiry of the recurring agreement, if applicable.
Show 1 child parameterHide child parameters
typestringRequiredType of expiry.
three_dsobject3D Secure options. Required when type is three_ds, and not allowed otherwise.
Show 3 child parametersHide child parameters
channelobjectRequiredThe channel the customer authenticates in.
Show 2 child parametersHide child parameters
typestringRequiredChannel type.
browserobjectRequiredDetails of the customer's browser.
Show 2 child parametersHide child parameters
customer_ip_addressstringIP address of the customer.
browser_detailsobjectRequiredBrowser data collected from the customer's browser.
Show 9 child parametersHide child parameters
accept_headerstringRequiredThe browser's HTTP Accept header.
javascript_enabledbooleanRequiredWhether JavaScript is enabled in the browser.
languagestringRequiredThe browser language.
user_agentstringRequiredThe browser's user agent.
screen_widthintegerRequiredScreen width in pixels.
screen_heightintegerRequiredScreen height in pixels.
timezone_offsetstringRequiredTime zone offset from UTC, in minutes.
java_enabledbooleanRequiredWhether Java is enabled in the browser.
color_depthintegerRequiredScreen color depth, in bits.
flow_indicatorobjectFlow indicator for 3D Secure authentication.
Show 3 child parametersHide child parameters
typestringType of 3D Secure flow. One of challenge, frictionless, or data_share.
challengeobjectChallenge flow options. Only allowed when type is challenge.
Show 2 child parametersHide child parameters
typestringRequiredType of challenge, such as mandated.
allow_frictionlessbooleanWhether to allow the frictionless flow as a fallback.
frictionlessobjectFrictionless flow options. Only allowed when type is frictionless.
Show 1 child parameterHide child parameters
sca_exemption_typestringType of SCA exemption. One of low_value, transaction_risk_analysis, or secure_corporate_process.
submitstringWhen to submit the session automatically. One of if_fingerprinting_not_supported, never, or always.
three_riobject3RI options. Required when type is three_ri, and not allowed otherwise.
Show 2 child parametersHide child parameters
indicatorstringRequired3RI indicator, for example recurring.
initial_authentication_infoobjectInformation about the initial cardholder authentication, if available.
Show 3 child parametersHide child parameters
typestringHow the initial authentication is identified. One of data or transaction.
transactionobjectThe initial authentication transaction. Required when type is transaction.
Show 1 child parameterHide child parameters
idstringRequiredIdentifier of the initial authentication transaction.
dataobjectThe initial authentication data. Required when type is data.
Show 4 child parametersHide child parameters
authentication_flowstringRequiredFlow of the initial authentication.
date_timestringRequiredTime of the initial authentication.
acs_transaction_idstringRequiredACS transaction ID of the initial authentication.
ds_transaction_idstringRequiredDirectory Server transaction ID of the initial authentication.
Returns
Returns the created 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
400payment_method_error).401invalid_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.409idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.500503Retry-After, or after a few seconds when there's none.