Conversions Settings

Rules that define when and how much a traffic source is paid when one of its calls converts.

GET /offer_conversions

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/offer_conversions

List Traffic Source Payouts.

Lists the Traffic Source Payout rules (conversion-to-payout definitions) configured on offers, filterable by offer_id or business_range_id. Supports CSV export.

Supported Formats

json, csv

Params

Param name Description
serializer
Optional Blank value allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    offer_conversionDefault response format.
    offer_conversion_gridModern response format that returns various foreign keys for use with other API endpoints.
offer_id
Optional

The Offer this conversion rule belongs to.

business_range_id
Optional

Scopes this conversion rule to calls during this Business Range, instead of the whole Offer.

page
Optional

Return the next page of results.

  • Must be a number.

per_page
Optional

How many results to return per page. The default is 25.

  • Must be a number.

created_at_to
Optional

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

created_at_from
Optional

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

fulltext
Optional

Search for any record that matches this text

  • Must be a String

time_zone
Optional

Date ranges will be parsed using this time zone.

columns
Optional
Specify the columns you would like returned by the API for a given resource. Limiting the columns can significantly increase API response time since only the requested data will be processed. columns=uuid,number,created_at

Must be any combination of:

  • id
  • legacy_id
  • type
  • uuid
  • created_at
  • updated_at
  • deleted_at
  • user_updated_at
  • routes_show_path
  • routes_edit_path
  • external_record_id
  • context_menu_name
  • payout
  • payout_type
  • revenue_percentage
  • duration
  • duplicate_timeframe
  • duplicate_timeframe_scope
  • name
  • token_values
  • sortable_order
  • offer_id
  • business_range_id
  • conversion_type
  • record_token_filter_id
  • record_token_filter_data_count
  • record_token_filter_data
  • Must be a String

root
Optional

Pass root=false to return results without a root node and metadata.
For example:
GET /api/v1/calls?root=false will return [call1, call2, call3]
While:
GET /api/v1/calls will return {calls: [call1, call2, call3], metadata: {}}

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

GET /offer_conversions/new

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/offer_conversions/new

Build Traffic Source Payout with defaults.

Returns a blank Traffic Source Payout record populated with default attribute values, without saving it.

Params

Param name Description
serializer
Optional Blank value allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    offer_conversionDefault response format.
    offer_conversion_gridModern response format that returns various foreign keys for use with other API endpoints.

GET /offer_conversions/:id

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/offer_conversions/:id

Get Traffic Source Payout by id.

Fetches a single Traffic Source Payout by id.

Params

Param name Description
serializer
Optional Blank value allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    offer_conversionDefault response format.
    offer_conversion_gridModern response format that returns various foreign keys for use with other API endpoints.

POST /offer_conversions

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/offer_conversions

Create Traffic Source Payout.

Creates a Traffic Source Payout rule that pays out once a call on the given offer reaches the specified duration, deduping repeat conversions from the same caller within duplicate_timeframe seconds. Set payout_type to usd with a fixed payout amount, or to buyer_conversion_percent with revenue_percentage instead; the matching field is required.

Params

Param name Description
serializer
Optional Blank value allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    offer_conversionDefault response format.
    offer_conversion_gridModern response format that returns various foreign keys for use with other API endpoints.
payout_type
Optional

Payout Type

  • Must be one of: usd, buyer_conversion_percent.

payout
Optional Blank value allowed

Payout

  • Must be a decimal number.

revenue_percentage
Optional Blank value allowed

Revenue Percentage

  • Must be a decimal number.

duration
Required

Duration

  • Must be a decimal number.

duplicate_timeframe
Required

Duplicate Timeframe

  • Must be a decimal number.

duplicate_timeframe_scope
Optional

Duplicate Timeframe Scope

  • Must be one of: offer, traffic_source, number.

name
Required

Name

  • Must be a String

offer_id
Required

The Offer this conversion rule belongs to.

business_range_id
Optional Blank value allowed

Scopes this conversion rule to calls during this Business Range, instead of the whole Offer.

conversion_type
Optional Blank value allowed

When the traffic source is paid: payout (after Duration seconds), postback (an external conversion postback), or when_buyer_converted (when a buyer converts the call).

  • Must be one of: payout, postback, when_buyer_converted.

