### Get User Balance Request Example Source: https://www.rumahotp.io/developer/api This JavaScript snippet shows how to request the user's account balance. It requires your API key in the headers. ```javascript const options = { method: 'GET', url: '/v1/user/balance', headers: { 'x-apikey': '${your_key}', 'accept': 'application/json' } }; const response = await axios(options); ``` -------------------------------- ### List Services Request Example Source: https://www.rumahotp.io/developer/api This JavaScript snippet demonstrates how to request a list of available services. It requires your API key in the headers. ```javascript const options = { method: 'GET', url: '/v2/services', headers: { 'x-apikey': '${your_key}', 'accept': 'application/json' } }; const response = await axios(options); ``` -------------------------------- ### Get Services v2 Source: https://www.rumahotp.io/developer/api Fetches a list of available services from the API. Requires an API key for authentication. ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v2/services', headers: { 'x-apikey': 'YOUR_API_KEY_HERE', 'Accept': 'application/json' } }; const response = await axios(options) ``` ```json { "success": true, "data": [ { "service_code": 13, "service_name": "WhatsApp", "service_img": "https://assets.cindigital.id/apps/wa.png" }, { "service_code": 4, "service_name": "Telegram", "service_img": "https://assets.cindigital.id/apps/tg.png" }, { "service_code": 7, "service_name": "Facebook", "service_img": "https://assets.cindigital.id/apps/fb.png" } ] } ``` -------------------------------- ### Get Product Pricelist Source: https://www.rumahotp.io/developer/api Retrieves a comprehensive list of available PPOB products for transactions. No specific headers are required beyond 'accept'. ```javascript fetch("/v1/h2h/product", { "method": "GET", "headers": { "accept": "application/json" } }) .then(response => response.json()) .then(json => console.log(json)) .catch(error => console.error('Error:', error)); ``` -------------------------------- ### GET /v2/services Source: https://www.rumahotp.io/developer/api Lists all available digital services and applications provided by RumahOTP. ```APIDOC ## GET /v2/services ### Description Complete list of website or application services we provide for you. ### Method GET ### Endpoint /v2/services ### Headers - **x-apikey** (string) - Required - Your API key - **accept** (string) - Optional - `application/json` ### Example Request ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v2/services', headers: { 'x-apikey': 'YOUR_API_KEY_HERE' } }; // await axios(options) ``` ### Example Response ```json { "success": true, "data": [ { "id": "1", "name": "Pulsa Telkomsel", "category": "Pulsa" }, { "id": "2", "name": "Paket Data Indosat", "category": "Paket Data" } ] } ``` ``` -------------------------------- ### GET /v1/user/balance Source: https://www.rumahotp.io/developer/api Retrieves the user's account balance information. ```APIDOC ## GET /v1/user/balance ### Description Used to display information about the profile balance owned. ### Method GET ### Endpoint /v1/user/balance ### Headers - **x-apikey** (string) - Required - Your API key - **accept** (string) - Optional - `application/json` ### Example Request ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v1/user/balance', headers: { 'x-apikey': 'YOUR_API_KEY_HERE' } }; // await axios(options) ``` ### Example Response ```json { "success": true, "data": { "balance": 100000.00 } } ``` ``` -------------------------------- ### List Countries Request Example Source: https://www.rumahotp.io/developer/api This JavaScript snippet shows how to request a list of countries with their associated pricelists. It requires your API key and optionally a service ID. ```javascript const options = { method: 'GET', url: '/v2/countries?service_id=13', headers: { 'x-apikey': '${your_key}', 'accept': 'application/json' } }; const response = await axios(options); ``` -------------------------------- ### Brand Rekening API Source: https://www.rumahotp.io/developer/api Get a list of available banks for account verification. ```APIDOC ## GET /v1/h2h/list/rekening ### Description Endpoint to get a list of banks available for checking. ### Method GET ### Endpoint /v1/h2h/list/rekening ### Parameters #### Query Parameters - File static does not require parameters. ### Response #### Success Response (200) - success (boolean) - Status response whether it is successful or not. - data (array) - A content of processed data. - data[].id (number) - ID or index order of the bank in the data. - data[].bank_code (string) - Code used for checking accounts. - data[].bank_name (string) - Name of the bank or related service. - data[].type (string) - Type of service or bank for identification. ### Response Example ```json { "success": true, "data": [ { "id": 3, "bank_code": "dana", "bank_name": "DANA", "type": "ewallet" } ] } ``` ``` -------------------------------- ### Get User Balance Source: https://www.rumahotp.io/developer/api Retrieves the current balance of the authenticated user. ```APIDOC ## GET /api/v1/user/balance ### Description Retrieves the current balance of the authenticated user. ### Method GET ### Endpoint /api/v1/user/balance ### Request Headers - **x-apikey** (string) - Required - Your API key. - **Accept** (string) - Optional - Specifies the desired response format, defaults to application/json. ### Response #### Success Response (200) - **success** (boolean) - Indicates if the request was successful. - **data** (object) - Contains the balance information. - **balance** (integer) - The user's balance in the smallest currency unit. - **formated** (string) - The user's balance formatted as a string (e.g., "Rp11.240.116"). - **username** (string) - The user's username. - **first_name** (string) - The user's first name. - **last_name** (string) - The user's last name. - **email** (string) - The user's email address. ### Response Example ```json { "success": true, "data": { "balance": 11240116, "formated": "Rp11.240.116", "username": "rumahotp", "first_name": "Bos Besar", "last_name": "-", "email": "admin@cindigital.id" } } ``` ``` -------------------------------- ### Making an API Request with Axios Source: https://www.rumahotp.io/developer/api This snippet demonstrates how to make a GET request to a RumahOTP API endpoint using the axios library. Ensure you replace 'YOUR_API_KEY_HERE' with your actual API key. ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/[endpoint]', headers: { 'x-apikey': 'YOUR_API_KEY_HERE' } }; const response = await axios(options) ``` -------------------------------- ### GET /v2/countries Source: https://www.rumahotp.io/developer/api Retrieves a list of countries with their associated pricelists for services. ```APIDOC ## GET /v2/countries ### Description Complete list of countries with their pricelists below. All countries are without duplicates as prices are already provided within the pricelist object for each country. ### Method GET ### Endpoint /v2/countries ### Headers - **x-apikey** (string) - Required - Your API key - **accept** (string) - Optional - `application/json` ### Query Parameters - **service_id** (number) - Optional - Code of the application obtained from the list of applications. ### Example Request ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v2/countries?service_id=13', headers: { 'x-apikey': 'YOUR_API_KEY_HERE' } }; // await axios(options) ``` ### Example Response ```json { "success": true, "data": [ { "country_code": "ID", "country_name": "Indonesia", "pricelist": [ { "service_id": "13", "product_name": "DANA TopUp Rp10.000", "price": 12000 } ] } ] } ``` ``` -------------------------------- ### Get Countries by Service v2 Source: https://www.rumahotp.io/developer/api Retrieves a list of countries available for a specific service. Requires a service ID and an API key. ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v2/countries?service_id=SERVICE_ID', headers: { 'x-apikey': 'YOUR_API_KEY_HERE', 'Accept': 'application/json' } }; const response = await axios(options) ``` ```json { "success": true, "data": [ { "number_id": 340437, "name": "Indonesia", "img": "https://assets.cindigital.id/flags/id.png", "prefix": "+62", "iso_code": "id", "rate": 81.6, "stock_total": 103, "pricelist": [ { "provider_id": "3837", "server_id": 3, "stock": 103, "rate": 81.6, "price": 1100, "price_format": "Rp1.100", "available": true } ] } ] } ``` -------------------------------- ### Get User Balance v1 Source: https://www.rumahotp.io/developer/api Retrieves the current user balance from the API. Requires an API key for authentication. ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v1/user/balance', headers: { 'x-apikey': 'YOUR_API_KEY_HERE', 'Accept': 'application/json' } }; const response = await axios(options) ``` ```json { "success": true, "data": { "balance": 11240116, "formated": "Rp11.240.116", "username": "rumahotp", "first_name": "Bos Besar", "last_name": "-", "email": "admin@cindigital.id" } } ``` -------------------------------- ### Get Operators by Country v2 Source: https://www.rumahotp.io/developer/api Fetches a list of mobile operators for a given country. Requires country name, provider ID, and an API key. ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v2/operators?country=COUNTRY_NAME&provider_id=PROVIDER_ID', headers: { 'x-apikey': 'YOUR_API_KEY_HERE', 'Accept': 'application/json' } }; const response = await axios(options) ``` ```json { "success": true, "data": [{ "id": 1, "name": "any", "image": "https://assets.cindigital.id/carriers/indonesia/any.ico" }, { "id": 2, "name": "indosat", "image": "https://assets.cindigital.id/carriers/indonesia/indosat.jpg" }, { "id": 3, "name": "telkomsel", "image": "https://assets.cindigital.id/carriers/indonesia/telkomsel.jpg" }] } ``` -------------------------------- ### GET /v1/h2h/transaksi/status Source: https://www.rumahotp.io/developer/api Endpoint to check the status of a previously created transaction. ```APIDOC ## GET /v1/h2h/transaksi/status ### Description Endpoint to check the status information of a transaction. ### Method GET ### Endpoint /v1/h2h/transaksi/status ### Headers - **x-apikey** (string) - Required - Your API key - **accept** (string) - Optional - `application/json` ### Parameters #### Query Parameters - **transaksi_id** (string) - Required - The ID provided when making the purchase. ### Request Body (Not applicable for GET requests) ### Response #### Success Response (200) - **success** (boolean) - Status of the response, true if successful. - **data** (object) - The main object containing detailed transaction information. - **data.id** (string) - Unique transaction ID provided at purchase. - **data.status** (string) - Transaction status: `success`, `processing`, `failed`, `canceled`, `pending`. - **data.created_at** (number) - Timestamp in milliseconds when the transaction was created. - **data.finish_at** (number) - Timestamp in milliseconds when the transaction finished processing. - **data.tujuan** (string) - Transaction destination ID or number. - **data.refund** (boolean) - Indicates if the transaction was refunded. - **data.price** (number) - Total price paid for the transaction. - **data.product** (object) - Complete information about the purchased product. - **data.product.code** (string) - Unique product code. - **data.product.name** (string) - Product name. - **data.product.note** (string) - Additional product notes or description. - **data.product.type** (string) - Product type (e.g., `topup_saldo`). - **data.product.brand** (string) - Product brand (e.g., `dana`). - **data.product.category** (string) - Product category (e.g., `ewallet`). - **data.tujuan_info** (object) - Detailed information about the transaction destination. - **data.tujuan_info.available** (boolean) - Availability status of destination information. - **data.tujuan_info.name** (string) - Name of the destination account owner. - **data.tujuan_info.nominal** (string) - Nominal received (e.g., rupiah, kWh, item). - **data.response** (object) - Complete response from the provider. - **data.response.available** (boolean) - Availability status of the provider response. - **data.response.id** (string) - Transaction ID from the provider. - **data.response.product** (string) - Product name from the provider. - **data.response.code** (string) - Product code from the provider. - **data.response.tujuan** (string) - Destination number from the provider. - **data.response.time** (string) - Processing time from the provider. - **data.response.status** (string) - Status from the provider (e.g., `sukses`, `gagal`, `pending`). - **data.response.sn** (string) - Serial number or transaction proof from the provider. #### Response Example ```json { "success": true, "data": { "id": "H2H2025111422038272", "status": "success", "created_at": 1762661992178, "finish_at": 1762671992178, "tujuan": "081112345678", "refund": false, "price": 10500, "product": { "code": "DN10", "name": "Rp10.000", "note": "Dana 10.000", "type": "topup_saldo", "brand": "dana", "category": "ewallet" }, "tujuan_info": { "available": true, "name": "DNID JAXX HAXX", "nominal": "10000" }, "response": { "available": true, "id": "H2H2025111422038272", "product": "Dana 10.000", "code": "DN10", "tujuan": "081112345678", "time": "17:54", "status": "sukses", "sn": "278728238HSIWJW821" } } } ``` ``` -------------------------------- ### Deposit Create #1.0 Source: https://www.rumahotp.io/developer/api Buat kode QRIS untuk pembayaran sesuai nominal yang diinginkan menggunakan payment gateway kami, tanpa kartu kredit dan tanpa ribet verifikasi tambahan. Jumlah maksimal status pembayaran yang tertunda adalah 3 pembayaran. Jika melebihi jumlah ini, permintaan pembuatan payment akan ditolak sampai deposit lainnya selesai/dibatalkan. ```APIDOC ## GET /v1/deposit/create ### Description Create a QRIS payment code for the desired nominal amount using our payment gateway, without a credit card and without additional verification hassle. The maximum number of pending payments is 3. If this limit is exceeded, the payment creation request will be rejected until other deposits are completed/canceled. ### Method GET ### Endpoint /v1/deposit/create ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **amount** (number) - Required - The input nominal amount for the deposit to be added to the account (e.g., 50000). - **payment_id** (string) - Required - The deposit payment method ID. Available options: "qris", "usdt-bep-20", "usdt-trc-20", "usdt-polygon", and "usdt-erc-20". ``` -------------------------------- ### Deposit Create #2.0 Source: https://www.rumahotp.io/developer/api Buat kode QRIS untuk pembayaran sesuai nominal yang diinginkan menggunakan payment gateway kami, response lengkap layaknya payment gateway nasional. Jumlah maksimal status pembayaran yang tertunda adalah 3 pembayaran. Jika melebihi jumlah ini, permintaan pembuatan payment akan ditolak sampai deposit lainnya selesai/dibatalkan. ```APIDOC ## GET /v2/deposit/create ### Description Create a QRIS payment code for the desired nominal amount using our payment gateway, with a comprehensive response similar to national payment gateways. The maximum number of pending payments is 3. If this limit is exceeded, the payment creation request will be rejected until other deposits are completed/canceled. ### Method GET ### Endpoint /v2/deposit/create ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **amount** (number) - Required - The input nominal amount for the deposit to be added to the account (e.g., 50000). - **payment_id** (string) - Required - The deposit payment method ID. Available options: "qris", "usdt-bep-20", "usdt-trc-20", "usdt-polygon", and "usdt-erc-20". ``` -------------------------------- ### POST /v1/h2h/transaksi/create Source: https://www.rumahotp.io/developer/api Endpoint to create H2H product purchase transactions. ```APIDOC ## POST /v1/h2h/transaksi/create ### Description Endpoint to perform H2H product purchase transactions. ### Method POST ### Endpoint /v1/h2h/transaksi/create ### Headers - **x-apikey** (string) - Required - Your API key - **accept** (string) - Optional - `application/json` ### Parameters #### Query Parameters - **id** (string) - Required - Product code for the purchase. - **target** (string) - Required - The target or destination for the purchase (e.g., phone number). ### Request Body (Not specified in the provided text) ### Response #### Success Response (200) - **success** (boolean) - Status of the response, true if successful. - **data** (object) - Contains the processed transaction data. - **data.id** (string) - The ID generated for the transaction. - **data.status** (string) - The current status of the order (e.g., `processing`). - **data.created_at** (number) - Timestamp in milliseconds when the transaction was created. - **data.product** (object) - Information about the purchased product. - **data.product.code** (string) - The product code. - **data.product.name** (string) - The name of the purchased product. - **data.product.note** (string) - Additional notes from the product provider. - **data.product.type** (string) - The type of the product (e.g., `topup_saldo`). - **data.product.brand** (string) - The brand of the product (e.g., `dana`). - **data.product.category** (string) - The category of the product (e.g., `ewallet`). - **data.tujuan** (string) - The destination ID or number for the transaction. - **data.sisa_balance** (number) - The remaining balance after the purchase. - **data.message** (string) - Additional message regarding the transaction. #### Response Example ```json { "success": true, "data": { "id": "H2H2025111418128372", "status": "processing", "created_at": 1762661992178, "product": { "code": "D1", "name": "Rp1.000", "note": "Dana 1.000", "type": "topup_saldo", "brand": "dana", "category": "ewallet" }, "tujuan": "081112345678", "sisa_balance": 80000, "message": "Memproses pesanan..." } } ``` ``` -------------------------------- ### Authentication and General Usage Source: https://www.rumahotp.io/developer/api Information on how to authenticate with the API using an API key and general usage guidelines, including rate limits and security notices. ```APIDOC ## Authentication Use a valid API key as authentication credentials for the REST API. The API key is used to verify identity and authorize access according to registered usage rights. ### Security Notice * Store API keys securely and privately. * Do not share API keys with others. * Avoid using untrusted scripts or services. * Use only official and valid API endpoints. * Always monitor transactions and reset API keys if leakage is suspected. * API key leakage can lead to misuse of access, service restrictions, or account blocking. * Do not use for illegal activities; this service is intended for testing and business purposes only. ## Rate Limiting The API rate limit is 5 requests every 10 seconds. If you spam, our Cloudflare will automatically activate a temporary blocking system against your IP address. ``` -------------------------------- ### List Services Source: https://www.rumahotp.io/developer/api Retrieves a list of available services. ```APIDOC ## GET /api/v2/services ### Description Retrieves a list of available services offered by RumahOTP. ### Method GET ### Endpoint /api/v2/services ### Request Headers - **x-apikey** (string) - Required - Your API key. - **Accept** (string) - Optional - Specifies the desired response format, defaults to application/json. ### Response #### Success Response (200) - **success** (boolean) - Indicates if the request was successful. - **data** (array) - A list of service objects. - **service_code** (integer) - The unique identifier for the service. - **service_name** (string) - The name of the service (e.g., "WhatsApp"). - **service_img** (string) - URL to the service's icon. ### Response Example ```json { "success": true, "data": [ { "service_code": 13, "service_name": "WhatsApp", "service_img": "https://assets.cindigital.id/apps/wa.png" }, { "service_code": 4, "service_name": "Telegram", "service_img": "https://assets.cindigital.id/apps/tg.png" }, { "service_code": 7, "service_name": "Facebook", "service_img": "https://assets.cindigital.id/apps/fb.png" } ] } ``` ``` -------------------------------- ### Check Game or General Account Information Source: https://www.rumahotp.io/developer/api Verifies user account details for games or other general services. Requires 'account_code' and 'account_number' as query parameters. ```javascript fetch("/v1/h2h/check/username?account_code=freefire&account_number=12345678", { "method": "GET", "headers": { "accept": "application/json" } }) .then(response => response.json()) .then(json => console.log(json)) .catch(error => console.error('Error:', error)); ``` -------------------------------- ### Pesan Nomor #2.0 Source: https://www.rumahotp.io/developer/api Endpoint untuk menggunakan Jasa OTP, gunakan dengan bijak, semua parameter wajib diisi, lengkap dengan info operator. ```APIDOC ## GET /v2/orders ### Description Endpoint to use the OTP Service. Use wisely, all parameters are mandatory and include operator information. ### Method GET ### Endpoint /v2/orders ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **number_id** (number) - Required - The ID of the selected number from the country list. - **provider_id** (number) - Required - The provider ID code from the available price list. - **operator_id** (number) - Required - The operator ID from the operator list result data. ``` -------------------------------- ### Product Pricelist API Source: https://www.rumahotp.io/developer/api Retrieve a comprehensive list of available PPOB products for transactions. ```APIDOC ## GET /v1/h2h/product ### Description Daftar lengkap produk PPOB yang tersedia untuk transaksi. ### Method GET ### Endpoint /v1/h2h/product ### Parameters #### Headers - accept (string) - Required - application/json ### Response #### Success Response (200) - success (boolean) - Status response whether it is successful or not. - data (array) - A content of processed data. - data[].code (string) - Code for identifying product purchases. - data[].name (string) - Name of the product to be purchased. - data[].note (string) - Additional information from the product provider. - data[].type (string) - Type of the product. - data[].brand (string) - Brand or trademark of the product. - data[].category (string) - Category or type of the product. - data[].img_url (string) - Thumbnail image as a product overview. - data[].price (number) - Purchase price of the product. - data[].price_info (object) - Detailed information regarding the product price. - data[].price_info.price_original (number) - Original price or general market price. - data[].price_info.price_discount (number) - Price after discount. - data[].price_info.price_discount_percent (number) - Discount percentage obtained. ### Response Example ```json { "success": true, "data": [ { "code": "D100", "name": "Rp100.000", "note": "Dana 100.000", "type": "topup_saldo", "brand": "dana", "category": "ewallet", "img_url": "https://assets...dana.png", "price": 101000, "price_info": { "price_original": 102010, "price_discount": 101000, "price_discount_percent": 1 } } ] } ``` ``` -------------------------------- ### List Available Games and Services for Account Check Source: https://www.rumahotp.io/developer/api Retrieves a list of all games and services supported for username checks. This endpoint does not require any parameters. ```javascript fetch("/v1/h2h/list/username", { "method": "GET", "headers": { "accept": "application/json" } }) .then(response => response.json()) .then(json => console.log(json)) .catch(error => console.error('Error:', error)); ``` -------------------------------- ### Ganti Status #1.0 Source: https://www.rumahotp.io/developer/api Endpoint untuk mengatur status pesanan nomor yang Anda pesan. ```APIDOC ## GET /v1/orders/set_status ### Description Endpoint to set the status of the ordered number. ### Method GET ### Endpoint /v1/orders/set_status ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **order_id** (string) - Required - The ID provided when creating the number order (e.g., "RO012345678"). - **status** (string) - Required - The status to change the order to. Available options: "cancel" (to cancel), "done" (to confirm), "resend" (to request code again). ``` -------------------------------- ### Check Pesanan #1.0 Source: https://www.rumahotp.io/developer/api Endpoint untuk memeriksa status pesanan nomor yang Anda pesan, pastikan untuk memasukkan parameter dengan baik dan benar. ```APIDOC ## GET /v1/orders/get_status ### Description Endpoint to check the status of the ordered number. Ensure parameters are entered correctly. ### Method GET ### Endpoint /v1/orders/get_status ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **order_id** (string) - Required - The ID provided when creating the number order (e.g., "RO012345678"). ``` -------------------------------- ### Check Games API Source: https://www.rumahotp.io/developer/api Verify game or other general account information. ```APIDOC ## GET /v1/h2h/check/username ### Description Endpoint to check accounts such as game accounts or other general accounts. ### Method GET ### Endpoint /v1/h2h/check/username ### Parameters #### Query Parameters - **account_code** (string) - Required - Brand games code you want to check. - **account_number** (string) - Required - ID or account number you want to check. ### Response #### Success Response (200) - success (boolean) - Status response whether it is successful or not. - data (object) - A content of processed data. - data.status (string) - Account status (valid or not). - data.account_number (string) - The account number being checked. - data.account_name (string) - The name of the account holder. ### Response Example ```json { "success": true, "data": { "status": "valid", "account_number": "12345678", "account_name": "Pasukan^JAWA" } } ``` ``` -------------------------------- ### Create Order Source: https://www.rumahotp.io/developer/api Creates a new order for a phone number based on service, country, and operator. ```APIDOC ## GET /api/v2/orders ### Description Creates a new order for a phone number based on the provided service, country, and operator. ### Method GET ### Endpoint /api/v2/orders ### Query Parameters - **number_id** (integer) - Required - The ID of the number obtained from the countries endpoint. - **provider_id** (string) - Required - The ID of the provider. - **operator_id** (integer) - Required - The ID of the operator. ### Request Headers - **x-apikey** (string) - Required - Your API key. - **Accept** (string) - Optional - Specifies the desired response format, defaults to application/json. ### Response #### Success Response (200) - **success** (boolean) - Indicates if the request was successful. - **data** (object) - Contains the details of the created order. - **order_id** (string) - The unique identifier for the order. - **phone_number** (string) - The assigned phone number. - **service** (string) - The name of the service. - **country** (string) - The name of the country. - **operator** (string) - The name of the operator. - **price** (integer) - The price of the order in the smallest currency unit. - **price_formated** (string) - The price formatted as a string (e.g., "Rp2.050"). - **created_at** (integer) - Timestamp when the order was created. - **expired_at** (integer) - Timestamp when the order expires. ### Response Example ```json { "success": true, "data": { "order_id": "RO0004647717", "phone_number": "+62 858 4441 4442", "service": "WhatsApp", "country": "Indonesia", "operator": "any", "price": 2050, "price_formated": "Rp2.050", "created_at": 1775020631379, "expired_at": 1775021831379 } } ``` ``` -------------------------------- ### Create Order v2 Source: https://www.rumahotp.io/developer/api Creates a new order for a phone number. Requires number ID, provider ID, operator ID, and an API key. ```javascript const options = { method: 'GET', url: 'https://www.rumahotp.io/api/v2/orders?number_id=NUMBER_ID&provider_id=PROVIDER_ID&operator_id=OPERATOR_ID', headers: { 'x-apikey': 'YOUR_API_KEY_HERE', 'Accept': 'application/json' } }; const response = await axios(options) ``` ```json { "success": true, "data": { "order_id": "RO0004647717", "phone_number": "+62 858 4441 4442", "service": "WhatsApp", "country": "Indonesia", "operator": "any", "price": 2050, "price_formated": "Rp2.050", "created_at": 1775020631379, "expired_at": 1775021831379 } } ``` -------------------------------- ### Check Rekening API Source: https://www.rumahotp.io/developer/api Verify account information before making a transaction. ```APIDOC ## GET /v1/h2h/check/rekening ### Description Endpoint to check account information before making a transaction. ### Method GET ### Endpoint /v1/h2h/check/rekening ### Parameters #### Query Parameters - **bank_code** (string) - Required - Brand bank code you want to check. - **account_number** (string) - Required - ID or account number you want to check. ### Response #### Success Response (200) - success (boolean) - Status response whether it is successful or not. - data (object) - A content of processed data. - data.status (string) - Account status (valid or not). - data.account_number (string) - The account number being checked. - data.account_name (string) - The name of the account holder. ### Response Example ```json { "success": true, "data": { "status": "valid", "account_number": "081112345678", "account_name": "JA** HA**" } } ``` ``` -------------------------------- ### Deposit Check #2.0 Source: https://www.rumahotp.io/developer/api Periksa status pembayaran yang dilakukan oleh pengguna, lengkap dengan tambahan info metadata payment layaknya pembayaran profesional. ```APIDOC ## GET /v2/deposit/get_status ### Description Check the payment status of a user's deposit, including additional payment metadata information, similar to professional payment services. ### Method GET ### Endpoint /v2/deposit/get_status ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **deposit_id** (string) - Required - The ID provided when creating the deposit (e.g., "RO202511091637506040"). ``` -------------------------------- ### Check Bank Account Information Source: https://www.rumahotp.io/developer/api Verifies bank account details before initiating a transaction. Requires 'bank_code' and 'account_number' as query parameters. ```javascript fetch("/v1/h2h/check/rekening?bank_code=dana&account_number=081112345678", { "method": "GET", "headers": { "accept": "application/json" } }) .then(response => response.json()) .then(json => console.log(json)) .catch(error => console.error('Error:', error)); ``` -------------------------------- ### Deposit Cancel #1.0 Source: https://www.rumahotp.io/developer/api Batalkan status pembayaran deposit jika status masih tertunda. ```APIDOC ## GET /v1/deposit/cancel ### Description Cancel the deposit payment status if the status is still pending. ### Method GET ### Endpoint /v1/deposit/cancel ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **deposit_id** (string) - Required - The ID provided when creating the deposit (e.g., "RO202511091637506040"). ``` -------------------------------- ### Deposit Check #1.0 Source: https://www.rumahotp.io/developer/api Periksa status pembayaran yang dilakukan oleh pengguna untuk melihat apakah invoice telah lunas dibayar, belum dibayar, atau expired dibatalkan. ```APIDOC ## GET /v1/deposit/get_status ### Description Check the payment status of a user's deposit to see if the invoice has been paid, is unpaid, or has expired and been canceled. ### Method GET ### Endpoint /v1/deposit/get_status ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **deposit_id** (string) - Required - The ID provided when creating the deposit (e.g., "RO202511091637506040"). ``` -------------------------------- ### Operator Seluler #2.0 Source: https://www.rumahotp.io/developer/api Daftar lengkap operator seluler yang disediakan berdasarkan nama negara dan provider ID yang dipilih, berbeda provider ID maka berbeda pula hasil operatornya. ```APIDOC ## GET /v2/operators ### Description Lists all available mobile operators based on the selected country name and provider ID. The results vary depending on the provider ID. ### Method GET ### Endpoint /v2/operators ### Headers - x-apikey (string) - Required - Your API key - accept (string) - Required - application/json ### Parameters #### Query Parameters - **country** (string) - Required - The name of the selected country (e.g., "malaysia"). - **provider_id** (number) - Required - The provider ID code from the available price list. ``` -------------------------------- ### List Countries Source: https://www.rumahotp.io/developer/api Retrieves a list of countries available for a specific service. ```APIDOC ## GET /api/v2/countries ### Description Retrieves a list of countries available for a specific service, along with their details and pricing information. ### Method GET ### Endpoint /api/v2/countries ### Query Parameters - **service_id** (integer) - Required - The ID of the service for which to list countries. ### Request Headers - **x-apikey** (string) - Required - Your API key. - **Accept** (string) - Optional - Specifies the desired response format, defaults to application/json. ### Response #### Success Response (200) - **success** (boolean) - Indicates if the request was successful. - **data** (array) - A list of country objects. - **number_id** (integer) - Unique identifier for the number within the country. - **name** (string) - The name of the country (e.g., "Indonesia"). - **img** (string) - URL to the country's flag image. - **prefix** (string) - The country's phone number prefix (e.g., "+62"). - **iso_code** (string) - The ISO 3166-1 alpha-2 country code (e.g., "id"). - **rate** (float) - The base rate for services in this country. - **stock_total** (integer) - The total available stock of numbers in this country. - **pricelist** (array) - A list of pricing details for different providers. - **provider_id** (string) - The ID of the provider. - **server_id** (integer) - The ID of the server. - **stock** (integer) - Available stock for this provider. - **rate** (float) - The rate for this provider. - **price** (integer) - The price in the smallest currency unit. - **price_format** (string) - The price formatted as a string (e.g., "Rp1.100"). - **available** (boolean) - Indicates if the service is available from this provider. ### Response Example ```json { "success": true, "data": [ { "number_id": 340437, "name": "Indonesia", "img": "https://assets.cindigital.id/flags/id.png", "prefix": "+62", "iso_code": "id", "rate": 81.6, "stock_total": 103, "pricelist": [ { "provider_id": "3837", "server_id": 3, "stock": 103, "rate": 81.6, "price": 1100, "price_format": "Rp1.100", "available": true } ] } ] } ``` ``` -------------------------------- ### List Available Bank Brands for Account Check Source: https://www.rumahotp.io/developer/api Retrieves a list of all banks and services supported for rekening (account) checks. This endpoint does not require any parameters. ```javascript fetch("/v1/h2h/list/rekening", { "method": "GET", "headers": { "accept": "application/json" } }) .then(response => response.json()) .then(json => console.log(json)) .catch(error => console.error('Error:', error)); ``` -------------------------------- ### List Operators Source: https://www.rumahotp.io/developer/api Retrieves a list of mobile operators for a specific country and service. ```APIDOC ## GET /api/v2/operators ### Description Retrieves a list of mobile operators available for a given country and service. ### Method GET ### Endpoint /api/v2/operators ### Query Parameters - **country** (string) - Required - The name of the country (e.g., "indonesia"). - **service_id** (integer) - Required - The ID of the service. ### Request Headers - **x-apikey** (string) - Required - Your API key. - **Accept** (string) - Optional - Specifies the desired response format, defaults to application/json. ### Response #### Success Response (200) - **success** (boolean) - Indicates if the request was successful. - **data** (array) - A list of operator objects. - **id** (integer) - The unique identifier for the operator. - **name** (string) - The name of the operator (e.g., "indosat"). - **image** (string) - URL to the operator's logo. ### Response Example ```json { "success": true, "data": [{ "id": 1, "name": "any", "image": "https://assets.cindigital.id/carriers/indonesia/any.ico" }, { "id": 2, "name": "indosat", "image": "https://assets.cindigital.id/carriers/indonesia/indosat.jpg" }, { "id": 3, "name": "telkomsel", "image": "https://assets.cindigital.id/carriers/indonesia/telkomsel.jpg" }] } ``` ``` -------------------------------- ### Brand Games API Source: https://www.rumahotp.io/developer/api View a list of games or services available for checking. ```APIDOC ## GET /v1/h2h/list/username ### Description Endpoint to view a list of games or services available for checking. ### Method GET ### Endpoint /v1/h2h/list/username ### Parameters #### Query Parameters - File static does not require parameters. ### Response #### Success Response (200) - success (boolean) - Status response whether it is successful or not. - data (array) - A content of processed data. - data[].id (number) - ID or index order of the game in the data. - data[].account_code (string) - Code used for checking usernames. - data[].account_name (string) - Name of the game or related service. - data[].type (string) - Type of service or game for identification. ### Response Example ```json { "success": true, "data": [ { "id": 1, "account_code": "freefire", "account_name": "Free Fire", "type": "game" } ] } ``` ```