API Documentation

Base URL: https://cambotopup.com/api/reseller/

POST /info

Retrieve user account details using a token.

Request Example:

{'token': 'your_token_here'}

Success Response:

{'status': 'Success', 'gmail': '[email protected]', 'full_name': 'John Doe', 'balance': '100.50', 'created_at': '2024-02-19 15:30:00'}

Error Response:

{'status': 'error', 'message': 'Invalid token'}

POST /order

Create a new order using available balance.

Request Example:

{'token': 'your_token_here', 'user_id': '123456', 'server_id': '50001234', 'package': 'MLBB_500_Diamonds', 'reference': 'ORDER123456'}

Success Response:

{'status': 'Success', 'charge': '9.50', 'balance_after_charge': '90.50', 'order_ID': 'ORDER123456'}

Error Response:

{'status': 'error', 'message': 'Insufficient balance'}

POST /order-status

Check the status of an order.

Request Example:

{'token': 'your_token_here', 'order_id': 'ORDER123456'}

Success Response:

{'status': 'Success', 'topup_status': 'PENDING', 'user_id': '123456', 'server_id': '50001234', 'item': 'MLBB_500_Diamonds', 'price': '9.50'}

Error Response:

{'status': 'error', 'message': 'Order not found'}

POST /item

Retrieve available items and their prices.

Request Example:

{'token': 'your_token_here'}

Success Response:

{'status': 'Success', 'items': [{'game_code': 'MLBB', 'item': '500 Diamonds', 'price': '9.50'}, {'game_code': 'FF', 'item': '1000 Diamonds', 'price': '18.00'}]}

Error Response:

{'status': 'error', 'message': 'No items found'}