Checkout Session Object

{
  id: "cs_li5531onlFDi235",
  created_at: "2021-10-15T15:22:11.474Z",
  object: "checkout_session",
  currency: "clp",
  amount: 1200,
  customer_email: "[email protected]",
  expires_at: "2024-11-12T14:41:25Z",
  mode: "live",
  status: "created",
  session_token: "cs_li5531onlFDi235_sec_a4xK32BanKWYn",
  country: 'cl',
  metadata: {
    order_id: "#12513"
  },
  payment_method_options: {
    payment_intent: {
      recipient_account: {
        holder_id: "183917137",
        number: "123456",
        type: "checking_account",
        institution_id: "cl_banco_de_chile"
		    },
      sender_account: {
        holder_id: {
          editable: 'false',
          value: 12345678-9
        },
        institution_id: {
          value: 'cl_banco_estado'
        }
      }
    },
  business_profile: {
    category: "009613",
    tax_id: "77498112-0"
  	}
  }
AttributeTypeDescription
idstringUnique identifier for the Checkout Session
created_atstringCheckout Session's creation date, using ISO 8601
objectstringIdentifier for the type of object. Its value for Checkout Session will always correspond to checkout_session
currencystringCurrency ISO code. For now, we only support CLP and MXN.
amountintegerAmount to pay, represented as an integer. This value must always be greater than 0
customer_emailstringA customer email linked to a Checkout Session. This is used to notify a user in case of a refund. If you plan on using the refunds product, you must include this field in your request

If you create a session without providing a customer_email, this field will be null in the response and no emails will be sent for that Checkout Session.
expires_atstringUTC Timestamp that indicates when the session will expire. Defaults to 24 hours after the creation of the payment session
modestringIndicates whether the Checkout Session is in live mode or in test mode.
session_tokenstringTemporary token to configure the widget.
statusstringSession status. Can be either created, in_progress, finishedor expired
metadatahashSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

If you create a payment without providing metadata, this field will be null when receiving notifications about the final status.
payment_method_optionshashOptional array of settings for each available Payment Method
business_profilehashOptional object to identify enrolled merchants for category-based pricing.

Payment Intent Options

Use these options to configure the Payment Intent Payment Method when creating a Checkout Session

AttributeTypeDescription
recipient_accountstringObject that points to the recipient account. Take a look at the Recipient Acccount object table below to learn more. If you use Fintoc Collects for payments, omit this object during payment creation for better stability.
sender_accountstringObject that points to the sender account. Take a look at the Sender Acccount object table below to learn more.

When you receive final payment status notifications, sender_account may be null if the user abandoned the payment before specifying a sender account.

Recipient Object

AttributeTypeDescription
holder_idstringIdentifier of the owner of the account. In Chile, the value corresponds to a RUT and in Mexico it's either an RFC or CURP. The editable field indicates whether the user is allowed to change the preset username or not.
numberstringAccount number. Does not include hyphens or prefixed zeros
typestringAccount type. It can be checking_account or sight_account
institution_idstringAccount's institution id. You can learn more about institutions and their ids here

Sender Object

AttributeTypeDescription
holder_idobjectIdentifier of the owner of the account. In Chile, it corresponds to a RUT and in Mexico it's either an RFC or CURP.
institution_idstringAccount's institution id. You can learn more about institutions and their ids here

Business Profile Object

AttributeTypeDescription
categorystringIdentifier of the category of the enrolled merchant. In Chile, it corresponds to a 6 character SII activity code.
tax_idstringEnrolled merchant's tax identifier. In Chile, it corresponds to a RUT.