Delivery models¶
Models of the delivery endpoints.
Generated by python -m codegen from the iikoCloud OpenAPI specification. Do not edit by hand.
ChangeServiceTypeRequest
module-attribute
¶
ChangeServiceTypeRequest = Annotated[
Annotated[
ChangeServiceTypeDeliveryByCourier,
Tag("DeliveryByCourier"),
]
| Annotated[
ChangeServiceTypeDeliveryByClient,
Tag("DeliveryByClient"),
]
| Annotated[ChangeServiceTypeRequestBase, Tag(UNKNOWN)],
discriminator(
"newServiceType",
"new_service_type",
("DeliveryByCourier", "DeliveryByClient"),
),
]
Request for change order's delivery type.
One of ChangeServiceTypeDeliveryByCourier, ChangeServiceTypeDeliveryByClient, selected by new_service_type. Values unknown to this library are parsed as ChangeServiceTypeRequestBase.
ActionOnValidationRejection
¶
AddOrderItemsRequest
¶
AllowedItemWithDuration
¶
Bases: IikoModel
Suitable terminal group with delivery duration and other parameters.
delivery_duration_in_minutes
instance-attribute
¶
delivery_duration_in_minutes: int
Delivery duration in minutes.
delivery_service_product_id
class-attribute
instance-attribute
¶
delivery_service_product_id: str | None = None
Link to "delivery service payment".
organization_id
instance-attribute
¶
organization_id: str
Organization ID.
Can be obtained by /api/1/organizations operation.
CancelDeliveryConfirmationRequest
¶
CancelOrderRequest
¶
Bases: IikoModel
Request for cancel the order.
cancel_cause_id
class-attribute
instance-attribute
¶
cancel_cause_id: str | None = None
Cancel order dictionary item id.
Allowed from version 7.7.1.
cancel_comment
class-attribute
instance-attribute
¶
cancel_comment: str | None = None
Comment to the delivery cancellation.
Allowed from version 8.7.6.
moved_order_id
class-attribute
instance-attribute
¶
moved_order_id: str | None = None
Fill this field with id of the new order if current order has been moved to the new RMS/terminal group.
organization_id
instance-attribute
¶
organization_id: str
Organization ID.
Can be obtained by /api/1/organizations operation.
removal_comment
class-attribute
instance-attribute
¶
Comment to the charge-off.
Allowed from version 8.7.6.
ChangeCompleteBeforeRequest
¶
Bases: IikoModel
Request for change time when client wants the order to be delivered.
new_complete_before
instance-attribute
¶
new_complete_before: IikoDateTime
New time when client wants the order to be delivered (Local for delivery terminal).
ChangeDeliveryCommentRequest
¶
ChangeDeliveryPointRequest
¶
Bases: IikoModel
Request for change order's delivery point information.
ChangeDriverInfoRequest
¶
Bases: IikoModel
Request for change driver info.
driver_id
class-attribute
instance-attribute
¶
driver_id: str | None = None
Driver ID.
Can be obtained by /api/1/employees/couriers operation.
estimated_time
class-attribute
instance-attribute
¶
estimated_time: IikoDateTime | None = None
Delivery estimated time.
ChangeServiceTypeDeliveryByClient
¶
ChangeServiceTypeDeliveryByCourier
¶
ChangeServiceTypeRequestBase
¶
CitiesResponse
¶
City
¶
Bases: IikoModel
City DTO.
additional_info
class-attribute
instance-attribute
¶
additional_info: str | None = None
City additional information.
classifier_id
class-attribute
instance-attribute
¶
classifier_id: str | None = None
ID in classifier, e.g., address database.
CloseDeliveryOrderRequest
¶
Bases: IikoModel
Request for close table order.
delivery_date
class-attribute
instance-attribute
¶
delivery_date: IikoDateTime | None = None
Actual delivery time. If empty local iikoFront time will used.
Allowed from version 8.0.6.
CommitDraftRequest
¶
Bases: IikoModel
Delivery order draft commitment request.
create_order_settings
class-attribute
instance-attribute
¶
create_order_settings: CreateOrderSettings | None = None
Order creation parameters.
ConfirmDeliveryRequest
¶
CreateDraftRequest
¶
CreateOrSaveDraftResponse
¶
CreateOrderRequest
¶
Bases: IikoModel
Order creation model.
create_order_settings
class-attribute
instance-attribute
¶
create_order_settings: CreateOrderSettings | None = None
Order creation parameters.
CreateOrderSettings
¶
DeleteDraftRequest
¶
DeliveryGeocodeServiceType
¶
DeliveryOrder
¶
Bases: IikoModel
Delivery order.
cheque_additional_info
class-attribute
instance-attribute
¶
cheque_additional_info: ChequeAdditionalInfo | None = None
Cheque additional information.
combos
class-attribute
instance-attribute
¶
Combos included in order.
complete_before
class-attribute
instance-attribute
¶
complete_before: IikoDateTime | None = None
Order fulfillment date. Date and time must be local for delivery terminal, without time zone (take a look at example). If null, order is urgent and time is calculated based on customer settings, i.e. the shortest delivery time possible. Permissible values: from current day and 60 days on.
customer
class-attribute
instance-attribute
¶
customer: Customer | None = None
Customer.
'Regular' customer:
- can be used only if a customer agrees to take part in the store's loyalty programs
- customer details will be added (updated) to the store's customer database
- benefits (accumulation of rewards, etc.) of active loyalty programs will be made available to the customer
'One-time' customer:
- should be used if a customer does not agree to take part in the store's loyalty programs or an aggregator (external system) does not provide customer details
- customer details will NOT be added to the store's customer database and will be used ONLY to complete the current order
delivery_duration
class-attribute
instance-attribute
¶
delivery_duration: int | None = None
Delivery duration.
Allowed from version 8.8.6.
delivery_point
class-attribute
instance-attribute
¶
delivery_point: DeliveryPoint | None = None
Delivery point details. Not required in case of customer pickup. Otherwise, required.
delivery_zone
class-attribute
instance-attribute
¶
delivery_zone: str | None = None
Name of delivery zone.
Allowed from version 8.8.6.
discounts_info
class-attribute
instance-attribute
¶
discounts_info: DiscountsInfo | None = None
Discounts/surcharges.
external_data
class-attribute
instance-attribute
¶
external_data: list[ExternalData] | None = None
Order external data.
Allowed from version 8.0.6.
external_number
class-attribute
instance-attribute
¶
Order external number.
Allowed from version 8.0.6.
guests
class-attribute
instance-attribute
¶
guests: Guests | None = None
Guest details. Not equal to the customer who makes an order.
id
class-attribute
instance-attribute
¶
id: str | None = None
Order ID. Must be unique. If sent null, it generates automatically on iikoTransport side.
loyalty_info
class-attribute
instance-attribute
¶
loyalty_info: LoyaltyInfo | None = None
Information about Loyalty app.
marketing_source_id
class-attribute
instance-attribute
¶
marketing_source_id: str | None = None
Marketing source (advertisement) ID.
Can be obtained by /api/1/marketing_sources operation.
operator_id
class-attribute
instance-attribute
¶
operator_id: str | None = None
Operator ID.
Allowed from version 7.6.3.
order_service_type
class-attribute
instance-attribute
¶
order_service_type: DeliveryServiceType | None = None
Order service type. Only one of the fields must be defined: orderTypeId or orderServiceType.
Allowed from version 7.0.3.
order_type_id
class-attribute
instance-attribute
¶
order_type_id: str | None = None
Order type ID.
Can be obtained by /api/1/deliveries/order_types operation.
Only one of the fields must be defined: orderTypeId or orderServiceType.
payments
class-attribute
instance-attribute
¶
Order payment components.
Type LoyaltyCard allowed from version 7.1.5.
phone
class-attribute
instance-attribute
¶
Telephone number. Must begin with symbol "+" and must be at least 8 digits.
phone_extension
class-attribute
instance-attribute
¶
Extension telephone number. Must contain only digits and have length from 1 to 10 symbols.
Allowed from version 9.2.5.
price_category_id
class-attribute
instance-attribute
¶
price_category_id: str | None = None
Price category id of the order.
Can be obtained by /api/2/menu operation.
Allowed from version 9.0.5.
source_key
class-attribute
instance-attribute
¶
source_key: str | None = None
The string key (marker) of the source (partner - api user) that created the order. Needed to limit the visibility of orders for external integration.
tips
class-attribute
instance-attribute
¶
tips: list[TipsPayment] | None = None
Order tips components.
DeliveryOrderDraft
¶
Bases: IikoModel
Delivery order draft.
cheque_additional_info
class-attribute
instance-attribute
¶
cheque_additional_info: ChequeAdditionalInfo | None = None
Cheque additional information.
combos
class-attribute
instance-attribute
¶
Combos included in order.
complete_before
class-attribute
instance-attribute
¶
complete_before: IikoDateTime | None = None
Order fulfillment date. Date and time must be local for delivery terminal, without time zone (take a look at example). If null, order is urgent and time is calculated based on customer settings, i.e. the shortest delivery time possible. Permissible values: from current day and 60 days on.
customer
class-attribute
instance-attribute
¶
customer: Customer | None = None
Customer.
'Regular' customer:
- can be used only if a customer agrees to take part in the store's loyalty programs
- customer details will be added (updated) to the store's customer database
- benefits (accumulation of rewards, etc.) of active loyalty programs will be made available to the customer
'One-time' customer:
- should be used if a customer does not agree to take part in the store's loyalty programs or an aggregator (external system) does not provide customer details
- customer details will NOT be added to the store's customer database and will be used ONLY to complete the current order
delivery_duration
class-attribute
instance-attribute
¶
delivery_duration: int | None = None
Delivery duration.
Allowed from version 8.8.6.
delivery_point
class-attribute
instance-attribute
¶
delivery_point: DeliveryPoint | None = None
Delivery point details. Not required in case of customer pickup. Otherwise, required.
delivery_zone
class-attribute
instance-attribute
¶
delivery_zone: str | None = None
Name of delivery zone.
Allowed from version 8.8.6.
discounts_info
class-attribute
instance-attribute
¶
discounts_info: DiscountsInfo | None = None
Discounts/surcharges.
external_data
class-attribute
instance-attribute
¶
external_data: list[ExternalData] | None = None
Order external data.
Allowed from version 8.0.6.
external_number
class-attribute
instance-attribute
¶
external_number: str | None = None
Order external number.
Allowed from version 8.0.6.
guests
class-attribute
instance-attribute
¶
guests: Guests | None = None
Guest details. Not equal to the customer who makes an order.
id
class-attribute
instance-attribute
¶
id: str | None = None
Order ID. Must be unique. If sent null, it generates automatically on iikoTransport side.
loyalty_info
class-attribute
instance-attribute
¶
loyalty_info: LoyaltyInfo | None = None
Information about Loyalty app.
marketing_source_id
class-attribute
instance-attribute
¶
marketing_source_id: str | None = None
Marketing source (advertisement) ID.
Can be obtained by /api/1/marketing_sources operation.
operator_id
class-attribute
instance-attribute
¶
operator_id: str | None = None
Operator ID.
Allowed from version 7.6.3.
order_service_type
class-attribute
instance-attribute
¶
order_service_type: DeliveryServiceType | None = None
Order service type. Only one of the fields must be defined: orderTypeId or orderServiceType.
Allowed from version 7.0.3.
order_type_id
class-attribute
instance-attribute
¶
order_type_id: str | None = None
Order type ID.
Can be obtained by /api/1/deliveries/order_types operation.
Only one of the fields must be defined: orderTypeId or orderServiceType.
payments
class-attribute
instance-attribute
¶
Order payment components.
Type LoyaltyCard allowed from version 7.1.5.
phone
instance-attribute
¶
phone: str
Telephone number. Must begin with symbol "+" and must be at least 8 digits.
phone_extension
class-attribute
instance-attribute
¶
phone_extension: str | None = None
Extension telephone number. Must contain only digits and have length from 1 to 10 symbols.
Allowed from version 9.2.5.
price_category_id
class-attribute
instance-attribute
¶
price_category_id: str | None = None
Price category id of the order.
Can be obtained by /api/2/menu operation.
Allowed from version 9.0.5.
source_key
class-attribute
instance-attribute
¶
source_key: str | None = None
The string key (marker) of the source (partner - api user) that created the order. Needed to limit the visibility of orders for external integration.
tips
class-attribute
instance-attribute
¶
tips: list[TipsPayment] | None = None
Order tips components.
DeliveryRestrictionItem
¶
Bases: IikoModel
Item of delivery restrictions.
delivery_duration_in_minutes
instance-attribute
¶
delivery_duration_in_minutes: int
Delivery duration in delivery zone.
delivery_service_product_id
class-attribute
instance-attribute
¶
delivery_service_product_id: str | None = None
Link to "delivery service payment".
from_
class-attribute
instance-attribute
¶
The time from which the point can process orders from the selected zone, in minutes from the beginning of the day.
min_sum
class-attribute
instance-attribute
¶
min_sum: Decimal | None = None
The minimum order amount for a given point in a given time interval in this delivery zone.
organization_id
class-attribute
instance-attribute
¶
organization_id: str | None = None
Organization ID.
Can be obtained by /api/1/organizations operation.
terminal_group_id
class-attribute
instance-attribute
¶
terminal_group_id: str | None = None
Terminal group ID.
Can be obtained by /api/1/terminal_groups operation.
DeliveryRestrictionRejectCode
¶
DeliveryRestrictions
¶
Bases: IikoModel
Delivery restrictions.
action_on_validation_rejection
instance-attribute
¶
action_on_validation_rejection: ActionOnValidationRejection
Action on problems with auto-assignment.
add_delivery_service_cost
instance-attribute
¶
add_delivery_service_cost: bool
Add shipping cost to order.
auto_assign_external_deliveries
instance-attribute
¶
auto_assign_external_deliveries: bool
Automatically assigned delivery method based on cartography.
default_delivery_duration_in_minutes
instance-attribute
¶
default_delivery_duration_in_minutes: int
General standard of delivery time.
default_delivery_service_product_id
class-attribute
instance-attribute
¶
default_delivery_service_product_id: str | None = None
Link to "delivery service payment".
default_from
class-attribute
instance-attribute
¶
default_from: int | None = None
The beginning of the interval of the total work time for all points and delivery zones, in minutes from the beginning of the day.
default_min_sum
class-attribute
instance-attribute
¶
default_min_sum: Decimal | None = None
Total minimum order amount.
default_self_service_duration_in_minutes
instance-attribute
¶
default_self_service_duration_in_minutes: int
Default pickup time.
default_to
class-attribute
instance-attribute
¶
default_to: int | None = None
End of the total work time interval for all points and delivery zones, in minutes from the beginning of the day.
delivery_geocode_service_type
instance-attribute
¶
delivery_geocode_service_type: DeliveryGeocodeServiceType
Geocoding service type.
delivery_regions_map_url
class-attribute
instance-attribute
¶
delivery_regions_map_url: str | None = None
Link to the map of delivery service regions.
external_assignation_service_url
class-attribute
instance-attribute
¶
external_assignation_service_url: str | None = None
Address of external delivery distribution service.
front_trusts_call_center_check
instance-attribute
¶
front_trusts_call_center_check: bool
Indication whether or not to trust on the fronts the call center mapping restrictions from the call center if the composition of the order has not changed since the last check. If true, then trust.
organization_id
instance-attribute
¶
organization_id: str
Organization ID.
Can be obtained by /api/1/organizations operation.
reject_on_geocoding_error
instance-attribute
¶
reject_on_geocoding_error: bool
Reject delivery if we could not geocode the address.
require_exact_address_for_geocoding
instance-attribute
¶
require_exact_address_for_geocoding: bool
Require an exact geocoding address.
use_external_assignation_service
instance-attribute
¶
use_external_assignation_service: bool
Use external delivery distribution service.
use_same_delivery_duration
instance-attribute
¶
use_same_delivery_duration: bool
Indication that all delivery points in all delivery zones use common delivery time limits.
use_same_delivery_service_product
instance-attribute
¶
use_same_delivery_service_product: bool
Indication that the cost is the same for all points of delivery.
use_same_min_sum
instance-attribute
¶
use_same_min_sum: bool
Indication that all delivery points for all delivery zones use the total minimum order amount.
use_same_restrictions_on_all_week
instance-attribute
¶
use_same_restrictions_on_all_week: bool
Indication that all delivery points in all zones use the same schedule for all days of the week.
DeliveryRestrictionsCoordinates
¶
DeliveryRestrictionsMode
¶
DeliveryStatusForUpdate
¶
DeliveryZone
¶
Bases: IikoModel
Delivery zone.
addresses
instance-attribute
¶
addresses: list[DeliveryZoneAddressBinding]
A set of addresses describing a polygon.
Available only for manual delivery zones.
coordinates
instance-attribute
¶
coordinates: list[DeliveryRestrictionsCoordinates]
A set of points describing a polygon.
DeliveryZoneAddressBinding
¶
Bases: IikoModel
Delivery zone polygon, defined by the combination of street, index and house numbers.
FilterDraftsRequest
¶
Bases: IikoModel
Request for the list of order drafts by several filters.
date_from
class-attribute
instance-attribute
¶
date_from: IikoDateTime | None = None
Draft creation time (UTC). Lower limit.
date_to
class-attribute
instance-attribute
¶
date_to: IikoDateTime | None = None
Draft creation time (UTC). Upper limit.
limit
class-attribute
instance-attribute
¶
limit: int | None = None
Desirable size of result set (50 by default).
offset
class-attribute
instance-attribute
¶
offset: int | None = None
Offset from the beginning of full result set for paging.
operator_ids
class-attribute
instance-attribute
¶
List of drafts operator IDs.
order_type_ids
class-attribute
instance-attribute
¶
List of drafts order type IDs.
organization_ids
instance-attribute
¶
Organization ID for which the order drafts search will be performed.
Can be obtained by /api/1/organizations operation.
search_text
class-attribute
instance-attribute
¶
search_text: str | None = None
Value for search. Used for prefix search.
sort_direction
class-attribute
instance-attribute
¶
sort_direction: SortDirection | None = None
Sorting direction.
sort_property
class-attribute
instance-attribute
¶
sort_property: OrderDraftSortProperty | None = None
Sorting property.
source_keys
class-attribute
instance-attribute
¶
Delivery sources (DeliveryClub, PH and etc.)
FilterDraftsResponse
¶
GetAllowedRestrictionsRequest
¶
Bases: IikoModel
Request to identify suitable terminal groups.
delivery_address
class-attribute
instance-attribute
¶
delivery_address: RestrictionsAddress | None = None
Delivery address.
delivery_date
class-attribute
instance-attribute
¶
delivery_date: IikoDateTime | None = None
Delivery date (Local for delivery terminal).
discount_sum
class-attribute
instance-attribute
¶
discount_sum: Decimal | None = None
Discounts sum.
order_items
class-attribute
instance-attribute
¶
order_items: list[RestrictionsOrderItem] | None = None
Order list.
order_location
class-attribute
instance-attribute
¶
order_location: OrderLocation | None = None
Order location.
GetAllowedRestrictionsResponse
¶
Bases: IikoModel
Response for a request to identify suitable terminal groups.
address_external_id
class-attribute
instance-attribute
¶
address_external_id: str | None = None
Delivery address ID in external mapping system.
allowed_items
instance-attribute
¶
allowed_items: list[AllowedItemWithDuration]
Suitable terminal groups with a delivery duration for them.
location
class-attribute
instance-attribute
¶
location: OrderLocation | None = None
Coordinates returned by geocoding service.
GetDeliveryRestrictionsRequest
¶
GetDeliveryRestrictionsResponse
¶
GetDraftRequest
¶
GetDraftResponse
¶
Bases: IikoModel
Wrapping object (external) for an order draft.
locked_at
class-attribute
instance-attribute
¶
locked_at: IikoDateTime | None = None
Timestamp of when the draft was taken for editing (lock).
HousesRange
¶
Bases: IikoModel
Range of house numbers in the delivery zone. It can work in two modes: a) HousesRangeType.SpecificNumbers - list of house numbers. If the house is on this list - it is in the range b) Rest HousesRangeType. Defines a range of numbers from StartingNumber to MaxNumber. Since it is necessary to compare numbers - only supports numeric house numbers. Type determines the admissibility of even/odd numbers.
HousesRangeType
¶
MarketingSource
¶
MarketingSourcesRequest
¶
MarketingSourcesResponse
¶
Bases: IikoModel
Response to request for marketing sources by organization.
marketing_sources
instance-attribute
¶
marketing_sources: list[MarketingSource]
List of marketing sources.
OrderDraft
¶
Bases: IikoModel
Order draft object.
locked_at
class-attribute
instance-attribute
¶
locked_at: IikoDateTime | None = None
Timestamp of when the draft was taken for editing (lock).
locked_by_user
class-attribute
instance-attribute
¶
locked_by_user: str | None = None
ID of the employee, who is editing this draft.
OrderDraftSortProperty
¶
OrderLocation
¶
OrderPaymentItem
¶
OrderResponse
¶
OrderSortProperty
¶
OrdersByDeliveryDateAndFilterRequest
¶
Bases: IikoModel
Request for information about orders from external source and based on additional filters.
cooking_timeout
class-attribute
instance-attribute
¶
cooking_timeout: int | None = None
Expected cooking time, in seconds.
delivery_date_from
class-attribute
instance-attribute
¶
delivery_date_from: IikoDateTime | None = None
Order delivery date (Local for delivery terminal). Lower limit.
The guaranteed order availability period is the last 7 days. To access earlier orders, use the /api/1/deliveries/history/by_delivery_date_and_phone method.
delivery_date_to
class-attribute
instance-attribute
¶
delivery_date_to: IikoDateTime | None = None
Order delivery date (Local for delivery terminal). Upper limit.
has_problem
class-attribute
instance-attribute
¶
has_problem: bool | None = None
If true, delivery has a problem. Conditions under which the order has a problem: * order.problem.hasProblem is true; * order status is Unconfirmed and CookingStartTime before now; * order status is ReadyForCooking and (CookingStartTime + timeToCookingErrorTimeout) before now; * order status is CookingCompleted or Waiting and (CookingStartTime + cookingTimeout) before now.
order_ids
class-attribute
instance-attribute
¶
Order IDs.
Must be null if "posOrderIds" is not null.
order_service_type
class-attribute
instance-attribute
¶
order_service_type: DeliveryServiceType | None = None
Order service type.
organization_ids
instance-attribute
¶
Organization ID for which an order search will be performed.
Can be obtained by /api/1/organizations operation.
pos_order_ids
class-attribute
instance-attribute
¶
POS order IDs.
Must be null if "orderIds" is not null.
rows_count
class-attribute
instance-attribute
¶
rows_count: int | None = None
Maximum number of items returned.
search_text
class-attribute
instance-attribute
¶
search_text: str | None = None
Value for search. Used for prefix search.
sort_direction
class-attribute
instance-attribute
¶
sort_direction: SortDirection | None = None
Sorting direction.
sort_property
class-attribute
instance-attribute
¶
sort_property: OrderSortProperty | None = None
Sorting property.
statuses
class-attribute
instance-attribute
¶
statuses: list[DeliveryStatus] | None = None
Allowed order statuses.
terminal_group_ids
class-attribute
instance-attribute
¶
List of terminal groups IDs.
OrdersByDeliveryDateAndPhoneRequest
¶
Bases: IikoModel
Request for a list of orders by phone number.
delivery_date_from
class-attribute
instance-attribute
¶
delivery_date_from: IikoDateTime | None = None
Order delivery date (Local for delivery terminal). Lower limit.
The guaranteed order availability period is the last 7 days. To access earlier orders, use the /api/1/deliveries/history/by_delivery_date_and_phone method.
delivery_date_to
class-attribute
instance-attribute
¶
delivery_date_to: IikoDateTime | None = None
Order delivery date (Local for delivery terminal). Upper limit.
organization_ids
instance-attribute
¶
Organization ID for which an order search will be performed.
Can be obtained by /api/1/organizations operation.
OrdersByDeliveryDateAndStatusRequest
¶
Bases: IikoModel
Request for information about orders.
courier_ids
class-attribute
instance-attribute
¶
List of driver IDs.
delivery_date_from
instance-attribute
¶
delivery_date_from: IikoDateTime
Order delivery date (Local for delivery terminal). Lower limit.
The guaranteed order availability period is the last 7 days. To access earlier orders, use the /api/1/deliveries/history/by_delivery_date_and_phone method.
delivery_date_to
class-attribute
instance-attribute
¶
delivery_date_to: IikoDateTime | None = None
Order delivery date (Local for delivery terminal). Upper limit.
organization_ids
instance-attribute
¶
Organization ID for which an order search will be performed.
Can be obtained by /api/1/organizations operation.
statuses
class-attribute
instance-attribute
¶
statuses: list[DeliveryStatus] | None = None
Allowed order statuses.
OrdersByIdRequest
¶
Bases: IikoModel
Request for information about orders using IDs.
order_ids
class-attribute
instance-attribute
¶
IDs of orders information on which is required.
Required if "posOrderIds" is null. Must be null if "posOrderIds" is not null.
Maximum allowed "orderIds" to request - 200.
The guaranteed order availability period is the last 7 days. To access earlier orders, use the /api/1/deliveries/history/by_delivery_date_and_phone method.
organization_id
instance-attribute
¶
organization_id: str
Organization ID for which an order search will be performed.
Can be obtained by /api/1/organizations operation.
pos_order_ids
class-attribute
instance-attribute
¶
POS order IDs information on which is required.
Required if "orderIds" is null. Must be null if "orderIds" is not null.
Maximum allowed "posOrderIds" to request - 200.
The guaranteed order availability period is the last 7 days. To access earlier orders, use the /api/1/deliveries/history/by_delivery_date_and_phone method.
return_external_data_keys
class-attribute
instance-attribute
¶
Keys for retrun external data information.
OrdersByOrganization
¶
OrdersByRevisionRequest
¶
OrdersHistoryByDeliveryDateAndPhoneRequest
¶
Bases: IikoModel
Request for a list of historical orders by phone number.
delivery_date_from
class-attribute
instance-attribute
¶
delivery_date_from: IikoDateTime | None = None
Order delivery date (Local for delivery terminal). Lower limit.
Order details are stored for 90 days.
delivery_date_to
class-attribute
instance-attribute
¶
delivery_date_to: IikoDateTime | None = None
Order delivery date (Local for delivery terminal). Upper limit.
Order details are stored for 90 days.
organization_ids
instance-attribute
¶
Organization ID for which an order search will be performed.
Can be obtained by /api/1/organizations operation.
OrdersResponse
¶
OrdersWithRevisionResponse
¶
Bases: IikoModel
Wrapping object (external) for return of delivery orders.
PrintBillRequest
¶
PrintDeliveryBillRequest
¶
RegionsRequest
¶
RegionsResponse
¶
RejectItem
¶
Bases: IikoModel
Rejected item info.
organization_id
class-attribute
instance-attribute
¶
organization_id: str | None = None
Organization ID.
Can be obtained by /api/1/organizations operation.
reject_item_data
class-attribute
instance-attribute
¶
reject_item_data: RejectItemData | None = None
Reject additional information.
RejectItemData
¶
RestrictionsAddress
¶
RestrictionsOrderItemModifier
¶
SaveDraftRequest
¶
SortDirection
¶
Street
¶
StreetById
¶
StreetsByCityRequest
¶
StreetsByIdResponse
¶
StreetsResponse
¶
UpdateDeliveryStatusRequest
¶
Bases: IikoModel
Request for delivery status update.
delivery_date
class-attribute
instance-attribute
¶
delivery_date: IikoDateTime | None = None
The date and time when the order was received by the guest (Local for delivery terminal).
delivery_status
instance-attribute
¶
delivery_status: DeliveryStatusForUpdate
Delivery status. Can be only switched between these three statuses.