Preview USD Treasury revaluation
curl --request GET \
--url https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview', 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.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview",
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://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview"
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://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview")
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{
"request_id": "<string>",
"data": {
"object": "usd_treasury_revaluation_preview",
"month": "<string>",
"posting_date": "2023-12-25",
"reversal_date": "2023-12-25",
"currency": "USD",
"functional_currency": "ARS",
"rate": 1,
"rate_date": "2023-12-25",
"preview_token": "<string>",
"accounts": [
{
"bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_name": "<string>",
"account_name": "<string>",
"native_balance": 123,
"carrying_value": 123,
"revalued_value": 123,
"adjustment": 123,
"current_value": 123,
"previous_adjustment": 123,
"net_change": 123,
"status": "no_balance",
"replaces_entry_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
]
}
}
Preview USD Treasury revaluation
Preview a completed month’s USD bank balance at the local BCRA month-end or prior close. Shows historical/current ARS value, target value, full adjustment, net replacement change, dates and a token required to apply. Creates no records. USD integer cents and ARS integer cents are distinct.
GET
/
api
/
v1
/
treasury
/
usd-revaluations
/
preview
Preview USD Treasury revaluation
curl --request GET \
--url https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview', 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.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview",
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://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview"
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://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lapyme.com.ar/api/v1/treasury/usd-revaluations/preview")
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{
"request_id": "<string>",
"data": {
"object": "usd_treasury_revaluation_preview",
"month": "<string>",
"posting_date": "2023-12-25",
"reversal_date": "2023-12-25",
"currency": "USD",
"functional_currency": "ARS",
"rate": 1,
"rate_date": "2023-12-25",
"preview_token": "<string>",
"accounts": [
{
"bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_name": "<string>",
"account_name": "<string>",
"native_balance": 123,
"carrying_value": 123,
"revalued_value": 123,
"adjustment": 123,
"current_value": 123,
"previous_adjustment": 123,
"net_change": 123,
"status": "no_balance",
"replaces_entry_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
]
}
}
Authorizations
Incluí tu API key en el header Authorization con el prefijo Bearer.
Query Parameters
Pattern:
^\d{4}-(0[1-9]|1[0-2])$Omit to include all USD bank accounts, up to 32 per action; select one account for larger organizations.
Was this page helpful?

