curl --request POST \
--url https://api.raul.ugps.io/api/v1/financing/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"total_amount": 10000000,
"installments_count": 36,
"installment_amount": 350000,
"start_date": "2025-01-01",
"due_day": 15,
"financing_type": "BANK_LOAN",
"bank_account_id": "123e4567-e89b-12d3-a456-426614174000",
"supplier_id": "123e4567-e89b-12d3-a456-426614174000",
"counterparty_name": "Natalia Aravena",
"employee_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "Financiamiento hipotecario",
"paid_installments": 5,
"currency": "CLP",
"current_installment": 1,
"current_installment_date": "2026-01-10"
}
'import requests
url = "https://api.raul.ugps.io/api/v1/financing/create"
payload = {
"total_amount": 10000000,
"installments_count": 36,
"installment_amount": 350000,
"start_date": "2025-01-01",
"due_day": 15,
"financing_type": "BANK_LOAN",
"bank_account_id": "123e4567-e89b-12d3-a456-426614174000",
"supplier_id": "123e4567-e89b-12d3-a456-426614174000",
"counterparty_name": "Natalia Aravena",
"employee_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "Financiamiento hipotecario",
"paid_installments": 5,
"currency": "CLP",
"current_installment": 1,
"current_installment_date": "2026-01-10"
}
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({
total_amount: 10000000,
installments_count: 36,
installment_amount: 350000,
start_date: '2025-01-01',
due_day: 15,
financing_type: 'BANK_LOAN',
bank_account_id: '123e4567-e89b-12d3-a456-426614174000',
supplier_id: '123e4567-e89b-12d3-a456-426614174000',
counterparty_name: 'Natalia Aravena',
employee_id: '123e4567-e89b-12d3-a456-426614174000',
description: 'Financiamiento hipotecario',
paid_installments: 5,
currency: 'CLP',
current_installment: 1,
current_installment_date: '2026-01-10'
})
};
fetch('https://api.raul.ugps.io/api/v1/financing/create', 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/financing/create",
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([
'total_amount' => 10000000,
'installments_count' => 36,
'installment_amount' => 350000,
'start_date' => '2025-01-01',
'due_day' => 15,
'financing_type' => 'BANK_LOAN',
'bank_account_id' => '123e4567-e89b-12d3-a456-426614174000',
'supplier_id' => '123e4567-e89b-12d3-a456-426614174000',
'counterparty_name' => 'Natalia Aravena',
'employee_id' => '123e4567-e89b-12d3-a456-426614174000',
'description' => 'Financiamiento hipotecario',
'paid_installments' => 5,
'currency' => 'CLP',
'current_installment' => 1,
'current_installment_date' => '2026-01-10'
]),
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://api.raul.ugps.io/api/v1/financing/create"
payload := strings.NewReader("{\n \"total_amount\": 10000000,\n \"installments_count\": 36,\n \"installment_amount\": 350000,\n \"start_date\": \"2025-01-01\",\n \"due_day\": 15,\n \"financing_type\": \"BANK_LOAN\",\n \"bank_account_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"supplier_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"counterparty_name\": \"Natalia Aravena\",\n \"employee_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"description\": \"Financiamiento hipotecario\",\n \"paid_installments\": 5,\n \"currency\": \"CLP\",\n \"current_installment\": 1,\n \"current_installment_date\": \"2026-01-10\"\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://api.raul.ugps.io/api/v1/financing/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"total_amount\": 10000000,\n \"installments_count\": 36,\n \"installment_amount\": 350000,\n \"start_date\": \"2025-01-01\",\n \"due_day\": 15,\n \"financing_type\": \"BANK_LOAN\",\n \"bank_account_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"supplier_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"counterparty_name\": \"Natalia Aravena\",\n \"employee_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"description\": \"Financiamiento hipotecario\",\n \"paid_installments\": 5,\n \"currency\": \"CLP\",\n \"current_installment\": 1,\n \"current_installment_date\": \"2026-01-10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/financing/create")
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 \"total_amount\": 10000000,\n \"installments_count\": 36,\n \"installment_amount\": 350000,\n \"start_date\": \"2025-01-01\",\n \"due_day\": 15,\n \"financing_type\": \"BANK_LOAN\",\n \"bank_account_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"supplier_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"counterparty_name\": \"Natalia Aravena\",\n \"employee_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"description\": \"Financiamiento hipotecario\",\n \"paid_installments\": 5,\n \"currency\": \"CLP\",\n \"current_installment\": 1,\n \"current_installment_date\": \"2026-01-10\"\n}"
response = http.request(request)
puts response.read_bodyCrear nuevo financiamiento (genera cuotas automáticamente)
Crear nuevo financiamiento (genera cuotas automáticamente)
curl --request POST \
--url https://api.raul.ugps.io/api/v1/financing/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"total_amount": 10000000,
"installments_count": 36,
"installment_amount": 350000,
"start_date": "2025-01-01",
"due_day": 15,
"financing_type": "BANK_LOAN",
"bank_account_id": "123e4567-e89b-12d3-a456-426614174000",
"supplier_id": "123e4567-e89b-12d3-a456-426614174000",
"counterparty_name": "Natalia Aravena",
"employee_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "Financiamiento hipotecario",
"paid_installments": 5,
"currency": "CLP",
"current_installment": 1,
"current_installment_date": "2026-01-10"
}
'import requests
url = "https://api.raul.ugps.io/api/v1/financing/create"
payload = {
"total_amount": 10000000,
"installments_count": 36,
"installment_amount": 350000,
"start_date": "2025-01-01",
"due_day": 15,
"financing_type": "BANK_LOAN",
"bank_account_id": "123e4567-e89b-12d3-a456-426614174000",
"supplier_id": "123e4567-e89b-12d3-a456-426614174000",
"counterparty_name": "Natalia Aravena",
"employee_id": "123e4567-e89b-12d3-a456-426614174000",
"description": "Financiamiento hipotecario",
"paid_installments": 5,
"currency": "CLP",
"current_installment": 1,
"current_installment_date": "2026-01-10"
}
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({
total_amount: 10000000,
installments_count: 36,
installment_amount: 350000,
start_date: '2025-01-01',
due_day: 15,
financing_type: 'BANK_LOAN',
bank_account_id: '123e4567-e89b-12d3-a456-426614174000',
supplier_id: '123e4567-e89b-12d3-a456-426614174000',
counterparty_name: 'Natalia Aravena',
employee_id: '123e4567-e89b-12d3-a456-426614174000',
description: 'Financiamiento hipotecario',
paid_installments: 5,
currency: 'CLP',
current_installment: 1,
current_installment_date: '2026-01-10'
})
};
fetch('https://api.raul.ugps.io/api/v1/financing/create', 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/financing/create",
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([
'total_amount' => 10000000,
'installments_count' => 36,
'installment_amount' => 350000,
'start_date' => '2025-01-01',
'due_day' => 15,
'financing_type' => 'BANK_LOAN',
'bank_account_id' => '123e4567-e89b-12d3-a456-426614174000',
'supplier_id' => '123e4567-e89b-12d3-a456-426614174000',
'counterparty_name' => 'Natalia Aravena',
'employee_id' => '123e4567-e89b-12d3-a456-426614174000',
'description' => 'Financiamiento hipotecario',
'paid_installments' => 5,
'currency' => 'CLP',
'current_installment' => 1,
'current_installment_date' => '2026-01-10'
]),
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://api.raul.ugps.io/api/v1/financing/create"
payload := strings.NewReader("{\n \"total_amount\": 10000000,\n \"installments_count\": 36,\n \"installment_amount\": 350000,\n \"start_date\": \"2025-01-01\",\n \"due_day\": 15,\n \"financing_type\": \"BANK_LOAN\",\n \"bank_account_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"supplier_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"counterparty_name\": \"Natalia Aravena\",\n \"employee_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"description\": \"Financiamiento hipotecario\",\n \"paid_installments\": 5,\n \"currency\": \"CLP\",\n \"current_installment\": 1,\n \"current_installment_date\": \"2026-01-10\"\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://api.raul.ugps.io/api/v1/financing/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"total_amount\": 10000000,\n \"installments_count\": 36,\n \"installment_amount\": 350000,\n \"start_date\": \"2025-01-01\",\n \"due_day\": 15,\n \"financing_type\": \"BANK_LOAN\",\n \"bank_account_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"supplier_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"counterparty_name\": \"Natalia Aravena\",\n \"employee_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"description\": \"Financiamiento hipotecario\",\n \"paid_installments\": 5,\n \"currency\": \"CLP\",\n \"current_installment\": 1,\n \"current_installment_date\": \"2026-01-10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/financing/create")
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 \"total_amount\": 10000000,\n \"installments_count\": 36,\n \"installment_amount\": 350000,\n \"start_date\": \"2025-01-01\",\n \"due_day\": 15,\n \"financing_type\": \"BANK_LOAN\",\n \"bank_account_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"supplier_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"counterparty_name\": \"Natalia Aravena\",\n \"employee_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"description\": \"Financiamiento hipotecario\",\n \"paid_installments\": 5,\n \"currency\": \"CLP\",\n \"current_installment\": 1,\n \"current_installment_date\": \"2026-01-10\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Token de sesión Better Auth para rutas de backoffice; las rutas de portal usan su token propio.
Body
Monto total del financiamiento
10000000
Número total de cuotas
36
Monto de cada cuota
350000
Fecha de inicio (YYYY-MM-DD)
"2025-01-01"
Día del mes de vencimiento (1-31)
15
Tipo de financiamiento
BANK_LOAN, PAYMENT_AGREEMENT, INSTALLMENT_PURCHASE "BANK_LOAN"
ID de la cuenta bancaria. Requerido para BANK_LOAN.
"123e4567-e89b-12d3-a456-426614174000"
ID del proveedor/acreedor. Requerido para acuerdos y compras en cuotas.
"123e4567-e89b-12d3-a456-426614174000"
Tipo de contraparte para financiamientos no bancarios
SUPPLIER, EMPLOYEE, OTHER Nombre directo de la contraparte cuando no corresponde crear proveedor
"Natalia Aravena"
ID del recurso humano cuando existe como empleado
"123e4567-e89b-12d3-a456-426614174000"
Descripción del financiamiento
"Financiamiento hipotecario"
Cuotas ya pagadas al registrar
5
Moneda del financiamiento (CLP o UF)
CLP, UF "CLP"
Número de cuota actual (en la que va el financiamiento)
1
Fecha de la cuota actual (YYYY-MM-DD)
"2026-01-10"
Response
Financiamiento creado