Registrar pago a tarjeta de credito
curl --request POST \
--url https://api.raul.ugps.io/api/v1/credit-card/{id}/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 50000,
"payment_date": "2026-01-19",
"bank_account_id": "uuid-de-cuenta-bancaria",
"reference": "PAG-2026-001",
"notes": "Pago parcial mensual",
"is_total_payment": false
}
'import requests
url = "https://api.raul.ugps.io/api/v1/credit-card/{id}/payments"
payload = {
"amount": 50000,
"payment_date": "2026-01-19",
"bank_account_id": "uuid-de-cuenta-bancaria",
"reference": "PAG-2026-001",
"notes": "Pago parcial mensual",
"is_total_payment": False
}
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({
amount: 50000,
payment_date: '2026-01-19',
bank_account_id: 'uuid-de-cuenta-bancaria',
reference: 'PAG-2026-001',
notes: 'Pago parcial mensual',
is_total_payment: false
})
};
fetch('https://api.raul.ugps.io/api/v1/credit-card/{id}/payments', 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/credit-card/{id}/payments",
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([
'amount' => 50000,
'payment_date' => '2026-01-19',
'bank_account_id' => 'uuid-de-cuenta-bancaria',
'reference' => 'PAG-2026-001',
'notes' => 'Pago parcial mensual',
'is_total_payment' => false
]),
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/credit-card/{id}/payments"
payload := strings.NewReader("{\n \"amount\": 50000,\n \"payment_date\": \"2026-01-19\",\n \"bank_account_id\": \"uuid-de-cuenta-bancaria\",\n \"reference\": \"PAG-2026-001\",\n \"notes\": \"Pago parcial mensual\",\n \"is_total_payment\": false\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/credit-card/{id}/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 50000,\n \"payment_date\": \"2026-01-19\",\n \"bank_account_id\": \"uuid-de-cuenta-bancaria\",\n \"reference\": \"PAG-2026-001\",\n \"notes\": \"Pago parcial mensual\",\n \"is_total_payment\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/credit-card/{id}/payments")
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 \"amount\": 50000,\n \"payment_date\": \"2026-01-19\",\n \"bank_account_id\": \"uuid-de-cuenta-bancaria\",\n \"reference\": \"PAG-2026-001\",\n \"notes\": \"Pago parcial mensual\",\n \"is_total_payment\": false\n}"
response = http.request(request)
puts response.read_bodyCuentas por Pagar - Tarjetas de Credito
Registrar pago a tarjeta de credito
Registra un pago que reduce el saldo de la tarjeta. Opcionalmente descuenta de una cuenta bancaria.
POST
/
api
/
v1
/
credit-card
/
{id}
/
payments
Registrar pago a tarjeta de credito
curl --request POST \
--url https://api.raul.ugps.io/api/v1/credit-card/{id}/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 50000,
"payment_date": "2026-01-19",
"bank_account_id": "uuid-de-cuenta-bancaria",
"reference": "PAG-2026-001",
"notes": "Pago parcial mensual",
"is_total_payment": false
}
'import requests
url = "https://api.raul.ugps.io/api/v1/credit-card/{id}/payments"
payload = {
"amount": 50000,
"payment_date": "2026-01-19",
"bank_account_id": "uuid-de-cuenta-bancaria",
"reference": "PAG-2026-001",
"notes": "Pago parcial mensual",
"is_total_payment": False
}
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({
amount: 50000,
payment_date: '2026-01-19',
bank_account_id: 'uuid-de-cuenta-bancaria',
reference: 'PAG-2026-001',
notes: 'Pago parcial mensual',
is_total_payment: false
})
};
fetch('https://api.raul.ugps.io/api/v1/credit-card/{id}/payments', 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/credit-card/{id}/payments",
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([
'amount' => 50000,
'payment_date' => '2026-01-19',
'bank_account_id' => 'uuid-de-cuenta-bancaria',
'reference' => 'PAG-2026-001',
'notes' => 'Pago parcial mensual',
'is_total_payment' => false
]),
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/credit-card/{id}/payments"
payload := strings.NewReader("{\n \"amount\": 50000,\n \"payment_date\": \"2026-01-19\",\n \"bank_account_id\": \"uuid-de-cuenta-bancaria\",\n \"reference\": \"PAG-2026-001\",\n \"notes\": \"Pago parcial mensual\",\n \"is_total_payment\": false\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/credit-card/{id}/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 50000,\n \"payment_date\": \"2026-01-19\",\n \"bank_account_id\": \"uuid-de-cuenta-bancaria\",\n \"reference\": \"PAG-2026-001\",\n \"notes\": \"Pago parcial mensual\",\n \"is_total_payment\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/credit-card/{id}/payments")
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 \"amount\": 50000,\n \"payment_date\": \"2026-01-19\",\n \"bank_account_id\": \"uuid-de-cuenta-bancaria\",\n \"reference\": \"PAG-2026-001\",\n \"notes\": \"Pago parcial mensual\",\n \"is_total_payment\": false\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer token authentication
Path Parameters
Body
application/json
Monto a pagar
Example:
50000
Fecha del pago
Example:
"2026-01-19"
ID de la cuenta bancaria origen (opcional si es efectivo)
Example:
"uuid-de-cuenta-bancaria"
Referencia o numero de comprobante
Example:
"PAG-2026-001"
Notas adicionales
Example:
"Pago parcial mensual"
Indica si es un pago total (salda la tarjeta)
Example:
false
Response
Pago registrado exitosamente
⌘I