API Overview
Admin API for managing orders, payments, users, tickets, and cancel tasks. Every request must include a valid API key.
Base URL
https://rentalpanelbd.com/adminapi/v2
Authentication
Send your token in the X-Api-Key header on every request.
Rate limits
300 requests per panel per minute. Exceeding this returns HTTP 429.
Authentication
All API requests require authentication using an API key in the X-Api-Key header.
X-Api-Key: your-api-token
Content type
All POST requests should use JSON.
Content-Type: application/json
Standard response
Every endpoint returns this envelope.
{
"data": {},
"error_message": "",
"error_code": 0
}
How to configure
Generate a token in your SMM panel admin, then call your panel domain. Need extra endpoints? Ask support and we will add them.
Open panel admin
Log in to your SMM panel admin. From RentalPanelBD: Dashboard → Services → Admin Accounts → Login to Admin Panel.
Open API & DOCS
In the SMM panel admin menu, select API & DOCS. This is where Admin API keys are generated and managed.
Generate or manage your key
Create a key (or rotate an existing one) and store it securely. Send it on every request as X-Api-Key. Never put it in client-side code.
Call your panel URL
Use https://your-domain.com/adminapi/v2 with Content-Type: application/json. Docs: rentalpanelbd.com/adminapi/v2. Limit: 300 requests/minute.
Response Format & Status Codes
Use HTTP status together with error_code to handle success and failure consistently.
HTTP status codes
| Status | Description | Error code |
|---|---|---|
| 200 | Success | 0 |
| 400 | Bad Request — validation error | 25 |
| 401 | Unauthorized — invalid API key | 401 |
| 404 | Not Found — resource not found | 40 |
| 429 | Too Many Requests — rate limit exceeded | 429 |
| 500 | Internal Server Error | 500 |
Success example
{
"data": {
"count": 100,
"list": [],
"pagination": {
"prev_page_href": null,
"next_page_href": "https://rentalpanelbd.com/adminapi/v2/orders?offset=100&limit=100",
"offset": 0,
"limit": 100
}
},
"error_message": "",
"error_code": 0
}
Error example
{
"data": [],
"error_message": "Invalid API key or inactive admin",
"error_code": 401
}
Orders Endpoints
List, inspect, update, resend, partial, and cancel orders.
| Method | Endpoint | Description | Status |
|---|---|---|---|
| GET | /orders | Get order list with filters | 200 |
| GET | /orders/{order_id} | Get single order details | 200 |
| POST | /orders/pull | Pull pending orders | 200 |
| POST | /orders/{order_id}/edit-link | Edit order link | 200 |
| POST | /orders/resend | Resend failed orders | 200 |
| POST | /orders/change-status | Change order status | 200 |
| POST | /orders/{order_id}/set-partial | Set order partial | 200 |
| POST | /orders/{order_id}/edit-start-count | Update order start counter | 200 |
| POST | /orders/request-cancel | Request order cancellation | 200 |
| POST | /orders/cancel | Cancel and refund orders | 200 |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | string | Optional | Comma-separated order IDs |
| external_order_ids | string | Optional | Comma-separated external order IDs |
| created_from | timestamp | Optional | Start date timestamp |
| created_to | timestamp | Optional | End date timestamp |
| order_status | string | Optional | pending, inprogress, processing, completed, partial, canceled, error, fail |
| service_ids | string | Optional | Comma-separated service IDs |
| user | string | Optional | Username filter |
| provider | string | Optional | Provider name filter |
| link | string | Optional | Link filter |
| offset | integer | Optional | Pagination offset (default: 0) |
| limit | integer | Optional | Pagination limit (max: 1000) |
| sort | string | Optional | date-desc, date-asc |
Example request
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/orders?limit=10&order_status=completed&sort=date-desc"
Example response
{
"data": {
"count": 100,
"list": [
{
"id": 1911745,
"external_id": "",
"user": "example",
"creation_type": "new_order_form",
"charge": {
"value": "10.23",
"currency_code": "USD",
"formatted": "10.23"
},
"link": "https://example.com/order-1911745",
"order_buttons": [],
"start_count": 0,
"quantity": 168,
"service_id": 839,
"service_type": "",
"service_name": "Youtube Likes | Instant | 5k/H | HD | NR",
"provider": "",
"status": "completed",
"remains": 0,
"is_autocomplete": false,
"is_active_autocomplete": false,
"created": "2025-08-25 02:19:53",
"created_timestamp": 1756022993,
"mode": "auto",
"ip_address": "",
"actions": {
"details": true,
"resend": false,
"edit": false,
"set_start_count": false,
"set_remains": false,
"refill": false,
"disable_refill": false,
"set_partial": false,
"cancel_and_refund": false,
"set_status": true,
"set_pending": true,
"set_inprogress": true,
"set_processing": true,
"set_completed": false,
"request_cancel": false
}
}
],
"pagination": {
"prev_page_href": null,
"next_page_href": "https://rentalpanelbd.com/adminapi/v2/orders?offset=100&limit=100",
"offset": 0,
"limit": 100
}
},
"error_message": "",
"error_code": 0
}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| order_id | integer | Required | Order ID |
Example request
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/orders/1911745"
Example response
{
"data": {
"id": 1911745,
"external_id": "",
"user": "example",
"charge": {
"value": "10.23",
"currency_code": "USD",
"formatted": "10.23"
},
"link": "https://example.com/order-1911745",
"start_count": 0,
"quantity": 168,
"service_id": 839,
"service_name": "Youtube Likes | Instant | 5k/H | HD | NR",
"status": "completed",
"remains": 0,
"created": "2025-08-25 02:19:53",
"created_timestamp": 1756022993,
"mode": "auto"
},
"error_message": "",
"error_code": 0
}
Error response
{
"data": [],
"error_message": "Order not found",
"error_code": 404
}
Retrieves pending orders waiting to be processed. No request body is required.
Example request
curl -X POST -H "X-Api-Key: your-api-token" \ -H "Content-Type: application/json" \ "https://rentalpanelbd.com/adminapi/v2/orders/pull"
Example response
{
"data": {
"count": 1,
"list": [
{
"id": 1911745,
"link": "https://example.com/order-1911745",
"quantity": 168,
"service_id": 839,
"status": "pending"
}
]
},
"error_message": "",
"error_code": 0
}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| order_id | integer | Required | Order ID |
Request body
{
"link": "https://example.com/updated-link"
}
| Field | Type | Required | Description |
|---|---|---|---|
| link | string | Required | New order target URL |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"link":"https://example.com/updated-link"}' \
"https://rentalpanelbd.com/adminapi/v2/orders/1911745/edit-link"
Example response
{
"data": {
"id": 1911745,
"link": "https://example.com/updated-link"
},
"error_message": "",
"error_code": 0
}
Resends failed or error orders to the provider.
Request body
{
"ids": "1911745,1911746"
}
| Field | Type | Required | Description |
|---|---|---|---|
| ids | string | Required | Comma-separated order IDs |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"ids":"1911745"}' \
"https://rentalpanelbd.com/adminapi/v2/orders/resend"
Example response
{
"data": {
"ids": [1911745],
"skipped_ids": []
},
"error_message": "",
"error_code": 0
}
Request body
{
"ids": "1,2,3",
"status": "completed"
}
| Field | Type | Required | Description |
|---|---|---|---|
| ids | string | Required | Comma-separated order IDs |
| status | string | Required | pending, inprogress, processing, completed |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"ids":"1911745","status":"completed"}' \
"https://rentalpanelbd.com/adminapi/v2/orders/change-status"
Example response
{
"data": {
"ids": [1911745],
"status": "completed",
"skipped_ids": []
},
"error_message": "",
"error_code": 0
}
Marks the order as partial using the remaining quantity and refunds the unused amount.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| order_id | integer | Required | Order ID |
Request body
{
"remains": 50
}
| Field | Type | Required | Description |
|---|---|---|---|
| remains | integer | Required | Remaining quantity to keep unfinished |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"remains":50}' \
"https://rentalpanelbd.com/adminapi/v2/orders/1911745/set-partial"
Example response
{
"data": {
"id": 1911745,
"remains": 50,
"status": "partial"
},
"error_message": "",
"error_code": 0
}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| order_id | integer | Required | Order ID |
Request body
{
"start_counter": 1000
}
| Field | Type | Required | Description |
|---|---|---|---|
| start_counter | integer | Required | Start counter value |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"start_counter":1000}' \
"https://rentalpanelbd.com/adminapi/v2/orders/1911745/edit-start-count"
Example response
{
"data": {
"id": 1911745,
"start_counter": 1000
},
"error_message": "",
"error_code": 0
}
Error response
{
"data": [],
"error_message": "Order not found",
"error_code": 404
}
Creates a cancellation request for the given orders. Use /cancel/pull to retrieve pending cancel tasks.
Request body
{
"ids": "1911745,1911746"
}
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"ids":"1911745"}' \
"https://rentalpanelbd.com/adminapi/v2/orders/request-cancel"
Example response
{
"data": {
"ids": [1911745],
"skipped_ids": []
},
"error_message": "",
"error_code": 0
}
Cancels the orders immediately and refunds remaining unused charge to the user.
Request body
{
"ids": "1911745,1911746"
}
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"ids":"1911745"}' \
"https://rentalpanelbd.com/adminapi/v2/orders/cancel"
Example response
{
"data": {
"ids": [1911745],
"skipped_ids": []
},
"error_message": "",
"error_code": 0
}
Payments Endpoints
List payments and add manual top-ups, including optional referral commission.
| Method | Endpoint | Description | Status |
|---|---|---|---|
| GET | /payments | Get payment list with filters | 200 |
| POST | /payments/add | Add payment for user (optional referral commission via affiliate_commission) | 200 |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | string | Optional | Comma-separated payment IDs |
| user | string | Optional | Username filter |
| method | string | Optional | Payment method filter |
| status | string | Optional | completed, pending, failed |
| created_from | timestamp | Optional | Start date timestamp |
| created_to | timestamp | Optional | End date timestamp |
| offset | integer | Optional | Pagination offset (default: 0) |
| limit | integer | Optional | Pagination limit (max: 1000) |
Example request
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/payments?limit=10&status=completed"
Example response
{
"data": {
"count": 30,
"list": [
{
"payment_id": 30,
"user": {
"username": "john_doe",
"balance": 0
},
"amount": {
"value": "1,000",
"currency_code": "USD",
"formatted": "1,000"
},
"converted_from": {
"value": "1,000",
"currency_code": "USD",
"formatted": "1,000"
},
"method": "Stripe",
"status": "completed",
"memo": "Old Balance: $4,340.8, Amount: $1,000, New Balance: $5,340.8",
"created": "2025-08-23 12:30:18",
"created_timestamp": 1755930618,
"updated": "2025-08-23 12:30:18",
"updated_timestamp": 1755930618,
"mode": "auto"
}
],
"pagination": {
"prev_page_href": null,
"next_page_href": null,
"offset": 0,
"limit": 100
}
},
"error_message": "",
"error_code": 0
}
Request body
{
"username": "john_doe",
"amount": 100,
"method": "PayPal",
"memo": "Manual top-up",
"affiliate_commission": true
}
| Field | Type | Required | Description |
|---|---|---|---|
| amount | number | Required | Payment amount |
| method | string | Required | Payment method name or gateway code |
| username | string | One of | Exactly one user identifier: username, user_id, or user_email |
| user_id | integer | One of | User ID alternative to username |
| user_email | string | One of | User email alternative to username |
| memo | string | Optional | Payment note (max 300 characters) |
| affiliate_commission | boolean | Optional | Default false. Set true to credit referral commission to the user's referrer. Accepted: true, 1, yes, on |
affiliate_commission_rate setting: (amount × rate) / 100. This is not applied automatically like gateway deposits.Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"username":"john_doe","amount":100,"method":"PayPal","affiliate_commission":true}' \
"https://rentalpanelbd.com/adminapi/v2/payments/add"
Example response
{
"data": {
"payment_id": 31,
"transaction_id": "12345",
"user": {
"id": 1,
"username": "john_doe",
"email": "[email protected]",
"balance": "5440.8"
},
"amount": {
"value": "100",
"currency_code": "USD",
"formatted": "100"
},
"referral_commission": {
"processed": true,
"amount": "4"
}
},
"error_message": "",
"error_code": 0
}
referral_commission.amount is the amount credited to the referrer (0 if not processed).
Error response
{
"data": [],
"error_message": "User not found",
"error_code": 404
}
Users Endpoints
List accounts and create new users.
| Method | Endpoint | Description | Status |
|---|---|---|---|
| GET | /users | Get user list with filters | 200 |
| POST | /users/add | Add new user | 200 |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | string | Optional | Comma-separated user IDs |
| username | string | Optional | Username filter |
| string | Optional | Email filter | |
| status | string | Optional | active, suspended |
| created_from | timestamp | Optional | Start date timestamp |
| created_to | timestamp | Optional | End date timestamp |
| offset | integer | Optional | Pagination offset (default: 0) |
| limit | integer | Optional | Pagination limit (max: 1000) |
Example request
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/users?limit=10&status=active"
Example response
{
"data": {
"count": 3,
"list": [
{
"id": 1,
"username": "example",
"email": "[email protected]",
"balance": {
"value": "5,340.8",
"currency_code": "USD",
"formatted": "5,340.8"
},
"spent": {
"value": "3",
"currency_code": "USD",
"formatted": "3"
},
"status": "Active",
"created": "2025-07-17 14:28:03",
"created_timestamp": 1752740883,
"last_auth": null,
"last_auth_timestamp": null,
"discount": {
"value": "0",
"formatted": "0%"
},
"custom_rates": [
{
"service_id": 2,
"service_name": "Instagram Likes | Old Accounts | Instant | 50k/Day | R30",
"custom_rate": "0",
"percent": "0"
}
],
"last_ip_address": "",
"details": {
"first_name": null,
"last_name": null,
"skype": null,
"whatsapp": null,
"telegram": null,
"phone": "8126387123",
"website": null
},
"actions": {
"edit": true,
"suspend": true,
"activate": false
}
}
],
"pagination": {
"prev_page_href": null,
"next_page_href": null,
"offset": 0,
"limit": 100
}
},
"error_message": "",
"error_code": 0
}
Request body
{
"username": "newuser",
"email": "[email protected]",
"password": "password123",
"first_name": "John",
"last_name": "Doe",
"phone": "+1234567890"
}
| Field | Type | Required | Description |
|---|---|---|---|
| username | string | Required | Unique username |
| string | Required | Valid email address | |
| password | string | Required | Password (min 6 characters) |
| first_name | string | Optional | First name |
| last_name | string | Optional | Last name |
| phone | string | Optional | Phone number |
| skype | string | Optional | Skype username |
| string | Optional | WhatsApp number | |
| telegram | string | Optional | Telegram username |
| website | string | Optional | Website URL |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"username":"newuser","email":"[email protected]","password":"password123"}' \
"https://rentalpanelbd.com/adminapi/v2/users/add"
Example response
{
"data": {
"user_id": 5,
"username": "newuser",
"email": "[email protected]",
"status": "Active"
},
"error_message": "",
"error_code": 0
}
Tickets Endpoints
List tickets, read conversations, reply as staff, and open tickets for users.
| Method | Endpoint | Description | Status |
|---|---|---|---|
| GET | /tickets | Get ticket list with filters | 200 |
| GET | /tickets/{ticket_id} | Get ticket details | 200 |
| POST | /tickets/{ticket_id}/reply | Reply to ticket | 200 |
| POST | /tickets/add | Add ticket for user | 200 |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | string | Optional | Comma-separated ticket IDs |
| message | string | Optional | Search in subject or messages |
| user | string | Optional | Username filter |
| status | string | Optional | pending, answered, closed, locked |
| offset | integer | Optional | Pagination offset (default: 0) |
| limit | integer | Optional | Pagination limit (max: 1000) |
Example request
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/tickets?limit=10&status=pending"
Example response
{
"data": {
"count": 1,
"list": [
{
"id": 1,
"user": {
"id": 1,
"username": "john_doe"
},
"subject": "Order Speed UP",
"status": "Pending",
"assignee": "",
"created": "2025-08-30 11:18:06",
"created_timestamp": 1756531086,
"last_update": "2025-08-29 23:38:03",
"last_update_timestamp": 1756489083,
"is_read": false
}
],
"pagination": {
"prev_page_href": null,
"next_page_href": null,
"offset": 0,
"limit": 100
}
},
"error_message": "",
"error_code": 0
}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ticket_id | integer | Required | Ticket ID |
Example request
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/tickets/1"
Example response
{
"data": {
"id": 1,
"user": {
"id": 1,
"username": "john_doe"
},
"subject": "Order Speed UP",
"status": "Pending",
"assignee": "",
"created": "2025-08-30 11:18:06",
"created_timestamp": 1756531086,
"last_update": "2025-08-29 23:38:03",
"last_update_timestamp": 1756489083,
"is_read": false,
"messages": [
{
"message": "I need to speed up my order #12345",
"attachments": [],
"created": "2025-08-30 11:18:06",
"created_timestamp": 1756531086,
"sender_name": "john_doe",
"is_staff": false,
"is_unread": false
},
{
"message": "We will process your order as soon as possible.",
"attachments": [],
"created": "2025-08-30 12:00:00",
"created_timestamp": 1756533600,
"sender_name": "Admin",
"is_staff": true,
"is_unread": false
}
]
},
"error_message": "",
"error_code": 0
}
Request body
{
"staff_username": "support_team",
"message": "We will help you with your order."
}
| Field | Type | Required | Description |
|---|---|---|---|
| staff_username | string | Required | Username of the staff member |
| message | string | Required | Reply message |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"staff_username":"support_team","message":"We will help you with your order."}' \
"https://rentalpanelbd.com/adminapi/v2/tickets/1/reply"
Example response
{
"data": {
"ticket_id": 1,
"message_id": 3,
"status": "answered"
},
"error_message": "",
"error_code": 0
}
Request body
{
"username": "john_doe",
"subject": "Payment Issue",
"message": "I cannot complete my payment."
}
| Field | Type | Required | Description |
|---|---|---|---|
| username | string | Required | Username of the user |
| subject | string | Required | Ticket subject |
| message | string | Required | Initial message |
Example request
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"username":"john_doe","subject":"Payment Issue","message":"I cannot complete my payment."}' \
"https://rentalpanelbd.com/adminapi/v2/tickets/add"
Example response
{
"data": {
"ticket_id": 2
},
"error_message": "",
"error_code": 0
}
Cancel Tasks Endpoints
Retrieve orders that have been requested for cancellation.
| Method | Endpoint | Description | Status |
|---|---|---|---|
| POST | /cancel/pull | Pull cancel tasks | 200 |
This endpoint retrieves orders that have been requested for cancellation.
Example request
curl -X POST -H "X-Api-Key: your-api-token" \ -H "Content-Type: application/json" \ "https://rentalpanelbd.com/adminapi/v2/cancel/pull"
Example response
{
"data": {
"count": 0,
"list": []
},
"error_message": "",
"error_code": 0
}
Complete API Examples
Copy-ready cURL for the most common operations.
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/orders?limit=10&order_status=completed&sort=date-desc"
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/orders/1911745"
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"ids":"1911745","status":"completed"}' \
"https://rentalpanelbd.com/adminapi/v2/orders/change-status"
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"start_counter":1000}' \
"https://rentalpanelbd.com/adminapi/v2/orders/1911745/edit-start-count"
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"username":"john_doe","amount":100,"method":"PayPal"}' \
"https://rentalpanelbd.com/adminapi/v2/payments/add"
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/users?limit=10&status=active"
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"username":"newuser","email":"[email protected]","password":"password123"}' \
"https://rentalpanelbd.com/adminapi/v2/users/add"
curl -H "X-Api-Key: your-api-token" \ "https://rentalpanelbd.com/adminapi/v2/tickets?limit=10&status=pending"
curl -X POST -H "X-Api-Key: your-api-token" \
-H "Content-Type: application/json" \
-d '{"staff_username":"support_team","message":"We will help you with your order."}' \
"https://rentalpanelbd.com/adminapi/v2/tickets/1/reply"
curl -X POST -H "X-Api-Key: your-api-token" \ -H "Content-Type: application/json" \ "https://rentalpanelbd.com/adminapi/v2/cancel/pull"
Troubleshooting & Best Practices
Common errors, pagination, and production guidance.
Common issues
| Issue | Solution |
|---|---|
| 401 Unauthorized | Check your API key is correct and active under admin menu API & DOCS |
| 400 Bad Request | Validate request parameters and ensure required fields are provided |
| 404 Not Found | Verify the resource ID exists in the database |
| 429 Too Many Requests | Reduce request frequency — limit is 300 requests per minute |
| 500 Internal Server Error | Contact system administrator or check server logs |
Best practices
- Always use HTTPS for production requests
- Store API keys securely and never expose them in client-side code
- Implement proper error handling for all API responses
- Use pagination for large datasets to improve performance
- Cache responses when appropriate to reduce API calls
- Validate all input data before sending to the API
- Monitor your API usage to stay within rate limits
Rate limiting
The API enforces a rate limit of 300 requests per minute per admin account. If you exceed this limit, you will receive a 429 status code.
Pagination
For list endpoints, use offset and limit. The maximum limit is 1000 items per request. Follow next_page_href when it is not null.