Zip Code List Files
A CSV file of zip codes imported to populate or update a Zip Code List.
GET /zip_code_list_files
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/zip_code_list_files
List Zip CSV File records.
Returns Zip CSV File import records, each representing a CSV upload of zip codes into a zip code list.
Params
| Param name | Description |
|---|---|
|
ids Optional |
Return records matching these ids.
|
|
page Optional |
Return the next page of results.
|
|
per_page Optional |
How many results to return per page. The default is 25.
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
fulltext Optional |
Search for any record that matches this text
|
|
time_zone Optional |
Date ranges will be parsed using this time zone.
|
|
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:
|
|
root Optional |
Pass
|
GET /zip_code_list_files/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/zip_code_list_files/new
Build Zip CSV File with defaults.
Returns a Zip CSV File built with default attributes for previewing available fields. It is not saved.
POST /zip_code_list_files
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/zip_code_list_files
Create Zip CSV File.
Uploads a CSV file of zip codes (import_file) to append to an existing zip code list identified by zip_code_list_id. The file is parsed and imported.
Params
| Param name | Description |
|---|---|
|
zip_code_list_id Optional Blank value allowed |
Zip Code List
|
|
name Optional Blank value allowed |
Name
|
|
description Optional Blank value allowed |
Description
|
|
import_file Optional Blank value allowed |
Import File
|
GET /zip_code_list_files/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/zip_code_list_files/:id
Get Zip CSV File by id.
Returns a single Zip CSV File import by id, including the zip codes it parsed.
PUT /zip_code_list_files/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/zip_code_list_files/:id
Update Zip CSV File by id.
Updates a Zip CSV File import's name, description, or associated zip code list.
Params
| Param name | Description |
|---|---|
|
zip_code_list_id Optional Blank value allowed |
Zip Code List
|
|
name Optional Blank value allowed |
Name
|
|
description Optional Blank value allowed |
Description
|
|
import_file Optional Blank value allowed |
Import File
|
DELETE /zip_code_list_files/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/zip_code_list_files/:id
Destroy Zip CSV File by id.
Permanently deletes a Zip CSV File import record, along with the zip codes it added to the zip code list.