Skip to content

Log Conversion

POST
/conversions

Log a conversion. 201 when new; 200 with the original row when external_id was already logged.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

What happened. Where it came from (source) is set by the server, never by the caller.

object
campaign_id
Any of:
string
<= 100 characters
campaign_name
Any of:
string
<= 255 characters
company_id
Any of:
integer
>= 1
contact_email
Any of:
string
<= 320 characters
contact_id
Any of:
integer
>= 1
currency
Any of:
string
<= 16 characters
custom_label
Any of:
string
<= 120 characters
event_type
required

Signup, demo, purchase, or custom (custom needs custom_label).

string
Allowed values: signup demo purchase custom
external_id
Any of:
string
<= 255 characters
occurred_at
Any of:
string format: date-time
value_cents
Any of:
integer

Responses

201

Successful Response

object
data
required
object
campaign_id
Any of:
string
campaign_name
Any of:
string
company_id
Any of:
integer
contact_email
Any of:
string
contact_id
Any of:
integer
created_at
Any of:
string format: date-time
created_by
Any of:
string
currency
Any of:
string
custom_label
Any of:
string
event_type
required
string
external_id
Any of:
string
id
required
string
occurred_at
required
string format: date-time
source
required

Manual (staff console), api, or workflow.

string
value_cents
Any of:
integer
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string