Record a conversion with its revenue and attribute it to the last email click within the brand's window
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/conversions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","event":"purchase","value":0,"currency":"MXN","externalId":"example","occurredAt":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/conversions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "event": "purchase", "value": 0, "currency": "MXN", "externalId": "example", "occurredAt": "2026-04-15T12:00:00Z" }'Without an email, or with a contact who did not accept full tracking, the conversion is stored without attribution (attribution: "none"). With the same externalId in the brand it responds 200 with the already stored conversion and does not add the revenue again. The email is not stored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
Email of the person who converted: used to look up their last click and not stored
Event name (purchase, signup…)
Conversion revenue, with at most two decimal places
Uppercase ISO 4217 code, e.g. MXN. Different currencies are never summed
Example
MXNOrder id in your store: sending the same conversion twice does not count it twice
When it occurred; defaults to now
Responses
Section titled “Responses”Already recorded (same externalId)
object
Last_click: to the last click of a send; campaign: to the campaign only (anonymous tracking); none: no attribution
Always null until flows (M9) record their sends
Example
{ "source": "api", "attribution": "last_click", "noneReason": "no_click"}Recorded
object
Last_click: to the last click of a send; campaign: to the campaign only (anonymous tracking); none: no attribution
Always null until flows (M9) record their sends
Example
{ "source": "api", "attribution": "last_click", "noneReason": "no_click"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}