curl --request GET \
--url https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/withholdings/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/withholdings/"
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}/withholdings/', 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}/withholdings/",
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}/withholdings/"
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}/withholdings/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/withholdings/")
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{
"withholdingsEnabled": true,
"period": "202612",
"totalRate": "6.00",
"withholdings": [
{
"regime": "SIRCUPA",
"jurisdiction": 901,
"rate": "1.00"
},
{
"regime": "SIRCUPA",
"jurisdiction": 0,
"rate": "5.00"
}
]
}Get Customer Withholdings
Argentina only. Returns whether the customer is listed in the gross income withholding registry (padrón, SIRCUPA regime) for the current period, and at what rates. A bank transfer into the customer’s CVU from an account that is not in the customer’s name is withheld at these rates; a transfer from the customer’s own account is not. See Gross income withholding (SIRCUPA).
Use it to warn your user before they transfer, for example: transfer from an account in your name, otherwise 6% will be withheld.
withholdingsEnabled: falsemeans nothing would be withheld: the customer is not in the registry, has no approved KYC with a CUIT, or the withholding does not apply to your account.- The registry changes from one period to the next, so read it before showing the warning instead of storing it.
503(50003) means the registry could not be read. Retry later, and in the meantime do not assume the customer is not withheld: show the generic warning.- In sandbox the registry is simulated, so the answer does not reflect the customer’s real tax situation.
curl --request GET \
--url https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/withholdings/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/withholdings/"
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}/withholdings/', 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}/withholdings/",
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}/withholdings/"
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}/withholdings/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/customers/{customerId}/withholdings/")
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{
"withholdingsEnabled": true,
"period": "202612",
"totalRate": "6.00",
"withholdings": [
{
"regime": "SIRCUPA",
"jurisdiction": 901,
"rate": "1.00"
},
{
"regime": "SIRCUPA",
"jurisdiction": 0,
"rate": "5.00"
}
]
}Authorizations
Access token obtained via /oauth2/token/. Use as Authorization: Bearer <access_token>.
Response
The customer's withholding status.
Whether bank transfers into the customer's CVU from a third party's account would be withheld, and at what rates. See gross income withholding (SIRCUPA).
Was this page helpful?