Supported Formats

json, csv

Examples

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

Response Example

{
  "status" : 200,
  "charges" : [
    {
      "uuid" : "fb59d157-dd1a-4835-aa24-41ee5f604281",
      "charge_type" : "Inbound Call",
      "charge_count" : 1,
      "trackdrive_cost" : "0.03",
      "provider_cost" : "0.021",
      "from" : "+17035755041",
      "to" : "+18772117194",
      "charge_amount" : "0.051",
      "sms_blast_id" : null,
      "offer_id" : 10007440,
      "number_id" : 14775880,
      "third_party_cost" : 0.0,
      "call_id" : 62993782,
      "created_at" : "2019-10-14T20:23:03.669+00:00",
      "provider_configuration_id" : 10874,
      "billing_direction" : "in",
      "schedule_id" : null
    },
    {
      "uuid" : "e4fde9e7-1e12-421c-886e-72fe69a40fbe",
      "charge_type" : "Inbound Call",
      "charge_count" : 1,
      "trackdrive_cost" : "0.03",
      "provider_cost" : "0.021",
      "from" : "+15157247505",
      "to" : "+18772117194",
      "charge_amount" : "0.051",
      "sms_blast_id" : null,
      "offer_id" : 10007440,
      "number_id" : 14775880,
      "third_party_cost" : 0.0,
      "call_id" : 62898647,
      "created_at" : "2019-10-13T01:35:02.999+00:00",
      "provider_configuration_id" : 10874,
      "billing_direction" : "in",
      "schedule_id" : null
    }
  ],
  "totals" : {
    "created_at" : "Total",
    "uuid" : 1204,
    "trackdrive_cost" : 0.0,
    "provider_cost" : 0.0,
    "third_party_cost" : 0.047,
    "charge_amount" : 332.1261,
    "charge_count" : 267
  },
  "metadata" : {
    "root" : "charges",
    "page" : 1,
    "total_pages" : 602,
    "per_page" : 2,
    "total_count" : 1204,
    "next_cursor" : 81308224
  }
}

Params

Param name
Description
auth_token
optional

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

  • Must be String

page
optional

Return the next page of results.

  • Must be a number.

offer_id
optional

Refer to the offer api for details

call_id
optional

The internal id for a call on Trackdrive.

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

order
optional

Sort results by this field.

  • Must be one of: amount, cost, trackdrive_cost, third_party_cost, offer_id, call_id, id, charge_count, buyer_converted_count, offer_converted_count.

order_dir
optional

Sort results in ascending or descending order.

  • Must be one of: asc, desc.

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:

  • uuid
  • charge_type
  • charge_count
  • trackdrive_cost
  • provider_cost
  • from
  • to
  • charge_amount
  • sms_blast_id
  • offer_id
  • number_id
  • third_party_cost
  • call_id
  • created_at
  • provider_configuration_id
  • billing_direction
  • schedule_id
  • Must be String