curl --request GET \
--url https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}', 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.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}",
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.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}"
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.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}")
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{
"parent_client_id": "123e4567-e89b-12d3-a456-426614174000",
"parent_name": "Empresa Matriz S.A.",
"periodo": "2026-01",
"valor_uf": 38000,
"fecha_generada": "2026-01-15T10:30:00.000Z",
"children_billing": [
{
"child_client_id": "123e4567-e89b-12d3-a456-426614174000",
"child_name": "Sucursal Norte S.A.",
"subscriptions_count": 10,
"visits_count": 3,
"sales_count": 1,
"total_uf": 12.5,
"total_clp": 475000,
"color_index": 0
}
],
"direct_billing": {
"subscriptions_count": 5,
"total_uf": 6.25,
"total_clp": 237500
},
"grand_total_uf": 25,
"grand_total_clp": 950000,
"total_subscriptions_count": 15,
"total_visits_count": 6,
"total_sales_count": 2,
"children_count": 3
}Get consolidated billing by parent client with child breakdown
Get consolidated billing by parent client with child breakdown
curl --request GET \
--url https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}', 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.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}",
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.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}"
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.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/factura/consolidated/by-parent/{parentClientId}")
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{
"parent_client_id": "123e4567-e89b-12d3-a456-426614174000",
"parent_name": "Empresa Matriz S.A.",
"periodo": "2026-01",
"valor_uf": 38000,
"fecha_generada": "2026-01-15T10:30:00.000Z",
"children_billing": [
{
"child_client_id": "123e4567-e89b-12d3-a456-426614174000",
"child_name": "Sucursal Norte S.A.",
"subscriptions_count": 10,
"visits_count": 3,
"sales_count": 1,
"total_uf": 12.5,
"total_clp": 475000,
"color_index": 0
}
],
"direct_billing": {
"subscriptions_count": 5,
"total_uf": 6.25,
"total_clp": 237500
},
"grand_total_uf": 25,
"grand_total_clp": 950000,
"total_subscriptions_count": 15,
"total_visits_count": 6,
"total_sales_count": 2,
"children_count": 3
}Authorizations
Bearer token authentication
Path Parameters
Parent client ID
Query Parameters
Period in YYYY-MM format
"2026-01"
Response
Parent client ID
"123e4567-e89b-12d3-a456-426614174000"
Parent client name
"Empresa Matriz S.A."
Billing period
"2026-01"
UF value used for calculations
38000
Date when this report was generated
"2026-01-15T10:30:00.000Z"
Billing breakdown by child companies
Show child attributes
Show child attributes
Billing for subscriptions directly under parent (no child assigned)
Show child attributes
Show child attributes
Grand total in UF (all children + direct)
25
Grand total in CLP (all children + direct)
950000
Total number of subscriptions across all children and direct
15
Total number of visits across all children and direct
6
Total number of sales across all children and direct
2
Number of child companies with billing
3