EaserixDocs
DevelopersAPI referenceLinksAnalytics

Record a conversion for a click

Attributes a conversion to a click. Links with trackConversions enabled append ?esrx_id=<click id> to their destination; the customer's backend captures it and posts it here (typically with an org API key) when the visitor signs up or pays. Clicks are written asynchronously, so an instant conversion can 404 once — retry after a second.

View as Markdown
POST
/v1/track/conversion
AuthorizationBearer <token>

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/v1/track/conversion" \  -H "Content-Type: application/json" \  -d '{    "clickId": "string"  }'
{  "conversion": {    "id": "string",    "linkId": "string",    "name": "string",    "amountCents": 0,    "currency": "string",    "created": "2019-08-24T14:15:22Z"  }}