GET /api/v1/billings
Get billing records.

Supported Formats

json, csv

Examples

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

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.

number_id
optional

Refer to the number api for details

  • Must be a number.

offer_id
optional

Refer to the offer api for details

  • 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

order
optional

Sort results by this field.

  • Must be one of: amount, offer_id, number_id, call_id, id.

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
  • trackdrive_cost
  • provider_cost
  • offer_id
  • number_id
  • call_uuid
  • created_at
  • Must be String


GET /api/v1/billings/stats
Get statistical data on billing records grouped by criteria.

Supported Formats

json

Examples

wget "https://[your-subdomain].trackdrive.net/api/v1/billings/stats/?group_by=offer_id&auth_token=[your-auth-token]"

Params

Param name
Description
auth_token
optional

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

  • Must be String

group_by
required

translation missing: en.api.billings.group_by

  • Must be one of: buyer_converted, offer_converted, offer_id, provider_configuration_id.

offer_id
optional

Refer to the offer api for details

  • Must be a number.

provider_configuration_id
optional

Refer to the provider api for details

  • Must be a number.

page
optional

Return the next page of results.

  • 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