Get current merchant services agreement
curl --request GET \
--url https://api.kyrenpay.com/v1/config/legal/merchant-services-agreementimport requests
url = "https://api.kyrenpay.com/v1/config/legal/merchant-services-agreement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kyrenpay.com/v1/config/legal/merchant-services-agreement', 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.kyrenpay.com/v1/config/legal/merchant-services-agreement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.kyrenpay.com/v1/config/legal/merchant-services-agreement"
req, _ := http.NewRequest("GET", url, nil)
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.kyrenpay.com/v1/config/legal/merchant-services-agreement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kyrenpay.com/v1/config/legal/merchant-services-agreement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"agreementVersion": "<string>",
"effectiveDate": "2023-12-25",
"effectiveDateDisplay": "<string>",
"templateSha256": "<string>",
"renderedDocumentSha256": "<string>",
"markdownContent": "<string>",
"acceptanceStatement": "<string>",
"actionLabel": "<string>",
"documentUrl": "<string>"
}
}{
"code": 42901,
"message": "Too many requests"
}Config
Get current merchant services agreement
Returns the current rendered agreement, its version, effective date, hashes, and public URL. Retrieve it without an API key. Complete acceptance in the merchant dashboard; downloading this document does not sign it or change the account’s agreement status.
GET
/
v1
/
config
/
legal
/
merchant-services-agreement
Get current merchant services agreement
curl --request GET \
--url https://api.kyrenpay.com/v1/config/legal/merchant-services-agreementimport requests
url = "https://api.kyrenpay.com/v1/config/legal/merchant-services-agreement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kyrenpay.com/v1/config/legal/merchant-services-agreement', 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.kyrenpay.com/v1/config/legal/merchant-services-agreement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.kyrenpay.com/v1/config/legal/merchant-services-agreement"
req, _ := http.NewRequest("GET", url, nil)
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.kyrenpay.com/v1/config/legal/merchant-services-agreement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kyrenpay.com/v1/config/legal/merchant-services-agreement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"agreementVersion": "<string>",
"effectiveDate": "2023-12-25",
"effectiveDateDisplay": "<string>",
"templateSha256": "<string>",
"renderedDocumentSha256": "<string>",
"markdownContent": "<string>",
"acceptanceStatement": "<string>",
"actionLabel": "<string>",
"documentUrl": "<string>"
}
}{
"code": 42901,
"message": "Too many requests"
}