addOnlineOrder
POST
<baseUrl>/?section=publicInterface&action=addOnlineOrderТіло (JSON): orderSource — обовʼязкове, допустимі значення otherOnlineShop або e-app (інакше — помилка source not supported). Також обовʼязкові: client (з clientName та clientPhone), products, tradepointId.
Приклад запиту
{
"orderSource": "e-app",
"tradepointId": 1,
"orderType": "delivery",
"client": {
"clientName": "Іван",
"clientPhone": "380000000000",
"clientBalance": 0,
"clientData": {
"city": "Київ",
"address": "",
"email": "user@example.com",
"sex": "m"
}
},
"delivery": {
"adress": "м. Київ, вул. Хрещатик 1",
"type": "onTimeDelivery",
"deliveryDatetime": "2025-10-07 20:00:00"
},
"payments": [
{
"sum": 1299,
"type": "cashless"
}
],
"products": [
{
"nomenclatureId": 233,
"nomenclatureName": "Вода мінеральна 0.5L",
"count": "1",
"amount": "1",
"comment": ""
}
]
}
Параметри запиту
ПараметрТипОпис
timezonestringЗсув часового поясу для дат (напр. "+3", "-2").tradepointIdintegerID торгової точки.terminalIdinteger—Тіло запиту JSON
ПолеТипОпис
clientstring—datetimestring—orderSource*string—Відповідь
Успіх — status: "done" та обʼєкт data.
ПолеТипОпис
orderIdstring—Можливі помилки
client information not assignedsource not supported