Skip to Content
Developers
Returns and disputes

Your lead returns or call disputes, and where each stands

Needs the returns: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/buyer/returns

Authorization

key
headerAuthorizationBearer <traki_buyer_…>

Query Parameters

limit?integer
Range1 <= value <= 100
Default25
cursor?string
Lengthlength <= 200
updatedSince?string
Formatdate-time
kind?string
Default"lead"
Value in"lead""call"

Response Body

Success

application/json
  1. response
data*array<>
hasMore*boolean
nextCursor*string|null
Example Request
curl 'https://api.traki.io/v1/buyer/returns' \  -H "Authorization: Bearer $TRAKI_KEY"
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "lead",      "code": "string",      "state": "string",      "reason": "string",      "reasonKey": "string",      "note": "string",      "lead": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "code": "string"      },      "call": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "code": "string"      },      "campaign": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "source": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "amount": 0,      "credited": 0,      "resolution": "string",      "requestedAt": "string",      "decidedAt": "string",      "windowClosesAt": "string"    }  ],  "hasMore": true,  "nextCursor": "string"}