curl --request POST \
--url https://api.mozarth.com/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 4500.5,
"currency": "UYU",
"debtorId": "01hqz9x4debtor",
"externalId": "pago-2026-000123",
"method": "transfer",
"paymentDate": "2026-01-15",
"portfolioId": "01hqz9x4example",
"reference": "DEP-98231"
}
'import requests
url = "https://api.mozarth.com/v1/payments"
payload = {
"amount": 4500.5,
"currency": "UYU",
"debtorId": "01hqz9x4debtor",
"externalId": "pago-2026-000123",
"method": "transfer",
"paymentDate": "2026-01-15",
"portfolioId": "01hqz9x4example",
"reference": "DEP-98231"
}
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: 4500.5,
currency: 'UYU',
debtorId: '01hqz9x4debtor',
externalId: 'pago-2026-000123',
method: 'transfer',
paymentDate: '2026-01-15',
portfolioId: '01hqz9x4example',
reference: 'DEP-98231'
})
};
fetch('https://api.mozarth.com/v1/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.mozarth.com/v1/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' => 4500.5,
'currency' => 'UYU',
'debtorId' => '01hqz9x4debtor',
'externalId' => 'pago-2026-000123',
'method' => 'transfer',
'paymentDate' => '2026-01-15',
'portfolioId' => '01hqz9x4example',
'reference' => 'DEP-98231'
]),
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.mozarth.com/v1/payments"
payload := strings.NewReader("{\n \"amount\": 4500.5,\n \"currency\": \"UYU\",\n \"debtorId\": \"01hqz9x4debtor\",\n \"externalId\": \"pago-2026-000123\",\n \"method\": \"transfer\",\n \"paymentDate\": \"2026-01-15\",\n \"portfolioId\": \"01hqz9x4example\",\n \"reference\": \"DEP-98231\"\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.mozarth.com/v1/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 4500.5,\n \"currency\": \"UYU\",\n \"debtorId\": \"01hqz9x4debtor\",\n \"externalId\": \"pago-2026-000123\",\n \"method\": \"transfer\",\n \"paymentDate\": \"2026-01-15\",\n \"portfolioId\": \"01hqz9x4example\",\n \"reference\": \"DEP-98231\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mozarth.com/v1/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\": 4500.5,\n \"currency\": \"UYU\",\n \"debtorId\": \"01hqz9x4debtor\",\n \"externalId\": \"pago-2026-000123\",\n \"method\": \"transfer\",\n \"paymentDate\": \"2026-01-15\",\n \"portfolioId\": \"01hqz9x4example\",\n \"reference\": \"DEP-98231\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"amount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"currency": "<string>",
"debtId": "<string>",
"debtorId": "<string>",
"id": "<string>",
"paymentDate": "<string>",
"paymentMethod": "<string>",
"portfolioId": "<string>",
"promiseId": "<string>",
"reference": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"data": {
"amount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"currency": "<string>",
"debtId": "<string>",
"debtorId": "<string>",
"id": "<string>",
"paymentDate": "<string>",
"paymentMethod": "<string>",
"portfolioId": "<string>",
"promiseId": "<string>",
"reference": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Registrar un pago
Registra un pago sobre un deudor de una cartera propia de la organización.
Idempotencia: el pago se identifica por externalId dentro de la cartera. Un reintento con el mismo externalId y portfolioId no crea un pago nuevo: devuelve el ya existente con 200. La primera creación devuelve 201.
Fecha del pago: paymentDate va en formato YYYY-MM-DD.
Método de pago (method, opcional): transfer, cash, collection_network, deposit, card, check, other. Si se omite, transfer.
Requiere el scope write en la API key.
Guía completa: /integracion/pagos.
curl --request POST \
--url https://api.mozarth.com/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 4500.5,
"currency": "UYU",
"debtorId": "01hqz9x4debtor",
"externalId": "pago-2026-000123",
"method": "transfer",
"paymentDate": "2026-01-15",
"portfolioId": "01hqz9x4example",
"reference": "DEP-98231"
}
'import requests
url = "https://api.mozarth.com/v1/payments"
payload = {
"amount": 4500.5,
"currency": "UYU",
"debtorId": "01hqz9x4debtor",
"externalId": "pago-2026-000123",
"method": "transfer",
"paymentDate": "2026-01-15",
"portfolioId": "01hqz9x4example",
"reference": "DEP-98231"
}
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: 4500.5,
currency: 'UYU',
debtorId: '01hqz9x4debtor',
externalId: 'pago-2026-000123',
method: 'transfer',
paymentDate: '2026-01-15',
portfolioId: '01hqz9x4example',
reference: 'DEP-98231'
})
};
fetch('https://api.mozarth.com/v1/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.mozarth.com/v1/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' => 4500.5,
'currency' => 'UYU',
'debtorId' => '01hqz9x4debtor',
'externalId' => 'pago-2026-000123',
'method' => 'transfer',
'paymentDate' => '2026-01-15',
'portfolioId' => '01hqz9x4example',
'reference' => 'DEP-98231'
]),
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.mozarth.com/v1/payments"
payload := strings.NewReader("{\n \"amount\": 4500.5,\n \"currency\": \"UYU\",\n \"debtorId\": \"01hqz9x4debtor\",\n \"externalId\": \"pago-2026-000123\",\n \"method\": \"transfer\",\n \"paymentDate\": \"2026-01-15\",\n \"portfolioId\": \"01hqz9x4example\",\n \"reference\": \"DEP-98231\"\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.mozarth.com/v1/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 4500.5,\n \"currency\": \"UYU\",\n \"debtorId\": \"01hqz9x4debtor\",\n \"externalId\": \"pago-2026-000123\",\n \"method\": \"transfer\",\n \"paymentDate\": \"2026-01-15\",\n \"portfolioId\": \"01hqz9x4example\",\n \"reference\": \"DEP-98231\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mozarth.com/v1/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\": 4500.5,\n \"currency\": \"UYU\",\n \"debtorId\": \"01hqz9x4debtor\",\n \"externalId\": \"pago-2026-000123\",\n \"method\": \"transfer\",\n \"paymentDate\": \"2026-01-15\",\n \"portfolioId\": \"01hqz9x4example\",\n \"reference\": \"DEP-98231\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"amount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"currency": "<string>",
"debtId": "<string>",
"debtorId": "<string>",
"id": "<string>",
"paymentDate": "<string>",
"paymentMethod": "<string>",
"portfolioId": "<string>",
"promiseId": "<string>",
"reference": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"data": {
"amount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"currency": "<string>",
"debtId": "<string>",
"debtorId": "<string>",
"id": "<string>",
"paymentDate": "<string>",
"paymentMethod": "<string>",
"portfolioId": "<string>",
"promiseId": "<string>",
"reference": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Monto abonado, mayor a 0.
ID del deudor que realizó el pago
Clave de idempotencia del cliente. Un reintento con el mismo valor (misma cartera) devuelve el pago ya creado, sin duplicarlo.
1 - 128Fecha en que ocurrió el pago, formato YYYY-MM-DD.
^\d{4}-\d{2}-\d{2}$ID del portafolio del pago
Código ISO de la moneda del pago
ID de la deuda específica a la que aplica
transfer, cash, collection_network, deposit, card, check, other Número de cheque, comprobante bancario o código de depósito
Response
Response for status 200
Show child attributes
Show child attributes