API Dokumantasyonu

REST API ile bakiye sorgulayin ve siparislerinizi yonetin.

Base URL https://sosyohostyazilim.com/api/v1
API Key API anahtari icin panele giris yapin.
Method POST

Bakiye Sorgula

Action: CHECK_BALANCE
Key: YOUR_API_KEY
Basarili
{
  "STATUS": "SUCCESS",
  "RESULT": "15.6"
}
Hata
{
  "STATUS": "ERROR",
  "MESSAGE": "INVALID_API_KEY"
}
Request
POST https://sosyohostyazilim.com/api/v1{"action":"CHECK_BALANCE","key":"YOUR_API_KEY"}

Siparis Ver

Action: PURCHASE_NUMBER
Service: fb, Country: 1
Basarili
{
  "STATUS": "SUCCESS",
  "ORDER_ID": "123456",
  "NUMBER": "+905551112233"
}
Hata
{
  "STATUS": "ERROR",
  "MESSAGE": "OUT_OF_STOCK"
}
Request
POST https://sosyohostyazilim.com/api/v1{"action":"PURCHASE_NUMBER","key":"YOUR_API_KEY","service":"fb","country":1}

Siparis Sorgula

Action: CHECK_ORDER
Order ID: 123456
Basarili
{
  "STATUS": "SUCCESS",
  "STATE": "WAIT_CODE"
}
Hata
{
  "STATUS": "ERROR",
  "MESSAGE": "ORDER_NOT_FOUND"
}
Request
POST https://sosyohostyazilim.com/api/v1{"action":"CHECK_ORDER","key":"YOUR_API_KEY","order_id":123456}

Siparisi Iptal Et

Action: CANCEL_ORDER
Order ID: 123456
Basarili
{
  "STATUS": "SUCCESS",
  "RESULT": "CANCELED"
}
Hata
{
  "STATUS": "ERROR",
  "MESSAGE": "CANNOT_CANCEL"
}
Request
POST https://sosyohostyazilim.com/api/v1{"action":"CANCEL_ORDER","key":"YOUR_API_KEY","order_id":123456}