Track a sale
A person paid. Send the same customerId as on the lead and the amount in the currency's smallest unit. The sale counts on the link that brought the person first. Send invoiceId so the same payment never counts twice. With no earlier lead, include clickId.
Authorization
apiKey An API key from Settings, Developers: Authorization: Bearer kc_live_...
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/track/sale" \ -H "Content-Type: application/json" \ -d '{ "customerId": "string", "amount": 0 }'{ "id": "string", "created": true, "kind": "lead", "eventName": "string", "amount": 0, "currency": "string", "customer": { "id": "string", "externalId": "string", "name": "string", "email": "string" }, "link": { "id": "string", "name": "string", "shortUrl": "string" }}