List payment sessions
/sessions/paymentRetrieves a list of payment sessions, sorted by creation time (oldest first). List items never include client_secret. starting_after and ending_before take a payment session ID (ps_ followed by 18 to 20 digits).
Headers
AuthorizationstringRequiredQuery parameters
created.greater_than_or_equalsstringReturn objects created on or after this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.greater_than.
created.greater_thanstringReturn objects created after this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.greater_than_or_equals.
created.less_than_or_equalsstringReturn objects created on or before this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.less_than.
created.less_thanstringReturn objects created before this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.less_than_or_equals.
limitintegerMaximum number of objects to return. Defaults to 10.
customer_reference_idstringYour unique identifier for the customer.
ending_beforestringA cursor for pagination. Returns objects created before the object with this ID. Must be the ID of an object of the type being listed (for example a chrg_ ID when listing charges); other IDs return 400. Lists are sorted by creation time, oldest first. Mutually exclusive with starting_after.
starting_afterstringA cursor for pagination. Returns objects created after the object with this ID. Must be the ID of an object of the type being listed (for example a chrg_ ID when listing charges); other IDs return 400. Lists are sorted by creation time, oldest first. Mutually exclusive with ending_before.
Returns
Returns a list of payment session objects.
resourcestringRequiredString representing the object's type.
has_morebooleanWhether there are more payment sessions available for pagination.
dataarray of objectsArray of payment session objects.
Show 31 child attributesHide child attributes
idstringRequiredUnique identifier for the payment session.
resourcestringRequiredString representing the object's type.
amountintegerRequiredAmount to collect, in the smallest currency unit. When the session was approved for less than requested, this is the approved amount.
amount_human_readablestringRequiredAmount 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 2nullcapturebooleanRequiredWhether to immediately capture the payment and create a charge. Defaults to true. When false, the payment session creates a hold (authorization) that must be captured later. Uncaptured holds expire after a set number of days (7 by default).
chargestring or nullUnique identifier of the Charge created from this payment session, if capture is true and the payment succeeded.
currencystringRequiredThree-letter ISO currency code, in lowercase.
createdstringTime at which the object was created, in ISO 8601 format.
setup_future_usagestring or nullIndicates intent to use this payment method for future payments. One of on_session or off_session, if applicable.
client_secretstringClient secret used with Pay.com.js to render the payment session. Only returned by the create call. Retrieve, list, update and block never return it; call POST /sessions/payment/{id}/refresh to get a new one.
customerstring or nullUnique identifier of the Customer associated with this payment session, if applicable.
customer_reference_idstring or nullRequiredYour unique identifier for the customer, used to retrieve and manage saved payment methods.
descriptionstring or nullAn arbitrary string attached to the object, useful for displaying to users.
failure_codestring or nullError code explaining the reason for the payment session failure, if available.
failure_messagestring or nullHuman-readable message explaining the reason for the payment session failure, if available.
holdstring or nullUnique identifier of the Hold created from this payment session, if capture is false and the payment succeeded.
metadataobjectSet of key-value pairs attached to the object.
payment_methodstring or nullUnique identifier of the Payment Method used in this payment session, if applicable.
payment_method_detailsobject or nullShow 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 2nullpayment_method_optionsobject or nullShow 2 child attributesHide child attributes
Option 1objectPayment method specific configurations.
Show 15 child attributesHide child attributes
cardobjectOptions for Card payments.
Show 20 child attributesHide child attributes
accepted_card_brandsarray of stringsList of card brands to accept for this payment.
accepted_card_fundingarray of stringsList of card funding to accept for this payment.
accepted_card_jurisdictionsarray of stringsList of payment jurisdictions to accept for this payment.
accepted_card_categoriesarray of stringsList of card categories to accept for this payment.
accepted_card_countriesarray of stringsList of card countries to accept for this payment.
accepted_eci_valuesarray of stringsList of ECI values to accept for this payment.
enforce_customer_name_as_cardholder_namebooleanWhether to enforce the customer name as the card holder name.
security_checksobjectConfiguration for security checks to perform.
Show 3 child attributesHide child attributes
address_line1_checkbooleanWhether to perform AVS check for address line 1.
address_postal_code_checkbooleanWhether to perform AVS check for postal code.
cvv_checkbooleanWhether to perform CVV check.
request_sca_exemptionobjectOptions for requesting SCA exemption.
Show 4 child attributesHide child attributes
sca_exemption_typestringType of SCA exemption. One of low_value, transaction_risk_analysis, or secure_corporate_process.
soft_decline_loopbooleanWhether to enable soft decline loop.
soft_decline_loop_decline_codesarray of stringsList of decline codes for soft decline loop.
soft_decline_loop_positioningstringControls when the soft decline loop runs relative to the provider fallback sequence. One of at_nearest or after_fallbacks.
cvv_whitelistobjectCVV whitelist configuration.
Show 2 child attributesHide child attributes
enabledbooleanWhether CVV whitelist is enabled.
durationstringDuration for CVV whitelist.
request_threed_securestringHow to request 3D Secure authentication for this payment. One of automatic, challenge, exemption, or none.
account_billing_updaterobjectOptions for the account billing updater, which refreshes stored card details when the issuer reports a change.
Show 3 child attributesHide child attributes
enabledbooleanWhether the account billing updater is enabled.
retry_after_updatebooleanWhether to retry a declined payment after the card details are updated.
billing_updater_decline_codesarray of stringsDecline codes that trigger an account billing update.
motobooleanWhether the payment was a MOTO (mail order/telephone order) payment. Returned in responses.
duplicate_card_checkbooleanWhether to perform a duplicate card check and block (same card on more than 1 customer).
network_tokenobjectOptions for network tokens for this payment.
Show 2 child attributesHide child attributes
provisionobjectOptions that indicate how to provision network tokens.
Show 2 child attributesHide child attributes
enabledbooleanWhether to provision a network token during the payment.
decline_on_failurebooleanWhether to fail the payment if network token provisioning fails.
fundingbooleanWhether this payment is an AFT (account funding transaction) payment.
pinless_debitobjectOptions for pinless debit.
Show 1 child attributeHide child attributes
enabledbooleanWhether pinless debit is enabled.
partial_approvalobjectOptions for partial approval.
Show 7 child attributesHide child attributes
acceptbooleanWhether to accept partial approvals.
allow_top_upbooleanWhether to allow top-up for partial approvals.
percentage_thresholdintegerPercentage threshold for partial approval.
amount_thresholdinteger or stringAmount threshold for partial approval.
require_full_amountbooleanWhether to require full amount.
approved_by_defaultbooleanWhether partial approval is approved by default.
productsarray of objectsList of predefined products for partial approval.
Show 5 child attributesHide child attributes
amountnumberRequiredAmount for the product.
titlestringRequiredTitle of the product.
descriptionstringDescription of the product.
imagestringImage URL for the product.
idstringProduct ID.
advanced_fraud_screeningobjectPayment fraud screening options.
Show 3 child attributesHide child attributes
thresholdsarray of objectsRisk score ranges and the outcome to apply to each. The ranges must include an allow range, cover every score from 0 to 100 with no gaps or overlaps (each start is the previous end + 1), and be ordered by severity: a range with a higher score cannot have a less severe outcome than a lower range. Otherwise the request returns 400.
Show 3 child attributesHide child attributes
startintegerRequiredRange beginning for risk control outcome.
endintegerRequiredRange ending for risk control outcome.
outcomestringRequiredOutcome.
enabledbooleanRequiredWhether advanced fraud screening is enabled for the payment.
learn_modebooleanWhether advanced fraud screening runs in learn mode.
name_verificationobjectOptions to configure the name verification process.
Show 4 child attributesHide child attributes
enabledbooleanWhether to perform name verification with ANI (Account Name Inquiry).
use_customer_namebooleanWhether to use the customer name for verification with ANI.
accepted_resultsarray of stringsList of ANI results to accept. Each value is one of match, partial_match, no_match, not_performed, or not_supported.
accepted_results_by_fieldobjectANI results to accept for each name field.
Show 4 child attributesHide child attributes
first_namearray of stringslast_namearray of stringsmiddle_namearray of stringsfull_namearray of stringsus_bank_accountobjectOptions for US bank account payments.
Show 4 child attributesHide child attributes
ach_typestringACH payment method.
networkstringNetwork.
ach_entrystringACH entity.
ach_fallbackbooleanpaypalobjectOptions for PayPal payments.
Show 1 child attributeHide child attributes
name_verificationbooleanWhether to perform customer name verification.
applepayobjectOptions for Apple Pay payments.
Show 1 child attributeHide child attributes
collectionobjectAllow to enable/disable collection of specific details during a payment.
Show 5 child attributesHide child attributes
billing_addressobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
emailobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
nameobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
phone_numberobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
shipping_addressobjectControls shipping details collection.
Show 2 child attributesHide child attributes
enabledbooleanWhether to collect shipping details.
include_phone_numberbooleanWhether to include a phone number in shipping details.
googlepayobjectOptions for Google Pay payments.
Show 2 child attributesHide child attributes
collectionobjectAllow to enable/disable collection of specific details during a payment.
Show 5 child attributesHide child attributes
billing_addressobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
emailobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
nameobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
phone_numberobjectData collection details.
Show 1 child attributeHide child attributes
enabledbooleanWhether to collect these details.
shipping_addressobjectControls shipping details collection.
Show 3 child attributesHide child attributes
enabledbooleanWhether to collect shipping details.
include_phone_numberbooleanWhether to include a phone number in shipping details.
allowed_countriesarray of stringsList of countries to accept for this payment.
require_cryptogram_threed_securebooleanWhether to require a 3D Secure cryptogram.
bank_accountobjectOptions for bank account payments.
Show 1 child attributeHide child attributes
allowed_countriesarray of stringsList of countries to accept for this payment.
skrillobjectVerification feature configuration and matching rules.
Show 1 child attributeHide child attributes
verificationobjectVerification feature configuration.
Show 3 child attributesHide child attributes
enabledbooleanWhether the verification feature is enabled.
accepted_verification_level_valuesarray of stringsList of accepted verification levels.
require_match_for_customer_detailsobjectField-level switches indicating which customer attributes must match between the submitted data and verified identity data in order to consider verification successful.
Show 6 child attributesHide child attributes
first_namebooleanWhether to require an exact match on the customer's first name.
last_namebooleanWhether to require an exact match on the customer's last name.
countrybooleanWhether to require an exact match on the customer's country/region.
postal_codebooleanWhether to require an exact match on the customer's postal/ZIP code.
line1booleanWhether to require an exact match on the first line of the street address.
dobbooleanWhether to require an exact match on the customer's date of birth.
netellerobjectVerification feature configuration and matching rules.
Show 1 child attributeHide child attributes
verificationobjectVerification feature configuration.
Show 3 child attributesHide child attributes
enabledbooleanWhether the verification feature is enabled.
accepted_verification_level_valuesarray of stringsList of accepted verification levels.
require_match_for_customer_detailsobjectField-level switches indicating which customer attributes must match between the submitted data and verified identity data in order to consider verification successful.
Show 6 child attributesHide child attributes
first_namebooleanWhether to require an exact match on the customer's first name.
last_namebooleanWhether to require an exact match on the customer's last name.
countrybooleanWhether to require an exact match on the customer's country/region.
postal_codebooleanWhether to require an exact match on the customer's postal/ZIP code.
line1booleanWhether to require an exact match on the first line of the street address.
dobbooleanWhether to require an exact match on the customer's date of birth.
recurringobjectTerms of the recurring mandate the customer approves when a payment method that needs one (Pix Automático, UPI AutoPay) is saved for future payments. Used only when the payment saves the method. Each provider maps the terms to its own; terms it cannot express decline the payment.
Show 6 child attributesHide child attributes
intervalstringHow often the merchant charges. sporadic: no fixed schedule.
interval_countintegerNumber of intervals between charges. Defaults to 1.
amountintegerAmount in the smallest currency unit. Defaults to the amount of the payment that saves the method.
amount_typestringWhether every charge is exactly amount or at most amount.
start_datestringFirst day the mandate can be charged, YYYY-MM-DD.
end_datestringLast day the mandate can be charged, YYYY-MM-DD. Open-ended or the provider maximum when omitted.
cashappobjectOptions for Cash App Pay payments.
Show 2 child attributesHide child attributes
name_verificationobjectChecks the customer's name against the Cash App account holder's name.
Show 2 child attributesHide child attributes
enabledbooleanWhether name verification is enabled.
similarity_acceptancestringMinimum name similarity score to accept, as a fraction between 0 and 1.
phone_verificationobjectChecks the last four digits of the customer's phone number against the Cash App account.
Show 1 child attributeHide child attributes
enabledbooleanWhether phone verification is enabled.
statement_descriptor_suffixstringSuffix for the statement descriptor of this payment. An empty string is accepted.
routing_methodologiesarray of stringsRouting methodologies applied to the payment. Returned in responses.
payment_method_config_idstringIdentifier of the payment method configuration applied to the payment, if applicable. Returned in responses.
payment_method_config_sourcestringSource of the payment method configuration applied to the payment, if applicable. Returned in responses.
authentication_optionsobjectAuthentication options for the payment method as provided in the request.
Show 3 child attributesHide child attributes
typestringRequiredType of authentication. One of three_ds, three_ri, or bep.
three_dsobject3D Secure authentication options. Only present when type is three_ds.
Show 2 child attributesHide child attributes
accepted_eci_valuesarray of stringsList of accepted ECI values. Each value is one of 00, 01, 02, 05, 06, or 07.
flow_indicatorobjectFlow indicator for 3D Secure authentication.
Show 3 child attributesHide child attributes
typestringType of 3D Secure flow. One of challenge, frictionless, or data_share.
challengeobjectChallenge flow options. Only present when type is challenge.
Show 2 child attributesHide child attributes
typestringType of challenge, such as mandated.
allow_frictionlessbooleanWhether to allow the frictionless flow as a fallback.
frictionlessobjectFrictionless flow options. Only present when type is frictionless.
Show 1 child attributeHide child attributes
sca_exemption_typestringType of SCA exemption. One of low_value, transaction_risk_analysis, or secure_corporate_process.
three_riobject3DS Requestor Initiated (3RI) authentication options. Only present when type is three_ri.
Show 2 child attributesHide child attributes
indicatorstring3RI indicator. One of recurring or ucof.
require_issuer_liability_shiftbooleanWhether to require an issuer liability shift.
Option 2nullpayment_method_typesarray of stringsThe list of payment method types allowed for this payment session. Defaults to the payment method types enabled in your payment method options.
referencestring or nullA string to reference the payment session and the charge or hold created after a successful payment, useful for reconciliation with your internal systems.
receiptnullReserved.
return_urlstring or nullThe URL the customer is redirected to after completing the payment, if set.
settlement_accountstringUnique identifier for the settlement account the payment is booked to. Only present when a settlement account was resolved.
settlement_account_detailsobjectDetails of the settlement account and legal entity the transaction is booked to. Present only when the object is linked to a settlement account or legal entity.
Show 5 child attributesHide child attributes
processorstringThe processor of the settlement account.
currencystringThree-letter ISO currency code of the settlement account, in lowercase. Omitted for settlement accounts without a currency.
namestringName of the settlement account.
entitystringUnique identifier for the legal entity, if applicable.
entity_detailsobjectDetails of the legal entity, if applicable.
Show 2 child attributesHide child attributes
legal_namestringLegal name of the entity.
countrystringTwo-letter ISO country code of the entity's billing address.
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 2nullstatement_descriptor_suffixstring or nullExtra information about the payment displayed on the customer's statement. It is concatenated with the statement descriptor set on the account during onboarding, and the complete statement descriptor is limited to 22 characters.
statusstringRequiredStatus of the payment session. One of:
open: the session is waiting for a successful payment.completed: the payment succeeded.completed_partially: the payment was approved for less than the requested amount.requires_partial_approval_action: the payment was partially approved and is waiting for you to confirm or cancel it (POST /sessions/payment/{id}/partial_approval/confirmor/cancel). Only with server-to-server partial approval enabled.failed: the payment failed, or the session expired.
test_modebooleanWhether the payment session was created in the sandbox.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.429Retry-After header.500503Retry-After, or after a few seconds when there's none.