Rehberler
İlk Entegrasyon
Ön koşullar
Adımlar
İşletmeyi oluştur
POST /web-api/v1/businesses. Dönenid, bir sonraki adımdabusinessIdolarak kullanılır.cURLbashcurl -X POST https://api.v1.fastsiparis.com/web-api/v1/businesses \ -H "Authorization: Bearer POSENTEGRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Merkez İşletme" }'Restoranı oluştur
POST /web-api/v1/restaurants. GövdedekibusinessId, bir önceki adımda dönen değerdir. Var olan bir restoranı bağlamak içinPOST /web-api/v1/businesses/{businessId}/restaurantsucunurestaurantIdgövdesiyle kullanın.cURLbashcurl -X POST https://api.v1.fastsiparis.com/web-api/v1/restaurants \ -H "Authorization: Bearer POSENTEGRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "businessId": "{businessId}", "name": "Serdivan Şubesi", "description": "Serdivan AVM yanı" }'Paketi ata
POST /web-api/v1/restaurants/{restaurantId}/assign-package. Uygun paketleriGET /web-api/v1/user/packages/availableile listeleyin.cURLbashcurl -X POST https://api.v1.fastsiparis.com/web-api/v1/restaurants/{restaurantId}/assign-package \ -H "Authorization: Bearer POSENTEGRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "userPackageId": "{userPackageId}", "businessName": "PosEntegra" }'Platform entegrasyonunu ekle
POST /web-api/v1/restaurants/{restaurantId}/integrationsile entegrasyonu ekleyin;configalanları platformun size verdiği kimlik bilgileridir. ArdındanPOST /web-api/v1/restaurants/integrations/update-statusucunaproviderIdgöndererek aktif edin.cURLbashcurl -X POST https://api.v1.fastsiparis.com/web-api/v1/restaurants/{restaurantId}/integrations \ -H "Authorization: Bearer POSENTEGRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "integrationId": "{integrationId}", "config": { "restaurantId": "{restaurantId}", "apiKey": "", "secretKey": "", "supplierId": "" } }' curl -X POST https://api.v1.fastsiparis.com/web-api/v1/restaurants/integrations/update-status \ -H "Authorization: Bearer POSENTEGRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "field": "status", "status": true, "providerId": "{providerId}" }'Siparişleri dinle
GET /web-api/v1/ordersile çekin ya da webhook kurun.cURLbashcurl https://api.v1.fastsiparis.com/web-api/v1/orders \ -H "Authorization: Bearer POSENTEGRA_API_KEY"
Kurulumu doğrula
İki kontrol yeterli: GET /web-api/v1/restaurants/{restaurantId}/integrations bağlı platformu döndürmeli; GET /web-api/v1/orders 200 dönmeli (liste boş olabilir).