Skip to Content
Docs
Standalone authentication

Submit an independent authentication session

POST/authentication/{id}/submit

Submits an independent authentication session that has status requires_submission (after device fingerprinting) and returns the updated session. A session that was already processed returns 400.

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.

Path parameters

idstringRequired

The unique identifier of the authentication session.

Returns

Returns the 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, the session was already processed, 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.
404
Authentication session not found.
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?