Skip to main content
GET
/
cpl
/
orders
/
quote
Preview a CPL order.
curl --request GET \
  --url https://studio-api.onlytraffic.com/api/external/v1/cpl/orders/quote \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": {
    "eligible": true,
    "errors": [
      "<string>"
    ],
    "warnings": [
      "<string>"
    ],
    "pricing": {
      "price_per_fan": 123,
      "total_cost": 123,
      "client_discount_percent": 123
    },
    "balance": {
      "current": 123,
      "sufficient": true
    },
    "unpaid_invoices": {
      "count": 123,
      "total": 123,
      "oldest_date_ts": 123
    },
    "pay_as_you_go": {
      "enabled": true,
      "deposit_percent": 123
    },
    "offer": {
      "id": 123,
      "min_quantity": 123,
      "max_quantity": 123,
      "campaign_types": [
        "<string>"
      ],
      "trial_days_available": [
        123
      ]
    },
    "model": {
      "of_account_id": 123,
      "username": "<string>",
      "session_status": "<string>",
      "subscribe_price": 123
    },
    "content_channels": {
      "available": [
        "<string>"
      ],
      "selected": [
        "<string>"
      ]
    },
    "queue": {
      "position": 123,
      "estimated_days": 123
    }
  }
}

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.

Runs the full POST /cpl/orders validation matrix without committing. Surfaces server-computed pricing, the balance check, and a list of eligibility errors. eligible: true means the same body would succeed against POST /cpl/orders.

Authorizations

X-API-Key
string
header
required

Your API key from the Studio Dashboard

Query Parameters

offer_id
integer
required
Required range: x >= 1
of_account_id
integer
required
Required range: x >= 1
quantity
integer
required
Required range: x >= 1
campaign_type
enum<string>
required
Available options:
free,
paid,
paid_trial
trial_days
enum<integer>

Required when campaign_type=paid_trial.

Available options:
1,
3,
7,
14,
30,
90,
180,
360
content_channels
enum<string>[]

Optional filter. When omitted, every live channel on the model is used. When set, the order uses only the listed channels (intersected with the live ones).

Available options:
lifestyle,
tiktok,
lingerie,
light_nudes,
nudes

Response

Quote.

success
boolean
data
object

Pre-flight validation + pricing for a CPL order. eligible: true means the same input would succeed against POST /cpl/orders.