traffic_source_id
Optional Blank value allowed

Scopes this conversion rule to calls from this Traffic Source, instead of the whole Offer.

number_id
Optional Blank value allowed

Scopes this conversion rule to calls to this Number, instead of the whole Offer.

owner_id
Optional Blank value allowed

The id of the record given in owner_type that this conversion rule is scoped to, instead of the whole Offer.

  • Must be an 8-bit integer ID or a 128-bit UUID reference to an object on Trackdrive. Example ID: 289302820, Example UUID: 924c37d5-e70f-42ad-84c2-e85eb0c1bc21

owner_type
Optional Blank value allowed

What this conversion rule is scoped to instead of the whole Offer: TrafficSource, Number, or BusinessRange, used together with owner_id.

  • Must be a String

token_value_ids
Optional Blank value allowed

Only pays out for calls matching these token values.

record_token_filter_list
Optional Blank value allowed

Assign filters to the object by passing an array of key:value pairs

  • Must be a valid list of filters. Example filters:
    "interest:auto", "loan_amount:>=10000", "loan_amount:<=50000", "geo:!=800", "caller_id:!=anonymous"
sortable_order
Optional

Sortable Order

  • Must be a decimal number.

PUT /offer_conversions/:id

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/offer_conversions/:id

Update Traffic Source Payout by id.

Updates a Traffic Source Payout rule's duration, payout amount, or dedupe settings. If payout_type is changed, the corresponding payout or revenue_percentage requirement is re-validated.

Params

Param name Description
serializer
Optional Blank value allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    offer_conversionDefault response format.
    offer_conversion_gridModern response format that returns various foreign keys for use with other API endpoints.
payout_type
Optional

Payout Type

  • Must be one of: usd, buyer_conversion_percent.

payout
Optional Blank value allowed

Payout

  • Must be a decimal number.

revenue_percentage
Optional Blank value allowed

Revenue Percentage

  • Must be a decimal number.

duration
Optional

Duration

  • Must be a decimal number.

duplicate_timeframe
Optional

Duplicate Timeframe

  • Must be a decimal number.

duplicate_timeframe_scope
Optional

Duplicate Timeframe Scope

  • Must be one of: offer, traffic_source, number.

name
Optional

Name

  • Must be a String

offer_id
Optional Blank value allowed

The Offer this conversion rule belongs to.

business_range_id
Optional Blank value allowed

Scopes this conversion rule to calls during this Business Range, instead of the whole Offer.

conversion_type
Optional Blank value allowed

When the traffic source is paid: payout (after Duration seconds), postback (an external conversion postback), or when_buyer_converted (when a buyer converts the call).

  • Must be one of: payout, postback, when_buyer_converted.

traffic_source_id
Optional Blank value allowed

Scopes this conversion rule to calls from this Traffic Source, instead of the whole Offer.

number_id
Optional Blank value allowed

Scopes this conversion rule to calls to this Number, instead of the whole Offer.

owner_id
Optional Blank value allowed

The id of the record given in owner_type that this conversion rule is scoped to, instead of the whole Offer.

  • Must be an 8-bit integer ID or a 128-bit UUID reference to an object on Trackdrive. Example ID: 289302820, Example UUID: 924c37d5-e70f-42ad-84c2-e85eb0c1bc21

owner_type
Optional Blank value allowed

What this conversion rule is scoped to instead of the whole Offer: TrafficSource, Number, or BusinessRange, used together with owner_id.

  • Must be a String

token_value_ids
Optional Blank value allowed

Only pays out for calls matching these token values.

record_token_filter_list
Optional Blank value allowed

Assign filters to the object by passing an array of key:value pairs

  • Must be a valid list of filters. Example filters:
    "interest:auto", "loan_amount:>=10000", "loan_amount:<=50000", "geo:!=800", "caller_id:!=anonymous"
sortable_order
Optional Blank value allowed

Sortable Order

  • Must be a decimal number.

DELETE /offer_conversions/:id

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/offer_conversions/:id

Destroy Traffic Source Payout by id.

Deletes a Traffic Source Payout rule by id.

Params

Param name Description
serializer
Optional Blank value allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    offer_conversionDefault response format.
    offer_conversion_gridModern response format that returns various foreign keys for use with other API endpoints.