curl --request GET \
--url https://api.1club.ai/v1/platform/payments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/payments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/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://api.1club.ai/v1/platform/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://api.1club.ai/v1/platform/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://api.1club.ai/v1/platform/payments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/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{
"data": [
{
"id": 123,
"status": "pending",
"amount": 123,
"currency": "<string>",
"paymentDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"contact": {
"id": 123,
"name": "<string>"
},
"paymentMethod": {
"id": 123,
"name": "<string>",
"code": "<string>",
"channel": "stripe"
},
"source": "admin_portal",
"providerMode": "test",
"reference": "<string>",
"billingEntityId": 123,
"clubId": 123,
"invoiceId": 123,
"charges": [
{
"transactionId": 123,
"amount": 123
}
],
"refunds": [
{
"id": 123,
"amount": 123,
"status": "pending",
"destination": "stripe",
"transactionId": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"refundedAmount": 123
}
],
"total": 123,
"limit": 123,
"offset": 123,
"timezone": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25"
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}List payments
Lists the money that came in, most recently created first: who paid, how much, when, with which payment method and to which company, the charges each payment paid, and what was refunded from it. A transaction (charge) is what a member owes; a payment is what they paid, and one can pay several charges. A payment with providerMode: test was taken in a payment provider’s test mode: no money moved.
Days are whole calendar days on the organization’s clock, both included, at most 93. A payment is filed on the day it was taken, or the day it was started for one that never succeeded. With no days given the list is today, unless it is narrowed to one contact, transaction, booking, membership or invoice: then it is every payment of that record.
Read-only. Taking money is POST /transactions/{id}/record-payment and POST /transactions/{id}/charge-saved-card, which need payments:write.
curl --request GET \
--url https://api.1club.ai/v1/platform/payments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/payments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/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://api.1club.ai/v1/platform/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://api.1club.ai/v1/platform/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://api.1club.ai/v1/platform/payments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/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{
"data": [
{
"id": 123,
"status": "pending",
"amount": 123,
"currency": "<string>",
"paymentDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"contact": {
"id": 123,
"name": "<string>"
},
"paymentMethod": {
"id": 123,
"name": "<string>",
"code": "<string>",
"channel": "stripe"
},
"source": "admin_portal",
"providerMode": "test",
"reference": "<string>",
"billingEntityId": 123,
"clubId": 123,
"invoiceId": 123,
"charges": [
{
"transactionId": 123,
"amount": 123
}
],
"refunds": [
{
"id": 123,
"amount": 123,
"status": "pending",
"destination": "stripe",
"transactionId": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"refundedAmount": 123
}
],
"total": 123,
"limit": 123,
"offset": 123,
"timezone": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25"
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Query Parameters
Response
Page of payments
Was this page helpful?