POST/v1/conversions

Record conversions

One conversion or an array of up to 1,000, each by the external id of a contact or by an address, with a value in the main unit, a currency, a moment and a reference. One conversion per reference. Each is attributed at once to the last card delivered to that contact or address whose window holds the moment. A test key records test conversions.

Scope contacts.manageIdempotent with a key

Headers

Idempotency-Keystringmax length 255

Up to 255 characters, scoped to the organisation and the endpoint, kept for 24 hours: a repeat with the same body replays the stored response with Idempotent-Replayed: true (API-004).

Returns

2 fields of the 201 answer
createdarray of objectsrequired
15 fields
idstringrequired
modeenumrequired
livetest
sourceenumrequired
pixelapicsvintegration
referencestring or nullrequired
externalIdstring or nullrequired
contactIdstring or nullrequired
valueCentsintegerrequired
currencystringrequired
atdate-timerequired
itemIdstring or nullrequired
postflowIdstring or nullrequired
postbatchIdstring or nullrequired
controlItemIdstring or nullrequired
attributedAtdate-time or nullrequired
createdAtdate-timerequired
existingarray of objectsrequired
15 fields
idstringrequired
modeenumrequired
livetest
sourceenumrequired
pixelapicsvintegration
referencestring or nullrequired
externalIdstring or nullrequired
contactIdstring or nullrequired
valueCentsintegerrequired
currencystringrequired
atdate-timerequired
itemIdstring or nullrequired
postflowIdstring or nullrequired
postbatchIdstring or nullrequired
controlItemIdstring or nullrequired
attributedAtdate-time or nullrequired
createdAtdate-timerequired

Responses

201Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
409A request with this Idempotency-Key is still in progress (idempotency_in_progress)
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)