The trusted conversion tracking endpoint is a REST API that allows you to send conversion data to trusted. The POST Endpoint is available at https://api.trusted.net/v1/conversions.
You can test the request with Swagger UI: https://api.trusted.net/v1/conversions/swagger (opens in a new tab)
Request Payload
| Field | Type | Description | Example |
|---|---|---|---|
| actionId | string | You get this ID from trusted | f702349a-a2a7-f985-ad8a-2193f96d0141 |
| referenceId | string | Your Sale/Lead ID, can be hashed | 4d040d30a8e06f7198aedb6b12386fe |
| dateTime | string (Format: yyyy-MM-dd HH:mm:ss) | conversion Date and Time | 2023-03-14 15:25:10 |
| clickId | string | tclid, automatically appended from trusted | fd2Jkla3 |
| timezone? | string (default: Europe/Berlin) | IANA time-zone | America/New_York |
| isTest? | bool | For testing purpose | 1 |
Examples
#!/bin/bash
# Set the API endpoint URL
api_url="https://api.trusted.net/v1/conversions"
# Define the conversion data as a JSON string
conversion_data='{"actionId": "myActionId", "referenceId": "myReferenceId", "dateTime": "2023-04-07 12:00:00", "isTest": 1}'
# Make a POST request to the API endpoint with the conversion data as the request body
curl -X POST -H "Content-Type: application/json" -d "$conversion_data" "$api_url"