Leads
Report your outcome on a lead you bought
Needs the leads:write scope. About scopes
Set the outcome stage (its key) and, on a won stage, the value; null clears it. The same as the outcome on the lead in your portal.
keyheader
AuthorizationBearer <traki_buyer_…>id*stringFormat
uuidapplication/json- body
outcome*|nullvalue?|nullSuccess
application/json- response
saleId*stringFormat
uuidoutcome*string|nulloutcomeLabel*string|nulloutcomeAt*|nulloutcomeValue*number|nullfirstDialAt*|nullreplacedAt*|nullreplacement*booleancurl -X POST 'https://api.traki.io/v1/buyer/leads/497f6eca-6276-4993-bfeb-53cbbbba6f08/outcome' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: a-unique-id-for-this-change' \ -d '{ "outcome": "string"}'Example Response
{ "saleId": "2bab4348-b09e-4b08-a600-8273f0d2907f", "outcome": "string", "outcomeLabel": "string", "outcomeAt": "2019-08-24T14:15:22Z", "outcomeValue": 0, "firstDialAt": "2019-08-24T14:15:22Z", "replacedAt": "2019-08-24T14:15:22Z", "replacement": true}The leads you bought, oldest first, as a feed GET
Page with `cursor` (the `nextCursor` of the previous page) while `hasMore` is true; then poll with the last `nextCursor` to receive new leads. Contact details, answers, prices and consent proof follow what the account shares, as in your portal.
Your lead orders, newest first GET
Each order with its campaign, tier, quantity, how many are filled, price and status. Empty when the account has not opened form leads or lead orders to you.