API v2

api — reference

Dasturchilar uchun REST API. POST yoki GET so'rovlari orqali xizmatlar ro'yxatini oling, buyurtma bering va statusini kuzatib boring.

01

API Base

endpoint · base LIVE
HTTP MethodPOST or GET
API urlhttps://6ad3a954a9152.myxvest2.ru/api/v2
Bot@
02

Service list

GET · /api/v2  ·  action=services
ParametersDescription
keyYour API key
actionservices
response · 200 OK JSON
[
  {
    "service": 1,
    "name": "Followers",
    "type": "Default",
    "category": "First Category",
    "rate": "0.90",
    "min": "50",
    "max": "10000",
    "refill": true,
    "cancel": true
  },
  {
    "service": 2,
    "name": "Comments",
    "type": "Custom Comments",
    "category": "Second Category",
    "rate": "8",
    "min": "10",
    "max": "1500",
    "refill": false,
    "cancel": true
  }
]
03

Add order

$ type >
response · 200 OK JSON
{
  "order": 23501
}
04

Order status

GET · action=status
ParametersDescription
keyYour API key
actionstatus
orderOrder ID
response · 200 OK JSON
{
  "charge": "0.27819",
  "status": "Partial",
  "currency": "UZS"
}
05

All orders

GET · action=orders
ParametersDescription
keyYour API key
actionorders
response · 200 OK JSON
[
  {
    "customer": "125632728",
    "service": "15",
    "order": "6291",
    "status": "Completed",
    "charge": "2627.622",
    "currency": "UZS"
  },
  {
    "customer": "125632728",
    "service": "15",
    "order": "8643",
    "status": "In progress",
    "charge": "2627.622",
    "currency": "UZS"
  }
]
06

Multiple orders status

GET · action=status & orders=a,b,c
ParametersDescription
keyYour API key
actionstatus
ordersOrder IDs separated by comma (1,65,885,56,46,56)
response · 200 OK JSON
{
  "1":   { "charge": "0.27819", "status": "Partial",     "currency": "UZS" },
  "10":  { "error": "Incorrect order ID" },
  "100": { "charge": "1.44219", "status": "In progress", "currency": "UZS" }
}
07

Create refill

POST · action=refill
ParametersDescription
keyYour API key
actionrefill
orderOrder ID
response · 200 OK JSON
{
  "refill": "1"
}
08

Get refill status

GET · action=refill_status
ParametersDescription
keyYour API key
actionrefill_status
refillRefill ID
response · 200 OK JSON
{
  "status": "Completed"
}
09

User balance

GET · action=balance
ParametersDescription
keyYour API key
actionbalance
response · 200 OK JSON
{
  "balance": "2182.66",
  "currency": "UZS"
}
Example PHP code