Examples

curl -H "Content-Type: application/json" -X POST -d '{"add_revenue": 2.50, "buyer_converted": "true"}' https://[your-subdomain].trackdrive.net/api/v1/calls/update_buyer/:caller_id?auth_token=[your-auth-token]
curl -X POST "https://my-company.trackdrive.net/api/v1/calls/update_buyer/17194448888?auth_token=my-user-token&offer_token=the-offer-token&add_revenue=5"

Params

Param name
Description
auth_token
optional

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

  • Must be String

caller_id
required

The caller ID for the call that will be updated.

  • Must be String

offer_token
required

The Dynamic Number Insertion token for the offer.

  • Must be String

call_timeframe
optional

Pass this optional parameter to restrict the call update to calls made in the last call_timeframe minutes. For Example: Pass 120 if you'd like to only update calls made in the last 2 hours. This is useful if you only want to update a call that happened recently.

  • Must be a number.

revenue
optional

Set the call's revenue to this amount. For example pass 10.50 to set the revenue to 10.50

  • Must be a decimal number.

add_revenue
optional

Add this amount to the call's current revenue. For example pass 2.5 to add 2.5 to the current call revenue. If the call revenue is currently 10.50, the revenue would become 13 (10.50 + 2.50)

  • Must be a decimal number.

buyer_converted
optional

Did the buyer convert?

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off