> ## 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/crm/transactions — List sales through your app

> Your integration dashboard’s Transactions tab: every sale through your app’s links across all your accounts, newest first, with the commission booked on each.

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

Your integration dashboard’s Transactions tab: every sale through your app’s links across all your accounts, newest first, with the commission booked on each.

Drop sales, tips and subscription payments are all included. Refunded and charged-back sales are included by default with their `status` (like the dashboard); pass `includeReversed=false` to leave them out. Window by exact instants (`since` / `until`) or by calendar days (`startDate` / `endDate` in `tz`), not both. Page with `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"}`.

## Query parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `since` | string |  | Only sales paid at or after this instant (ISO 8601). |
| `until` | string |  | Only sales paid at or before this instant (ISO 8601). |
| `startDate` | string |  | Instead of since/until: first day, YYYY-MM-DD, in `tz`. Needs endDate. |
| `endDate` | string |  | Last day, YYYY-MM-DD, in `tz` (at most 366 days). |
| `tz` | string |  | IANA time zone the calendar days (and buckets) are cut in. Defaults to Europe/Stockholm, like your dashboard. |
| `type` | string |  | Comma-separated subset of `drop,tip,subscription`. Default: all. |
| `includeReversed` | boolean |  | `false` leaves refunded and charged-back sales out. |
| `limit` | integer |  | Page size (clamped to the range). |
| `cursor` | string |  | `nextCursor` from the previous page, unchanged. Keep the other parameters the same. |

## Responses

### 200

A page of sales.

| Field | Type | Required | Description |
|---|---|---|---|
| `currency` | `USD` | yes | Currency of every *Cents field. |
| `transactions` | CrmTransaction[] | yes | Newest first. |
| `nextCursor` | string \\| null |  | Pass as `cursor` for the next page; null on the last page. |

```json
{
  "currency": "USD",
  "transactions": [
    {
      "id": "clxor0001ord",
      "type": "drop",
      "paidAt": "2026-10-29T18:42:11.000Z",
      "transactionId": "cb_8812734",
      "linkId": "k3v9x2m1qa",
      "amountCents": 1500,
      "crmEarnedCents": 75,
      "status": "paid",
      "creator": {
        "id": "clxac0001acct",
        "username": "valeria",
        "name": "Valeria"
      }
    }
  ],
  "nextCursor": "MjAyNi0xMC0yOVQxODo0MjoxMS4wMDBafGNseG9yMDAwMW9yZA"
}
```

## Errors

| Status | Body | When |
|---|---|---|
| 400 | `{"error":"Use since/until or startDate/endDate, not both.","code":"invalid_input","field":"since"}` | Both windows were sent. |
| 400 | `{"error":"since must be an ISO 8601 date or date-time.","code":"invalid_input","field":"since"}` | Unparseable `since` / `until`, or `until` before `since`. |
| 400 | `{"error":"startDate must be a real calendar day, YYYY-MM-DD.","code":"invalid_input","field":"startDate"}` | `startDate` / `endDate` missing (stats) or not a YYYY-MM-DD day. |
| 400 | `{"error":"endDate must be on or after startDate.","code":"invalid_input","field":"endDate"}` | `endDate` is before `startDate`. |
| 400 | `{"error":"The range can be at most 366 days.","code":"invalid_input","field":"endDate"}` | More than 366 days. |
| 400 | `{"error":"tz must be an IANA time zone, e.g. Europe/Stockholm or America/New_York.","code":"invalid_input","field":"tz"}` | Unknown `tz`. |
| 400 | `{"error":"type must be a comma-separated subset of drop,tip,subscription.","code":"invalid_input","field":"type"}` | Unknown `type`. |
| 400 | `{"error":"includeReversed must be true or false.","code":"invalid_input","field":"includeReversed"}` | Anything else. |
| 400 | `{"error":"Invalid cursor. Pass nextCursor from the previous page unchanged.","code":"invalid_input","field":"cursor"}` | Malformed `cursor`. |
| 401 | `{"error":"Unauthorized","code":"unauthorized"}` | Missing or invalid API key. |
| 403 | `{"error":"This endpoint needs a key bound to an approved app.","code":"app_key_required"}` | A Personal key was used. |
| 403 | `{"error":"Use the app owner's key for this endpoint.","code":"owner_key_required"}` | The key was minted by a creator for themselves. App-level calls need a key held by your app owner: their own, or one their agency minted for its personas or managed creators. |
| 400 | `{"error":"This endpoint only acts as the key’s own account — send it without X-Dropfans-Account.","code":"account_header_not_allowed"}` | `X-Dropfans-Account` was sent. These endpoints always answer for the key’s app. |

