Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Studio
cURL
curl --request GET \ --url https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices \ --header 'X-API-Key: <api-key>'
import requests url = "https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices" headers = {"X-API-Key": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}}; fetch('https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "X-API-Key: <api-key>" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-API-Key", "<api-key>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.get("https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices") .header("X-API-Key", "<api-key>") .asString();
require 'uri' require 'net/http' url = URI("https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["X-API-Key"] = '<api-key>' response = http.request(request) puts response.read_body
{ "success": true, "data": [ { "id": "revi_xxxxxxx", "account": { "of_account_id": 123, "username": "<string>" }, "amount": 123, "status": "paid", "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 } }
{ "success": false, "error": "validation_failed", "message": "<string>", "details": {}, "retry_after": 123 }
Your RevShare invoices.
Your API key from the Studio Dashboard
Page number, 1-indexed.
x >= 1
Items per page. Default 50, max 100.
1 <= x <= 100
32
paid
new
processing
cancelled
Lower bound on the resource date (YYYY-MM-DD, UTC, inclusive).
YYYY-MM-DD
Upper bound on the resource date (YYYY-MM-DD, UTC, inclusive).
Sort order.
date_desc
date_asc
amount_desc
amount_asc
Successful response
true
Show child attributes
Page-based pagination, returned by every list endpoint that isn't a cursor feed.
Was this page helpful?