Geliştirici & API
Motoserviso REST API ile iş emirlerinizi ve motosiklet verilerinizi ERP, CRM veya özel uygulamalarınıza bağlayın. Webhook ile olay bildirimleri alın.
Kimlik Doğrulama
Panel → Ayarlar → API bölümünden Bearer token oluşturun.
Authorization: Bearer YOUR_API_TOKEN
REST Endpoints
Base URL: https://motoserviso.com/api/v1
GET /service-orders
// Sayfalı iş emri listesi (?per_page=25, max 100)
// Sayfalı iş emri listesi (?per_page=25, max 100)
GET /service-orders/{id}
GET /vehicles
// ?plate=34ABC filtre destekler
// ?plate=34ABC filtre destekler
GET /vehicles/{id}
Webhook Olayları
Panelden webhook URL tanımlayın. Her istekte HMAC-SHA256 imza header'ı gönderilir.
service_order.created— Yeni iş emri oluşturulduservice_order.completed— İş emri tamamlandı
X-Motoserviso-Event: service_order.completed
X-Motoserviso-Signature: <hmac-sha256-body>
Content-Type: application/json
X-Motoserviso-Signature: <hmac-sha256-body>
Content-Type: application/json
Örnek istek (cURL)
curl -H "Authorization: Bearer TOKEN" \
https://motoserviso.com/api/v1/service-orders
https://motoserviso.com/api/v1/service-orders