## 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/crm/transactions?tz=America%2FNew_York&type=drop%2Ctip" \
  -H "Authorization: Bearer $DROPFANS_API_KEY"
```

### Node

```javascript
const res = await fetch(`https://www.dropfans.io/api/external/crm/transactions?tz=America%2FNew_York&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/crm/transactions",
    headers={"Authorization": f"Bearer {os.environ['DROPFANS_API_KEY']}"},
    params={"tz": "America/New_York", "type": "drop,tip"},
)
print(res.json())
```

## OpenAPI

```json
{
  "method": "GET",
  "path": "/api/external/crm/transactions",
  "operationId": "listCrmTransactions",
  "tags": [
    "crm"
  ],
  "summary": "List sales through your app",
  "description": "Your integration dashboard’s Transactions tab: every sale through your app’s links across all your accounts, newest first, with the commission booked on each.\n\nDrop sales, tips and subscription payments are all included. Refunded and charged-back sales are included by default with their `status` (like the dashboard); pass `includeReversed=false` to leave them out. Window by exact instants (`since` / `until`) or by calendar days (`startDate` / `endDate` in `tz`), not both. Page with `cursor`.",
  "parameters": [
    {
      "name": "since",
      "in": "query",
      "required": false,
      "description": "Only sales paid at or after this instant (ISO 8601).",
      "schema": {
        "type": "string",
        "format": "date-time"
      }
    },
    {
      "name": "until",
      "in": "query",
      "required": false,
      "description": "Only sales paid at or before this instant (ISO 8601).",
      "schema": {
        "type": "string",
        "format": "date-time"
      }
    },
    {
      "name": "startDate",
      "in": "query",
      "required": false,
      "description": "Instead of since/until: first day, YYYY-MM-DD, in `tz`. Needs endDate.",
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "name": "endDate",
      "in": "query",
      "required": false,
      "description": "Last day, YYYY-MM-DD, in `tz` (at most 366 days).",
      "schema": {
        "type": "string",
        "format": "date"
      }
    },
    {
      "name": "tz",
      "in": "query",
      "required": false,
      "description": "IANA time zone the calendar days (and buckets) are cut in. Defaults to Europe/Stockholm, like your dashboard.",
      "schema": {
        "type": "string",
        "default": "Europe/Stockholm",
        "format": "iana-timezone"
      },
      "example": "America/New_York"
    },
    {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Comma-separated subset of `drop,tip,subscription`. Default: all.",
      "schema": {
        "type": "string"
      },
      "example": "drop,tip"
    },
    {
      "name": "includeReversed",
      "in": "query",
      "required": false,
      "description": "`false` leaves refunded and charged-back sales out.",
      "schema": {
        "type": "boolean",
        "default": true
      }
    },
    {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size (clamped to the range).",
      "schema": {
        "type": "integer",
        "default": 50,
        "minimum": 1,
        "maximum": 100
      }
    },
    {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "`nextCursor` from the previous page, unchanged. Keep the other parameters the same.",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "A page of sales.",
      "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": {
              "currency": {
                "type": "string",
                "description": "Currency of every *Cents field.",
                "enum": [
                  "USD"
                ]
              },
              "transactions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Our id of the sale (order, tip or subscription payment).",
                      "example": "clxor0001ord"
                    },
                    "type": {
                      "type": "string",
                      "description": "What was sold. `subscription` is one payment (the first or a renewal).",
                      "enum": [
                        "drop",
                        "tip",
                        "subscription"
                      ]
                    },
                    "paidAt": {
                      "type": "string",
                      "description": "When it was paid (UTC).",
                      "format": "date-time"
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "The payment processor’s transaction id when known, else our id."
                    },
                    "linkId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The link id (POST /api/external/links) the drop or tip was bought through; null for subscription payments and older template links."
                    },
                    "amountCents": {
                      "type": "integer",
                      "description": "Sale amount, US cents, excl. tax, before our platform fee.",
                      "example": 1500
                    },
                    "crmEarnedCents": {
                      "type": "integer",
                      "description": "Commission booked for your app owner on this sale, US cents. 0 when the commission was reversed (refund or chargeback).",
                      "example": 75
                    },
                    "status": {
                      "type": "string",
                      "description": "Current state of the sale.",
                      "enum": [
                        "paid",
                        "refunded",
                        "charged_back"
                      ]
                    },
                    "creator": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Account id."
                        },
                        "username": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "@handle without the @."
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Display name."
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "description": "The account that made the sale."
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "paidAt",
                    "transactionId",
                    "amountCents",
                    "crmEarnedCents",
                    "status",
                    "creator"
                  ]
                },
                "description": "Newest first."
              },
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Pass as `cursor` for the next page; null on the last page."
              }
            },
            "required": [
              "currency",
              "transactions"
            ]
          },
          "example": {
            "currency": "USD",
            "transactions": [
              {
                "id": "clxor0001ord",
                "type": "drop",
                "paidAt": "2026-10-29T18:42:11.000Z",
                "transactionId": "cb_8812734",
                "linkId": "k3v9x2m1qa",
                "amountCents": 1500,
                "crmEarnedCents": 75,
                "status": "paid",
                "creator": {
                  "id": "clxac0001acct",
                  "username": "valeria",
                  "name": "Valeria"
                }
              }
            ],
            "nextCursor": "MjAyNi0xMC0yOVQxODo0MjoxMS4wMDBafGNseG9yMDAwMW9yZA"
          }
        }
      }
    },
    "400": {
      "description": "Both windows were sent. Also: Unparseable `since` / `until`, or `until` before `since`. Also: `startDate` / `endDate` missing (stats) or not a YYYY-MM-DD day. Also: `endDate` is before `startDate`. Also: More than 366 days. Also: Unknown `tz`. Also: Unknown `type`. Also: Anything else. Also: Malformed `cursor`. Also: `X-Dropfans-Account` was sent. These endpoints always answer for the key’s app.",
      "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 naming the offending field and word.",
                "example": "Field \"name\" contains a prohibited word: \"…\""
              },
              "field": {
                "type": "string",
                "description": "Which request field tripped the filter (\"name\" or \"description\")."
              },
              "matchedWord": {
                "type": "string",
                "description": "The prohibited word."
              }
            },
            "required": [
              "error",
              "field",
              "matchedWord"
            ]
          },
          "example": {
            "error": "Use since/until or startDate/endDate, not both.",
            "code": "invalid_input",
            "field": "since"
          }
        }
      }
    },
    "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": "A Personal key was used. Also: The key was minted by a creator for themselves. App-level calls need a key held by your app owner: their own, or one their agency minted for its personas or managed creators.",
      "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 endpoint needs a key bound to an approved app.",
            "code": "app_key_required"
          }
        }
      }
    },
    "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/crm/transactions?tz=America%2FNew_York&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/crm/transactions?tz=America%2FNew_York&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/crm/transactions\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DROPFANS_API_KEY']}\"},\n    params={\"tz\": \"America/New_York\", \"type\": \"drop,tip\"},\n)\nprint(res.json())"
    }
  ],
  "x-dropfans-docs": "https://www.dropfans.io/developers/reference/list-crm-transactions"
}
```

---

Previous: [Dashboard stats](https://www.dropfans.io/developers/reference/get-crm-stats.md) · Next: [List your connected accounts](https://www.dropfans.io/developers/reference/list-crm-accounts.md) · All pages: [llms.txt](https://www.dropfans.io/developers/llms.txt)
