Skip to main content
POST
/
v1
/
payment-methods
/
domains
cURL
curl --request POST \
  --url https://api-sandbox.y.uno/v1/payment-methods/domains \
  --header 'Content-Type: application/json' \
  --header 'private-secret-key: <api-key>' \
  --header 'public-api-key: <api-key>' \
  --data '
{
  "account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "connection_id": "7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a",
  "payment_method_type": "APPLE_PAY",
  "domains": [
    {
      "url": "checkout.example.com"
    },
    {
      "url": "shop.example.com"
    }
  ]
}
'
import requests

url = "https://api-sandbox.y.uno/v1/payment-methods/domains"

payload = {
"account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"connection_id": "7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a",
"payment_method_type": "APPLE_PAY",
"domains": [{ "url": "checkout.example.com" }, { "url": "shop.example.com" }]
}
headers = {
"public-api-key": "<api-key>",
"private-secret-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {
'public-api-key': '<api-key>',
'private-secret-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
account_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
connection_id: '7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a',
payment_method_type: 'APPLE_PAY',
domains: [{url: 'checkout.example.com'}, {url: 'shop.example.com'}]
})
};

fetch('https://api-sandbox.y.uno/v1/payment-methods/domains', 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/payment-methods/domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
'connection_id' => '7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a',
'payment_method_type' => 'APPLE_PAY',
'domains' => [
[
'url' => 'checkout.example.com'
],
[
'url' => 'shop.example.com'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api-sandbox.y.uno/v1/payment-methods/domains"

payload := strings.NewReader("{\n \"account_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"connection_id\": \"7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a\",\n \"payment_method_type\": \"APPLE_PAY\",\n \"domains\": [\n {\n \"url\": \"checkout.example.com\"\n },\n {\n \"url\": \"shop.example.com\"\n }\n ]\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("public-api-key", "<api-key>")
req.Header.Add("private-secret-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api-sandbox.y.uno/v1/payment-methods/domains")
.header("public-api-key", "<api-key>")
.header("private-secret-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"connection_id\": \"7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a\",\n \"payment_method_type\": \"APPLE_PAY\",\n \"domains\": [\n {\n \"url\": \"checkout.example.com\"\n },\n {\n \"url\": \"shop.example.com\"\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-sandbox.y.uno/v1/payment-methods/domains")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["public-api-key"] = '<api-key>'
request["private-secret-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"connection_id\": \"7c1d9a2e-3f44-4e8a-9b61-8e2f4c6b9d0a\",\n \"payment_method_type\": \"APPLE_PAY\",\n \"domains\": [\n {\n \"url\": \"checkout.example.com\"\n },\n {\n \"url\": \"shop.example.com\"\n }\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "payment_method": "APPLE_PAY",
  "domains": [
    {
      "id": "dom_1234567890abcdef",
      "domain": "checkout.example.com",
      "status": "REGISTERED",
      "created_at": "2026-01-22T10:30:00Z",
      "updated_at": "2026-01-22T10:30:00Z"
    },
    {
      "id": "dom_3456789012cdefgh",
      "domain": "shop.example.com",
      "status": "REGISTERED",
      "created_at": "2026-01-22T10:30:00Z",
      "updated_at": "2026-01-22T10:30:00Z"
    }
  ]
}

Authorizations

public-api-key
string
header
required
private-secret-key
string
header
required

Headers

X-Idempotency-Key
string

Body

application/json
account_id
string
required

The unique identifier of the account. Find this in the Yuno dashboard (MAX 64; MIN 36)

connection_id
string

The unique identifier of the connection (MAX 64; MIN 36)

payment_method_type
string

Single payment method to register for all domains.

domains
object[]

Array of domains to register.

Response

202 - application/json

Accepted

account_id
string
Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

payment_method
string
Example:

"APPLE_PAY"

domains
object[]