Supported Formats

json

Examples

curl -H "Content-Type: application/json" -X POST -d '{"payout": 10, "duration": 60, duplicate_timeframe: 3600, name: "Pay $10 after 1 minute, deduped by 1 hour.", offer_id: 10001234}' https://[your-subdomain].trackdrive.net/api/v1/offer_conversions?auth_token=[your-auth-token]

Response Example

{
  "status" : 200,
  "errors" : {},
  "offer_conversion" : {
    "id" : 1928,
    "payout" : 15.0,
    "payout_type" : "usd",
    "revenue_percentage" : null,
    "duration" : 180,
    "duplicate_timeframe" : 5184000,
    "name" : "$15 \/ 180 sec \/ 60 days",
    "token_values" : [],
    "sortable_order" : 0,
    "offer_id" : 10007557,
    "business_range_id" : 10020627
  },
  "metadata" : {
    "root" : "offer_conversion"
  }
}

Params

Param name
Description
auth_token
optional

Authorize requests using your token. Get it from your profile: trackdrive.net/profile/edit

  • Must be String

payout_type
optional

How should the payout be calculated?
buyer_conversion_percent: Calculate the payout as a percentage of the revenue paid to the buyer.
usd: Pay the Traffic Source this amount.

  • Must be one of: usd, buyer_conversion_percent.

payout
optional

The Traffic Source will be paid this amount when payout_type is set to usd

  • Must be a decimal number.

revenue_percentage
optional

Calculate the payout as a percentage of the revenue paid to the buyer when payout_type is set to buyer_conversion_percent. A value of 60 would pay 60% of the revenue to the Traffic Source. If the buyer revenue is $15 and the percent is 60, the calculated payout would be $9

  • Must be a decimal number.

duration
required

The number of seconds after the buyer answers the call before the traffic source gets paid. 0 seconds means the call will convert for the traffic source even if a buyer doesn't answer.

  • Must be a decimal number.

duplicate_timeframe
required

The period of time that must elapse before a traffic source will be paid again when transferring the same CallerID.

  • Must be a decimal number.

name
required

This name that will appear in your call logs when the call converts.

  • Must be String

offer_id
required

The conversion will be added to this offer.

business_range_id
optional , nil allowed

The conversion will be added to these business hours. Leave this blank to automatically assign the currently open business hours.

token_values
optional

Conversion will only occur if the call matches these filters.

  • 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

The order in which Traffic Source Conversions will be checked for a matching conversion. Values are sorted in ascending order; smaller values are checked first.

  • Must be a decimal number.