API Documentation

API Documentation


API Documentation




















HTTP Method GET
Format Respon JSON
API URL https://virtusim.com/api/json.php
Contoh Script PHP EXAMPLE SCRIPT


Displaying Service List




















Parameter Information
api_key Your API Key.
action services
URL https://virtusim.com/api/json.php?api_key={{YOUR API KEY}}&action=services&country=indo



Example of Response Displayed












Successful Response Response Failed



{
"status": true,
"data": [
{
"id": "1",
"name": "Twitter",
"price": "850",
"tersedia": "8179",
"category": "OTP"
},
{
"id": "2",
"name": "Lazada",
"price": "900",
"tersedia": "7208",
"category": "OTP"
},
{
"id": "3",
"name": "BitClout",
"price": "900",
"tersedia": "8208",
"category": "OTP"
},
{
"id": "4",
"name": "Naver",
"price": "1500",
"tersedia": "7962",
"category": "OTP"
}
]
}



{
"status": false,
"data": {
"msg": "Wrong API Key"
}
}


Possible messages displayed:

  • Inappropriate request

  • Incorrect API Key




Order Number




























Parameter Information
api_key Your API Key.
action order
service Service ID, can be seen in the Service List .
operator telkomsel,axis,indosat,any(random)
URL https://virtusim.com/api/json.php?api_key={{YOUR API KEY}}&action=order&service={{IDSERVICE}}&operator=any


Example of Response Displayed












Successful Response Response Failed


{
"status": true,
"data": {
"id": "",
"number": "6285648626733",
"operator": "indosat",
"service_id": "26",
"service_name": "Anyother"
}
}



{
"status": false,
"data": {
"msg": "Insufficient balance"
}
}


Possible messages displayed:

  • Inappropriate request

  • Incorrect API Key

  • Service not found

  • Number of messages does not match

  • Insufficient balance

  • Service not available




Change Number Status




























Parameter Information
api_key Your API Key.
action set_status
id Order ID
status 1 = Ready , 2 = Cancel , 3 = Resend, 4 = Finished
URL https://virtusim.com/api/json.php?api_key={{YOUR API KEY}}&action=set_status&id={{ORDERID}}&status=1


Example of Response Displayed












Successful Response Response Failed

{
"status": true,
"msg": "Successfully waiting for incoming SMS",
"data": {
"id": "",
"number": "6285648626733",
"service_name": "Anyother"
}
}



{
"status": false,
"msg": "Failed to Cancel",
"data": {
"id": "",
"number": "6285648626733",
"service_name": "Anyother"
}
}


Possible messages displayed:

  • Inappropriate request

  • Incorrect API Key

  • Service not found

  • Number of messages does not match

  • Insufficient balance

  • Service not available




Check Active Order SMS




















Parameter Information
api_key Your API Key.
action active_order
URL https://virtusim.com/api/json.php?api_key={{YOUR API KEY}}&action=active_order


Example of Response Displayed












Successful Response Response Failed

{ 
"status": true,

"data": [

{

"id": "",

"status": "OTP Received",

"number": "6285885236642",

"otp": " 299825 is your verification code & valid for 4 minutes. Avoid fraud by not sharing your code with anyone. Info: 1500340 ivELaj3aAVF",

"sms": " 299825 is your verification code & valid for 4 minutes. Avoid fraud by not sharing your code with anyone. Info: 1500340 ivELaj3aAVF",

"service_name": "Anyother"

},

{

"id": "",

"status": "OTP Received",

"number": "6283103357447",

"otp": " 633330 is your verification code & valid for 4 minutes. Avoid fraud by not sharing your code with anyone. Info: 1500340 ivELaj3aAVF",

"sms": " 633330 is your verification code & valid for 4 minutes. Avoid fraud by not sharing your code with anyone. Info: 1500340 ivELaj3aAVF",

"service_name": "Anyother"

},

{

"id": "",

"status": "Ready",

"number": "6285648626733",

"otp": "Waiting SMS Code",

"sms": "",

"service_name": "Anyother"

}

]

}




{
"status": false,
"data": {
"msg": "Wrong API Key"
}
}


Possible messages displayed:

  • Inappropriate request

  • Incorrect API Key




Check Order Status
























Parameter Information
api_key Your API Key.
action status
id Order ID.
URL https://virtusim.com/api/json.php?api_key={{YOUR API KEY}}&action=status&id={{ORDERID}}


Example of Response Displayed












Successful Response Response Failed

{
"status": true,
"data": {
"id": "9418",
"status": "Pending",
"number": "6285648626733",
"sms": "-",
"service_name": "Anyother"
}
}


Possible statuses displayed:

  • Pending

  • Processing

  • Error

  • Success



{
"status": false,
"data": {
"msg": "Order not found"
}
}


Possible messages displayed:

  • Inappropriate request

  • Incorrect API Key

  • Order not found