Skip to main content
GET
/
revshare
/
invoices
Invoices
curl --request GET \
  --url https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": [
    {
      "id": "revi_xxxxxxx",
      "account": {
        "of_account_id": 123,
        "username": "<string>"
      },
      "amount": 123,
      "period_from": "2023-11-07T05:31:56Z",
      "period_from_ts": 123,
      "period_to": "2023-11-07T05:31:56Z",
      "period_to_ts": 123,
      "date": "2023-11-07T05:31:56Z",
      "date_ts": 123
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 50,
    "total": 150,
    "total_pages": 3,
    "has_next": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://onlytraffic.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Your API key from the Studio Dashboard

Query Parameters

page
integer
default:1

Page number, 1-indexed.

Required range: x >= 1
page_size
integer
default:50

Items per page. Default 50, max 100.

Required range: 1 <= x <= 100
public_id
string
Maximum string length: 32
status
enum<string>
Available options:
paid,
new,
processing,
cancelled
of_account_id
integer
from
string<date>

Lower bound on the resource date (YYYY-MM-DD, UTC, inclusive).

to
string<date>

Upper bound on the resource date (YYYY-MM-DD, UTC, inclusive).

sort
enum<string>
default:date_desc

Sort order.

  • date_desc: newest invoices first (default).
  • date_asc: oldest invoices first.
  • amount_desc: largest amount first.
  • amount_asc: smallest amount first.
Available options:
date_desc,
date_asc,
amount_desc,
amount_asc

Response

Successful response

success
boolean
Example:

true

data
object[]
pagination
object

Page-based pagination, returned by every list endpoint that isn't a cursor feed.