Check phone DNC status
/api/v2/phone_dnc
operationId: phone_dnc
Live: https://gdapi.globaldata.net.au/api/v2/phone_dnc · Sandbox: https://sandbox-gdapi.globaldata.net.au/api/v2/phone_dnc
Tests the DNC status of one or more supplied phone numbers against the Australian DNC register. This DNC check will return a Y/N result indicating if the phone number is on the DNC register or not.
Sandbox environment
When simulating queries in the sandbox environment, the DNC response will be determined by the phone number ending:
| Number Type | Response | Description |
|---|---|---|
| Any number ending in 9999 | U | Simulate a long timeout |
| Any number ending in 999 | Y | Simulate a slow result, takes 20 seconds but returns phone number on the DNC register |
| Any number ending in 998 | N | Simulate a slow result, takes 20 seconds but returns phone number not on the DNC register |
| Any number ending in 997 | U | Simulate a slow result, takes 20 seconds but returns as undetermined |
| Any number ending in 99 | I | Phone number Not Supported / Invalid |
| Any number ending in 9, 8, 7, 6, 5, 4 | N | Phone number not on the DNC register |
| Any number ending in 3, 2, 1, 0 | Y | Phone number on the DNC register |
Note: Phone numbers must start with a valid Australian prefix, ie 02, 03, 04, 07, 08. Any other number will return as Invalid.
Request body
Content type application/json.
The details of the record to enhance
| Field | Description |
|---|---|
phones |
string One or more (comma separated) 10 digit Australian phone number to be checked (0NSN format) |
Responses
Result of phone DNC check
application/json
| Field | Description |
|---|---|
message |
string A message indicating the result of the request. This will be |
api_reference |
string (uuid) |
records |
array of objects The checked phone numbers and their DNC status |
records[]. |
string The checked phone number in 0NSN format |
records[]. |
string The result of the DNC check for the phone number
|
records[]. |
string The reference number for the DNC check |
records[]. |
string Human readable information about the result |