API Dökümantasyonu Kullanıcı için API Bilgileri API Adresi: https://bayi.uniquelisans.com/api API Key: ajggUs45DLVJDwmG8qHS7TFoPulJPtwE API Endpoints ENDPOINT METHOD DESCRIPTION PARAMETERS RESPONSE /api/categories GET Aktif Kategori ve Alt kategorileri alırsınız key (string): API key { "categories": [ { "id": 1, "name": "Kategori İsmi", "subcategories": [ { "id": 1, "category_id": 1, "name": "Envato Elements" }, { "id": 2, "category_id": 1, "name": "Freepik" } ] }, "status": "success", "code": 200 } /api/products GET Kategoriye ait ürünleri alırsınız. key (string): API key category_id (integer): Kategori ID sub_category_id (integer): Alt Kategori ID { "products": [ { "id": 1, "name": "Envato Elements 30 Gün", "description": "Envato 30 Gün - 2 stok", "amount": 25, // Fiyat "is_stock": true, // Stok var mı? "stock_count": 2, // Stok sayısı "is_automatic_delivery": true // Otomatik Teslimat } ], "status": "success", "code": 200 } /api/products/{id} GET Ürün bilgilerini alırsınız key (string): API key { "product_detail": { "id": 2, "name": "Wordpress Tema Test Bayi Sağlayıcısı", "description": "Deneme Tema", "amount": 100, "product_type": "wordpress", //Wordpress, Email, Link, None "is_stock": false, "is_automatic_delivery": false, "stock_count": null, // Gönderilmesi gereken veriler "required_fields": [ { "name": "wordpress_link", "el_type": "input", "input_type": "url", "required": true }, { "name": "wordpress_user", "el_type": "input", "input_type": "text", "required": true }, { "name": "wordpress_password", "el_type": "input", "input_type": "password", "required": true } ] }, "status": "success", "code": 200 } /api/balance GET Mevcut Bakiyenizi alırsınız key (string): API key { "balance": 100, "status": "success", "code": 200 } /api/orders POST Yeni Sipariş Oluşrursunuz key (string): API key product_id (integer): Ürün ID required_fields (integer): Ürün Detayında istenen bilgiler Not: email/link/wordpress bilgileri gibi params gönderin. required_fields ismiyle değil. Email: email - Link: link Wordpress: wordpress_link, wordpress_user, wordpress_password None: Parametreye gerek yok. //BAŞARILI { "order_id": 34, "delivery_data": "test stok", "status": "success", "code": 201 } // BAŞARILI STOKSUZ ÜRÜN { "order_id": 42, "delivery_data": null, "status": "pending", "code": 200 } //STOK YOK { "status": "error", "message": "Out of stock", "code": 200 } // ZORUNLU PARAMETLER GELMEDİ { "required_fields": { "wordpress_link": [ "wordpress link alanı gereklidir." ], "wordpress_user": [ "wordpress user alanı gereklidir." ], "wordpress_password": [ "wordpress password alanı gereklidir." ] }, "status": "error", "code": 422 } // BAKİYE YETERSİZ { "status": "error", "message": "Insufficient balance", "code": 402 } /api/orders/{id} GET Sipariş detaylarını alırsınız key (string): API key //TAMAMLANAN ÜRÜN { "order_id": "1", "delivery_data": "stok-7\r", "status": "success", "code": 200 } // BEKLEYEN ÜRÜN { "order_id": 42, "delivery_data": null, "status": "pending", "code": 200 }