> ## Documentation Index
> Fetch the complete documentation index at: https://www.dropfans.io/developers/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /api/external/earnings/transactions — Full transaction ledger (paginated, net per transaction)

> Every drop sale, tip and subscription payment of the key's account, newest first, with net, gross, platform fee and VAT per transaction. No cap — follow `nextCursor` until it is null.

- Source: https://www.dropfans.io/developers/reference/list-earnings-transactions
- Section: API reference
- OpenAPI: https://www.dropfans.io/developers/openapi.json

Every drop sale, tip and subscription payment of the key's account, newest first, with net, gross, platform fee and VAT per transaction. No cap — follow `nextCursor` until it is null.

Same sources and filters as [GET /api/external/earnings](https://www.dropfans.io/developers/reference/get-earnings.md): refunds and chargebacks are left out, so the `netAmountCents` of a window's pages add up to its `stats.totalEarningsCents` (pass the same window as `since` / `until` instants). Pass `includeReversed=true` to also get refunded and charged-back transactions, with their `status`.

Keep `since`, `until`, `type` and `includeReversed` the same while you follow a cursor.

## Authentication

`Authorization: Bearer dpfn_...` — an API key generated in the dashboard (Vault → API Connect). By default the key acts for the one account it belongs to. Missing or invalid keys return 401 `{"error":"Unauthorized","code":"unauthorized"}`.

Optional `X-Dropfans-Account: <account id>` — with a verified agency's own key, act for a creator or AI persona the agency manages (ids from GET /api/external/agency/creators); the agency needs `canViewStats` on that account. The response echoes the account acted on in the same header.

## Query parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `since` | string |  | Only transactions paid at or after this time. |
| `until` | string |  | Only transactions paid at or before this time. |
| `type` | string |  | Comma-separated subset of drop,tip,subscription. Default: all three. |
| `includeReversed` | boolean |  | Also return refunded and charged-back transactions. |
| `limit` | integer |  | Page size. |
| `cursor` | string |  | `nextCursor` from the previous page. |

## Responses

### 200

A page of transactions. All money in cents.

| Field | Type | Required | Description |
|---|---|---|---|
| `transactions` | LedgerTransaction[] | yes | Newest first. |
| `nextCursor` | string \\| null |  | Pass as `cursor` for the next page; null on the last page. |

```json
{
  "transactions": [
    {
      "id": "clx0rd3r000001sale",
      "type": "drop",
      "productId": "clxdr0p000001prod",
      "productName": "Beach set — 6 photos",
      "externalRef": "tg_48213377",
      "amountCents": 2000,
      "netAmountCents": 2000,
      "grossAmountCents": 2500,
      "platformFeeCents": 500,
      "taxCents": 250,
      "totalChargedCents": 2750,
      "currency": "USD",
      "buyerEmail": "buyer@example.com",
      "buyerName": null,
      "paidAt": "2026-10-18T21:03:00.000Z",
      "status": "paid"
    }
  ],
  "nextCursor": "MjAyNi0xMC0xOFQyMTowMzowMC4wMDBafGNseDByZDNyMDAwMDAxc2FsZQ"
}
```

## Errors

| Status | Body | When |
|---|---|---|
| 400 | `{"error":"since must be an ISO date"}` | Unparseable `since` (or `until`). |
| 400 | `{"error":"type must be a comma-separated subset of drop,tip,subscription"}` | Unknown type. |
| 400 | `{"error":"Invalid cursor"}` | The cursor was not one we returned. |
| 401 | `{"error":"Unauthorized","code":"unauthorized"}` | Missing or invalid API key. |
| 400 | `{"error":"X-Dropfans-Account must be an account id (from GET /api/external/agency/creators), not a username.","code":"invalid_account_header"}` | `X-Dropfans-Account` is not an account id. |
| 403 | `{"error":"This key cannot act for that account.","code":"account_not_managed"}` | `X-Dropfans-Account` names an account this key cannot act for: not an agency’s own key, no ACCEPTED management, or the agency or account is suspended, banned or deleted (an unknown id gets the same answer). |
| 403 | `{"error":"The agency does not have permission for this on that account.","code":"permission_denied","permission":"canViewStats"}` | With `X-Dropfans-Account`: the agency lacks `canViewStats` on that account. |

## Rate limiting

Per-key fixed windows by tier (Personal 60/min · 5,000/day; approved apps 300/min · 50,000/day; Dropfans-operated integrations exempt). Read the live values from X-RateLimit-Tier, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and their -Day variants; a 429 carries Retry-After and `{"error":"Rate limit exceeded","code":"rate_limited"}`. See [Rate limits](https://www.dropfans.io/developers/concepts/rate-limits.md).

## Code samples

### curl

```bash
curl "https://www.dropfans.io/api/external/earnings/transactions?since=2026-10-01T00%3A00%3A00Z&until=2026-10-31T23%3A59%3A59.999Z&type=drop%2Ctip" \
  -H "Authorization: Bearer $DROPFANS_API_KEY"
```

### Node

```javascript
const res = await fetch(`https://www.dropfans.io/api/external/earnings/transactions?since=2026-10-01T00%3A00%3A00Z&until=2026-10-31T23%3A59%3A59.999Z&type=drop%2Ctip`, {
  headers: {
    Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,
  },
});
console.log(await res.json());
```

### Python

```python
import os
import requests

