curl --request GET \
--url https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/', 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://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/",
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://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/"
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://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/")
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{
"termsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"country": "AR",
"version": "1.0",
"url": "https://example.com/terms/v1.0",
"accepted": true,
"acceptedAt": "2024-06-01T12:00:00Z"
}Get Terms Acceptance Status
Returns whether the customer has accepted the currently active Terms and Conditions for their account’s country, along with the active T&C details.
Use this endpoint to check whether to show the T&C acceptance screen to the customer before proceeding with on-ramp or off-ramp operations.
When no active Terms and Conditions exist for the country, accepted is always true and the term fields (termsId, version, url) are null — the customer is not blocked.
curl --request GET \
--url https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/', 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://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/",
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://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/"
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://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/termsAcceptance/")
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{
"termsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"country": "AR",
"version": "1.0",
"url": "https://example.com/terms/v1.0",
"accepted": true,
"acceptedAt": "2024-06-01T12:00:00Z"
}Authorizations
Access token obtained via /oauth2/token/. Use as Authorization: Bearer <access_token>.
Path Parameters
Unique identifier for the customer.
Response
Terms acceptance status retrieved successfully.
Country code these Terms and Conditions apply to.
"AR"
Whether the customer has accepted the currently active Terms and Conditions. Always true when no active T&C exist for the country (the customer is not blocked).
true
UUID of the active Terms and Conditions. null when no active T&C exist for the country.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Version string of the active Terms and Conditions. null when no active T&C exist.
"1.0"
URL where the full Terms and Conditions document can be read. null when no active T&C exist.
"https://example.com/terms/v1.0"
Timestamp when the customer last accepted the active Terms and Conditions. null if not yet accepted.
"2024-06-01T12:00:00Z"
Was this page helpful?