v1

latestOpenAPI 3.0.02026-07-26167441.9 MB

Create Customer Session

post/customers/sessions

Request body

account_idstring required

The unique identifier of the account. You find this information on the Yuno dashboard (UUID, 36 chars).

country'AR' | 'BO' | 'BR' | 'CL' | 'CO' | 'CR' | 'EC' | 'SV' | 'GT' | 'HN' | 'MX' | 'NI' | 'PA' | 'PY' | 'PE' | 'US' | 'UY' required

The customer's country (MAX 2; MIN 2; ISO 3166-1).

customer_idstring required

The unique identifier of the customer, created using the Create Customer endpoint (UUID, 36 chars).

callback_urlstring

The url to redirect your customer after the enrollment is made in the provider's environment (MAX 526; MIN 3).

checkout_idstring

The unique identifier (UUID) of the Custom Checkout to use for this enrollment session. Optional. When omitted, the session uses the account's default checkout.

Response

201

customer_sessionstring
customer_idstring
countrystring
callback_urlstring
created_atstring
checkout_idstring

Example response

{
  "customer_session": "7dd71f21-9e4c-439a-9c6d-58f240bd28df",
  "customer_id": "ae106483-65ee-463b-8782-9794022b3112",
  "country": "US",
  "callback_url": "https://www.google.com/?customerSession=7dd71f21-9e4c-439a-9c6d-58f240bd28df",
  "created_at": "2025-05-07T20:00:18.721786Z",
  "checkout_id": "6822f80c-684e-41a3-8628-78963d3d60f7"
}