GET /api/v1/billings
Get billing records.

Supported Formats

json, csv

Examples

curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/billings?page=1&order=created_at"

Params

Param name
Description
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:

  • id
  • legacy_id
  • type
  • uuid
  • created_at
  • updated_at
  • deleted_at
  • user_updated_at
  • routes_show_path
  • routes_edit_path
  • external_record_id
  • name
  • company_id
  • charge_type
  • offer_id
  • schedule_id
  • amount
  • sms_blast_messages_count
  • third_party_cost
  • sms_ai_charges_count
  • charges_count
  • clean_number_charges_count
  • lead_action_logs_count
  • Must be String