Ushbu API orqali to'lov operatsiyalarini boshqarishingiz mumkin.
API endpointi: https://payment.api-link.uz/api
Barcha so'rovlar uchun shop_id va shop_key kerak bo'ladi.
POST ?method=create
Yangi to'lov buyurtmasini yaratish.
| Parametr | Turi | Tavsif |
|---|---|---|
| shop_id | number | Do'kon identifikatori |
| shop_key | string | Do'kon maxfiy kaliti |
| amount | number | To'lov miqdori |
{
"status": "success",
"order": "owld1002",
"insert_id": 123,
"data": {
"amount": 10000,
"shop_id": "shop123",
"shop_key": "key456"
}
}
{
"status": "error",
"message": "Do'kon topilmadi!"
}
GET ?method=check&order=ORDER_CODE
Buyurtma statusini tekshirish.
| Parametr | Turi | Tavsif |
|---|---|---|
| order | string | Buyurtma kodi |
{
"status": "success",
"order": "owld1002",
"data": {
"amount": 10000,
"status": "pending",
"date": "2023-05-15"
}
}
POST ?method=cancel
To'lovni bekor qilish (faqat "pending" statusidagi to'lovlar uchun).
| Parametr | Turi | Tavsif |
|---|---|---|
| order | string | Bekor qilinadigan buyurtma kodi |
{
"status": "success",
"message": "Buyurtma muvaffaqiyatli bekor qilindi.",
"order": "owld1002"
}
GET ?shop_id=ID&shop_key=KEY
Do'kon haqida ma'lumot olish.
{
"status": "success",
"data": {
"user_id": 123,
"shop_id": "shop123",
"shop_key": "key456",
"shop_name": "Mening Do'konim",
"shop_info": "Do'kon haqida ma'lumot",
"phone": "998901234567",
"status": "confirm",
"month_status": "To'landi",
"balance": 500000,
"over_day": "0"
}
}
| Xato | Tavsif |
|---|---|
| Do'kon topilmadi! | shop_id yoki shop_key noto'g'ri |
| Do'kon faol emas! | Do'kon admin tomonidan faollashtirilmagan |
| Oylik to'lov qilinmagan! | Do'kon oylik to'lovni amalga oshirmagan |
| Hisob ulanmagan! | Do'konga telefon raqam biriktirilmagan |
shop_id va shop_key @GoldHamyonBot'dan olinadi