Description
This endpoint retrieves the transaction history for a specific subscriber, including purchase details, payment amounts, and dates. The data can be used to analyze spending patterns and subscriber value in the CRM interface.Authentication
Authentication Requirements
Authentication Requirements
This endpoint requires authentication using a valid JWT token representing a valid user session managed by Supabase Auth (cookies).Include the token in the Authorization header as a Bearer token:The JWT token is obtained when connecting the account through the extension, or automatically handled by the browser session.Testing Note: Due to the requirement for a live user session, this endpoint cannot be successfully tested directly using the ‘Send’ button in this documentation with a static token.To test:
- Call this endpoint from your web application after logging in.
- Use
curl
or a similar tool with a valid, current user JWT obtained from your browser’s session after logging in.
curl
, you need the JWT access token stored by Supabase Auth in your browser.
- Log in to your application normally in your browser.
- Open Developer Tools (usually F12).
- Go to the Application tab (it might be called Storage in Firefox).
- Under the Storage section, find Cookies and select your application’s domain (e.g.,
http://localhost:3000
orhttps://onlyautomator.com
). - Look for a cookie named similar to
sb-access-token
(the exact name might vary slightly based on Supabase configuration). - Copy the entire value of this cookie. This is your Bearer token.
- Use this copied value in the
Authorization: Bearer <your_copied_token>
header for yourcurl
or other API tool requests.
Request
The unique identifier of the subscriber (fan) whose transaction history you want to retrieve
Maximum number of transactions to return
Number of transactions to skip (for pagination)
Sort order for the transactions. Format:
field:direction
Possible values: date:asc
, date:desc
, amount:asc
, amount:desc
Bearer token for authentication
Response
Will be
success
when the request is successfulError Codes
Example Usage
Notes
- Transaction history is automatically synced when the subscriber’s profile is viewed in the CRM panel
- The data includes all transactions captured through the OnlyFans platform
- For privacy and security reasons, sensitive payment details like credit card information are never stored or returned
- Historical data availability may vary depending on when the creator started using OnlyAutomator
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Bearer token for authentication (JWT)
Query Parameters
Unique identifier of the subscriber/fan whose transaction history should be retrieved
Optional ISO date string to filter transactions after this date
Optional ISO date string to filter transactions before this date
Optional filter by transaction type (e.g., 'tip', 'ppv', 'subscription')
Available options:
tip
, ppv
, subscription
, bundle
, stream
, other
Maximum number of transactions to return (default: 50, max: 100)
Required range:
x <= 100
Number of transactions to skip for pagination (default: 0)