curl --request GET \
--url https://api-sandbox.y.uno/v1/checkout/sessions/{id} \
--header 'private-secret-key: <api-key>' \
--header 'public-api-key: <api-key>'import requests
url = "https://api-sandbox.y.uno/v1/checkout/sessions/{id}"
headers = {
"public-api-key": "<api-key>",
"private-secret-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'public-api-key': '<api-key>', 'private-secret-key': '<api-key>'}
};
fetch('https://api-sandbox.y.uno/v1/checkout/sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.y.uno/v1/checkout/sessions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"private-secret-key: <api-key>",
"public-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.y.uno/v1/checkout/sessions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("public-api-key", "<api-key>")
req.Header.Add("private-secret-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.y.uno/v1/checkout/sessions/{id}")
.header("public-api-key", "<api-key>")
.header("private-secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/checkout/sessions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["public-api-key"] = '<api-key>'
request["private-secret-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "02caeb08-45c0-4670-9736-5bdee1b311f8",
"merchant_order_id": "1752072398",
"country": "AR",
"payment_description": "Test Cards",
"customer_id": "e937e18e-a684-4d7b-a1a1-ab64c10a941d",
"callback_url": "https://google.com/?checkoutSession=02caeb08-45c0-4670-9736-5bdee1b311f8",
"amount": {
"currency": "ARS",
"value": 520
},
"created_at": "2025-07-09T14:46:39.515251Z",
"metadata": null,
"workflow": "SDK_CHECKOUT",
"installments": {
"plan_id": null,
"plan": null
},
"used": true
}{
"code": "INVALID_REQUEST",
"messages": [
"Invalid request"
]
}{
"code": "INVALID_CREDENTIALS",
"messages": [
"Invalid credentials"
]
}{
"code": "AUTHORIZATION_REQUIRED",
"messages": [
"The merchant has no authorization to use this API."
]
}Retrieve Checkout Session
curl --request GET \
--url https://api-sandbox.y.uno/v1/checkout/sessions/{id} \
--header 'private-secret-key: <api-key>' \
--header 'public-api-key: <api-key>'import requests
url = "https://api-sandbox.y.uno/v1/checkout/sessions/{id}"
headers = {
"public-api-key": "<api-key>",
"private-secret-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'public-api-key': '<api-key>', 'private-secret-key': '<api-key>'}
};
fetch('https://api-sandbox.y.uno/v1/checkout/sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.y.uno/v1/checkout/sessions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"private-secret-key: <api-key>",
"public-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.y.uno/v1/checkout/sessions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("public-api-key", "<api-key>")
req.Header.Add("private-secret-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.y.uno/v1/checkout/sessions/{id}")
.header("public-api-key", "<api-key>")
.header("private-secret-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/checkout/sessions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["public-api-key"] = '<api-key>'
request["private-secret-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "02caeb08-45c0-4670-9736-5bdee1b311f8",
"merchant_order_id": "1752072398",
"country": "AR",
"payment_description": "Test Cards",
"customer_id": "e937e18e-a684-4d7b-a1a1-ab64c10a941d",
"callback_url": "https://google.com/?checkoutSession=02caeb08-45c0-4670-9736-5bdee1b311f8",
"amount": {
"currency": "ARS",
"value": 520
},
"created_at": "2025-07-09T14:46:39.515251Z",
"metadata": null,
"workflow": "SDK_CHECKOUT",
"installments": {
"plan_id": null,
"plan": null
},
"used": true
}{
"code": "INVALID_REQUEST",
"messages": [
"Invalid request"
]
}{
"code": "INVALID_CREDENTIALS",
"messages": [
"Invalid credentials"
]
}{
"code": "AUTHORIZATION_REQUIRED",
"messages": [
"The merchant has no authorization to use this API."
]
}Authorizations
Path Parameters
The unique identifier of the checkout session (UUID, 36 chars).
Response
200
The unique identifier of the checkout session (MAX 64; MIN 36).
"02caeb08-45c0-4670-9736-5bdee1b311f8"
The unique identifier of the customer's order (MAX 255; MIN 3).
"1752072398"
Country where the transaction must be processed (MAX 2; MIN 2; ISO 3166-1).
"AR"
The description of the payment (MAX 255; MIN 3).
"Test Cards"
The unique identifier of the customer (MAX 64; MIN 36).
"e937e18e-a684-4d7b-a1a1-ab64c10a941d"
The URL where to redirect the customer after the payment (MAX 526; MIN 3).
"https://google.com/?checkoutSession=02caeb08-45c0-4670-9736-5bdee1b311f8"
Specifies the payment amount object, with the value and currency.
Show child attributes
Show child attributes
Checkout Session creation date and time (MAX 27; MIN 27; ISO 8601).
"2025-07-09T14:46:39.515251Z"
Specifies a list of metadata objects. You can add up to 50 metadata objects.
Show child attributes
Show child attributes
The payment workflow type that specifies how the checkout session will be processed.
"SDK_CHECKOUT"
The object to send the installment plan created in Yuno to show your customers and let them choose from.
Show child attributes
Show child attributes
Specifies whether a checkout session was used previously or not.
true
Was this page helpful?