res = requests.get(
    "https://www.dropfans.io/api/external/earnings/transactions",
    headers={"Authorization": f"Bearer {os.environ['DROPFANS_API_KEY']}"},
    params={"since": "2026-10-01T00:00:00Z", "until": "2026-10-31T23:59:59.999Z", "type": "drop,tip"},
)
print(res.json())
```

## OpenAPI

```json
{
  "method": "GET",
  "path": "/api/external/earnings/transactions",
  "operationId": "listEarningsTransactions",
  "tags": [
    "earnings"
  ],
  "summary": "Full transaction ledger (paginated, net per transaction)",
  "description": "Every drop sale, tip and subscription payment of the key's account, newest first, with net, gross, platform fee and VAT per transaction. No cap — follow `nextCursor` until it is null.\n\nSame sources and filters as [GET /api/external/earnings](https://www.dropfans.io/developers/reference/get-earnings.md): refunds and chargebacks are left out, so the `netAmountCents` of a window's pages add up to its `stats.totalEarningsCents` (pass the same window as `since` / `until` instants). Pass `includeReversed=true` to also get refunded and charged-back transactions, with their `status`.\n\nKeep `since`, `until`, `type` and `includeReversed` the same while you follow a cursor.",
  "parameters": [
    {
      "name": "since",
      "in": "query",
      "required": false,
      "description": "Only transactions paid at or after this time.",
      "schema": {
        "type": "string",
        "format": "date-time"
      },
      "example": "2026-10-01T00:00:00Z"
    },
    {
      "name": "until",
      "in": "query",
      "required": false,
      "description": "Only transactions paid at or before this time.",
      "schema": {
        "type": "string",
        "format": "date-time"
      },
      "example": "2026-10-31T23:59:59.999Z"
    },
    {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Comma-separated subset of drop,tip,subscription. Default: all three.",
      "schema": {
        "type": "string"
      },
      "example": "drop,tip"
    },
    {
      "name": "includeReversed",
      "in": "query",
      "required": false,
      "description": "Also return refunded and charged-back transactions.",
      "schema": {
        "type": "boolean",
        "default": false
      }
    },
    {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size.",
      "schema": {
        "type": "integer",
        "default": 100,
        "minimum": 1,
        "maximum": 200
      }
    },
    {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "`nextCursor` from the previous page.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "X-Dropfans-Account",
      "in": "header",
      "required": false,
      "description": "Agencies only. With a verified agency’s own key, the id of a creator or AI persona the agency manages (from GET /api/external/agency/creators): the request then acts as that account, exactly as if it were sent with that account’s own key. Account ids only — usernames are refused (400 invalid_account_header). Checked on every request: the management must be ACCEPTED, nobody may be suspended, banned or deleted (else 403 account_not_managed), and the agency needs the endpoint’s permission on that account (else 403 permission_denied). Omit it to act as the key’s own account.",
      "schema": {
        "type": "string",
        "pattern": "^c[a-z0-9]{20,32}$"
      },
      "example": "cmh4v2q8k0003xy9z7w6v5u4t"
    }
  ],
  "responses": {
    "200": {
      "description": "A page of transactions. All money in cents.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-Dropfans-Account": {
          "description": "The id of the account this request acted on — the key’s own account, or the managed account named in the X-Dropfans-Account request header. Assert it when acting for several accounts.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "transactions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The order / tip / renewal id. Unique per transaction — dedupe on it.",
                      "example": "clx0rd3r000001sale"
                    },
                    "type": {
                      "type": "string",
                      "description": "Revenue source.",
                      "enum": [
                        "drop",
                        "tip",
                        "subscription"
                      ],
                      "example": "drop"
                    },
                    "productId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The sold drop — drops only, null on tips and subscriptions.",
                      "example": "clxdr0p000001prod"
                    },
                    "productName": {
                      "type": "string",
                      "description": "Drop name, or the literal \"Tip\" / \"Subscription\".",
                      "example": "Beach set — 6 photos"
                    },
                    "externalRef": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Your per-fan reference from the checkout or tip link, when there was one."
                    },
                    "amountCents": {
                      "type": "integer",
                      "description": "NET seller earnings in cents — the same number /earnings calls amountCents.",
                      "example": 2000
                    },
                    "netAmountCents": {
                      "type": "integer",
                      "description": "Same as amountCents: what the creator keeps (after the platform fee and VAT; before any agency split).",
                      "example": 2000
                    },
                    "grossAmountCents": {
                      "type": "integer",
                      "description": "Seller gross in cents (buyer-paid minus VAT, before the fee).",
                      "example": 2500
                    },
                    "platformFeeCents": {
                      "type": "integer",
                      "description": "Platform fee in cents.",
                      "example": 500
                    },
                    "taxCents": {
                      "type": "integer",
                      "description": "VAT in cents.",
                      "example": 250
                    },
                    "totalChargedCents": {
                      "type": "integer",
                      "description": "What the buyer paid in cents (VAT included).",
                      "example": 2750
                    },
                    "currency": {
                      "type": "string",
                      "description": "Always USD.",
                      "enum": [
                        "USD"
                      ],
                      "example": "USD"
                    },
                    "buyerEmail": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Buyer email when known.",
                      "format": "email"
                    },
                    "buyerName": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Buyer display name — tips and subscriptions only."
                    },
                    "paidAt": {
                      "type": "string",
                      "description": "When it was paid (UTC).",
                      "format": "date-time"
                    },
                    "status": {
                      "type": "string",
                      "description": "Always \"paid\" unless includeReversed=true.",
                      "enum": [
                        "paid",
                        "refunded",
                        "charged_back"
                      ],
                      "example": "paid"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "productName",
                    "amountCents",
                    "netAmountCents",
                    "grossAmountCents",
                    "platformFeeCents",
                    "taxCents",
                    "totalChargedCents",
                    "currency",
                    "paidAt",
                    "status"
                  ]
                },
                "description": "Newest first."
              },
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Pass as `cursor` for the next page; null on the last page."
              }
            },
            "required": [
              "transactions"
            ]
          },
          "example": {
            "transactions": [
              {
                "id": "clx0rd3r000001sale",
                "type": "drop",
                "productId": "clxdr0p000001prod",
                "productName": "Beach set — 6 photos",
                "externalRef": "tg_48213377",
                "amountCents": 2000,
                "netAmountCents": 2000,
                "grossAmountCents": 2500,
                "platformFeeCents": 500,
                "taxCents": 250,
                "totalChargedCents": 2750,
                "currency": "USD",
                "buyerEmail": "buyer@example.com",
                "buyerName": null,
                "paidAt": "2026-10-18T21:03:00.000Z",
                "status": "paid"
              }
            ],
            "nextCursor": "MjAyNi0xMC0xOFQyMTowMzowMC4wMDBafGNseDByZDNyMDAwMDAxc2FsZQ"
          }
        }
      }
    },
    "400": {
      "description": "Unparseable `since` (or `until`). Also: Unknown type. Also: The cursor was not one we returned. Also: `X-Dropfans-Account` is not an account id.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message describing what went wrong.",
                "example": "Vault item not found"
              }
            },
            "required": [
              "error"
            ]
          },
          "example": {
            "error": "since must be an ISO date"
          }
        }
      }
    },
    "401": {
      "description": "Missing or invalid API key.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "Unauthorized",
            "code": "unauthorized"
          }
        }
      }
    },
    "403": {
      "description": "`X-Dropfans-Account` names an account this key cannot act for: not an agency’s own key, no ACCEPTED management, or the agency or account is suspended, banned or deleted (an unknown id gets the same answer). Also: With `X-Dropfans-Account`: the agency lacks `canViewStats` on that account.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "This key cannot act for that account.",
            "code": "account_not_managed"
          }
        }
      }
    },
    "429": {
      "description": "Rate limit exceeded for the current minute or day window. Wait Retry-After seconds and retry.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "Retry-After": {
          "description": "Seconds to wait before retrying (sent with 429s).",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "Rate limit exceeded",
            "code": "rate_limited"
          }
        }
      }
    }
  },
  "x-codeSamples": [
    {
      "lang": "cURL",
      "label": "curl",
      "source": "curl \"https://www.dropfans.io/api/external/earnings/transactions?since=2026-10-01T00%3A00%3A00Z&until=2026-10-31T23%3A59%3A59.999Z&type=drop%2Ctip\" \\\n  -H \"Authorization: Bearer $DROPFANS_API_KEY\""
    },
    {
      "lang": "JavaScript",
      "label": "Node",
      "source": "const res = await fetch(`https://www.dropfans.io/api/external/earnings/transactions?since=2026-10-01T00%3A00%3A00Z&until=2026-10-31T23%3A59%3A59.999Z&type=drop%2Ctip`, {\n  headers: {\n    Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,\n  },\n});\nconsole.log(await res.json());"
    },
    {
      "lang": "Python",
      "source": "import os\nimport requests\n\nres = requests.get(\n    \"https://www.dropfans.io/api/external/earnings/transactions\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DROPFANS_API_KEY']}\"},\n    params={\"since\": \"2026-10-01T00:00:00Z\", \"until\": \"2026-10-31T23:59:59.999Z\", \"type\": \"drop,tip\"},\n)\nprint(res.json())"
    }
  ],
  "x-dropfans-docs": "https://www.dropfans.io/developers/reference/list-earnings-transactions",
  "x-dropfans-agency-permission": "canViewStats"
}
```

---

Previous: [Earnings stats, chart and recent transactions](https://www.dropfans.io/developers/reference/get-earnings.md) · Next: [List paid tips (per-fan references)](https://www.dropfans.io/developers/reference/list-tips.md) · All pages: [llms.txt](https://www.dropfans.io/developers/llms.txt)
