List the authenticated merchant’s links, newest first
curl --request GET \
--url https://api.example.com/v1/payment-links \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/v1/payment-links"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/v1/payment-links', 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.example.com/v1/payment-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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.example.com/v1/payment-links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-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.example.com/v1/payment-links")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payment-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"amount": "12.34",
"createdAt": "2026-10-11T10:00:00.000Z",
"currency": "EUR",
"description": "Order payment",
"expired": false,
"expiresAt": "2026-10-18T10:00:00.000Z",
"failureUrl": "https://shop.example.com/failure",
"id": "pl_01j9a6d6dqevssvyw7s97pkrga",
"isActive": true,
"livemode": true,
"maxUses": 1,
"merchantId": "mer_example",
"metadata": {
"cartId": "cart_example"
},
"reusable": false,
"slug": "aBcDeFgHiJkLmNoPqRsTuVwX",
"status": "ACTIVE",
"successUrl": "https://shop.example.com/success",
"url": "https://pay.example.com/l/aBcDeFgHiJkLmNoPqRsTuVwX",
"usesCount": 0
}
],
"nextCursor": null
}{
"error": "PAYMENT_LINK_INVALID_CURSOR",
"errorCode": "PAYMENT_LINK_INVALID_CURSOR",
"message": "PAYMENT_LINK_INVALID_CURSOR",
"status": false,
"statusCode": 400
}{
"error": "Unauthorized",
"message": "Invalid API key",
"statusCode": 401
}{
"error": "RATE_LIMITED",
"errorCode": "RATE_LIMITED",
"message": "Too many requests. Retry after the indicated delay.",
"status": false,
"statusCode": 429
}{
"error": "UPSTREAM_UNAVAILABLE",
"errorCode": "UPSTREAM_UNAVAILABLE",
"message": "Payment links are temporarily unavailable",
"status": false,
"statusCode": 502
}{
"error": "Service Unavailable",
"message": "API_KEY_VALIDATION_UNAVAILABLE",
"statusCode": 503
}{
"error": "UPSTREAM_TIMEOUT",
"errorCode": "UPSTREAM_TIMEOUT",
"message": "The payment core did not answer in time",
"status": false,
"statusCode": 504
}Payment links
List the authenticated merchant’s links, newest first
Scoped to the authenticated API key’s live/test mode. Keyset pagination: pass nextCursor from the previous page as cursor; null means the last page.
GET
/
v1
/
payment-links
List the authenticated merchant’s links, newest first
curl --request GET \
--url https://api.example.com/v1/payment-links \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/v1/payment-links"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/v1/payment-links', 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.example.com/v1/payment-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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.example.com/v1/payment-links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-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.example.com/v1/payment-links")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payment-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"amount": "12.34",
"createdAt": "2026-10-11T10:00:00.000Z",
"currency": "EUR",
"description": "Order payment",
"expired": false,
"expiresAt": "2026-10-18T10:00:00.000Z",
"failureUrl": "https://shop.example.com/failure",
"id": "pl_01j9a6d6dqevssvyw7s97pkrga",
"isActive": true,
"livemode": true,
"maxUses": 1,
"merchantId": "mer_example",
"metadata": {
"cartId": "cart_example"
},
"reusable": false,
"slug": "aBcDeFgHiJkLmNoPqRsTuVwX",
"status": "ACTIVE",
"successUrl": "https://shop.example.com/success",
"url": "https://pay.example.com/l/aBcDeFgHiJkLmNoPqRsTuVwX",
"usesCount": 0
}
],
"nextCursor": null
}{
"error": "PAYMENT_LINK_INVALID_CURSOR",
"errorCode": "PAYMENT_LINK_INVALID_CURSOR",
"message": "PAYMENT_LINK_INVALID_CURSOR",
"status": false,
"statusCode": 400
}{
"error": "Unauthorized",
"message": "Invalid API key",
"statusCode": 401
}{
"error": "RATE_LIMITED",
"errorCode": "RATE_LIMITED",
"message": "Too many requests. Retry after the indicated delay.",
"status": false,
"statusCode": 429
}{
"error": "UPSTREAM_UNAVAILABLE",
"errorCode": "UPSTREAM_UNAVAILABLE",
"message": "Payment links are temporarily unavailable",
"status": false,
"statusCode": 502
}{
"error": "Service Unavailable",
"message": "API_KEY_VALIDATION_UNAVAILABLE",
"statusCode": 503
}{
"error": "UPSTREAM_TIMEOUT",
"errorCode": "UPSTREAM_TIMEOUT",
"message": "The payment core did not answer in time",
"status": false,
"statusCode": 504
}