Order Details
GET /api/External/v2/Order/{orderId}
Retrieves order details based on a specific order ID.
Example Request
Get order details
curl -X GET "https://ext.adisyo.com/api/External/v2/Order/643287" \
--header "x-api-key: ..." \
--header "x-api-secret: ..." \
--header "x-api-consumer: ..."Request Parameters
| Parameter | Data Type | Description |
|---|---|---|
orderId | Long (Path Parameter) | Order ID in Adisyo system |
Example Response
Table Order Example
{
"id": 123456789,
"waiterName": "ÖRNEK RESTORAN",
"deliveryUserName": null,
"courierId": 0,
"externalAppName": null,
"restaurantName": "ÖRNEK ŞUBE",
"orderTotal": 485.00,
"paymentMethodName": null,
"paymentMethodId": 0,
"deliveryTime": null,
"discountAmount": 0.00,
"currency": "TRY",
"orderNote": null,
"externalAppId": null,
"salesChannelId": 12345,
"salesChannelName": "Ana Kanal",
"orderType": "Masa Siparişi",
"orderTypeId": 1,
"statusId": 1,
"status": "Sipariş Alındı",
"orderCancelReason": null,
"tableName": null,
"orderNumber": 101,
"taxAmount": 44.09,
"insertDate": "2025-01-15T16:10:39.973",
"updateDate": "2025-01-15T16:22:23.02",
"customerId": 987654321,
"customerLatitude": null,
"customerLongitude": null,
"confirmationCode": null,
"integrationRestaurantName": null,
"addressId": 123456789,
"isScheduledOrder": false,
"scheduledTime": null,
"deliveryType": 2,
"restaurantKey": 12345,
"externalAppKey": 0,
"closedDate": null,
"preparedDate": null,
"customer": {
"customerName": "Ahmet",
"customerSurname": "Yılmaz",
"customerEmail": "",
"customerId": 987654321,
"customerPhone": "5551234567",
"customerPhone2": "",
"address": "Örnek Mahallesi, Örnek Sokak No:123, 34000 İstanbul",
"addressDescription": "Örnek Bina K:5",
"region": "Kadıköy",
"addressHeader": "Ev",
"city": "İstanbul",
"company": null,
"phoneCode": null,
"addressId": 0,
"isDefault": null
},
"products": [
{
"id": 1111111111,
"orderId": 123456789,
"productUnitId": 2222222,
"quantity": 1.000,
"unitPrice": 270.00,
"productName": "2 Orta Boy Pizza",
"categoryName": "Salon Kampanya",
"productNote": null,
"productCode": "SALON04",
"isMenu": true,
"parentId": null,
"cost": 0.0,
"totalAmount": 325.00,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2025-01-15T16:10:40.163",
"description": null,
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [],
"features": []
},
{
"id": 1111111112,
"orderId": 123456789,
"productUnitId": 3333333,
"quantity": 1.000,
"unitPrice": 0.00,
"productName": "Salamlı Zeytinli (Orta Boy)",
"categoryName": "Ekonomik Pizzalar",
"productNote": null,
"productCode": "ADP02",
"isMenu": false,
"parentId": 1111111111,
"cost": 0.0,
"totalAmount": 0.00,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2025-01-15T16:10:40.173",
"description": null,
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [
{
"compositeId": 123456,
"compositeName": "SIYAH ZEYTIN"
}
],
"features": [
{
"featureName": "FUME KABURGA",
"additionalPrice": 40.00,
"featureId": 111111,
"orderDetailId": 1111111112
},
{
"featureName": "TAVUK",
"additionalPrice": 15.00,
"featureId": 222222,
"orderDetailId": 1111111112
},
{
"featureName": "INCE HAMUR",
"additionalPrice": 0.00,
"featureId": 333333,
"orderDetailId": 1111111112
}
]
},
{
"id": 1111111113,
"orderId": 123456789,
"productUnitId": 4444444,
"quantity": 1.000,
"unitPrice": 0.00,
"productName": "Margarita (Orta Boy)",
"categoryName": "Ekonomik Pizzalar",
"productNote": "",
"productCode": "MARG02",
"isMenu": false,
"parentId": 1111111111,
"cost": 0.0,
"totalAmount": 0.00,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2025-01-15T16:10:40.337",
"description": null,
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [],
"features": [
{
"featureName": "INCE HAMUR",
"additionalPrice": 0.00,
"featureId": 333333,
"orderDetailId": 1111111113
}
]
},
{
"id": 1111111114,
"orderId": 123456789,
"productUnitId": 5555555,
"quantity": 1.000,
"unitPrice": 45.00,
"productName": "Limonata (30 cl.)",
"categoryName": "İçecekler",
"productNote": null,
"productCode": "ICE19",
"isMenu": false,
"parentId": null,
"cost": 7.00,
"totalAmount": 45.00,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2025-01-15T16:10:40.8",
"description": null,
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [],
"features": []
},
{
"id": 1111111115,
"orderId": 123456789,
"productUnitId": 6666666,
"quantity": 1.000,
"unitPrice": 60.00,
"productName": "Sufle",
"categoryName": "Tatlılar",
"productNote": "",
"productCode": "SUF01",
"isMenu": false,
"parentId": null,
"cost": 0.0,
"totalAmount": 60.00,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2025-01-15T16:10:40.83",
"description": null,
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [],
"features": []
},
{
"id": 1111111116,
"orderId": 123456789,
"productUnitId": 7777777,
"quantity": 1.000,
"unitPrice": 55.00,
"productName": "Sarımsaklı Ekmek",
"categoryName": "Çıtır Lezzetler",
"productNote": null,
"productCode": "CIT08",
"isMenu": false,
"parentId": null,
"cost": 0.0,
"totalAmount": 55.00,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2025-01-15T16:10:40.877",
"description": null,
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [],
"features": []
}
],
"payments": []
}Response Parameters
Main Order Information
| Parameter Name | Data Type | Description |
|---|---|---|
id | Number | Order ID in Adisyo system |
waiterName | String? | Waiter name |
deliveryUserName | String? | Delivery personnel name |
courierId | Number | Courier ID |
externalAppName | String? | External application name |
restaurantName | String? | Restaurant name |
orderTotal | Number | Order total amount |
paymentMethodName | String? | Payment method name |
paymentMethodId | Number | Payment method ID |
deliveryTime | Date? (ISO 8601) | Delivery time |
discountAmount | Number | Discount amount |
currency | String | Currency |
orderNote | String? | Order note |
externalAppId | String? | Order ID in external application |
salesChannelId | Number | Sales channel ID |
salesChannelName | String | Sales channel name |
orderType | String | Order type (Table Order, Takeaway Order, Pickup Order) |
orderTypeId | Number | Order type ID (1: Table, 3: Takeaway, 5: Pickup) |
statusId | Number | Order status ID |
status | String? | Order status |
orderCancelReason | String? | Cancellation reason (if any) |
tableName | String? | Table name (if table order) |
orderNumber | Number | Order number |
taxAmount | Number | Tax amount |
insertDate | Date (ISO 8601) | Order creation date |
updateDate | Date (ISO 8601) | Last update date |
customerId | Number | Customer ID (0 if anonymous customer) |
customerLatitude | String? | Customer latitude information |
customerLongitude | String? | Customer longitude information |
confirmationCode | String? | Confirmation code |
integrationRestaurantName | String? | Integration restaurant name |
addressId | Number | Address ID |
isScheduledOrder | Boolean | Is it a scheduled order? |
scheduledTime | String? | Scheduled delivery time |
deliveryType | Number | Delivery type |
restaurantKey | Number | Restaurant key |
externalAppKey | Number | External application key |
closedDate | Date? (ISO 8601) | Order closing date |
preparedDate | Date? (ISO 8601) | Order preparation date |
Customer Information (customer)
| Parameter Name | Data Type | Description |
|---|---|---|
customerName | String? | Customer name (null if anonymous customer) |
customerSurname | String? | Customer surname |
customerEmail | String? | Customer email address |
customerId | Number | Customer ID (0 if anonymous customer) |
customerPhone | String? | Primary phone number |
customerPhone2 | String? | Secondary phone number |
address | String? | Address |
addressDescription | String? | Address description |
region | String? | District/County |
addressHeader | String? | Address header |
city | String? | City |
company | String? | Company name |
phoneCode | String? | Phone code |
addressId | Number | Address ID |
isDefault | Boolean? | Is it the default address? |
Product Information (products)
| Parameter Name | Data Type | Description |
|---|---|---|
id | Number | Product row ID |
orderId | Number | Order ID |
productUnitId | Number | Product unit ID |
quantity | Number | Quantity |
unitPrice | Number | Unit price |
productName | String | Product name |
categoryName | String? | Category name |
productNote | String? | Product note |
productCode | String? | Product code |
isMenu | Boolean | Is it a menu product? |
parentId | String? | Parent menu ID |
cost | Number | Cost |
totalAmount | Number | Total amount |
groupName | String? | Group name |
groupId | Number | Group ID |
discountAmount | Number | Discount amount |
insertDate | Date (ISO 8601) | Insertion date |
description | String? | Product description |
cancelReason | String? | Cancellation reason |
excludedComposites | String? | Excluded composites |
excludedItems | Array | Excluded items (compositeId, compositeName) |
features | Array | Features (featureName, additionalPrice, featureId, orderDetailId) |
Payment Information (payments)
| Parameter Name | Data Type | Description |
|---|---|---|
orderId | Number | Order ID |
paymentTypeId | Number | Payment type ID |
paymentName | String | Payment method name |
amount | Number | Payment amount |
customerId | Number? | Customer ID |
customerName | String? | Customer name |
customerSurname | String? | Customer surname |
isDebit | Boolean | Is it debit? |
currencyId | Number | Currency ID |
currency | String | Currency |
exchangeRate | Number | Exchange rate |
insertDate | Date (ISO 8601) | Payment date |
Usage Examples
JavaScript/Node.js
JavaScript example
const axios = require('axios');
async function getOrderById(orderId) {
try {
const response = await axios.get(
`https://ext.adisyo.com/api/External/v2/Order/${orderId}`,
{
headers: {
'x-api-key': 'your-api-key',
'x-api-secret': 'your-api-secret',
'x-api-consumer': 'your-consumer'
}
}
);
console.log('Order details:', response.data);
return response.data;
} catch (error) {
console.error('Error:', error.response?.data || error.message);
throw error;
}
}
// Usage
getOrderById(123456789);Notes
- Only authorized users can view their own restaurant's orders
- Order ID must be a valid number
- Response includes all order details, customer information, product list and payment information