List payments
curl --request GET \
--url https://www.ruddr.io/api/workspace/payments \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.ruddr.io/api/workspace/payments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.ruddr.io/api/workspace/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://www.ruddr.io/api/workspace/payments",
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://www.ruddr.io/api/workspace/payments"
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://www.ruddr.io/api/workspace/payments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/payments")
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{
"results": [
{
"id": "3e7c1f92-8a45-4b6d-9e0f-2c4d8b1a5e73",
"referenceNumber": "WIRE-20250115",
"receivedOn": "2025-01-15",
"notes": "Payment received via wire transfer.",
"currency": "USD",
"amount": 52500,
"createdAt": "2025-01-15T20:47:03.284Z",
"client": {
"id": "6d4b9e27-3c15-4f8a-b0e2-7a5c8d1f9043",
"name": "Acme Corp"
},
"paymentMethod": {
"id": "a7f3c2e1-5b84-4d09-8e6a-1c9d0b7f4e52",
"name": "Wire Transfer"
},
"invoices": [
{
"id": "b2e8f461-7d30-4c9a-8f15-5e2b0c7d3a96",
"number": "INV-001",
"amount": 52500
}
]
}
],
"hasMore": false
}{
"status": 400,
"message": "Parameter 'startingAfter' is not a valid UUID."
}Payments
List payments
GET
/
payments
List payments
curl --request GET \
--url https://www.ruddr.io/api/workspace/payments \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.ruddr.io/api/workspace/payments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.ruddr.io/api/workspace/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://www.ruddr.io/api/workspace/payments",
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://www.ruddr.io/api/workspace/payments"
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://www.ruddr.io/api/workspace/payments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/payments")
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{
"results": [
{
"id": "3e7c1f92-8a45-4b6d-9e0f-2c4d8b1a5e73",
"referenceNumber": "WIRE-20250115",
"receivedOn": "2025-01-15",
"notes": "Payment received via wire transfer.",
"currency": "USD",
"amount": 52500,
"createdAt": "2025-01-15T20:47:03.284Z",
"client": {
"id": "6d4b9e27-3c15-4f8a-b0e2-7a5c8d1f9043",
"name": "Acme Corp"
},
"paymentMethod": {
"id": "a7f3c2e1-5b84-4d09-8e6a-1c9d0b7f4e52",
"name": "Wire Transfer"
},
"invoices": [
{
"id": "b2e8f461-7d30-4c9a-8f15-5e2b0c7d3a96",
"number": "INV-001",
"amount": 52500
}
]
}
],
"hasMore": false
}{
"status": 400,
"message": "Parameter 'startingAfter' is not a valid UUID."
}A client’s payment towards one or more invoices.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
A cursor ID (uuid) used to request the next page of results. If not provided, defaults to the first page of results.
A cursor ID (uuid) used to request the previous page of results. Is mutually exclusive with startingAfter.
The maximum number of results to be returned. Can be any number from 1 to 100. Defaults to 10, if not provided.
A client ID (uuid) used to filter payments for a specific client.
⌘I