Skip to main content
POST
/
api
/
v1
/
customers
/
{customerId}
/
acceptTerms
/
Accept Terms and Conditions
curl --request POST \
  --url https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/acceptTerms/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "termsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "ipAddress": "192.168.1.100",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
}
'
import requests

url = "https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/acceptTerms/"

payload = {
"termsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ipAddress": "192.168.1.100",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
termsId: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
ipAddress: '192.168.1.100',
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
})
};

fetch('https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/acceptTerms/', 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}/acceptTerms/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'termsId' => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
'ipAddress' => '192.168.1.100',
'userAgent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/acceptTerms/"

payload := strings.NewReader("{\n \"termsId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"ipAddress\": \"192.168.1.100\",\n \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/acceptTerms/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"termsId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"ipAddress\": \"192.168.1.100\",\n \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/acceptTerms/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"termsId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"ipAddress\": \"192.168.1.100\",\n \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\"\n}"

response = http.request(request)
puts response.read_body
{
  "termsId": "94b302e4-77d4-4627-af36-8265121bef29",
  "ipAddress": "1.1.1.1",
  "userAgent": null,
  "acceptedAt": "2026-02-25T20:29:11.243033Z"
}

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.

Body

application/json

Terms and Conditions acceptance payload.

termsId
string<uuid>
required

UUID of the Terms and Conditions the customer is accepting.

Example:

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

ipAddress
string<ipv4>
required

IP address of the customer at the time of acceptance.

Example:

"192.168.1.100"

userAgent
string

User agent string from the customer's browser or app (optional).

Example:

"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"

Response

Terms and Conditions accepted successfully.

termsId
string<uuid>
required

UUID of the accepted Terms and Conditions.

Example:

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

ipAddress
string
required

IP address recorded at the time of acceptance.

Example:

"192.168.1.100"

acceptedAt
string<date-time>
required

Timestamp when the customer accepted the Terms and Conditions.

Example:

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

userAgent
string | null

User agent recorded at the time of acceptance. Returns null if not provided in the request.

Example:

"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"