API version & capabilities
curl --request GET \
--url https://api.sandpay.dev/v1/meta \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandpay.dev/v1/meta"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandpay.dev/v1/meta', 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.sandpay.dev/v1/meta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sandpay.dev/v1/meta"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sandpay.dev/v1/meta")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandpay.dev/v1/meta")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"api_version": "2026-05-31",
"capabilities": [
"payments",
"refunds",
"disbursements",
"webhooks",
"test_clients",
"multi_environment",
"commission_split",
"order_linkage",
"reference_format"
],
"min_sdk_version": "0.3.0",
"changelog_url": "https://docs.sandpay.dev/integration-changelog"
}Référence API
API version & capabilities
Public capability + version discovery. Feature-detect against
capabilities rather than assuming a version. Every /v1/* response
also carries the version in an X-SandPay-Api-Version header.
GET
/
v1
/
meta
API version & capabilities
curl --request GET \
--url https://api.sandpay.dev/v1/meta \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandpay.dev/v1/meta"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandpay.dev/v1/meta', 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.sandpay.dev/v1/meta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sandpay.dev/v1/meta"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sandpay.dev/v1/meta")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandpay.dev/v1/meta")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"api_version": "2026-05-31",
"capabilities": [
"payments",
"refunds",
"disbursements",
"webhooks",
"test_clients",
"multi_environment",
"commission_split",
"order_linkage",
"reference_format"
],
"min_sdk_version": "0.3.0",
"changelog_url": "https://docs.sandpay.dev/integration-changelog"
}Autorisations
API key in format sp_sk_test_... or sp_sk_live_....
Réponse
200 - application/json
API version + capability surface.
Date-based API version, e.g. 2026-05-31.
Exemple:
"2026-05-31"
Capabilities this instance supports (feature-detect against these).
Exemple:
[ "payments", "refunds", "disbursements", "webhooks", "test_clients", "multi_environment", "commission_split", "order_linkage", "reference_format" ]
Minimum recommended @drwintech/sandpay version for this API version.
Exemple:
"0.3.0"
URL of the Integration Changelog (what changed + upgrade steps).
Exemple:
"https://docs.sandpay.dev/integration-changelog"