Skip to main content
Version: 1.0

Error codes

REST API reference for IMEILookup: error format and error codes.

Error Response Format​

Application errors follow this JSON structure:

{
"message": "ERROR_CODE",
"statusCode": 400
}

The message field is an application error code, or an array of codes or validation messages, so handle both a string and an array. Some responses also include an error field with the HTTP status text. The statusCode field is the HTTP status. Requests rejected before they reach the API, for example by the edge network, can use a different format.

Error Codes Reference​

INVALID_API_KEY (401) is returned only by GET /order/browser when the key in the URL is not recognised. A missing or empty key there returns 400 key should not be empty.

TAC_FAILED and INVALID_IMEI_PROVIDED (single and browser orders) and INVALID_IMEI (bulk orders) are identifier validation errors. See Identifiers for what each means and what is not yet confirmed.

Common Errors (all header-key endpoints)​

HTTPCodeMeaning
401INVALID_TOKENThe key format is valid but the key is not recognised
403LOGIN_AGAINThe access-key header is missing, empty or not a valid key format
401YOUR_IP_IS_NOT_PERMITEDYour IP is not permitted, login to dashboard and add your IP to the allow-list
403YOU_ARE_NOT_ALLOWEDYou are not allowed for this action
403YOU_ARE_BLOCKEDYou are blocked, contact admin
403PENDING_FOR_APPROVALYour account is pending for approval

GET /order — List Orders​

HTTPCodeMeaning
400PAGE_NUMBER_INVALIDPage number is invalid
400PAGE_SIZE_INVALIDPage size is invalid
400INVALID_PAGE_SIZEPage size cannot exceed 5000
400ORDER_STATUS_INVALIDOrder status not valid
400INVALID_DATE_PROVIDEDInvalid date provided
400SERVICE_ID_INVALIDService ID not valid
404SERVICE_NOT_FOUNDService not found
400SEARCH_MUST_BE_LISTSearch must be a list
400FILTER_VALUE_INVALIDFilter value is invalid
400INVALID_BATCH_NAME_FILTERInvalid batch name filter
400SUBUSERS_MUST_BE_LISTSubusers must be a list
400SUBUSERS_ARE_INVALIDSubusers are invalid
400INVALID_SORT_VALUEInvalid sort value
400INVALID_ORDER_TYPEInvalid order type
403CANNOT_VIEW_HISTORYYou cannot view history, contact provider

POST /order — Place Bulk Order​

HTTPCodeMeaning
400INVALID_IMEIInvalid IMEI(s) provided
400SERVICE_ID_MUST_BE_NUMBERService ID must be a number
400INVALID_BATCH_NAMEInvalid batch name
400BATCH_NAME_REQUIREDBatch name is required
400IMEI_MUST_BE_ARRAYIMEIs must be provided in an array
400IMEI_REQUIREDIMEI is required
403CREDIT_LIMIT_REACHEDCredit limit reached
403LOW_CREDITLow credit
403SERVICE_LIMIT_EXCEEDEDService limit exceeded
404SERVICE_NOT_FOUNDService not found
405SERVICE_IS_DISABLEDService is disabled

POST /order/single — Place Single Order​

HTTPCodeMeaning
400TAC_FAILEDTAC validation failed
400INVALID_IMEI_PROVIDEDInvalid IMEI provided
400SERVICE_ID_MUST_BE_NUMBERService ID must be a number
400BATCH_NAME_REQUIREDBatch name is required
400IMEI_REQUIREDIMEI is required
403CREDIT_LIMIT_REACHEDCredit limit reached
403LOW_CREDITLow credit
404SERVICE_NOT_FOUNDService not found
405SERVICE_IS_DISABLEDService is disabled

GET /order/single — Get Single Order​

HTTPCodeMeaning
400INVALID_ORDER_IDInvalid order ID
404ORDER_NOT_FOUNDOrder not found

GET /batch — List Batches​

HTTPCodeMeaning
400INVALID_PAGE_NUMBERInvalid page number
400PAGE_NUMBER_INVALIDPage number is invalid
400INVALID_PAGE_SIZEPage size cannot exceed 5000
400PAGE_SIZE_INVALIDPage size is invalid
400MIN_PAGE_SIZEPage size minimum is 5
400BATCH_STATUS_INVALIDBatch status not valid
400SERVICE_ID_INVALIDService ID not valid
400SUBUSERS_MUST_BE_LISTSubusers must be a list
400SUBUSERS_ARE_INVALIDSubusers are invalid
400SEARCH_VALUE_IS_INVALIDSearch value is invalid
400INVALID_BATCH_ID_PROVIDEDInvalid batch ID provided
400FROM_DATE_REQUIREDFrom date is required
400INVALID_DATE_PROVIDEDInvalid date provided
400TO_DATE_REQUIREDTo date is required
400INVALID_SORT_VALUEInvalid sort value

GET /service — List Services​

HTTPCodeMeaning
400PAGE_NUMBER_INVALIDPage number is invalid
400PAGE_NUMBER_REQUIREDPage number is required
400PAGE_SIZE_REQUIREDPage size is required
400PAGE_SIZE_INVALIDPage size is invalid
400FILTER_VALUE_INVALIDFilter value is invalid

Authentication​

Most REST endpoints expect your API key in the access-key header. GET /order/browser is the one exception and takes the key in the key query parameter. The IP allow-list applies to all REST endpoints, including GET /order/browser. Add your server's IP address to the allow-list in the dashboard. See the Authentication guide.

Security Scheme Type:

apiKey

Header parameter name:

access-key