Create Checkout Session
Creates a checkout session tied to a customer, used to initialize a payment through the SDK
customer resource was created.
additional_data object, it can be sent as part of the checkout session.Authorizations
Body
The unique identifier of the customer's order (MAX 255; MIN 3).
The description of the payment (MAX 255; MIN 3).
Country where the transaction must be processed (MAX 2; MIN 2; ISO 3166-1).
The unique identifier of the account. You find this information on the Yuno dashboard (UUID, 36 chars).
The unique identifier of the customer, created using the Create Customer endpoint (UUID, 36 chars).
The URL where we will redirect your customer after making the purchase. Required for alternative payment methods with redirection. (MAX 526; MIN 3)
Specifies the payment amount object, with the value and currency.
Alternative currency representation of the transaction amount.
Delivery options the customer can pick from inside a wallet widget (Fast Checkout). The first method is preselected. The currency of every amount must match the session currency.
Specifies a list of metadata objects. You can add up to 120 metadata objects.
Checkout workflow type.
SDK_CHECKOUT, CHECKOUT, SDK_SEAMLESS The object to send the installment plan created in Yuno to show your customers and let them choose from. This optional field is used in case a particular installments plan needs to be used in the session. if not sent, we will display the installment plan created for the account for each scenario, if any.
Optional object to enable and configure recurring payments (subscriptions).
The unique identifier (UUID) of the Custom Checkout to use for this session. Optional. When omitted, the session uses the account's default checkout.
Optional. Limits which cards the customer can select in the Apple Pay payment sheet. Cards that do not match are shown greyed out. Every field is optional; a field that is not sent keeps the default behaviour. Values must be uppercase, and an empty list is rejected with 400 INVALID_PARAMETERS. It can only be set when the session is created.
Response
200
- Checkout Session (min. data)
- Checkout Session (full data)
"1717681150"
"d313047b-4f96-44ef-bbad-caf1d7ba4c2b"
"US"
"Test Cards"
"a577ad8f-08f1-4590-9cf1-e7679b15ee84"
"https://www.example.com/callback"
"2024-06-06T13:39:10.932297Z"
"SDK_CHECKOUT"
"6822f80c-684e-41a3-8628-78963d3d60f7"