Skip to Content
Developers
Leads

Report your outcome on a lead you bought

Needs the leads:write 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/buyer/leads/{id}/outcome

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.

Authorization

key
headerAuthorizationBearer <traki_buyer_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
outcome*|null
value?|null

Response Body

Success

application/json
  1. response
saleId*string
Formatuuid
outcome*string|null
outcomeLabel*string|null
outcomeAt*|null
outcomeValue*number|null
firstDialAt*|null
replacedAt*|null
replacement*boolean
Example Request
curl -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}