Disputes
Get Dispute
Retrieve a single customer-raised invoice dispute by id — the addressable object behind the dashboard’s dispute page.
GET
/
v1
/
disputes
/
{id}
Get one invoice dispute (tenant-scoped)
curl --request GET \
--url https://billing.example.com/v1/disputes/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/disputes/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/disputes/{id}', 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://billing.example.com/v1/disputes/{id}",
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://billing.example.com/v1/disputes/{id}"
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://billing.example.com/v1/disputes/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/disputes/{id}")
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": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"status": "open",
"note": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z"
}
}Fetches a single dispute by id — the addressable object behind the
dashboard’s dispute page. A dispute is a customer-raised query against one of
their invoices (raised from the customer portal);
it is
Errors use the standard envelope — see Errors.
open until an admin resolves it with a note.
Example Request
curl "https://api.recurso.dev/v1/disputes/e4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8" \
-H "Authorization: Bearer $API_KEY"
Response
{
"data": {
"id": "e4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8",
"tenant_id": "1f2e3d4c-5b6a-4798-8a9b-0c1d2e3f4a5b",
"invoice_id": "06c151de-8d3a-4b21-9c77-2f0e5a9b4d12",
"customer_id": "0b7a3f7e-4a2b-4c1d-9e8f-1a2b3c4d5e6f",
"reason": "Charged for seats we removed in July",
"status": "open",
"note": null,
"created_at": "2026-08-05T11:20:00Z",
"resolved_at": null
}
}
Fields
| Field | Type | Description |
|---|---|---|
id | string (uuid) | The dispute’s id |
invoice_id | string (uuid) | The disputed invoice |
customer_id | string (uuid) | The customer who raised it |
reason | string | The customer’s stated reason |
status | string | open or resolved |
note | string, nullable | Admin resolution note; null while open |
created_at | string (date-time) | When the dispute was raised |
resolved_at | string (date-time), nullable | When it was resolved; null while open |
Errors
| Status | Code | When | Fix |
|---|---|---|---|
400 | validation_failed | id in the path is not a UUID | Use the dispute’s UUID |
404 | not_found | Dispute doesn’t exist, or belongs to another tenant (existence is never confirmed across tenants) | Check the ID from the dashboard’s Disputes page |
⌘I
Get one invoice dispute (tenant-scoped)
curl --request GET \
--url https://billing.example.com/v1/disputes/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/disputes/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/disputes/{id}', 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://billing.example.com/v1/disputes/{id}",
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://billing.example.com/v1/disputes/{id}"
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://billing.example.com/v1/disputes/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/disputes/{id}")
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": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"status": "open",
"note": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z"
}
}