Skip to main content
GET
/
revshare
/
invoices
/
{public_id}
Invoice details
curl --request GET \
  --url https://studio-api.onlytraffic.com/api/external/v1/revshare/invoices/{public_id} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "account": {
      "of_account_id": 123,
      "username": "<string>"
    },
    "price": 123,
    "your_price": 123,
    "your_discount": 123,
    "service_fee": 123,
    "final_price": 123,
    "date": "2023-11-07T05:31:56Z",
    "date_ts": 123,
    "transactions": [
      {
        "of_transaction_id": "<string>",
        "of_user_id": 123,
        "invoice_amount": 123,
        "date": "2023-11-07T05:31:56Z"
      }
    ],
    "refunds": [
      {
        "of_transaction_id": "<string>",
        "of_user_id": 123,
        "invoice_amount": 123,
        "date": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

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

Path Parameters

public_id
string
required

Resource public id. Format varies by endpoint: cplo_xxxxxxx for CPL orders, cpco_xxxxxxx for CPC orders, swpo_xxxxxxx for swap orders, cpcr_xxxxxxx for CPC creatives, revi_xxxxxxx for RevShare invoices.

Pattern: ^[a-z0-9_]+$

Response

Successful response

success
boolean
Example:

true

data
object

RevShare invoice with full pricing breakdown and per-transaction trail.