Supported Formats

json, csv

Examples

wget "https://[your-subdomain].trackdrive.net/api/v1/offer_conversions?page=1&order=created_at&auth_token=[your-auth-token]"

Response Example

{
  "status" : 200,
  "offer_conversions" : [
    {
      "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
    },
    {
      "id" : 1934,
      "payout" : 0.0,
      "payout_type" : "usd",
      "revenue_percentage" : null,
      "duration" : 60,
      "duplicate_timeframe" : 86400,
      "name" : "$0 \/ 60 sec \/ 1 day",
      "token_values" : [],
      "sortable_order" : 0,
      "offer_id" : 10007562,
      "business_range_id" : 10020655
    }
  ],
  "business_ranges" : [
    {
      "owner_id" : 10007562,
      "owner_type" : "Offer",
      "owner_relation" : "business_ranges",
      "sortable_order" : null,
      "id" : 10020655,
      "color" : "#4176A3",
      "created_at" : "2018-04-27T23:37:50.737+00:00",
      "updated_at" : "2018-04-27T23:37:50.737+00:00",
      "schedule" : [
        {
          "day" : "0",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "1",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "2",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "3",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "4",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "5",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "6",
          "times" : [
            "00:00..23:59"
          ]
        }
      ],
      "type" : "BusinessRange",
      "buyer_conversion_ids" : []
    },
    {
      "owner_id" : 10007557,
      "owner_type" : "Offer",
      "owner_relation" : "business_ranges",
      "sortable_order" : null,
      "id" : 10020627,
      "color" : "#4176A3",
      "created_at" : "2018-04-27T14:25:10.167+00:00",
      "updated_at" : "2018-04-27T14:25:10.167+00:00",
      "schedule" : [
        {
          "day" : "0",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "1",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "2",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "3",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "4",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "5",
          "times" : [
            "00:00..23:59"
          ]
        },
        {
          "day" : "6",
          "times" : [
            "00:00..23:59"
          ]
        }
      ],
      "type" : "BusinessRange",
      "buyer_conversion_ids" : []
    }
  ],
  "offers" : [
    {
      "id" : 10007562,
      "created_at" : "2018-04-27T23:37:50.427+00:00",
      "updated_at" : "2018-04-27T23:37:50.790+00:00",
      "user_offer_id" : "1000",
      "numbers_api_key" : "9b7650badcd22942f8a3ceb7bbd70dd4",
      "leads_api_key" : "963e3c8d6499796b134c0a071dc0ef9a",
      "name" : "1000 - test",
      "max_cc_count" : 0,
      "active_cc_count" : 0,
      "in_progress_count" : 0,
      "lead_token" : "b3e1a94fe6cb6a62fdf7f61c32f81974"
    },
    {
      "id" : 10007557,
      "created_at" : "2018-04-27T14:25:09.722+00:00",
      "updated_at" : "2019-01-31T16:04:10.823+00:00",
      "user_offer_id" : "HI",
      "numbers_api_key" : "c5acc5c206cd7a9f09211b845eb940d7",
      "leads_api_key" : "f7360b99cc6902ba54e977cc71bc213f",
      "name" : "HI - Health Insurance Calls",
      "max_cc_count" : 65,
      "active_cc_count" : 0,
      "in_progress_count" : 0,
      "lead_token" : "fca6480c5745c69864adbc7f0b5ab243"
    }
  ],
  "associations" : {
    "business_range_id" : "business_ranges",
    "offer_id" : "offers"
  },
  "metadata" : {
    "root" : "offer_conversions",
    "page" : 1,
    "total_pages" : 2,
    "per_page" : 2,
    "total_count" : 4,
    "next_cursor" : 1934
  }
}

Params

Param name
Description
auth_token
optional

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

  • Must be String

offer_id
optional

The conversion will be added to this offer.

business_range_id
optional

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

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 String

created_at_from
optional

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

  • Must be String

fulltext
optional

Search for any record that matches this text

  • Must be 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
  • payout
  • payout_type
  • revenue_percentage
  • duration
  • duplicate_timeframe
  • name
  • token_values
  • sortable_order
  • offer_id
  • business_range_id
  • Must be 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