POST /phone_numbers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/phone_numbers
Purchase a phone number
Purchase a new phone number using one of your existing provider configurations.
Params
| Param name | Description | ||||||
|---|---|---|---|---|---|---|---|
|
serializer Optional Blank value allowed |
This endpoint supports multiple response formats. Pass
|
||||||
|
forward_type Optional Blank value allowed |
Forward Type - Should the number forward to an Offer or a Buyer
|
||||||
|
buyer_id Optional Blank value allowed |
The buyer calls forward to when
|
||||||
|
provider_configuration_id Required |
Refer to the provider api for details
|
||||||
|
offer_id Required |
Refer to the offer api for details
|
||||||
|
toll_free Required |
Purchase a toll-free or local number? true for toll-free, false for local number.
|
||||||
|
country Required |
The country where the number will be purchased.
|
||||||
|
requested_number Optional Blank value allowed |
The phone number you wish to purchase from /api/v1/phone_numbers/search
|
||||||
|
traffic_source_id Optional Blank value allowed |
Refer to the traffic source api for details
|
||||||
|
ring_pool_id Optional Blank value allowed |
Refer to the Number Pool api for details
|
||||||
|
traffic_source_override_lead_traffic_source Optional Blank value allowed |
Force Calls to Credit This Traffic Source and Extra Tokens, even if Lead Traffic Source or Data is Different
|
||||||
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|