curl --request GET \
--url https://api.lapyme.com.ar/api/v1/accounting/accounts-receivable \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lapyme.com.ar/api/v1/accounting/accounts-receivable"
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/accounting/accounts-receivable', 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/accounting/accounts-receivable",
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/accounting/accounts-receivable"
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/accounting/accounts-receivable")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lapyme.com.ar/api/v1/accounting/accounts-receivable")
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>",
"effective_scope": "all",
"data": {
"object": "accounts_receivable",
"functional_currency": "ARS",
"summary": {
"total": 123,
"undated": 123,
"current": 123,
"overdue": 123
},
"buckets": [
{
"bucket": "undated",
"label": "<string>",
"amount": 123
}
],
"is_filtered_subset": true,
"groups": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_name": "<string>",
"total_balance": 123,
"overdue_balance": 123,
"document_count": 123,
"buckets": [
{
"bucket": "undated",
"label": "<string>",
"amount": 123
}
],
"items": [
{
"origin": "sale",
"origin_label": "<string>",
"source_type": "<string>",
"source_id": "<string>",
"reference": "<string>",
"document_number": "<string>",
"voucher_type": "<string>",
"document_date": "2023-12-25",
"due_date": "2023-12-25",
"source_currency": "<string>",
"functional_balance": 123,
"days_overdue": 123,
"bucket": "undated"
}
]
}
]
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Solicitud inválida",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "API key faltante o inválida",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Scope insuficiente o contabilidad no habilitada",
"retryable": false,
"details": []
}
}{
"request_id": "req_rate_limit_1",
"error": {
"type": "rate_limit_error",
"code": "RATE_LIMITED",
"message": "The organization request limit was reached. Try again later.",
"retryable": true,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Error interno del servidor",
"retryable": false,
"details": []
}
}Obtener cuentas a cobrar
Saldos abiertos de clientes por tramo de vencimiento: cuánto le deben a la organización y desde cuándo. Los tramos se miden contra hoy; las fechas filtran por fecha del comprobante. Un miembro ve lo que su visibilidad de datos le permite en la app.
curl --request GET \
--url https://api.lapyme.com.ar/api/v1/accounting/accounts-receivable \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lapyme.com.ar/api/v1/accounting/accounts-receivable"
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/accounting/accounts-receivable', 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/accounting/accounts-receivable",
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/accounting/accounts-receivable"
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/accounting/accounts-receivable")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lapyme.com.ar/api/v1/accounting/accounts-receivable")
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>",
"effective_scope": "all",
"data": {
"object": "accounts_receivable",
"functional_currency": "ARS",
"summary": {
"total": 123,
"undated": 123,
"current": 123,
"overdue": 123
},
"buckets": [
{
"bucket": "undated",
"label": "<string>",
"amount": 123
}
],
"is_filtered_subset": true,
"groups": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_name": "<string>",
"total_balance": 123,
"overdue_balance": 123,
"document_count": 123,
"buckets": [
{
"bucket": "undated",
"label": "<string>",
"amount": 123
}
],
"items": [
{
"origin": "sale",
"origin_label": "<string>",
"source_type": "<string>",
"source_id": "<string>",
"reference": "<string>",
"document_number": "<string>",
"voucher_type": "<string>",
"document_date": "2023-12-25",
"due_date": "2023-12-25",
"source_currency": "<string>",
"functional_balance": 123,
"days_overdue": 123,
"bucket": "undated"
}
]
}
]
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Solicitud inválida",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "API key faltante o inválida",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Scope insuficiente o contabilidad no habilitada",
"retryable": false,
"details": []
}
}{
"request_id": "req_rate_limit_1",
"error": {
"type": "rate_limit_error",
"code": "RATE_LIMITED",
"message": "The organization request limit was reached. Try again later.",
"retryable": true,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Error interno del servidor",
"retryable": false,
"details": []
}
}Authorizations
Incluí tu API key en el header Authorization con el prefijo Bearer.
Query Parameters
Circuito contable del reporte: general, el id de un circuito de la organización (ver accounting_circuits en GET /api/v1/organization), o all. Omitido es all, todos los circuitos. Un id que no es de la organización devuelve 400 circuit_not_found.
Limita el reporte a un cliente o proveedor.
Fecha inicial inclusiva del comprobante (no del vencimiento). Los tramos se miden siempre contra hoy: no devuelve una foto a esa fecha.
Fecha final inclusiva del comprobante (no del vencimiento). Los tramos se miden siempre contra hoy: no devuelve una foto a esa fecha.
Incluye los comprobantes abiertos de cada contacto. Sin esto devuelve un total por contacto y por tramo.
Was this page helpful?

