Skip to main content
GET
/
cpc
/
orders
/
quote
Preview a CPC order.
curl --request GET \
  --url https://studio-api.onlytraffic.com/api/external/v1/cpc/orders/quote \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": {
    "eligible": true,
    "errors": [
      "<string>"
    ],
    "pricing": {
      "price_per_click": 123,
      "min_price_per_click": 123,
      "original_price_per_click": 123,
      "total_cost": 123,
      "client_discount_percent": 123
    },
    "balance": {
      "current": 123,
      "sufficient": true
    },
    "offer": {
      "id": 123,
      "min_quantity": 123,
      "max_quantity": 123
    },
    "creative": {
      "public_id": "<string>",
      "of_account_id": 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 /cpc/orders validation matrix without committing. Surfaces the server-computed price-per-click floor and total cost, the balance check, and a list of eligibility errors. eligible: true means the same body would succeed against POST /cpc/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
creative_public_id
string
required
Example:

"cpcr_xxxxxxx"

clicks
integer
required
Required range: x >= 1
price_per_click
number<float>

Optional. When omitted, the floor is used.

Required range: x >= 0

Response

Quote.

success
boolean
data
object

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