Get Country Data
curl --request GET \
--url https://api.y.uno/v1/checkouts/country-data \
--header 'PRIVATE-SECRET-KEY: <api-key>' \
--header 'PUBLIC-API-KEY: <api-key>' \
--header 'X-Account-Code: <api-key>'import requests
url = "https://api.y.uno/v1/checkouts/country-data"
headers = {
"PUBLIC-API-KEY": "<api-key>",
"PRIVATE-SECRET-KEY": "<api-key>",
"X-Account-Code": "<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>',
'X-Account-Code': '<api-key>'
}
};
fetch('https://api.y.uno/v1/checkouts/country-data', 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.y.uno/v1/checkouts/country-data",
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>",
"X-Account-Code: <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.y.uno/v1/checkouts/country-data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("PUBLIC-API-KEY", "<api-key>")
req.Header.Add("PRIVATE-SECRET-KEY", "<api-key>")
req.Header.Add("X-Account-Code", "<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.y.uno/v1/checkouts/country-data")
.header("PUBLIC-API-KEY", "<api-key>")
.header("PRIVATE-SECRET-KEY", "<api-key>")
.header("X-Account-Code", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.y.uno/v1/checkouts/country-data")
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>'
request["X-Account-Code"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"country_code": "AR",
"documents": [
"DNI",
"CUIT",
"CUIL",
"CDI",
"LE",
"LC",
"CI",
"PASSPORT",
"OTHER"
]
},
{
"country_code": "BR",
"documents": [
"CPF",
"CNPJ"
]
},
{
"country_code": "CO",
"documents": [
"CC",
"NIT",
"CE",
"PASSPORT",
"OTHER"
]
},
{
"country_code": "MX",
"documents": [
"RFC",
"CURP",
"IFE",
"PASSPORT",
"OTHER"
]
},
{
"country_code": "PE",
"documents": [
"DNI",
"RUC",
"CE",
"PASSPORT",
"OTHER"
]
}
]{
"code": "INVALID_CREDENTIALS",
"messages": [
"Invalid credentials"
]
}{
"code": "AUTHORIZATION_REQUIRED",
"messages": [
"The merchant has no authorization to use this API."
]
}Payment Method Configuration
Get Country Data
Returns supported countries and their accepted document types. Use this to build the general_settings.country_documents array when publishing a checkout configuration.
GET
/
v1
/
checkouts
/
country-data
Get Country Data
curl --request GET \
--url https://api.y.uno/v1/checkouts/country-data \
--header 'PRIVATE-SECRET-KEY: <api-key>' \
--header 'PUBLIC-API-KEY: <api-key>' \
--header 'X-Account-Code: <api-key>'import requests
url = "https://api.y.uno/v1/checkouts/country-data"
headers = {
"PUBLIC-API-KEY": "<api-key>",
"PRIVATE-SECRET-KEY": "<api-key>",
"X-Account-Code": "<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>',
'X-Account-Code': '<api-key>'
}
};
fetch('https://api.y.uno/v1/checkouts/country-data', 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.y.uno/v1/checkouts/country-data",
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>",
"X-Account-Code: <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.y.uno/v1/checkouts/country-data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("PUBLIC-API-KEY", "<api-key>")
req.Header.Add("PRIVATE-SECRET-KEY", "<api-key>")
req.Header.Add("X-Account-Code", "<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.y.uno/v1/checkouts/country-data")
.header("PUBLIC-API-KEY", "<api-key>")
.header("PRIVATE-SECRET-KEY", "<api-key>")
.header("X-Account-Code", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.y.uno/v1/checkouts/country-data")
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>'
request["X-Account-Code"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"country_code": "AR",
"documents": [
"DNI",
"CUIT",
"CUIL",
"CDI",
"LE",
"LC",
"CI",
"PASSPORT",
"OTHER"
]
},
{
"country_code": "BR",
"documents": [
"CPF",
"CNPJ"
]
},
{
"country_code": "CO",
"documents": [
"CC",
"NIT",
"CE",
"PASSPORT",
"OTHER"
]
},
{
"country_code": "MX",
"documents": [
"RFC",
"CURP",
"IFE",
"PASSPORT",
"OTHER"
]
},
{
"country_code": "PE",
"documents": [
"DNI",
"RUC",
"CE",
"PASSPORT",
"OTHER"
]
}
]{
"code": "INVALID_CREDENTIALS",
"messages": [
"Invalid credentials"
]
}{
"code": "AUTHORIZATION_REQUIRED",
"messages": [
"The merchant has no authorization to use this API."
]
}This API is in Beta. Endpoints and schemas may change without prior notice.
Authorizations
Merchant public API key. Found in Yuno dashboard → Settings → API Keys.
Merchant private secret key, paired with the public key. Never embed in client-side code.
UUID of the merchant account scope for the request.
Was this page helpful?
⌘I