curl --request GET \
--url https://api.farthing.ai/v1/checkouts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.farthing.ai/v1/checkouts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.farthing.ai/v1/checkouts', 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.farthing.ai/v1/checkouts",
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.farthing.ai/v1/checkouts"
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.farthing.ai/v1/checkouts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.farthing.ai/v1/checkouts")
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": "1f2e3d4c-5b6a-4790-8123-abcdef012345",
"status": "succeeded",
"subject": "user_a91f",
"url": "https://your-sandbox-store.myshopify.com/products/widget",
"request": "buy this in medium, cheapest delivery",
"receipt": {
"total": {
"amount": "42.10",
"currency": "USD"
},
"merchantOrderId": "1042"
},
"createdAt": "2026-07-29T09:14:31.190Z",
"updatedAt": "2026-07-29T09:26:29.702Z"
},
{
"id": "5c7d9e01-2b34-4a56-8f90-1a2b3c4d5e6f",
"status": "awaiting_user_action",
"url": "https://your-sandbox-store.myshopify.com/products/mug",
"request": null,
"pendingUserActionId": "7c1de0a2-9b44-4f0a-b3c1-2a5e8d7f4b60",
"createdAt": "2026-07-29T09:31:02.418Z",
"updatedAt": "2026-07-29T09:33:11.006Z"
}
],
"nextCursor": "2026-07-29T09:31:02.418Z"
}List checkouts
Cursor-paginated summaries, newest first. Deliberately a summary rather than the full object: the full shape carries the whole event timeline, which is exactly what a list view must not fetch.
Requires the checkouts.read scope.
?subject= narrows the page to one end user, and each row carries subject when the checkout has one. A subject-bound key is already narrowed to its own end user; asking for another’s is a 403.
curl --request GET \
--url https://api.farthing.ai/v1/checkouts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.farthing.ai/v1/checkouts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.farthing.ai/v1/checkouts', 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.farthing.ai/v1/checkouts",
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.farthing.ai/v1/checkouts"
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.farthing.ai/v1/checkouts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.farthing.ai/v1/checkouts")
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": "1f2e3d4c-5b6a-4790-8123-abcdef012345",
"status": "succeeded",
"subject": "user_a91f",
"url": "https://your-sandbox-store.myshopify.com/products/widget",
"request": "buy this in medium, cheapest delivery",
"receipt": {
"total": {
"amount": "42.10",
"currency": "USD"
},
"merchantOrderId": "1042"
},
"createdAt": "2026-07-29T09:14:31.190Z",
"updatedAt": "2026-07-29T09:26:29.702Z"
},
{
"id": "5c7d9e01-2b34-4a56-8f90-1a2b3c4d5e6f",
"status": "awaiting_user_action",
"url": "https://your-sandbox-store.myshopify.com/products/mug",
"request": null,
"pendingUserActionId": "7c1de0a2-9b44-4f0a-b3c1-2a5e8d7f4b60",
"createdAt": "2026-07-29T09:31:02.418Z",
"updatedAt": "2026-07-29T09:33:11.006Z"
}
],
"nextCursor": "2026-07-29T09:31:02.418Z"
}Authorizations
Authorization: Bearer ck_test_… or ck_live_…. There is no other auth scheme — no query-string keys, no request signing, no OAuth.
Query Parameters
Page size. Must be an integer from 1 to 100; anything else is a 400.
1 <= x <= 100The previous page's nextCursor — an ISO 8601 timestamp. Returns rows created strictly before it.
Filter to one status. An unrecognised value is a 400, not an empty page.
succeeded, failed and cancelled are terminal; nothing leaves them.
queued, running, awaiting_user_action, succeeded, failed, cancelled Filter to one end user. Composes with status, limit and cursor; a subject with no checkouts is an empty page, not an error.
A subject-bound key does not need this — its page is already narrowed to one person. Passing its own subject is fine; naming a different one is a 403, refused rather than quietly ignored.
Validated like every other subject: 1 to 200 characters, or 400.
1 - 200