Skip to main content
GET
/
api
/
v1
/
customers
/
{customerId}
/
termsAcceptance
/
Get Terms Acceptance Status
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

Authorization
string
header
required

Access token obtained via /oauth2/token/. Use as Authorization: Bearer <access_token>.

Path Parameters

customerId
string<uuid>
required

Unique identifier for the customer.

Response

Terms acceptance status retrieved successfully.

country
string
required

Country code these Terms and Conditions apply to.

Example:

"AR"

accepted
boolean
required

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).

Example:

true

termsId
string<uuid> | null

UUID of the active Terms and Conditions. null when no active T&C exist for the country.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

version
string | null

Version string of the active Terms and Conditions. null when no active T&C exist.

Example:

"1.0"

url
string<uri> | null

URL where the full Terms and Conditions document can be read. null when no active T&C exist.

Example:

"https://example.com/terms/v1.0"

acceptedAt
string<date-time> | null

Timestamp when the customer last accepted the active Terms and Conditions. null if not yet accepted.

Example:

"2024-06-01T12:00:00Z"