### Cancel Order Request Example Source: https://ditznesia.id/api-v1 This is an example URL for cancelling an existing order. Ensure you replace the placeholder values with your actual API key and order ID. ```http https://api.jasaotp.id/v1/cancel.php?api_key=922a0af8d090b32ee2e6114a6e572799&id=1728868 ``` -------------------------------- ### Get List of Available Countries Source: https://ditznesia.id/api-v1 Retrieve a list of countries for which OTP services are available. No parameters are required. ```HTTP https://api.jasaotp.id/v1/negara.php ``` ```JSON { "code": 200, "success": true, "message": "Berhasil mengambil daftar negara.", "data": [ { "id_negara": 0, "nama_negara": "rusia" }, { "id_negara": 1, "nama_negara": "ukraina" } ] } ``` -------------------------------- ### Get Services for a Specific Country Source: https://ditznesia.id/api-v1 Retrieve the available OTP services for a specified country ID. The `negara` parameter is required. ```HTTP https://api.jasaotp.id/v1/layanan.php?negara=6 ``` ```JSON { "6": { "wa": { "harga": 3000, "stok": 999, "layanan": "whatsapp" }, "fb": { "harga": 4000, "stok": 999, "layanan": "facebook" } } } ``` -------------------------------- ### Get OTP Response Source: https://ditznesia.id/api-v1 This JSON response indicates a successful retrieval of an OTP. The 'data' field contains the 'otp' value. ```json { "code": 200, "success": true, "message": "Berhasil mengambil OTP.", "data": { "otp": "123456" } } ``` -------------------------------- ### Get Operators for a Specific Country Source: https://ditznesia.id/api-v1 Fetch the available mobile operators for a given country ID. The `negara` parameter is required. ```HTTP https://api.jasaotp.id/v1/operator.php?negara=6 ``` ```JSON { "code": 200, "success": true, "message": "Berhasil mendapatkan daftar operator.", "data": { "6": [ "any", "indosat", "telkomsel", "axis", "three", "smartfren", "byu" ] } } ``` -------------------------------- ### Periksa OTP untuk Pesanan Source: https://ditznesia.id/api-v1 Mengambil kode OTP yang diterima untuk pesanan tertentu. Memerlukan `api_key` dan `id` pesanan. ```APIDOC ## Periksa OTP ### Description Mengambil OTP untuk pesanan. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/sms.php` #### Parameters - **api_key** (String) - Required - Api Key Anda - **id** (Integer) - Required - ID Pesanan ### Request Example `https://api.jasaotp.id/v1/sms.php?api_key=922a0af8d090b32ee2e6114a6e572799&id=1728868` ### Response #### Success Response (200) - **code** (Integer) - Kode status respons. - **success** (Boolean) - Menunjukkan apakah operasi berhasil. - **message** (String) - Pesan yang menjelaskan hasil operasi. - **data** (Object) - Berisi data OTP. - **otp** (String) - Kode OTP yang diterima. #### Response Example ```json { "code": 200, "success": true, "message": "Berhasil mendapatkan OTP.", "data": { "otp": "123456" } } ``` ``` -------------------------------- ### Batalkan Pesanan Source: https://ditznesia.id/api-v1 Membatalkan pesanan OTP yang ada dan mengembalikan dana jika berlaku. Memerlukan `api_key` dan `id` pesanan. ```APIDOC ## Batalkan Pesanan ### Description Membatalkan pesanan dan dapatkan pengembalian dana. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/cancel.php` #### Parameters - **api_key** (String) - Required - Api Key Anda - **id** (Integer) - Required - ID Pesanan ### Request Example `https://api.jasaotp.id/v1/cancel.php?api_key=922a0af8d090b32ee2e6114a6e572799&id=1728868` ### Response #### Success Response (200) - **code** (Integer) - Kode status respons. - **success** (Boolean) - Menunjukkan apakah operasi berhasil. - **message** (String) - Pesan yang menjelaskan hasil operasi. #### Response Example ```json { "code": 200, "success": true, "message": "Pesanan berhasil dibatalkan." } ``` ``` -------------------------------- ### Periksa Saldo Akun Source: https://ditznesia.id/api-v1 Mengambil saldo akun saat ini. Memerlukan `api_key` untuk autentikasi. ```APIDOC ## Periksa Saldo ### Description Mengambil saldo akun saat ini. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/balance.php` #### Parameters - **api_key** (String) - Required - Api Key Anda ### Request Example `https://api.jasaotp.id/v1/balance.php?api_key=922a0af8d090b32ee2e6114a6e572799` ### Response #### Success Response (200) - **code** (Integer) - Kode status respons. - **success** (Boolean) - Menunjukkan apakah operasi berhasil. - **message** (String) - Pesan yang menjelaskan hasil operasi. - **data** (Object) - Berisi data saldo. - **saldo** (Integer) - Saldo akun saat ini. #### Response Example ```json { "code": 200, "success": true, "message": "Berhasil memeriksa saldo.", "data": { "saldo": 10000 } } ``` ``` -------------------------------- ### Create New OTP Order Source: https://ditznesia.id/api-v1 Initiate a new OTP order. Requires your API key, country ID, service code, and operator name. ```HTTP https://api.jasaotp.id/v1/order.php?api_key=922a0af8d090b32ee2e6114a6e572799&negara=6&layanan=wa&operator=any ``` ```JSON { "code": 200, "success": true, "message": "Order berhasil.", "data": { "order_id": 1728868, "number": "+6282272111384" } } ``` -------------------------------- ### Dapatkan Layanan berdasarkan Negara Source: https://ditznesia.id/api-v1 Mengambil daftar layanan OTP yang tersedia untuk negara tertentu. ```APIDOC ## Dapatkan Layanan berdasarkan Negara ### Description Mengambil daftar layanan yang tersedia untuk negara tertentu. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/layanan.php` #### Parameters - **negara** (Integer) - Required - ID Negara ### Request Example `https://api.jasaotp.id/v1/layanan.php?negara=6` ### Response #### Success Response (200) - **data** (Object) - Objek yang berisi daftar layanan untuk negara yang ditentukan. - Key (String) - Kode layanan (misalnya, "wa"). - Value (Object) - Detail layanan. - **harga** (Integer) - Harga layanan. - **stok** (Integer) - Ketersediaan stok layanan. - **layanan** (String) - Nama layanan. #### Response Example ```json { "6": { "wa": { "harga": 3000, "stok": 999, "layanan": "whatsapp" }, "fb": { "harga": 4000, "stok": 999, "layanan": "facebook" } } } ``` ``` -------------------------------- ### Buat Pesanan OTP Baru Source: https://ditznesia.id/api-v1 Membuat pesanan OTP baru untuk nomor telepon. Memerlukan `api_key`, `negara`, `layanan`, dan `operator`. ```APIDOC ## Buat Pesanan ### Description Membuat pesanan OTP baru. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/order.php` #### Parameters - **api_key** (String) - Required - Api Key Anda - **negara** (Integer) - Required - ID Negara (misalnya, "6" untuk Indonesia) - **layanan** (String) - Required - Kode layanan (misalnya, "wa" untuk WhatsApp) - **operator** (String) - Required - Nama operator (misalnya, "any", "telkomsel") ### Request Example `https://api.jasaotp.id/v1/order.php?api_key=922a0af8d090b32ee2e6114a6e572799&negara=6&layanan=wa&operator=any` ### Response #### Success Response (200) - **code** (Integer) - Kode status respons. - **success** (Boolean) - Menunjukkan apakah operasi berhasil. - **message** (String) - Pesan yang menjelaskan hasil operasi. - **data** (Object) - Berisi data pesanan. - **order_id** (Integer) - ID unik pesanan. - **number** (String) - Nomor telepon yang dialokasikan untuk OTP. #### Response Example ```json { "code": 200, "success": true, "message": "Order berhasil.", "data": { "order_id": 1728868, "number": "+6282272111384" } } ``` ``` -------------------------------- ### Dapatkan Operator berdasarkan Negara Source: https://ditznesia.id/api-v1 Mengambil daftar operator seluler yang tersedia untuk negara tertentu. ```APIDOC ## Dapatkan Operator berdasarkan Negara ### Description Mengambil daftar operator untuk negara tertentu. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/operator.php` #### Parameters - **negara** (Integer) - Required - ID Negara ### Request Example `https://api.jasaotp.id/v1/operator.php?negara=6` ### Response #### Success Response (200) - **code** (Integer) - Kode status respons. - **success** (Boolean) - Menunjukkan apakah operasi berhasil. - **message** (String) - Pesan yang menjelaskan hasil operasi. - **data** (Object) - Objek yang berisi daftar operator untuk negara yang ditentukan. - Key (String) - ID negara. - Value (Array) - Daftar nama operator. #### Response Example ```json { "code": 200, "success": true, "message": "Berhasil mendapatkan daftar operator.", "data": { "6": [ "any", "indosat", "telkomsel", "axis", "three", "smartfren", "byu" ] } } ``` ``` -------------------------------- ### Check Account Balance Source: https://ditznesia.id/api-v1 Use this endpoint to retrieve your current account balance. Requires your API key for authentication. ```HTTP https://api.jasaotp.id/v1/balance.php?api_key=922a0af8d090b32ee2e6114a6e572799 ``` ```JSON { "code": 200, "success": true, "message": "Berhasil memeriksa saldo.", "data": { "saldo": 10000 } } ``` -------------------------------- ### Dapatkan Daftar Negara Source: https://ditznesia.id/api-v1 Mengambil daftar negara yang tersedia untuk layanan OTP. ```APIDOC ## Dapatkan Daftar Negara ### Description Mengambil daftar negara yang tersedia. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/negara.php` #### Parameters Tidak ada parameter yang diperlukan. ### Request Example `https://api.jasaotp.id/v1/negara.php` ### Response #### Success Response (200) - **code** (Integer) - Kode status respons. - **success** (Boolean) - Menunjukkan apakah operasi berhasil. - **message** (String) - Pesan yang menjelaskan hasil operasi. - **data** (Array) - Daftar negara yang tersedia. - **id_negara** (Integer) - ID unik negara. - **nama_negara** (String) - Nama negara. #### Response Example ```json { "code": 200, "success": true, "message": "Berhasil mengambil daftar negara.", "data": [ { "id_negara": 0, "nama_negara": "rusia" }, { "id_negara": 1, "nama_negara": "ukraina" } ] } ``` ``` -------------------------------- ### Check OTP for an Order Source: https://ditznesia.id/api-v1 Retrieve the OTP code for a specific order ID. Requires your API key and the order ID. ```HTTP https://api.jasaotp.id/v1/sms.php?api_key=922a0af8d090b32ee2e6114a6e572799&id=1728868 ``` -------------------------------- ### Cancel Order Source: https://ditznesia.id/api-v1 Cancels an existing order and processes a refund. ```APIDOC ## Cancel Order ### Description Cancels an existing order and gets a refund. ### Method GET ### Endpoint `https://api.jasaotp.id/v1/cancel.php` ### Parameters #### Query Parameters - **api_key** (String) - Required - Your API Key - **id** (Integer) - Required - Order ID ### Request Example `https://api.jasaotp.id/v1/cancel.php?api_key=922a0af8d090b32ee2e6114a6e572799&id=1728868` ### Response #### Success Response (200) - **code** (Integer) - Response code. - **success** (Boolean) - Indicates if the operation was successful. - **message** (String) - Confirmation message. - **data** (Object) - Contains order details. - **order_id** (Integer) - The ID of the cancelled order. - **refunded_amount** (Integer) - The amount refunded. #### Response Example ```json { "code": 200, "success": true, "message": "Pesanan berhasil dibatalkan dan saldo dikembalikan.", "data": { "order_id": 1728868, "refunded_amount": 3000 } } ``` ``` -------------------------------- ### Cancel Order Response Source: https://ditznesia.id/api-v1 This JSON response confirms that an order has been successfully cancelled and the corresponding amount has been refunded. It includes the order ID and the refunded amount. ```json { "code": 200, "success": true, "message": "Pesanan berhasil dibatalkan dan saldo dikembalikan.", "data": { "order_id": 1728868, "refunded_amount": 3000 } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.