ErrorCause
Stay organized with collections
Save and categorize content based on your preferences.
Cause code used in error responses.
Enums |
ERROR_CAUSE_UNSPECIFIED |
The cause of the error is unknown or is not specified below. |
INVALID_NUMBER |
The phone number provided in the request is invalid. This error cause should be used for all requests that failed due to a bad phone number (e.g., the 404 NOT FOUND error). |
INCOMPATIBLE_PLAN |
The plan included in the request is incompatible with the user. See purchase plan API call in data plan agent API specification. |
DUPLICATE_TRANSACTION |
The requested transaction is a duplicate of a previous transaction. See purchase plan API call in data plan agent API specification. |
BAD_REQUEST |
Original request was malformed. |
BAD_CPID |
The CPID provided in the request has expired or is otherwise unrecognized. |
BACKEND_FAILURE |
While the DPA itself is operational, the backend necessary to complete the request is not. |
REQUEST_QUEUED |
The DPA has queued a request for processing but the outcome of the request is still pending. The client may retry the request to retrieve the result of the request. The DPA will return REQUEST_QUEUED to requests that arrive before processing of the original request has completed. |
USER_ROAMING |
The CPID endpoint or the DPA received a request for a user who is currently roaming. |
USER_OPT_OUT |
User has not opted in the program. |
SIM_RELOAD_REQUIRED |
The phone number provided in the request is in a "grace period" where a subscriber can receive incoming calls but cannot use mobile data. User has to top up credits or buy data packs to get out of this state. |
TOO_MANY_REQUESTS |
GTAF is making too many requests to the DPA. |
PAYMENT_MISSING |
The operator does not have a way to charge the user for purchase. |
INVALID_IMSI |
The IMSI provided is invalid or inactive |
INELIGIBLE_FOR_SERVICE |
User is not eligible for the requested service |
SERVICE_UNAVAILABLE |
Requested service is unavailable. Please retry later |
SERVICE_NOT_SUBSCRIBED |
Service is not subscribed by user |
ACCOUNT_SUSPENDED |
User account is inactive or suspended |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-03 UTC."],[[["\u003cp\u003eThis documentation outlines the various cause codes used in error responses within the system.\u003c/p\u003e\n"],["\u003cp\u003eThese codes provide specific reasons for request failures, such as invalid phone numbers, incompatible plans, or backend issues.\u003c/p\u003e\n"],["\u003cp\u003eThey are essential for troubleshooting and understanding the nature of errors encountered during API interactions.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these codes to implement appropriate error handling logic in their applications.\u003c/p\u003e\n"]]],[],null,["# ErrorCause\n\nCause code used in error responses.\n\n| Enums ||\n|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ERROR_CAUSE_UNSPECIFIED` | The cause of the error is unknown or is not specified below. |\n| `INVALID_NUMBER` | The phone number provided in the request is invalid. This error cause should be used for all requests that failed due to a bad phone number (e.g., the 404 NOT FOUND error). |\n| `INCOMPATIBLE_PLAN` | The plan included in the request is incompatible with the user. See purchase plan API call in data plan agent API specification. |\n| `DUPLICATE_TRANSACTION` | The requested transaction is a duplicate of a previous transaction. See purchase plan API call in data plan agent API specification. |\n| `BAD_REQUEST` | Original request was malformed. |\n| `BAD_CPID` | The CPID provided in the request has expired or is otherwise unrecognized. |\n| `BACKEND_FAILURE` | While the DPA itself is operational, the backend necessary to complete the request is not. |\n| `REQUEST_QUEUED` | The DPA has queued a request for processing but the outcome of the request is still pending. The client may retry the request to retrieve the result of the request. The DPA will return REQUEST_QUEUED to requests that arrive before processing of the original request has completed. |\n| `USER_ROAMING` | The CPID endpoint or the DPA received a request for a user who is currently roaming. |\n| `USER_OPT_OUT` | User has not opted in the program. |\n| `SIM_RELOAD_REQUIRED` | The phone number provided in the request is in a \"grace period\" where a subscriber can receive incoming calls but cannot use mobile data. User has to top up credits or buy data packs to get out of this state. |\n| `TOO_MANY_REQUESTS` | GTAF is making too many requests to the DPA. |\n| `PAYMENT_MISSING` | The operator does not have a way to charge the user for purchase. |\n| `INVALID_IMSI` | The IMSI provided is invalid or inactive |\n| `INELIGIBLE_FOR_SERVICE` | User is not eligible for the requested service |\n| `SERVICE_UNAVAILABLE` | Requested service is unavailable. Please retry later |\n| `SERVICE_NOT_SUBSCRIBED` | Service is not subscribed by user |\n| `ACCOUNT_SUSPENDED` | User account is inactive or suspended |"]]