...
- if a certain (non-mandatory) parameter is sent, checking is turned off
- if a certain (mandatory) parameter is sent, checking is turned on
- if the whole order is sent, checking of fields mandatory for the order is turned on
- if expeditionType parameter is sent, checking of fields mandatory for the order is turned on
Parameter | Description | Mandatory for delivery | Mandatory for pickup | |
---|---|---|---|---|
orderId | string | order id | yes | yes |
comment | string | order comment | ||
restaurantId | string | restaurant id | yes | |
persons | int | number of persons | ||
dishList | array | dish list | yes | yes |
-id | string | dish id | yes | yes |
-name | string | dish name | ||
-price | double Only a full stop symbol «.» is used as a delimiter | price | ||
-measure | measure | |||
--value | double | service size | ||
--unit | string | unit of measurement: kg, liter, pcs | ||
-quantity | double Only a full stop symbol «.» is used as a delimiter | quantity | yes | yes |
-ingredients | array | ingredients | ||
expeditionType | string | type of order receiving (delivery, pickup) | yes | yes |
expectedAt | DateTime | time at which order is expected | yes | yes |
paymentTypeId | string | payment type id:
| yes | yes |
changeFrom | double Only as full stop symbol «.» is used as a delimiter | sum to get change from | ||
guest | guest | yes | ||
string | guest's email | |||
-phone | string | phone number | yes | |
-firstName | string | first name | ||
-lastName | string | last name | ||
address | delivery address | |||
-postcode | string | postcode | ||
-street | string | street | yes | |
-comment | string | comment on the address | ||
-lat | double Only a full stop symbol «.» is used as a delimiter | latitude | ||
-lon | double Only a full stop symbol «.» is used as a delimiter | longitude | ||
-cityId | string | city id | ||
-cityName | string | city name | yes | |
-floor | int | floor | ||
-houseNumber | string | house number | yes | |
-apartmentNumber | string | apartment number | ||
-entrance | string | entrance | ||
-subway | string | subway | ||
-fullAddress | string | full address | yes |