How to Test RukkyHub API Requests Using the API Sandbox
Home / How to Test RukkyHub API Requests Using the API Sandbox
Home / How to Test RukkyHub API Requests Using the API Sandbox
Learn how to use the RukkyHub API Sandbox to test API requests, inspect JSON responses, troubleshoot integration errors, and prepare your application before using live API credentials.
The RukkyHub API Sandbox helps developers test API requests before connecting an application to live services. It provides a testing interface with pre-built request fields and code examples for supported API actions.
Using the sandbox during development helps you check request parameters, authentication, and response handling before deploying your integration.
The API Sandbox is an online testing environment available through the RukkyHub Developer Portal. It lets you enter an API key, select a supported action, supply the required parameters, and inspect the response.
Test API keys use the rk_test_ prefix and simulate purchase responses. Live API keys use the rk_live_ prefix and can execute real requests. Always confirm which type of key you are using before sending a request.
Use the official developer portal and keep your API credentials private. Do not share your key with other people or include it in public screenshots.
If you are new to the API, start with an action that does not place an order or initiate a purchase.
Two useful starting points are:
These requests help you check whether your authentication and basic request structure are working before testing more complex actions.
Each API action has its own required parameters. The sandbox displays fields for the selected action, where applicable.
Check spelling, parameter names, and required values before sending the request. A missing or incorrectly named parameter can cause an API error.
Use the sandbox's request button to submit your test. Review the returned JSON response and check whether it contains the expected information or an error message.
When testing, pay attention to:
A successful test response is useful evidence that the request was accepted in the test environment. It does not, by itself, guarantee that a live transaction will succeed.
The sandbox provides code examples for supported actions in languages including cURL, PHP, Python, and JavaScript. Use the example for your chosen action as a starting point for your own integration.
The RukkyHub API uses a single endpoint:
https://developers.rukkyhub.com/api/v1
Requests use the POST method and form-encoded parameters. The recommended authentication method is the X-API-KEY HTTP header.
For example, a basic balance request using cURL has this structure:
curl -X POST https://developers.rukkyhub.com/api/v1 \ -H "X-API-KEY: YOUR_TEST_API_KEY" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "action=balance"
Replace the placeholder with an appropriate test key stored securely. Never place a live secret key in public frontend code or a public repository.
Testing should include more than successful requests. Check how your application responds when the API returns an error.
Use the official RukkyHub API Error Codes page to understand documented error messages.
After your initial request works, test each API action your application actually needs. For example, an SMM integration may need to list services, submit orders, and check order status. A VTU integration will require the relevant VTU actions and permissions.
Make sure your API key has the appropriate scopes and your API access plan supports the actions you intend to use.
For purchase-related actions, verify the documented parameters and transaction requirements. Test keys simulate purchase responses; do not assume that a test response proves a real purchase has been completed.
Before deploying your application:
Live keys can execute real requests. Never use a live key casually for experiments that could create orders or initiate purchases.
The API key is rejected.
Check that the key is valid, copied correctly, and suitable for the environment you are testing. Review the authentication documentation if the problem persists.
The API returns an invalid action error.
Check the action name against the official API reference and ensure the required action parameter is included.
The request is missing required fields.
Review the fields displayed for the selected action and compare them with the official API reference. Required parameters differ between actions.
An action is not permitted.
Check the API key's scopes and confirm that your plan supports the requested feature.
A test response differs from a live result.
Test keys simulate purchase responses. Live processing may depend on account status, service availability, valid transaction details, and other live conditions.
Does the API Sandbox use real transactions?
Test keys with the rk_test_ prefix simulate purchase responses. Live keys with the rk_live_ prefix can execute real requests.
Can I use the sandbox to test every API action?
The sandbox provides a testing interface for supported actions. Check the sandbox and API reference for the specific actions and parameters available.
Does a successful sandbox test guarantee live success?
No. A test confirms how your request behaves in the test environment. Live requests may depend on live account access, service availability, transaction details, and other conditions.
Where can I get help if my test keeps failing?
Review the official authentication guide, API reference, and error codes. If you contact support, provide the action, the error message, and relevant non-sensitive request details. Do not send your complete API key or PIN.
Our support team is ready to assist you.
For instant reply, reach out to our live chat.
Login to Contact SupportSecure payment gateways, automation providers, and infrastructure.