Get All
curl --request GET \
--url https://api.blockradar.co/v1/payment_links \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockradar.co/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.blockradar.co/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.blockradar.co/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.blockradar.co/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.blockradar.co/v1/payment_links")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/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": [
{
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-03-04T16:28:26.740Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "e0c5f043-ade7-4823-b8c0-f7dd80f683e2",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "QQiUffoOIo",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T16:28:26.740Z"
},
{
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-03-04T15:18:21.841Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "ab59d412-d8a4-4c68-a532-e2de619da448",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "-vHk8uwbYT",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T15:18:21.841Z"
},
{
"active": true,
"amount": null,
"configurations": {
"paymentlimit": 1
},
"createdAt": "2025-03-04T15:03:40.366Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "cf597a1c-4e9a-48a1-ac0f-e3763b573ba4",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "n3fdtmJgk_",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T15:03:40.366Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-03-04T14:48:00.682Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "02658b43-91fa-4fd4-b95e-968302ff027f",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-1001",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:48:00.682Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-03-04T14:20:40.401Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "545d5b54-74e2-4e81-8557-1b897c38a00c",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": "http://localhost:3000",
"slug": "payment-link-100",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:20:40.401Z"
},
{
"active": false,
"amount": "2",
"configurations": {},
"createdAt": "2025-02-07T20:03:39.974Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "84d4e096-0b71-4d0c-ab4f-8a692c67314c",
"imageUrl": null,
"inactiveMessage": null,
"metadata": {},
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-12",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:16:44.830Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-02-07T19:23:50.980Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "fc61361e-2206-4ad1-93fe-8381961614ce",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-11",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-02-07T19:23:50.980Z"
},
{
"active": true,
"amount": "100",
"configurations": null,
"createdAt": "2024-12-20T18:56:50.853Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "4a4e88ef-0bd9-4b74-a5c9-77df92790059",
"imageUrl": "https://res.cloudinary.com/blockradar/image/upload/v1734706610/payment-links/nimrihqolplkelqwjpl2.jpg",
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-10",
"successMessage": null,
"type": "payment",
"updatedAt": "2024-12-20T18:56:50.853Z"
}
],
"message": "Payment Links fetched successfully",
"meta": {
"currentPage": 1,
"itemCount": 8,
"itemsPerPage": 10,
"totalItems": 8,
"totalPages": 1
},
"statusCode": 200
}Checkout
Get All
This endpoint retrieves a list of payment links.
GET
/
v1
/
payment_links
Get All
curl --request GET \
--url https://api.blockradar.co/v1/payment_links \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockradar.co/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.blockradar.co/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.blockradar.co/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.blockradar.co/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.blockradar.co/v1/payment_links")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/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": [
{
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-03-04T16:28:26.740Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "e0c5f043-ade7-4823-b8c0-f7dd80f683e2",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "QQiUffoOIo",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T16:28:26.740Z"
},
{
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-03-04T15:18:21.841Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "ab59d412-d8a4-4c68-a532-e2de619da448",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "-vHk8uwbYT",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T15:18:21.841Z"
},
{
"active": true,
"amount": null,
"configurations": {
"paymentlimit": 1
},
"createdAt": "2025-03-04T15:03:40.366Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "cf597a1c-4e9a-48a1-ac0f-e3763b573ba4",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "n3fdtmJgk_",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T15:03:40.366Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-03-04T14:48:00.682Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "02658b43-91fa-4fd4-b95e-968302ff027f",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-1001",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:48:00.682Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-03-04T14:20:40.401Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "545d5b54-74e2-4e81-8557-1b897c38a00c",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": "http://localhost:3000",
"slug": "payment-link-100",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:20:40.401Z"
},
{
"active": false,
"amount": "2",
"configurations": {},
"createdAt": "2025-02-07T20:03:39.974Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "84d4e096-0b71-4d0c-ab4f-8a692c67314c",
"imageUrl": null,
"inactiveMessage": null,
"metadata": {},
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-12",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:16:44.830Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-02-07T19:23:50.980Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "fc61361e-2206-4ad1-93fe-8381961614ce",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-11",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-02-07T19:23:50.980Z"
},
{
"active": true,
"amount": "100",
"configurations": null,
"createdAt": "2024-12-20T18:56:50.853Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "4a4e88ef-0bd9-4b74-a5c9-77df92790059",
"imageUrl": "https://res.cloudinary.com/blockradar/image/upload/v1734706610/payment-links/nimrihqolplkelqwjpl2.jpg",
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-10",
"successMessage": null,
"type": "payment",
"updatedAt": "2024-12-20T18:56:50.853Z"
}
],
"message": "Payment Links fetched successfully",
"meta": {
"currentPage": 1,
"itemCount": 8,
"itemsPerPage": 10,
"totalItems": 8,
"totalPages": 1
},
"statusCode": 200
}Autorisations
Réponse
200 - application/json
200
Show child attributes
Show child attributes
Exemple:
[
{
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-03-04T16:28:26.740Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "e0c5f043-ade7-4823-b8c0-f7dd80f683e2",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "QQiUffoOIo",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T16:28:26.740Z"
},
{
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-03-04T15:18:21.841Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "ab59d412-d8a4-4c68-a532-e2de619da448",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "-vHk8uwbYT",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T15:18:21.841Z"
},
{
"active": true,
"amount": null,
"configurations": { "paymentlimit": 1 },
"createdAt": "2025-03-04T15:03:40.366Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "cf597a1c-4e9a-48a1-ac0f-e3763b573ba4",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "n3fdtmJgk_",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T15:03:40.366Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-03-04T14:48:00.682Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "02658b43-91fa-4fd4-b95e-968302ff027f",
"imageUrl": null,
"inactiveMessage": "In active message",
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-1001",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:48:00.682Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-03-04T14:20:40.401Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "545d5b54-74e2-4e81-8557-1b897c38a00c",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link 10",
"network": "testnet",
"redirectUrl": "http://localhost:3000",
"slug": "payment-link-100",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:20:40.401Z"
},
{
"active": false,
"amount": "2",
"configurations": {},
"createdAt": "2025-02-07T20:03:39.974Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "84d4e096-0b71-4d0c-ab4f-8a692c67314c",
"imageUrl": null,
"inactiveMessage": null,
"metadata": {},
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-12",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-03-04T14:16:44.830Z"
},
{
"active": true,
"amount": null,
"configurations": null,
"createdAt": "2025-02-07T19:23:50.980Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "fc61361e-2206-4ad1-93fe-8381961614ce",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-11",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-02-07T19:23:50.980Z"
},
{
"active": true,
"amount": "100",
"configurations": null,
"createdAt": "2024-12-20T18:56:50.853Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "4a4e88ef-0bd9-4b74-a5c9-77df92790059",
"imageUrl": "https://res.cloudinary.com/blockradar/image/upload/v1734706610/payment-links/nimrihqolplkelqwjpl2.jpg",
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": null,
"slug": "payment-link-10",
"successMessage": null,
"type": "payment",
"updatedAt": "2024-12-20T18:56:50.853Z"
}
]
Exemple:
"Payment Links fetched successfully"
Show child attributes
Show child attributes
Exemple:
200
⌘I

