Conversions
Lista as conversões
Lista paginada das conversões da organização, com filtros por programa, afiliado, status, tipo, método de atribuição e janela de ocorrência.
GET
/
conversions
Lista as conversões
curl --request GET \
--url https://api.userepass.com/conversions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.userepass.com/conversions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.userepass.com/conversions', 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/conversions",
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.userepass.com/conversions"
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.userepass.com/conversions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.userepass.com/conversions")
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{
"data": [
{
"id": "conv_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"organizationId": "org_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"programId": "prog_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"clickId": "clk_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"couponId": "coup_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"parentConversionId": "conv_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"type": "subscription_created",
"status": "approved",
"amountCents": 1990,
"currency": "BRL",
"customerId": "cust_8842",
"customerEmailHash": "<string>",
"productId": "plan_pro_monthly",
"sourceEventId": "order_2026-0001",
"source": "api",
"matchMethod": "click_id",
"commissionSkippedReason": "affiliate_paused",
"fraudDecision": "approve",
"voidReason": "Reembolso solicitado pelo cliente",
"attributionSnapshot": {
"model": "last_click",
"windowDays": 30,
"matchMethod": "click_id",
"candidates": [
{
"clickId": "clk_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"occurredAt": "2026-06-10T09:30:00.000Z"
}
],
"winners": [
{
"clickId": "clk_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"weightBps": 10000
}
],
"gclid": "Cj0KCQiA_gclid_example",
"couponPolicy": "click_wins"
},
"ruleSnapshot": {
"precedence": "tier",
"ruleId": "comm_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"version": 3,
"type": "percentage",
"percentageBps": 1500,
"fixedAmountCents": 1990,
"recurrence": {
"kind": "one_time",
"months": 12,
"steps": [
{
"cycle": 1,
"percentageBps": 1500
}
]
},
"tiers": [
{
"minCount": 0,
"percentageBps": 2000,
"fixedAmountCents": 5000
}
],
"applicableProductIds": [
"plan_pro_monthly",
"plan_pro_yearly"
]
},
"fraudSnapshot": {
"score": 0.12,
"decision": "approve",
"signals": [
{
"key": "ip_velocity",
"weight": 0.3,
"triggered": false,
"detail": "3 conversões do mesmo IP em 1h"
}
],
"policy": {
"approveBelow": 0.3,
"reviewAbove": 0.7
}
},
"occurredAt": "2026-06-13T12:00:00.000Z",
"createdAt": "2026-06-13T12:00:05.000Z",
"updatedAt": "2026-06-13T12:00:05.000Z"
}
],
"hasMore": true,
"nextCursor": "<string>",
"previousCursor": "<string>"
}Authorizations
bearerAuthapiKeyAuth
Chave de API (prefixo rstr_) enviada como Authorization: Bearer rstr_....
Query Parameters
Required range:
1 <= x <= 100Pattern:
^conv_[0-9A-HJKMNP-TV-Z]{26}$Pattern:
^conv_[0-9A-HJKMNP-TV-Z]{26}$Filtra conversões por programa.
Example:
"prog_01J9Z3K8N2QF4T7B9XP0WMD5RC"
Filtra conversões por afiliado.
Example:
"aff_01J9Z3K8N2QF4T7B9XP0WMD5RC"
Filtra por status (pending, approved, voided ou refunded).
Available options:
pending, approved, voided, refunded Example:
"approved"
Filtra por tipo de conversão.
Available options:
subscription_created, one_time_purchase, trial_converted, upgrade, custom Example:
"subscription_created"
Filtra pelo método de atribuição.
Available options:
click_id, visitor_id, email_hash, fingerprint, coupon, manual Example:
"click_id"
⌘I
Lista as conversões
curl --request GET \
--url https://api.userepass.com/conversions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.userepass.com/conversions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.userepass.com/conversions', 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/conversions",
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.userepass.com/conversions"
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.userepass.com/conversions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.userepass.com/conversions")
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{
"data": [
{
"id": "conv_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"organizationId": "org_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"programId": "prog_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"clickId": "clk_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"couponId": "coup_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"parentConversionId": "conv_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"type": "subscription_created",
"status": "approved",
"amountCents": 1990,
"currency": "BRL",
"customerId": "cust_8842",
"customerEmailHash": "<string>",
"productId": "plan_pro_monthly",
"sourceEventId": "order_2026-0001",
"source": "api",
"matchMethod": "click_id",
"commissionSkippedReason": "affiliate_paused",
"fraudDecision": "approve",
"voidReason": "Reembolso solicitado pelo cliente",
"attributionSnapshot": {
"model": "last_click",
"windowDays": 30,
"matchMethod": "click_id",
"candidates": [
{
"clickId": "clk_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"occurredAt": "2026-06-10T09:30:00.000Z"
}
],
"winners": [
{
"clickId": "clk_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"affiliateId": "aff_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"weightBps": 10000
}
],
"gclid": "Cj0KCQiA_gclid_example",
"couponPolicy": "click_wins"
},
"ruleSnapshot": {
"precedence": "tier",
"ruleId": "comm_01J9Z3K8N2QF4T7B9XP0WMD5RC",
"version": 3,
"type": "percentage",
"percentageBps": 1500,
"fixedAmountCents": 1990,
"recurrence": {
"kind": "one_time",
"months": 12,
"steps": [
{
"cycle": 1,
"percentageBps": 1500
}
]
},
"tiers": [
{
"minCount": 0,
"percentageBps": 2000,
"fixedAmountCents": 5000
}
],
"applicableProductIds": [
"plan_pro_monthly",
"plan_pro_yearly"
]
},
"fraudSnapshot": {
"score": 0.12,
"decision": "approve",
"signals": [
{
"key": "ip_velocity",
"weight": 0.3,
"triggered": false,
"detail": "3 conversões do mesmo IP em 1h"
}
],
"policy": {
"approveBelow": 0.3,
"reviewAbove": 0.7
}
},
"occurredAt": "2026-06-13T12:00:00.000Z",
"createdAt": "2026-06-13T12:00:05.000Z",
"updatedAt": "2026-06-13T12:00:05.000Z"
}
],
"hasMore": true,
"nextCursor": "<string>",
"previousCursor": "<string>"
}