Supported Formats

json

Examples

curl -H "Content-Type: application/json" -X PUT -d '{"payout": 9, "duration": 120}' https://[your-subdomain].trackdrive.com/api/v1/offer_conversions/1008923?auth_token=[your-auth-token]

Params

Param name
Description
auth_token
Optional

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

  • Must be String

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

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 Blank Value Allowed

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

  • Must be a decimal number.

revenue_percentage
Optional Blank Value Allowed

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
Optional

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
Optional

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
Optional

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

  • Must be String

token_values
Optional Blank Value Allowed

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 Blank Value Allowed

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.