Lead orders
Get a lead order
Needs the orders:read scope. About scopes
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidSuccess
application/json- response
id*stringFormat
uuidcode*stringstatus*stringtest*booleancampaign*tier*shelf*stringstates*array<string>quantity*integerRange
-9007199254740991 <= value <= 9007199254740991filled*integerRange
-9007199254740991 <= value <= 9007199254740991owed*integerRange
-9007199254740991 <= value <= 9007199254740991replacements*integerRange
-9007199254740991 <= value <= 9007199254740991dailyCap*|nullpacePerHour*integerRange
-9007199254740991 <= value <= 9007199254740991deliveryDays*|nullcurrency*stringprice*stringtotal*stringcash*stringcredit*stringdiscount*stringpaymentMethod*string|nullpaidAt*string|nullpausedAt*string|nullpauseReason*string|nullholdReason*string|nullcancelReason*string|nullcompletedAt*string|nullexpectedCompletionAt*string|nulllastDeliveryAt*string|nullrefunded*origin*stringcreatedAt*stringupdatedAt*stringversion*stringbuyer*|nullnotes*string|nullcurl 'https://api.traki.io/v1/account/lead-orders/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H "Authorization: Bearer $TRAKI_KEY"Example Response
{ "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"}Place a lead order for one of your buyers POST
The same as placing an order on the Lead orders screen: a quantity of leads on a campaign’s tier at the tier’s price, for a buyer that takes form leads. `payment: manual_paid` records the payment as taken by hand and opens the order at once; `pending` leaves it pending payment. Send an Idempotency-Key: a retry places one order.
Change a lead order’s terms PATCH
States, quantity (never below what is filled), daily cap, pace, run length and notes of an open order, with the reason its history keeps. The price per lead is the tier’s at the time of the order and does not change here.