Payouts
Marca payouts como pagos (liquidação manual)
Liquida payouts scheduled sem passar pelo Asaas: marca completed, paga as comissões e registra settlementSource=manual. Sucesso parcial por id. Exige owner/admin.
POST
/
payouts
/
mark-paid
Marca payouts como pagos (liquidação manual)
curl --request POST \
--url https://api.userepass.com/payouts/mark-paid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payoutIds": [
"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC"
]
}
'import requests
url = "https://api.userepass.com/payouts/mark-paid"
payload = { "payoutIds": ["pay_01J9Z3K8N2QF4T7B9XP0WMD5RC"] }
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({payoutIds: ['pay_01J9Z3K8N2QF4T7B9XP0WMD5RC']})
};
fetch('https://api.userepass.com/payouts/mark-paid', 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.userepass.com/payouts/mark-paid",
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([
'payoutIds' => [
'pay_01J9Z3K8N2QF4T7B9XP0WMD5RC'
]
]),
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.userepass.com/payouts/mark-paid"
payload := strings.NewReader("{\n \"payoutIds\": [\n \"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC\"\n ]\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.userepass.com/payouts/mark-paid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payoutIds\": [\n \"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.userepass.com/payouts/mark-paid")
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 \"payoutIds\": [\n \"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"payoutId": "<string>",
"ok": true,
"payout": {
"id": "pay_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"organizationId": "org_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"batchId": "cyc_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"fundingId": "fund_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"status": "scheduled",
"method": "pix",
"amountCents": 25000,
"currency": "BRL",
"commissionCount": 4,
"destination": {
"method": "pix",
"pixKey": "[email protected]",
"pixKeyType": "email"
},
"failureReason": "Chave PIX inválida",
"providerTransactionId": "txn_8f3c1a2b9d4e",
"providerReceiptUrl": "https://provedor.exemplo.com/receipts/txn_8f3c1a2b9d4e",
"settlementSource": "manual",
"manualReceiptFileKey": "org/org_…/payouts/pay_…/receipt_….pdf",
"markedPaidByUserId": "usr_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"scheduledAt": "2026-06-13T12:00:00.000Z",
"processedAt": "2026-06-13T12:05:00.000Z",
"paidAt": "2026-06-13T12:10:00.000Z",
"failedAt": "2026-06-13T12:10:00.000Z",
"canceledAt": "2026-06-13T12:10:00.000Z",
"createdAt": "2026-06-13T12:00:00.000Z",
"updatedAt": "2026-06-13T12:00:00.000Z"
}
}
]
}Authorizations
bearerAuthapiKeyAuth
Chave de API (prefixo rstr_) enviada como Authorization: Bearer rstr_....
Body
application/json
IDs dos payouts a marcar como pagos (liquidação manual).
Required array length:
1 - 100 elementsPattern:
^pay_[0-9A-HJKMNP-TV-Z]{26}$Example:
["pay_01J9Z3K8N2QF4T7B9XP0WMD5RC"]
Response
200 - application/json
Default Response
Resultado por payout (sucesso parcial permitido).
Show child attributes
Show child attributes
⌘I
Marca payouts como pagos (liquidação manual)
curl --request POST \
--url https://api.userepass.com/payouts/mark-paid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payoutIds": [
"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC"
]
}
'import requests
url = "https://api.userepass.com/payouts/mark-paid"
payload = { "payoutIds": ["pay_01J9Z3K8N2QF4T7B9XP0WMD5RC"] }
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({payoutIds: ['pay_01J9Z3K8N2QF4T7B9XP0WMD5RC']})
};
fetch('https://api.userepass.com/payouts/mark-paid', 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.userepass.com/payouts/mark-paid",
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([
'payoutIds' => [
'pay_01J9Z3K8N2QF4T7B9XP0WMD5RC'
]
]),
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.userepass.com/payouts/mark-paid"
payload := strings.NewReader("{\n \"payoutIds\": [\n \"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC\"\n ]\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.userepass.com/payouts/mark-paid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payoutIds\": [\n \"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.userepass.com/payouts/mark-paid")
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 \"payoutIds\": [\n \"pay_01J9Z3K8N2QF4T7B9XP0WMD5RC\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"payoutId": "<string>",
"ok": true,
"payout": {
"id": "pay_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"organizationId": "org_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"batchId": "cyc_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"fundingId": "fund_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"status": "scheduled",
"method": "pix",
"amountCents": 25000,
"currency": "BRL",
"commissionCount": 4,
"destination": {
"method": "pix",
"pixKey": "[email protected]",
"pixKeyType": "email"
},
"failureReason": "Chave PIX inválida",
"providerTransactionId": "txn_8f3c1a2b9d4e",
"providerReceiptUrl": "https://provedor.exemplo.com/receipts/txn_8f3c1a2b9d4e",
"settlementSource": "manual",
"manualReceiptFileKey": "org/org_…/payouts/pay_…/receipt_….pdf",
"markedPaidByUserId": "usr_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"scheduledAt": "2026-06-13T12:00:00.000Z",
"processedAt": "2026-06-13T12:05:00.000Z",
"paidAt": "2026-06-13T12:10:00.000Z",
"failedAt": "2026-06-13T12:10:00.000Z",
"canceledAt": "2026-06-13T12:10:00.000Z",
"createdAt": "2026-06-13T12:00:00.000Z",
"updatedAt": "2026-06-13T12:00:00.000Z"
}
}
]
}