Payments
List payments
Returns a list of payments. Supports filtering by customer account ID and invoice ID.
GET
/
payments
List payments
curl --request GET \
--url https://api.alguna.io/payments \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.alguna.io/payments"
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Alguna-Version': '<alguna-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.alguna.io/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"allocations": [
{
"amount": "500.00",
"invoice_id": "inv_01H1VECT",
"reversed": true,
"status": "completed"
}
],
"amount": "500.00",
"created_at": "2026-04-01T10:00:00Z",
"currency": "USD",
"customer_id": "cust_01H1VECT",
"id": "pay_01H1VECT",
"status": "completed",
"updated_at": "2026-04-01T10:00:00Z",
"amount_received": "500.00",
"amount_refunded": "0.00",
"external_id": "pi_3Nf8jD2eZvKYlo2C1FqKpBa3",
"external_url": "https://dashboard.stripe.com/payments/pi_3Nf8jD2eZvKYlo2C1FqKpBa3",
"failed_at": "2026-04-01T10:00:00Z",
"invoice_id": "inv_01H1VECT",
"paid_at": "2026-04-01T10:00:00Z"
}
],
"pagination": {
"per_page": 20,
"total_pages": 5
}
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Authorizations
API key authentication. Pass your API key as a Bearer token.
Headers
Available options:
2026-04-01 Query Parameters
Filter by customer ID
Example:
"cust_01H1VECT"
Filter by invoice ID
Example:
"inv_01H1VECT"
Number of items to return per page
Required range:
x <= 100Example:
20
Number of items to skip
Example:
0
⌘I
List payments
curl --request GET \
--url https://api.alguna.io/payments \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.alguna.io/payments"
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Alguna-Version': '<alguna-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.alguna.io/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"allocations": [
{
"amount": "500.00",
"invoice_id": "inv_01H1VECT",
"reversed": true,
"status": "completed"
}
],
"amount": "500.00",
"created_at": "2026-04-01T10:00:00Z",
"currency": "USD",
"customer_id": "cust_01H1VECT",
"id": "pay_01H1VECT",
"status": "completed",
"updated_at": "2026-04-01T10:00:00Z",
"amount_received": "500.00",
"amount_refunded": "0.00",
"external_id": "pi_3Nf8jD2eZvKYlo2C1FqKpBa3",
"external_url": "https://dashboard.stripe.com/payments/pi_3Nf8jD2eZvKYlo2C1FqKpBa3",
"failed_at": "2026-04-01T10:00:00Z",
"invoice_id": "inv_01H1VECT",
"paid_at": "2026-04-01T10:00:00Z"
}
],
"pagination": {
"per_page": 20,
"total_pages": 5
}
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}