Get settlement configuration
curl --request GET \
--url https://api.kyrenpay.com/v1/config/settlementimport requests
url = "https://api.kyrenpay.com/v1/config/settlement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kyrenpay.com/v1/config/settlement', 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/settlement",
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/settlement"
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/settlement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kyrenpay.com/v1/config/settlement")
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": {
"settlementDays": 1
}
}{
"code": 42901,
"message": "Too many requests"
}Config
Get settlement configuration
Returns the platform-wide settlement period in business days.
Individual orders may use their channel’s period captured at creation.
Use order settleDateTime for the expected eligibility time and settledAt for actual settlement.
This configuration does not guarantee payout timing.
GET
/
v1
/
config
/
settlement
Get settlement configuration
curl --request GET \
--url https://api.kyrenpay.com/v1/config/settlementimport requests
url = "https://api.kyrenpay.com/v1/config/settlement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kyrenpay.com/v1/config/settlement', 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/settlement",
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/settlement"
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/settlement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kyrenpay.com/v1/config/settlement")
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": {
"settlementDays": 1
}
}{
"code": 42901,
"message": "Too many requests"
}