Skip to main content
POST
/
swaps
/
orders
/
{public_id}
/
reject
Reject a swap order.
curl --request POST \
  --url https://studio-api.onlytraffic.com/api/external/v1/swaps/orders/{public_id}/reject \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "comment": "<string>"
}
'
{
  "success": true,
  "data": {
    "order_id": "<string>"
  }
}

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_]+$

Body

application/json
comment
string

Optional rejection reason. Surfaced to the buyer.

Maximum string length: 1000

Response

Rejected.

success
boolean
data
object