Get Started
The Phone Append API allows you to submit customer contact records and receive appended phone data when a match is available.
API Endpoint
Replace the placeholder below with your assigned Datazapp API endpoint URL.
<datazapp api endpoint URL>
Phone Append API Request
Submit your API key, append module, append type, DNC preference, and customer records in the request body.
{
"ApiKey": "Your API key",
"AppendModule": "PhoneAppendAPI",
"AppendType": 3,
"DncFlag": "false",
"Data": [
{
"FirstName": "John",
"LastName": "Doe",
"Address": "123 Main St",
"City": "Anytown",
"Zip": "12345"
}
]
}
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
ApiKey |
Yes | String | Your assigned Datazapp API key. |
AppendModule |
Yes | String | Use PhoneAppendAPI. |
AppendType |
Yes | Integer | Determines which phone data output you want returned. |
DncFlag |
Yes | String | Controls whether results should be filtered against Do Not Call records. |
Data |
Yes | Array | Contains the customer records to process. |
AppendType Values
DncFlag Values
API Response
A successful response includes a header, system-generated token, returned data, matched count, order amount, and processing time.
{
"header": {
"Status": 200,
"Message": "Success"
},
"ResponseDetail": {
"App": 0,
"Token": "X****C",
"Data": [
{
"PhoneType": "C",
"Matched": true,
"Phone": "4******5",
"DoNotCall": "Y",
"Tag": "",
"FirstName": "John",
"LastName": "Doe",
"Address": "1******* **R",
"City": "Anytown",
"Zip": "12345",
"AlterFirstName": "",
"AlterLastName": "",
"AlterAddress": "",
"AlterCity": "",
"AlterZip": ""
}
],
"OrderAmount": "$0.00",
"Count": 1,
"ProcessedTime": "221 milliseconds"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
Status | Integer / String | Indicates request status. |
Message | String | Indicates success message or error message. |
Token | String | System-generated reference token. |
Data | Array | Returned append results. |
Matched | Boolean / String | Indicates whether a match was found. |
PhoneType | String | Phone type. C = Cell Phone, H = Household Phone. |
Phone | String | Returned phone number. |
DoNotCall | String | Indicates whether the phone is on the Do Not Call list. |
Cell | String | Returned cellphone number, when using applicable append type. |
CellDoNotCall | String | Indicates whether the returned cellphone is on the Do Not Call list. |
FirstName | String | First name associated with returned record. |
LastName | String | Last name associated with returned record. |
Address | String | United States postal address. |
City | String | City associated with returned record. |
Zip | String | ZIP or ZIP+4 associated with returned record. |
AlterFirstName | String | Alternative first name, when available. |
AlterLastName | String | Alternative last name, when available. |
AlterAddress | String | Alternative address, when available. |
AlterCity | String | Alternative city, when available. |
AlterZip | String | Alternative ZIP, when available. |
OrderAmount | String | Amount charged for returned matches. |
Count | String / Integer | Quantity matched. |
ProcessedTime | String | Total API processing time. |
Errors
The API may return one of the following error messages if the request cannot be completed.