API Referansı · Siparişler
https://panel.restofytech.com/api/pos/v1/orders/{orderId}Bir siparişin güncel hali. Kasada gösterilen sipariş her zaman bu cevaptan okunur: satırlar, seçimler, kuruş cinsinden tutarlar, ödeme, müşteri ve adres. Satırların adı, seçimleri ve fiyatı sipariş anında dondurulur; menü sonradan değişse de bu cevap değişmez.
Başka şubenin siparişi, hiç olmayan siparişle aynı cevabı alır (404 ORDER_NOT_FOUND).
Ödeme ve tahsilat kuralları: Ödeme ve tahsilat.
AuthorizationstringzorunluBearer <şube anahtarı>. Anahtar şubeyi belirler; istekte şube kimliği gönderilmez.
orderIdstring (uuid)zorunluorderobjectzorunluorder.orderIdstring (uuid)zorunluorder.orderNumberstringzorunluMüşterinin ve restoranın gördüğü sipariş numarası. Fişe basın.
order.versionintegerzorunluHer değişiklikte bir artar. Kasadaki sürümden büyükse fişi güncelleyin.
order.statusstringzorunluPENDINGCONFIRMEDPREPARINGREADYOUT_FOR_DELIVERYDELIVEREDCANCELLEDorder.channelstringzorunluDELIVERY adrese teslim, PICKUP gel-al, SELF_SERVICE QR ile tezgâhtan teslim, SHIPPING kargo.
DELIVERYPICKUPSELF_SERVICESHIPPINGorder.sourcestringzorunluRESTOFY müşterinin sitedeki siparişi, PANEL restoranın panelden elle girdiği sipariş.
RESTOFYPANELorder.isTestbooleanzorunluDeneme siparişi. Fişe "DENEME" yazın, ciroya ve kasa raporuna katmayın.
order.currencystringzorunluorder.createdAtstring (date-time)zorunluorder.updatedAtstring (date-time)zorunluorder.alertAtstring (date-time)zorunluMutfağın siparişi görmesi gereken an. İleri tarihli siparişte gelecektedir; mutfağa o an düşürün.
order.scheduledForstring (date-time)null olabilirMüşterinin seçtiği teslim saati. Boşsa "en kısa sürede" demektir.
order.estimatedAtstring (date-time)null olabilirMüşteriye söylenen tahmini teslim ya da hazır olma saati.
order.acceptedAtstring (date-time)null olabilirorder.pickedUpAtstring (date-time)null olabilirorder.deliveredAtstring (date-time)null olabilirorder.cancelledAtstring (date-time)null olabilirorder.cancellationobjectnull olabilirorder.cancellation.bystringnull olabilirCUSTOMER müşteri, BRANCH restoran ya da kasa, ADMIN Restofy, SYSTEM süresinde kabul edilmediği için Restofy.
CUSTOMERBRANCHADMINSYSTEMorder.cancellation.reasonCodestringnull olabilirorder.cancellation.notestringnull olabilirorder.actionsobjectzorunluorder.actions.advanceTostringzorunlunull olabiliradvance çağrısının siparişi götüreceği durum. Kapalı siparişte null.
PENDINGCONFIRMEDPREPARINGREADYOUT_FOR_DELIVERYDELIVEREDCANCELLEDorder.actions.cancellablebooleanzorunlucancel hâlâ gönderilebilir mi.
order.customerobjectzorunluorder.customer.namestringzorunluorder.customer.phonestringzorunlunull olabilirE.164 biçiminde. Müşteri hesabını silmişse null olabilir.
order.deliveryobjectnull olabilirYalnız adrese teslim ve kargo siparişinde dolu.
order.delivery.addressstringorder.delivery.districtstringnull olabilirorder.delivery.citystringnull olabilirorder.delivery.detailstringnull olabilirNo, kat, daire tek satırda
order.delivery.buildingNostringnull olabilirorder.delivery.floorstringnull olabilirorder.delivery.apartmentstringnull olabilirorder.delivery.directionsstringnull olabilirorder.delivery.latitudenumbernull olabilirorder.delivery.longitudenumbernull olabilirorder.notesstringnull olabilirorder.itemsobject[]zorunluorder.items[].lineIdstringzorunluorder.items[].productIdstringzorunlunull olabilirÜrün sonradan silinmişse null
order.items[].namestringzorunluorder.items[].quantityintegerzorunluorder.items[].unitPriceMinorintegerzorunluSeçenekler dahil bir adedin fiyatı
order.items[].lineTotalMinorintegerzorunluSatırın tahsil edilen toplamı. Seçenek farkını ikinci kez eklemeyin.
order.items[].vatRatePercentnumberzorunluSipariş anındaki KDV oranı (fiyata dahil)
order.items[].barcodestringnull olabilirorder.items[].notesstringnull olabilirorder.items[].optionsobject[]zorunluorder.items[].options[].groupIdstringzorunluorder.items[].options[].groupNamestringzorunluorder.items[].options[].choiceIdstringzorunluorder.items[].options[].choiceNamestringzorunluorder.items[].options[].priceModifierMinorintegerzorunluSeçeneğin ürüne eklediği tutar; satır fiyatına zaten dahil
order.items[].missingQuantityintegernull olabilirBulunamayan adet
order.items[].depositMinorintegerzorunluTam sayı kuruş (19000 = 190,00 TL)
order.totalsobjectzorunluorder.totals.subtotalMinorintegerzorunluSatırların toplamı
order.totals.deliveryFeeMinorintegerzorunluTeslimat ücreti
order.totals.serviceFeeMinorintegerzorunluHizmet bedeli
order.totals.discountMinorintegerzorunluKampanya indirimi
order.totals.taxMinorintegerzorunluFiyata eklenen vergi; Türkiye'de KDV fiyata dahil olduğu için 0
order.totals.tipMinorintegerzorunluBahşiş; Türkiye'de 0
order.totals.depositMinorintegerzorunluDepozito; Türkiye'de 0
order.totals.totalMinorintegerzorunluFişin toplamı. Kasa kendi toplamını değil bunu kullanır.
order.totals.returnedMinorintegerzorunluTeslimden sonra iade edilen tutar
order.paymentobjectzorunluorder.payment.methodstringzorunluONLINE sitede kartla ödendi; CASH ve CARD kapıda ya da tezgâhta nakit ve banka kartı; MEAL_CARD kapıda yemek kartı; UNSPECIFIED 17 Kasım 2026 öncesi kapıda ödemeli sipariş, nakit mi kart mı kayıtlı değil (kasiyer sorar).
ONLINECASHCARDMEAL_CARDUNSPECIFIEDorder.payment.mealCardstringzorunlunull olabilirYemek kartının markası
MULTINETPLUXEEEDENREDSETCARDMETROPOLTOKENFLEXPAYEorder.payment.paidOnlinebooleanzorunluorder.payment.amountToCollectMinorintegerzorunluTeslimde tahsil edilecek tutar. Çevrimiçi ödemede ve iptal edilmiş siparişte 0.
order.courierobjectnull olabilirRestoranın atadığı kurye. Yoksa null.
order.courier.namestringnull olabilirorder.courier.phonestringnull olabilirorder.shipmentobjectnull olabilirorder.shipment.carrierstringorder.shipment.trackingNumberstringRetry-After: Tekrar denemeden önce beklenecek saniye
curl "https://panel.restofytech.com/api/pos/v1/orders/$ORDER_ID" \
-H "Authorization: Bearer $TOKEN"Anahtar yalnız bu sekmede tutulur. Test anahtarı kullanın: canlı anahtarla yapılan kabul ve iptal gerçek siparişi değiştirir.
{
"ok": true,
"order": {
"orderId": "882649c5-f468-434a-8d9d-e7228f9eaa34",
"orderNumber": "HZLVHGFK",
"version": 1,
"status": "PENDING",
"channel": "DELIVERY",
"source": "RESTOFY",
"isTest": false,
"currency": "TRY",
"createdAt": "2026-11-25T09:00:00.309Z",
"updatedAt": "2026-11-25T09:00:00.309Z",
"alertAt": "2026-11-25T09:00:00.308Z",
"scheduledFor": null,
"estimatedAt": "2026-11-25T09:40:00.308Z",
"acceptedAt": null,
"pickedUpAt": null,
"deliveredAt": null,
"cancelledAt": null,
"cancellation": null,
"actions": {
"advanceTo": "PREPARING",
"cancellable": true
},
"customer": {
"name": "Ayşe Yılmaz",
"phone": "+905321112233"
},
"delivery": {
"address": "Moda Cd. 12",
"district": "Kadıköy",
"city": "İstanbul",
"detail": "No: 12 · Kat: 3 · Daire: 7",
"buildingNo": "12",
"floor": "3",
"apartment": "7",
"directions": "Eczanenin üstü",
"latitude": 40.9862,
"longitude": 29.0253
},
"notes": "Zili çalmayın",
"items": [
{
"lineId": "2525e7be-85f3-4d76-a7b6-5abd4892cc7a",
"productId": "484fceb5-bb32-4e12-8ba1-4005342648e7",
"name": "Filtre Kahve",
"quantity": 2,
"unitPriceMinor": 10000,
"lineTotalMinor": 20000,
"vatRatePercent": 10,
"barcode": null,
"notes": null,
"options": [
{
"groupId": "142fbf4d-4632-4cf8-be74-160bb0269fdf",
"groupName": "Boy",
"choiceId": "f5db8835-8812-4e65-b5d2-9d0620675941",
"choiceName": "Büyük",
"priceModifierMinor": 1000
}
],
"missingQuantity": null,
"depositMinor": 0
}
],
"totals": {
"subtotalMinor": 20000,
"deliveryFeeMinor": 1500,
"serviceFeeMinor": 0,
"discountMinor": 2500,
"taxMinor": 0,
"tipMinor": 0,
"depositMinor": 0,
"totalMinor": 19000,
"returnedMinor": 0
},
"payment": {
"method": "ONLINE",
"mealCard": null,
"paidOnline": true,
"amountToCollectMinor": 0
},
"courier": null,
"shipment": null
}
}