Conversions
A conversion is an order, a sign-up or another result of a contact or address. PostBuddy attributes each one to the last card delivered to that contact or address whose attribution window holds the moment, so the figures show what the mail earned: conversions, revenue, the rate against delivered cards and the lift against the control group of a journey.
Where conversions come from
- The pixel: a
placed_orderevent of a known visitor becomes a conversion. The reference is the propertyorder_id,orderIdorreference; the value comes fromvalue,totaloramountand the currency fromcurrency. - The API:
POST /v1/conversionswith one conversion or up to a thousand. - A CSV:
POST /v1/conversions/importwith an upload and a mapping, like a Postbatch. - Integrations report through the same endpoint.
One conversion per reference per organisation: a second report with the same reference comes back under existing, unchanged. A conversion without a value counts with value 0.
Reporting through the API
Reporting needs contacts.manage; reading needs items.read. A conversion names the contact by externalId or by its address.
const result = await client.conversions.record(
[
{ externalId: 'crm-1042', value: 84.5, reference: 'order-20261', at: '2026-10-20T10:00:00Z' },
{
address: {
name: 'Carla de Vries',
addressLine1: 'Rokin 10',
postalCode: '1012 KR',
city: 'Amsterdam',
country: 'NL',
},
value: 12,
reference: 'order-20262',
},
],
'orders-2026-10-20',
);
// result.created[0].itemId is the card the conversion counts for, or nullvalue is in the main unit (euros), currency defaults to EUR and at to now. An unknown externalId answers 422 contact_unknown; an address without a contact still counts, matched on the address.
Live keys make live conversions, test keys test conversions; each only counts for cards of its own mode.
Attribution
For each conversion the candidates are the cards to the same contact or address. A delivered card's window starts at the handover to the carrier plus the carrier's lead time (the expected delivery) and lasts the Postflow's attributionWindowDays (30 by default, 1 to 180, settable on the Postflow under Advanced). The card whose window holds the moment and started last wins. A control-group card of a journey (its window starts seven days after the hold) takes the conversion only when no delivered card holds it; that is what the lift is measured on.
Figures
GET /v1/analytics/conversionsgives the series per day, week or month, the totals withconversionRatePercent(attributed over delivered cards), the control group's rate andliftPercent, the figures per source and per Postflow. The same figures are in the portal under Analytics, Conversions and on a Postflow's Statistics tab.GET /v1/conversionslists conversions with filters onsource,mode,postflowId,itemId,contactId,externalId,reference,attributedandat.
CSV import
Upload the file like a Postbatch (POST /v1/uploads, then complete) and call the import with a mapping of the columns:
{
"uploadId": "upl_...",
"mapping": {
"externalId": "{{Klantnummer}}",
"value": "{{Bedrag}}",
"at": "{{Datum}}",
"reference": "{{Referentie}}"
}
}The answer counts the rows, the conversions created and the ones that existed, and lists the invalid lines with their problems. The mapping needs externalId or the address columns.