Examples

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

Params

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

add_payout
Optional

Add this amount to the call's current payout.

  • Must be a decimal number.

call_disposition_id
Optional Blank Value Allowed

Call Disposition

agent_call_disposition_notes
Optional Blank Value Allowed

Notes

  • Must be String

buyer_converted
Optional

Did the buyer convert?

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