Report a conversion

A sale or sign-up from someone who came through a tracked link.

POST/v1/conversions

Body Parameters

  • click_idstringrequired

    The tk value on the landing page URL. Example: Ab3dEf9h.

  • value_centsinteger

    Optional. What it was worth, in US cents. Minimum 0. Example: 4900.

  • namestring

    Optional. What happened, like purchase. At most 80 characters.

  • external_idstring

    Optional. Your id for it. The same id twice counts once and returns the first with 200. At most 128 characters. Example: order_1042.

Details

Scope: links.

Responses

  • 200Conversion

    Already recorded under that external_id

  • 201Conversion

    Recorded

  • 401Error

    Missing, malformed, or revoked API key

  • 402Error

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429Error

    Rate limit or quota exceeded

Response Fields (200)

  • idstring

    Example: cv_NxY2a.

  • objectconversion
  • click_idstring

    Example: Ab3dEf9h.

  • urlstring
  • namestring

    Nullable.

  • external_idstring

    Nullable.

  • value_centsinteger
  • duplicateboolean

    On POST: true when external_id was already recorded.

  • testboolean
  • created_atstring (date-time)

Errors

Every error has the same JSON shape, and request_id matches the X-Request-Id response header. Errors lists every code and what to do about it.

  • 401

    Missing, malformed, or revoked API key

  • 402

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429

    Rate limit or quota exceeded