> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.perkss.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.perkss.io/_mcp/server.

# List transactions

GET https://api-gateway.perkss.io/api/v1/transactions

Pages through your company's transaction ledger — purchases, adjustments, redemptions, signups, refunds, and migration imports across every customer. Filter by `storeId` to scope to one store. There is deliberately no `type` filter yet: sending one returns 400 rather than being silently ignored. `page` is 1-based; `pageSize` defaults to 20 and is capped at 100.

Reference: https://docs.perkss.io/api-reference/perkss-partner-api/transactions/transactions-ledger-list

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `page` (string, optional) — 1-based page number. Defaults to 1.
- `pageSize` (string, optional) — Rows per page. Defaults to 20, capped at 100.
- `storeId` (string, optional) — Filter by store id (see GET /api/v1/stores). Partner-API writes are store-less and never match a store filter.

## Response

### 200

- `total` (double, required) — Total row count after server-side filtering — drives total-page math.
- `page` (double, required) — 1-based page number that produced `items`.
- `pageSize` (double, required) — Page size honored by the server (may be a clamp of the requested value).
- `items` (list of Transaction, required) — The ledger rows on this page.

## Errors

### 400 Bad Request Error

Invalid query. Code: `VALIDATION.REQUEST_INVALID` (`context.validation` lists the offending params — including an unsupported `type` filter).

- `error` (ErrorBody, required)

### 401 Unauthorized Error

Missing, invalid, expired, or revoked access token. Codes: `AUTH.MISSING_BEARER_TOKEN`, `AUTH.INVALID_TOKEN`, `API_AUTH.TOKEN_REVOKED`. Obtain a fresh token at `POST /api/v1/auth/token`.

- `error` (ErrorBody, required)

### 429 Too Many Requests Error

`RATE_LIMIT.EXCEEDED` — reads 600/min per API key (default). Honour `Retry-After` before retrying.

- `error` (ErrorBody, required)

### 503 Service Unavailable Error

`API_AUTH.DENYLIST_UNAVAILABLE` — transient auth-infrastructure outage; retry after `Retry-After` seconds.

- `error` (ErrorBody, required)

## Types

### Transaction

- `id` (string, required)
- `occurredAt` (string, required) — ISO 8601 timestamp of the write.
- `type` (enum, required) — What kind of write this row records.
  - Allowed values: `purchase`, `adjustment`, `redemption`, `signup`, `refund`, `migration`
- `programType` (enum, required) — The loyalty program the write ran under.
  - Allowed values: `cashback`, `stamps`
- `amountCents` (double, required) — The bill/spend for a purchase, in cents; 0 for back-office writes.
- `netAmountCents` (double, required) — Net loyalty movement in cents (signed) — derived from the write's actions.
- `netStampDelta` (double, required) — Net stamp movement (signed); 0 on cashback programs.
- `customerId` (string, required)
- `customerName` (string, required)
- `storeName` (string, required) — Store the write happened at. Empty for store-less writes (back-office, partner API).

### ErrorBody

- `code` (string, required) — Machine-readable code, namespaced `<DOMAIN>.<NAME>`. Stable: branch on this, never on `message`.
- `message` (string, required) — Human-readable explanation. Not stable across releases — never branch on it.
- `requestId` (string, required) — Correlation id for this request — quote it when contacting support.
- `httpStatus` (double, required) — The response's HTTP status, mirrored into the body.
- `context` (map from string to any, optional) — Optional structured detail — e.g. `validation` messages on a 400, `failureReason` on a 422 rejected write.

## Examples

**Response**

```json
{
  "total": 42,
  "page": 1,
  "pageSize": 20,
  "items": [
    {
      "id": "9d2e5f8b-4c1a-4b7e-8f3d-6a0c9e2b5d71",
      "occurredAt": "2026-07-01T10:30:00.000Z",
      "type": "purchase",
      "programType": "cashback",
      "amountCents": 2000,
      "netAmountCents": 200,
      "netStampDelta": 0,
      "customerId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "customerName": "Ada Lovelace",
      "storeName": ""
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api-gateway.perkss.io/api/v1/transactions"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api-gateway.perkss.io/api/v1/transactions';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api-gateway.perkss.io/api/v1/transactions"

	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(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api-gateway.perkss.io/api/v1/transactions")

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
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api-gateway.perkss.io/api/v1/transactions")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api-gateway.perkss.io/api/v1/transactions', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api-gateway.perkss.io/api/v1/transactions");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api-gateway.perkss.io/api/v1/transactions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```