Debugging Guide¶
Welcome to the ParityVend Debugging Guide! This resource is designed to help you resolve any errors or challenges you might encounter while integrating ParityVend or working with its API. Whether you’re new to ParityVend or a seasoned user, this guide provides valuable insights and practical tips to ensure a smooth and efficient experience.
This guide is structured to provide clear and concise explanations of all error messages returned by the ParityVend API, along with actionable debugging tips and helpful resources. We’ll cover everything from API key issues and quota limitations to unauthorized access and testing mode secrets.
ParityVend API: Error responses¶
ParityVend API error messages are crafted for clarity and consistency. You’ll always encounter the exact responses documented here, empowering you to pinpoint issues with ease. Every error follows a structured format:
"status"
: Always set to"error"
, leaving no room for ambiguity."error_name"
: A unique identifier for the specific issue encountered."error_msg"
: A concise explanation of the error, paired with a helpful link to ParityVend’s documentation for further context.
ParityVend’s error-response system prioritizes clarity and ease of use. Consistent formatting and detailed explanations ensure a quick understanding of errors. Embedded documentation links streamline troubleshooting. The responses always match documented examples, instilling confidence in API interactions and debugging.
ParityVend prioritizes user-friendliness. Doc links within error messages provide direct access to relevant resources, eliminating separate searches. This focus on clarity and structure fosters a smooth development experience.
To handle errors effectively, familiarize yourself with documented error codes and explanations. Implement robust error-handling mechanisms and leverage ParityVend’s comprehensive documentation. By utilizing these features, you can approach API development with confidence, knowing you have the tools to navigate any challenges.
incorrect_request¶
{"status": "error", "error_name": "incorrect_request", "error_msg": "Incorrect or invalid fields. View more information: https://www.ambeteco.com/ParityVend/docs/debugging_guide.html#incorrect_request"}
This error is returned when the request to the endpoint either does not have the required arguments, or the arguments are malformed.
Debugging Tips¶
To debug and resolve this issue, you need to ensure that the input arguments are presented and valid for the given endpoint.
Refer to the API Reference to find information about the required arguments for the given endpoint and their format or type. Check if the arguments you provide to the endpoint are valid and follow the format as described in the API Reference.
Check if there are any typos in the URL or arguments. For example, trailing spaces, double slashes, or any other accidental typos or mistakes.
Example of a double slash mistake:
example//double-slash
instead of the correctexample/double-slash
Example of a space mistake:
example/ api-key/
instead of the correctexample/api-key/
api_key_invalid¶
{"status": "error", "error_name": "api_key_invalid", "error_msg": "This API key does not exist or is invalid. Please change your API key. View more information: https://www.ambeteco.com/ParityVend/docs/debugging_guide.html#api-key-invalid"}
This error is returned when the API key you provided to the endpoint either does not exist or is invalid.
Debugging Tips¶
To debug and resolve this issue, you need to ensure that the API key you provide is valid.
Refer to the API Reference to find information about the required API key for the given endpoint. Check if the endpoint needs a
private_key
or apublic_key
.Check if you use the correct API key. Refer to the “Access API keys” section to learn how to access API keys for your project.
Check if there are any typos in the API key or URL. For example, trailing spaces, double slashes, or any other accidental typos or mistakes.
Example of a double slash mistake:
example//double-slash
instead of the correctexample/double-slash
Example of a space mistake:
example/ api-key/
instead of the correctexample/api-key/
over_quota¶
{"status": "error", "error_name": "over_quota", "error_msg": "Your account has exceeded the quota. Upgrade your billing plan to continue. View more information: https://www.ambeteco.com/ParityVend/docs/debugging_guide.html#over-quota"}
This error is returned when your ParityVend account has exceeded the quota. To fix this, upgrade your plan to get more quota, or contact our sales team to discuss a custom plan that fits your needs.
Hint
You can use the get-quota-info
endpoint to get up-to-date information about your account’s quota. Refer to the API reference for more information.
paid_plan_required¶
{"status": "error", "error_name": "paid_plan_required", "error_msg": "Access to this endpoint or feature is available for paid plans only. View more information: https://www.ambeteco.com/ParityVend/docs/debugging_guide.html#paid-plan-required"}
This error is returned when you are on a “free” plan, and try to access a feature or endpoint that is available only to paid ParityVend plans. To fix this, upgrade your plan to get more quota, or contact our sales team to discuss a custom plan that fits your needs.
Currently, the only endpoint that can return this error is get-exchange-rate-info
, which is only available to accounts on paid plans. Refer to the API reference for more information.
not_identifed¶
{"status": "error", "error_name": "not_identifed", "error_msg": "No country was found for the given IP. View more information: https://www.ambeteco.com/ParityVend/docs/debugging_guide.html#not-identifed"}
This error is returned when the ParityVend API is not able to identify the country of the given IP address. If you believe that this is a mistake, feel free to contact us so that we can include any absent IP addresses in the ParityVend’s database.
Note
This error is only returned by the get-country
and get-country-from-ip
endpoints.
invalid_testing_secret¶
{"status": "error", "error_name": "invalid_testing_secret", "error_msg": "This testing secret is invalid. Please make sure your testing mode secret is correct. View more information: https://www.ambeteco.com/ParityVend/docs/debugging_guide.html#invalid-testing-secret"}
This error is returned when you are using the ParityVend Testing Mode and the testing_secret
parameter is invalid or absent.
Debugging Tips¶
To debug and resolve this issue, you need to ensure that the testing_secret
you provide is valid.
Refer to the ParityVend Testing Mode to learn more about the
testing_secret
.Check if you use the correct
testing_secret
. Refer to the “Access API keys” section to learn how to access the testing secret for your project.Check if there are any typos in the testing secret or URL. For example, trailing spaces, double slashes, or any other accidental typos or mistakes.
Example of a double slash mistake:
example//double-slash
instead of the correctexample/double-slash
Example of a space mistake:
example/ api-key/
instead of the correctexample/api-key/