Skip to Content
Developers
Lead orders

List lead orders

Needs the orders:read scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/lead-orders

Every buyer’s prepaid lead orders, newest first: buyer, campaign, tier, quantity, how many are filled, price and status. Test orders are left out unless includeTest=true.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Query Parameters

limit?integer
Range1 <= value <= 100
Default25
cursor?string
Lengthlength <= 200
updatedSince?string
Formatdate-time
buyerId?string
Formatuuid
campaignId?string
Formatuuid
status?string
Value in"pending_payment""paid""paused""payment_hold""completed""expired""cancelled""refunded"
open?string
Value in"true""false"
includeTest?string
Default"false"
Value in"true""false"

Response Body

Success

application/json
  1. response
data*array<>
hasMore*boolean
nextCursor*string|null
Example Request
curl 'https://api.traki.io/v1/account/lead-orders' \  -H "Authorization: Bearer $TRAKI_KEY"
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "code": "string",      "status": "string",      "test": true,      "campaign": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "tier": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "shelf": "string",      "states": [        "string"      ],      "quantity": -9007199254740991,      "filled": -9007199254740991,      "owed": -9007199254740991,      "replacements": -9007199254740991,      "dailyCap": -9007199254740991,      "pacePerHour": -9007199254740991,      "deliveryDays": -9007199254740991,      "currency": "string",      "price": "string",      "total": "string",      "cash": "string",      "credit": "string",      "discount": "string",      "paymentMethod": "string",      "paidAt": "string",      "pausedAt": "string",      "pauseReason": "string",      "holdReason": "string",      "cancelReason": "string",      "completedAt": "string",      "expectedCompletionAt": "string",      "lastDeliveryAt": "string",      "refunded": {        "leads": -9007199254740991,        "cash": "string",        "credit": "string",        "at": "string"      },      "origin": "string",      "createdAt": "string",      "updatedAt": "string",      "version": "string",      "buyer": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "externalId": "string",        "name": "string"      },      "notes": "string"    }  ],  "hasMore": true,  "nextCursor": "string"}