Bu servis stage ortamında talep edilen senaryolarda test siparişi oluşturulması için kullanılacaktır.
https://stageapi.trendyol.com/integration/oms/meal
{
"address": {
"addressDescription": "string",
"addressText": "string",
"apartmentNumber": "int",
"city": "string",
"company": "string",
"district": "string",
"doorNumber": "int",
"email": "string",
"floor": "int",
"latitude": "long", //40.8796
"longitude": "long", //29.2580
"neighborhood": "string",
"phone": "int" // 5351231231 10 haneli olmalıdır
},
"customer": {
"customerFirstName": "string",
"customerLastName": "string"
},
"lines": [
{
"ingredientOptions": {
"exclude": [
{
"id": 0,
"name": "string"
}
],
"include": [
{
"id": 0,
"name": "string",
"price": 0
}
]
},
"modifierProducts": [
{
"ingredientOptions": {
"exclude": [
{
"id": 0,
"name": "string"
}
],
"include": [
{
"id": 0,
"name": "string",
"price": 0
}
]
},
"modifierGroupId": 0,
"modifierProducts": [
null
],
"name": "string",
"price": 0,
"productId": 0
}
],
"product": {
"productId": 0,
"productName": "string"
},
"quantity": 0
}
],
"store": {
"deliveryType": "string",
"storeId": 0,
"supplierId": 0
}
}
İstek atıldıktan sonra tarafınıza response içerisinde "orderNumber" dönecektir. Bu sipariş numarasıyla talep ettiğiniz işlemleri yapabilirsiniz.
Ürün ve menü bilgileri Menülerin alınması servisinden edinilebilir.
Field | Field Değer | Açıklama | Tip |
---|---|---|---|
deliveryType | STORE - GO | Store: Kendi kuryesi ile teslimat yapacak firmalar, Go: trendyol kuryesi ile teslimat yapacak firmalar için kullanılabilir. | string |
ingredientOptions | Sipariş içerisinde yer alan ürünün ekleme (include) çıkarma (exlude) bilgilerini içermektedir. | string | |
modifierProducts | Sipariş içerisindeki ürüne ek olarak eklenen ürünlerdir. | string | |
product | Sipariş içerisindeki ana üründür | string |