This API is designed to allow partners who have their number ranges hosted with aql to update their interface with BT’s 999 system. This will provide an easy method for the update of BT’s 999 record details for our customers.
The protocol presented is HTTPS. All the API methods will be executed by a standard GET or POST request of the HTTPS protocol.
The interface methods will be as follows:
Return codes used will be the standard meanings for 200 OK, 404 Unauthorised and 500 INTERNAL ERROR.(see error codes)
Request
URL: https://999.aql.com/matilda/ActivateCustomer
Method: POST
Description: Used to activate a number with associated customer details at BT’s TDM system.
Parameter | Value | Required/ Optional | Max Length | Description |
---|---|---|---|---|
username | Alphanumeric | Required | - | aql 999 username. |
password | Alphanumeric | Required | - | aql 999 Password. |
number | Numeric | Required | 15 | Telephone Number. Must start with 0 e.g. 01242111222 |
postcode | Alphanumeric | Required | 8 | Customer’s postcode. This must be sent in the format of Out-code space In-code i.e.: LS11 5DF, S9 5AD, S60 3ML. |
effective_date | Numeric | Required | - | Date on which the command associated with the listing is to be executed. Format used must be YYYY-MM-DD (where Y = Year, M = Month & D = Day) |
surname | Alphanumeric | Required | 50 | Name of the customer if residential or Business Name |
title | Alphanumeric | Optional | 20 | Title of the customer. |
forename | Alphanumeric | Optional | 20 | Forename of the customer. |
honours | Alphanumeric | Optional | 30 | Honours of the customer. |
business_suffix | Alphanumeric | Optional | 50 | Business suffix |
line_type | Alphanumeric | Optional | 30 | ** Line type. See below |
premises | Alphanumeric | Optional | 60 | Identifies premises on a thoroughfare i.e. house name and/or number. Example 24 and/or Bleak House |
thoroughfare | Alphanumeric | Optional | 55 | The thoroughfare name and type Examples: Byron Close, Suffolk Lane, and High Street. |
locality | Alphanumeric | Optional | 30 | Village or an area within a town and Town if possible. |
** This is for DDI/VoIP type number ranges or it basically will add a flag to show that the record which is being sent may not reflect the actual location of the caller. Options for the population of this field are EXT, DDI, FNET, or VOIP any of these possible mnemonic’s will flag to the Operator as well as an Emergency Authority who has the EISEC service. (This allows the Emergency Authority to see the name and address details we have for a customer at the time of a 999 call)
Output Parameters
Parameter | Value | Description |
---|---|---|
id | Numeric | ID of created record. |
Request
URL: https://999.aql.com/matilda/CeaseCustomer
Method: POST
Description: Used to remove the requested number at BT’s TDM system.
Parameter | Value | Required/ Optional | Max Length | Description |
---|---|---|---|---|
username | Alphanumeric | Required | - | aql 999 username. |
password | Alphanumeric | Required | - | aql 999 password. |
number | Numeric | Required | 15 | Telephone Number. Must start with 0 e.g. 01242111222 |
effective_date | Numeric | Required | - | Date on which the command associated with the listing is to be executed. Format used must be YYYY-MM-DD (where Y = Year, M = Month & D = Day) |
Output Parameters
Parameter | Value | Description |
---|---|---|
id | Numeric | ID of created record. |
Request
URL: https://999.aql.com/matilda/ModifyCustomer
Method: POST
Description: Used to modify the requested number’s customer details at BT’s TDM system.
Parameter | Value | Required/ Optional | Max Length | Description |
---|---|---|---|---|
username | Alphanumeric | Required | - | aql 999 username. |
password | Alphanumeric | Required | - | aql 999 Password. |
number | Numeric | Required | 15 | Telephone Number. Must start with 0 e.g. 01242111222 |
postcode | Alphanumeric | Required | 8 | Customer’s postcode. This must be sent in the format of Out-code space In-code i.e.: LS11 5DF, S9 5AD, S60 3ML. |
effective_date | Numeric | Required | - | Date on which the command associated with the listing is to be executed. Format used must be YYYY-MM-DD (where Y = Year, M = Month & D = Day) |
surname | Alphanumeric | Required | 50 | Name of the customer. |
title | Alphanumeric | Optional | 20 | Title of the customer. |
forename | Alphanumeric | Optional | 20 | Forename of the customer. |
honours | Alphanumeric | Optional | 30 | Honours of the customer. |
business_suffix | Alphanumeric | Optional | 50 | Business suffix |
line_type | Alphanumeric | Optional | 30 | ** Line type. See below |
premises | Alphanumeric | Optional | 60 | Identifies premises on a thoroughfare i.e. house name and/or number. Example 24 and/or Bleak House |
thoroughfare | Alphanumeric | Optional | 55 | The thoroughfare name and type Examples: Byron Close, Suffolk Lane, and High Street. |
locality | Alphanumeric | Optional | 30 | Village or an area within a town and Town if possible. |
** This is for DDI/VoIP type number ranges or it basically will add a flag to show that the record which is being sent may not reflect the actual location of the caller. Options for the population of this field are EXT, DDI, FNET, or VOIP any of these possible mnemonic’s will flag to the Operator as well as an Emergency Authority who has the EISEC service. (This allows the Emergency Authority to see the name and address details we have for a customer at the time of a 999 call)
Output Parameters
Parameter | Value | Description |
---|---|---|
id | Numeric | ID of created record. |
Request
URL: https://999.aql.com/matilda/ExportNumber
Method: POST
Description: Used initiate an export to another carrier at BT’s TDM system.
Parameter | Value | Required/ Optional | Max Length | Description |
---|---|---|---|---|
username | Alphanumeric | Required | - | aql 999 username. |
password | Alphanumeric | Required | - | aql 999 Password. |
number | Numeric | Required | 15 | Telephone Number. Must start with 0 e.g. 01242111222 |
postcode | Alphanumeric | Required | 8 | Customer’s postcode. This must be sent in the format of Out-code space In-code i.e.: LS11 5DF, S9 5AD, S60 3ML. |
effective_date | Numeric | Required | - | Date on which the command associated with the listing is to be executed. Format used must be YYYY-MM-DD (where Y = Year, M = Month & D = Day) |
cp_identifier | Numeric | Required | - | CUPID of importing CP. |
Output Parameters
Parameter | Value | Description |
---|---|---|
id | Numeric | ID of created record. |
Request
URL: https://999.aql.com/matilda/ImportNumber
Method: POST
Description: Used to confirm the import of a number from other carrier at BT’s TDM system.
Parameter | Value | Required/ Optional | Max Length | Description |
---|---|---|---|---|
username | Alphanumeric | Required | - | aql 999 username. |
password | Alphanumeric | Required | - | aql 999 Password. |
number | Numeric | Required | 15 | Telephone Number. Must start with 0 e.g. 01242111222 |
cp_identifier | Numeric | Required | - | CUPID of exporting CP. |
postcode | Alphanumeric | Required | 8 | Customer’s postcode. This must be sent in the format of Out-code space In-code i.e.: LS11 5DF, S9 5AD, S60 3ML. |
effective_date | Numeric | Required | - | Date on which the command associated with the listing is to be executed. Format used must be YYYY-MM-DD (where Y = Year, M = Month & D = Day) |
surname | Alphanumeric | Required | 50 | Name of the customer. |
title | Alphanumeric | Optional | 20 | Title of the customer. |
forename | Alphanumeric | Optional | 20 | Forename of the customer. |
honours | Alphanumeric | Optional | 30 | Honours of the customer. |
business_suffix | Alphanumeric | Optional | 50 | Business suffix |
line_type | Alphanumeric | Optional | 30 | ** Line type. See below |
premises | Alphanumeric | Optional | 60 | Identifies premises on a thoroughfare i.e. house name and/or number. Example 24 and/or Bleak House |
thoroughfare | Alphanumeric | Optional | 55 | The thoroughfare name and type Examples: Byron Close, Suffolk Lane, and High Street. |
locality | Alphanumeric | Optional | 30 | Village or an area within a town and Town if possible. |
** This is for DDI/VoIP type number ranges or it basically will add a flag to show that the record which is being sent may not reflect the actual location of the caller. Options for the population of this field are EXT, DDI, FNET, or VOIP any of these possible mnemonic’s will flag to the Operator as well as an Emergency Authority who has the EISEC service. (This allows the Emergency Authority to see the name and address details we have for a customer at the time of a 999 call)
Output Parameters
Parameter | Value | Description |
---|---|---|
id | Numeric | ID of created record. |
Request
URL: https://999.aql.com/matilda/GetRecordIDsByNumber
Method: POST
Description: Returns the ID numbers of all records associated with the requested phone number. Record ID numbers will be ordered from most recent to oldest.
Parameter | Value | Required/ Optional | Max Length | Description |
---|---|---|---|---|
username | Alphanumeric | Required | - | aql 999 username. |
password | Alphanumeric | Required | - | aql 999 Password. |
number | Numeric | Required | 15 | Telephone Number. Must start with 0 e.g. 01242111222 |
Output Parameters
Parameter | Value | Description |
---|---|---|
id | Numeric Array | List of record IDs separated by commas, ordered by most recent record to oldest, eg ‘id=135,141,156’. |
Request
URL: https://999.aql.com/matilda/GetRecordByID
Method: POST
Description: Returns all attributes of requested record.
Parameter | Value | Required/ Optional | Max Length | Description |
---|---|---|---|---|
username | Alphanumeric | Required | - | aql 999 username. |
password | Alphanumeric | Required | - | aql 999 Password. |
number | Numeric | Required | 15 | Telephone Number. Must start with 0 e.g. 01242111222 |
id | Numeric | Required | - | Record ID number |
Output Parameters
Parameter | Value | Description |
---|---|---|
id | Numeric | ID of record. |
created | Numeric | Date and time of when the request was made to aql 999. Format: YYYY-MM-DD HH:MM.SS.mmmmmm |
command | Alphanumeric | Command. (A, C, M, E, I) |
status | Alphanumeric | Record status: READY: Data captured and ready to send * PENDING: Data submitted COMPLETE: Request completed FAILED: Request failed |
postcode | Alphanumeric | Customer’s postcode. |
effective_date | Numeric | Date on which the command associated with the listing is to be executed. Format used is YYYY-MM-DD (where Y = Year, M = Month & D = Day) |
surname | Alphanumeric | Name of the customer. |
title | Alphanumeric | Title of the customer. |
forename | Alphanumeric | Forename of the customer. |
honours | Alphanumeric | Honours of the customer. |
business_suffix | Alphanumeric | Business suffix |
line_type | Alphanumeric | ** Line type. See below |
premises | Alphanumeric | Identifies premises on a thoroughfare i.e. house name and/or number. Example 24 and/or Bleak House |
thoroughfare | Alphanumeric | The thoroughfare name and type Examples: Byron Close, Suffolk Lane, and High Street. |
locality | Alphanumeric | Village or an area within a town and Town if possible. |
cp_identifier | Numeric | CUPID. |
ret_code | Numeric | Return code after processing record. |
err_msg | Alphanumeric | Any error message received. |
* All 999 update requests are collated and sent in batches periodically.
Error Response
Msg Num. | Msg Text | Actions to be taken |
---|---|---|
13 | Telephone Number Missing. | DATA DELIVERY TEAM TO BUILD RANGE AND RETRY IF APPLICABLE, OR CP TO CORRECT ENTRY |
14 | Telephone Number Invalid. | DATA DELIVERY TEAM TO BUILD RANGE AND CP TO RESUBMIT |
18 | OLO does not own Entry. | CP TO INVESTIGATE - IF DISPUTED CONTACT DATA DELIVERY TEAM |
19 | Invalid OLO. | DATA DELIVERY TEAM TO CHECK VALIDITY OF CP AND CP TO RESEND IF APPLICABLE. |
28 | Renumber in Invalid Range. | DATA DELIVERY TEAM TO BUILD RANGE IF APPLICABLE AND REQUEST CP TO RESUBMIT - OR CP TO CORRECT ENTRY |
33 | Cancellation Successful. | NO ACTION |
34 | Cancellation Invalid. | CP TO SUBMIT CORRECTION AS AMENDMENT |
35 | Cancellation Unsuccessful. | CP TO SUBMIT CORRECTION AS AMENDMENT |
37 | New Record Successful. | NO ACTION |
38 | Cease Record Successful. | NO ACTION |
39 | NAA Record Successful. | NO ACTION |
40 | Renumber Successful. | NO ACTION |
43 | Export/Import OLO Mismatch. | CP TO CORRECT AND RESUBMIT. THIS APPLIES TO EITHER THE GAINING OR LOSING CP AS TDM IS UNABLE TO DISTINGUISH WHICH IS CORRECT / INCORRECT |
45 | Import Record is Missing. | GAINING CP TO RE-SUBMIT |
46 | Import is 28 days overdue. | LAST WARNING BEFORE DELETION - CP TO RESUBMIT |
47 | Export Record is Missing. | LOSING CP TO RESUBMIT |
48 | Export is 28 days Overdue. | LAST WARNING BEFORE DELETION – CP TO RESUBMIT |
49 | Export removed, no Import. | CP TO RESUBMIT UNLESS IMPORT FROM BT. IN WHICH CASE ANY FUTURE CHANGES SHOULD BE DEALT WITH AS AN AMEND |
50 | Import removed, no Export. | CP TO RESUBMIT UNLESS IMPORT FROM BT. IN WHICH CASE ANY FUTURE CHANGES SHOULD BE DEALT WITH AS AN AMEND |
53 | Export/Import dates differ. | WARNING ONLY - WILL BE PROCESSED ON LATEST DATE |
55 | Export Record Successful. | NO ACTION |
56 | Import Record Successful. | NO ACTION |
60 | Postcode not found. | DATA DELIVERY TEAM TO CHECK POSTCODE WITH ROYALMAIL AND RETRY IF VALID. IF POSTCODE IS INVALID LO WILL BE NOTIFIED BY DATA DELIVERY TEAM, CP TO THEN CORRECT AND THEN RESUBMIT |
61 | Postcode is acceptable. | NO ACTION |
73 | Record Received. | NO ACTION |
75 | More Recent Record exists. | CP TO INVESTIGATE |
100 | Blank record. | BLANK RECORD, CP TO CORRECT AND RESUBMIT |
101 | Invalid record type. | RECORD TYPE MISSING, CP TO CORRECT AND RESUBMIT |
102 | Feed Type is missing. | COMMAND VALUE NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
103 | Feed Type is incorrect. | INVALID COMMAND VALUE IN RECORD, CP TO CORRECT AND RESUBMIT |
104 | OLO ID is missing. | CP ID NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
105 | Invalid OLO ID. | INVALID CHARACTER IN CP ID FIELD, CP TO CORRECT AND RESUBMIT |
106 | OLO ID in record not owned by OLO in header. | CP ID IN RECORD NOT OWNED BY CP IN HEADER, CP TO CORRECT AND RESUBMIT |
107 | Reference ID is missing. | CP TRANSACTION ID NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
108 | Reference ID incorrect. | INVALID CHARACTERS IN CP TRANSACTION ID, CP TO CORRECT AND RESUBMIT |
109 | System Routing Flags is missing. | SYSTEM ROUTING FLAG NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
110 | System Routing Flags incorrect. | INVALID CHARACTERS IN SYSTEM ROUTING FLAGS, CP TO CORRECT AND RESUBMIT |
111 | 999 routing Flag set to ‘N’. | FLAG 1 OR 2 IN SYSTEM ROUTING FLAGS FIELD MUST BE SET TO 'Y', CP TO CORRECT AND RESUBMIT |
112 | NI only record found in file. | NO NI-ONLY RECORDS ARE ACCEPTED VIA TELESTO, CP TO CORRECT AND RESUBMIT |
113 | Invalid Effective Date. | DATE INCORRECT, CP TO CORRECT AND RESUBMIT |
114 | Title is incorrect. | INVALID VALUE IN TITLE FIELD, CP TO CORRECT AND RESUBMIT |
115 | Initials / Forename is missing. | INITIALS / FORENAME NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
116 | Initials / Forename is incorrect. | INVALID VALUE IN INITIALS / FORENAME FIELD, CP TO CORRECT AND RESUBMIT |
117 | Name is missing. | NAME VALUE NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
118 | Name is incorrect. | INVALID CHARACTERS IN NAME FIELD, CP TO CORRECT AND RESUBMIT |
119 | Honours is incorrect. | INVALID VALUE IN HONOURS FIELD, CP TO CORRECT AND RESUBMIT |
120 | Business Suffix is incorrect. | INVALID VALUE IN BUSINESS SUFFIX FIELD, CP TO CORRECT AND RESUBMIT |
121 | Premises is incorrect. | INVALID VALUE IN PREMISES FIELD, CP TO CORRECT AND RESUBMIT |
122 | Thoroughfare is incorrect. | INVALID VALUE IN THOROUGHFARE FIELD, CP TO CORRECT AND RESUBMIT |
123 | Locality is incorrect. | INVALID VALUE IN LOCALITY FIELD, CP TO CORRECT AND RESUBMIT |
124 | Post Code is missing. | POST CODE NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
125 | Post Code is incorrect. | INVALID CHARACTERS IN POST CODE FIELD, CP TO CORRECT AND RESUBMIT |
126 | Telephone number not present in record. | TELNO VALUE NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
127 | Telephone Number Invalid. | INVALID CHARACTERS IN TELNO FIELD, CP TO CORRECT AND RESUBMIT |
128 | New Telephone number is missing. | NEW TELEPHONE NUMBER IS NOT PRESENT IN THE RECORD, CP TO CORRECT AND RESUBMIT |
129 | New Telephone number is incorrect. | NEW TELEPHONE NUMBER CONTAINS INVALID CHARACTERS, CP TO CORRECT AND RESUBMIT |
130 | New OLO ID is missing. | NEW CP ID VALUE NOT PRESENT IN RECORD, CP TO CORRECT AND RESUBMIT |
131 | New OLO ID is incorrect. | INVALID CHARACTERS IN SECOND CP FIELD, CP TO CORRECT AND RESUBMIT |
132 | Unknown Error. | CP TO CONTACT DATA DELIVERY TEAM |