Common models¶
Models shared by several API sections.
Generated by python -m codegen from the iikoCloud OpenAPI specification. Do not edit by hand.
Address
module-attribute
¶
Address = Annotated[
Annotated[AddressLegacy, Tag("legacy")]
| Annotated[AddressCity, Tag("city")]
| Annotated[AddressBase, Tag(UNKNOWN)],
discriminator("type", "type", ("legacy", "city")),
]
Order delivery address
One of AddressLegacy, AddressCity, selected by type. Values unknown to this library are parsed as AddressBase.
Customer
module-attribute
¶
Customer = Annotated[
Annotated[RegularCustomer, Tag("regular")]
| Annotated[AnonymousCustomer, Tag("one-time")]
| Annotated[CustomerBase, Tag(UNKNOWN)],
discriminator("type", "type", ("regular", "one-time")),
]
Customer base info.
One of RegularCustomer, AnonymousCustomer, selected by type. Values unknown to this library are parsed as CustomerBase.
Discount
module-attribute
¶
Discount = Annotated[
Annotated[RmsDiscount, Tag("RMS")]
| Annotated[IikoCardDiscount, Tag("iikoCard")]
| Annotated[DiscountBase, Tag(UNKNOWN)],
discriminator("type", "type", ("RMS", "iikoCard")),
]
Discount/surcharge.
One of RmsDiscount, IikoCardDiscount, selected by type. Values unknown to this library are parsed as DiscountBase.
OrderItem
module-attribute
¶
OrderItem = Annotated[
Annotated[ProductOrderItem, Tag("Product")]
| Annotated[CompoundOrderItem, Tag("Compound")]
| Annotated[OrderItemBase, Tag(UNKNOWN)],
discriminator("type", "type", ("Product", "Compound")),
]
Order item.
One of ProductOrderItem, CompoundOrderItem, selected by type. Values unknown to this library are parsed as OrderItemBase.
OrganizationInfo
module-attribute
¶
OrganizationInfo = Annotated[
Annotated[SimpleOrganizationInfo, Tag("Simple")]
| Annotated[ExtendedOrganizationInfo, Tag("Extended")]
| Annotated[OrganizationInfoBase, Tag(UNKNOWN)],
discriminator(
"responseType",
"response_type",
("Simple", "Extended"),
),
]
Organization details.
One of SimpleOrganizationInfo, ExtendedOrganizationInfo, selected by response_type. Values unknown to this library are parsed as OrganizationInfoBase.
Payment
module-attribute
¶
Payment = Annotated[
Annotated[CashPayment, Tag("Cash")]
| Annotated[CardPayment, Tag("Card")]
| Annotated[LoyaltyCardPayment, Tag("LoyaltyCard")]
| Annotated[ExternalPayment, Tag("External")]
| Annotated[PaymentBase, Tag(UNKNOWN)],
discriminator(
"paymentTypeKind",
"payment_type_kind",
("Cash", "Card", "LoyaltyCard", "External"),
),
]
Base class of delivery order payment item.
One of CashPayment, CardPayment, LoyaltyCardPayment, ExternalPayment, selected by payment_type_kind. Values unknown to this library are parsed as PaymentBase.
PaymentAdditionalData
module-attribute
¶
PaymentAdditionalData = Annotated[
Annotated[
LoyaltyCardPaymentAdditionalData, Tag("LoyaltyCard")
]
| Annotated[CardPaymentAdditionalData, Tag("Card")]
| Annotated[
ExternalPaymentAdditionalData, Tag("External")
]
| Annotated[PaymentAdditionalDataBase, Tag(UNKNOWN)],
discriminator(
"type", "type", ("LoyaltyCard", "Card", "External")
),
]
Additional payment data.
One of LoyaltyCardPaymentAdditionalData, CardPaymentAdditionalData, ExternalPaymentAdditionalData, selected by type. Values unknown to this library are parsed as PaymentAdditionalDataBase.
RetrievedCustomer
module-attribute
¶
RetrievedCustomer = Annotated[
Annotated[RetrievedRegularCustomer, Tag("regular")]
| Annotated[RetrievedAnonymousCustomer, Tag("one-time")]
| Annotated[RetrievedCustomerBase, Tag(UNKNOWN)],
discriminator("type", "type", ("regular", "one-time")),
]
Delivery customer.
One of RetrievedRegularCustomer, RetrievedAnonymousCustomer, selected by type. Values unknown to this library are parsed as RetrievedCustomerBase.
RetrievedOrderItem
module-attribute
¶
RetrievedOrderItem = Annotated[
Annotated[RetrievedProductOrderItem, Tag("Product")]
| Annotated[RetrievedCompoundOrderItem, Tag("Compound")]
| Annotated[ServiceOrderItem, Tag("Service")]
| Annotated[RetrievedOrderItemBase, Tag(UNKNOWN)],
discriminator(
"type", "type", ("Product", "Compound", "Service")
),
]
Order item.
One of RetrievedProductOrderItem, RetrievedCompoundOrderItem, ServiceOrderItem, selected by type. Values unknown to this library are parsed as RetrievedOrderItemBase.
TipsPayment
module-attribute
¶
TipsPayment = Annotated[
Annotated[CashTipsPayment, Tag("Cash")]
| Annotated[CardTipsPayment, Tag("Card")]
| Annotated[ExternalTipsPayment, Tag("External")]
| Annotated[TipsPaymentBase, Tag(UNKNOWN)],
discriminator(
"paymentTypeKind",
"payment_type_kind",
("Cash", "Card", "External"),
),
]
Base class of delivery order payment item.
One of CashTipsPayment, CardTipsPayment, ExternalTipsPayment, selected by payment_type_kind. Values unknown to this library are parsed as TipsPaymentBase.
AddOrderPaymentsRequest
¶
AddressCity
¶
Bases: AddressBase
Order delivery address.
AddressFormatType
¶
AddressHintsServiceType
¶
AddressLegacy
¶
Bases: AddressBase
Order delivery legacy address.
flat
class-attribute
instance-attribute
¶
flat: str | None = None
Apartment. In case useUaeAddressingSystem enabled max length - 100, otherwise - 10.
street
instance-attribute
¶
street: DeliveryStreet
Street. It's required specify only "classifierId" or "id" or "name" and "city".
AnonymousCustomer
¶
Bases: CustomerBase
'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
CancelInfo
¶
Bases: IikoModel
Order cancellation details
comment
class-attribute
instance-attribute
¶
comment: str | None = None
Delivery cancellation comment.
when_cancelled
instance-attribute
¶
when_cancelled: IikoDateTime
Cancellation time (Local for delivery terminal).
CardPayment
¶
Bases: PaymentBase
Bank card payment.
CardPaymentAdditionalData
¶
Bases: PaymentAdditionalDataBase
Additional data for Card payment item.
CardTipsPayment
¶
Bases: TipsPaymentBase
Bank card tips payment.
CashPayment
¶
CashTipsPayment
¶
ChangeExternalDataRequest
¶
Bases: IikoModel
Request for change of delivery or table order external data.
ChangePaymentsRequest
¶
ChequeAdditionalInfo
¶
Bases: IikoModel
Cheque additional information according to russian federal law #54.
email
class-attribute
instance-attribute
¶
email: str | None = None
Email to send cheque information or null if the cheque shouldn't be sent by email.
is_internet_payment
class-attribute
instance-attribute
¶
is_internet_payment: bool | None = None
Whether the settlement is an internet payment transaction.
Allowed from version 9.4.6.
phone
class-attribute
instance-attribute
¶
phone: str | None = None
Phone to send cheque information (by sms) or null if the cheque shouldn't be sent by sms.
Combo
¶
Bases: IikoModel
Combo in order.
id
instance-attribute
¶
id: str
Combo ID. MUST be unique for the whole system. Therefore it must be generated with Guid.NewGuid().
program_id
class-attribute
instance-attribute
¶
program_id: str | None = None
Card program ID.
Allowed from version 7.6.1.
ComboItemInformation
¶
CompoundItemTemplate
¶
CompoundOrderItem
¶
Bases: OrderItemBase
Order item: composite item.
common_modifiers
class-attribute
instance-attribute
¶
Indivisible modifiers.
primary_component
instance-attribute
¶
primary_component: CompoundOrderItemComponent
Main component.
secondary_component
class-attribute
instance-attribute
¶
secondary_component: CompoundOrderItemComponent | None = (
None
)
Minor component.
CompoundOrderItemComponent
¶
Bases: IikoModel
Item component
Coordinates
¶
CorrelationIdResponse
¶
CreationStatus
¶
DeletionMethod
¶
DeliveriesResponseOrderPaymentType
¶
DeliveriesResponseOrderStreet
¶
DeliveryOrderPaymentSettings
¶
DeliveryPoint
¶
Bases: IikoModel
Delivery location details.
address
class-attribute
instance-attribute
¶
address: Address | None = None
Order delivery address.
The use of type City is allowed if the parameter addressFormatType == City.
Can be obtained by /api/1/organizations or /api/1/organizations/settings operations (addressFormatType parameter).
coordinates
class-attribute
instance-attribute
¶
coordinates: Coordinates | None = None
Delivery address coordinates.
Allowed from version 7.7.3.
DeliveryServiceType
¶
DeliverySettingsServiceType
¶
DeliveryStatus
¶
DeliveryStreet
¶
Bases: IikoModel
Street.
DiscountCard
¶
DiscountItem
¶
Bases: IikoModel
Discount.
discount_type
instance-attribute
¶
discount_type: DiscountType
Discount type.
Can be obtained by /api/1/discounts operation.
selective_positions
class-attribute
instance-attribute
¶
Order item positions.
selective_positions_with_sum
class-attribute
instance-attribute
¶
selective_positions_with_sum: (
list[PositionWithSum] | None
) = None
Order item positions with position discount sum.
Allowed from version 8.5.6.
DiscountType
¶
DiscountsInfo
¶
Bases: IikoModel
Information on discounts/surcharges to be applied to order.
Whether map or non-blank list of discounts must be set.
card
class-attribute
instance-attribute
¶
card: DiscountCard | None = None
Track of discount card to be applied to order.
discounts
class-attribute
instance-attribute
¶
Discounts/surcharges.
Type iikoCard allowed from version 7.4.4.
DynamicDiscount
¶
ErrorCode
¶
ErrorInfo
¶
ExtendedOrganizationInfo
¶
Bases: OrganizationInfoBase
Organization details.
address_format_type
instance-attribute
¶
address_format_type: AddressFormatType
Address format type.
address_lookup
instance-attribute
¶
address_lookup: list[AddressHintsServiceType]
Available address lookup services.
confirm_allowed_interval_in_minutes
class-attribute
instance-attribute
¶
confirm_allowed_interval_in_minutes: int | None = None
Confirm orders time interval.
country_phone_code
class-attribute
instance-attribute
¶
country_phone_code: str | None = None
Country dialing code.
currency_iso_name
class-attribute
instance-attribute
¶
currency_iso_name: str | None = None
ISO currency code (for example: RUB, USD, EUR).
currency_minimum_denomination
class-attribute
instance-attribute
¶
currency_minimum_denomination: Decimal | None = None
Value rounding of position.
default_call_center_payment_type_id
class-attribute
instance-attribute
¶
default_call_center_payment_type_id: str | None = None
Default payment type for CallCenter.
default_delivery_city_id
class-attribute
instance-attribute
¶
default_delivery_city_id: str | None = None
Default delivery city.
delivery_city_ids
class-attribute
instance-attribute
¶
Delivery cities.
delivery_order_payment_settings
class-attribute
instance-attribute
¶
delivery_order_payment_settings: (
DeliveryOrderPaymentSettings | None
) = None
Delivery order payment settings.
delivery_service_type
class-attribute
instance-attribute
¶
delivery_service_type: (
DeliverySettingsServiceType | None
) = None
Delivery type.
inn
class-attribute
instance-attribute
¶
inn: str | None = None
Restaurant`s INN (Taxpayer Identification Number).
is_anonymous_guests_allowed
class-attribute
instance-attribute
¶
is_anonymous_guests_allowed: bool | None = None
If the store allows orders for anonymous guests, then it is not necessary to transfer information about the guest as part of the delivery order. You can only transfer the phone number and optionally name of the guest, which will not be stored in the guest base and will only be used for the delivery of a current delivery order.
is_cloud
instance-attribute
¶
is_cloud: bool
Determines whether organization is hosted in iikoCloud.
is_confirmation_enabled
class-attribute
instance-attribute
¶
is_confirmation_enabled: bool | None = None
Determines whether to use delivery confirmation.
marketing_source_required_in_delivery
class-attribute
instance-attribute
¶
marketing_source_required_in_delivery: bool | None = None
Require mandatory marketing source input when creating a delivery.
order_item_comment_enabled
class-attribute
instance-attribute
¶
order_item_comment_enabled: bool | None = None
Allow text comments for order items (in all restaurant sections).
restaurant_address
class-attribute
instance-attribute
¶
restaurant_address: str | None = None
Restaurant address.
ExternalCourierService
¶
ExternalData
¶
Bases: IikoModel
Order external data.
is_public
class-attribute
instance-attribute
¶
is_public: bool | None = None
The transmitted data may contain both technical identifiers and information useful for the restaurant employee. If it is necessary for the data to be included in the sales report, then this parameter must be set to TRUE, otherwise to FALSE.
ExternalDataEntry
¶
ExternalPayment
¶
ExternalPaymentAdditionalData
¶
Bases: PaymentAdditionalDataBase
Additional data for external payment item.
ExternalTipsPayment
¶
FilterCondition
¶
Gender
¶
GetByIDRequest
¶
GetOrganizationsRequest
¶
Bases: IikoModel
Request for organizations.
include_disabled
class-attribute
instance-attribute
¶
include_disabled: bool | None = None
Attribute that shows that response contains disabled organizations.
organization_ids
class-attribute
instance-attribute
¶
Organizations IDs which have to be returned. By default - all organizations from apiLogin.
Can be obtained by /api/1/organizations operation.
GetOrganizationsResponse
¶
IdentifierCode
¶
IikoCardDiscount
¶
Bases: DiscountBase
Card discount/surcharge.
IikoCardDiscountItem
¶
IikoCardSearchScope
¶
LoyaltyCardPayment
¶
LoyaltyCardPaymentAdditionalData
¶
LoyaltyInfo
¶
Bases: IikoModel
Information about Loyalty app.
applicable_manual_conditions
class-attribute
instance-attribute
¶
Information about applied manual conditions.
coupon
class-attribute
instance-attribute
¶
coupon: str | None = None
Coupon No. that was considered when calculating loyalty program.
dynamic_discounts
class-attribute
instance-attribute
¶
dynamic_discounts: list[DynamicDiscount] | None = None
Dynamic discounts.
Allowed from version 9.4.6.
Modifier
¶
Bases: IikoModel
Modifier.
position_id
class-attribute
instance-attribute
¶
position_id: str | None = None
Unique identifier of the item in the order. MUST be unique for the whole system. Therefore it must be generated with Guid.NewGuid(). If sent null, it generates automatically on iikoTransport side.
OrderCombo
¶
OrderInfo
¶
Bases: IikoModel
Order.
creation_status
instance-attribute
¶
creation_status: CreationStatus
Order creation status. In case of asynchronous creation, it allows to track the instance an order was validated/created in iikoFront.
error_info
class-attribute
instance-attribute
¶
error_info: ErrorInfo | None = None
Order creation error details. Required only if "creationStatus"="Error".
external_number
class-attribute
instance-attribute
¶
external_number: str | None = None
Order external number.
order
class-attribute
instance-attribute
¶
order: RetrievedOrder | None = None
Order creation details. Field is filled up if "creationStatus"="Success".
OrderItemBase
¶
Bases: IikoModel
Order item.
combo_information
class-attribute
instance-attribute
¶
combo_information: ComboItemInformation | None = None
Combo details if combo includes order item.
OrderItemIdentifierCode
¶
OrderItemModifier
¶
Bases: IikoModel
Order item modifier.
amount_independent_of_parent_amount
instance-attribute
¶
amount_independent_of_parent_amount: bool
Whether quantity of modifier depends on quantity of item.
codes
class-attribute
instance-attribute
¶
codes: list[list[OrderItemIdentifierCode]] | None = None
List of product codes. Each outer list item represents a separate product unit; each inner list contains codes associated with that unit.
Allowed from version 9.3.6.
default_amount
class-attribute
instance-attribute
¶
default_amount: int | None = None
Default amount.
deleted
class-attribute
instance-attribute
¶
deleted: ItemDeletedInfo | None = None
Item deletion details. If specified, the item is deleted.
free_of_charge_amount
class-attribute
instance-attribute
¶
free_of_charge_amount: int | None = None
Free of charge amount.
hide_if_default_amount
class-attribute
instance-attribute
¶
hide_if_default_amount: bool | None = None
Hide modifier in UI if "amount" equals "defaultAmount".
position_id
class-attribute
instance-attribute
¶
position_id: str | None = None
Unique identifier of the item in the order and for the whole system.
price
instance-attribute
¶
price: Decimal
Price per item unit. Can be sent different from the price in RMS.
product_group
class-attribute
instance-attribute
¶
product_group: ProductGroup | None = None
Group of modifiers (in case of a group modifier).
OrderItemStatus
¶
OrderServiceType
¶
OrderStatus
¶
OrganizationInfoBase
¶
Bases: IikoModel
Organization details.
external_data
class-attribute
instance-attribute
¶
external_data: list[ExternalDataEntry] | None = None
Organization`s external data.
OrganizationItems
¶
PaymentBase
¶
Bases: IikoModel
Base class of delivery order payment item.
is_fiscalized_externally
class-attribute
instance-attribute
¶
is_fiscalized_externally: bool | None = None
Whether the payment item is externally fiscalized.
Allowed from version 7.6.3.
is_prepay
class-attribute
instance-attribute
¶
is_prepay: bool | None = None
Deprecated. Whether the payment item is prepay. Unavailable for paymentKindType.LoyaltyCard.
Allowed from version 8.2.6.
is_processed_externally
class-attribute
instance-attribute
¶
is_processed_externally: bool | None = None
Whether payment item is processed by external payment system (made from outside).
payment_additional_data
class-attribute
instance-attribute
¶
payment_additional_data: PaymentAdditionalData | None = None
Additional payment parameters.
PaymentItem
¶
Bases: IikoModel
Delivery order payment component.
is_fiscalized_externally
class-attribute
instance-attribute
¶
is_fiscalized_externally: bool | None = None
Whether the payment item is externally fiscalized.
Allowed from version 7.6.3.
is_prepay
instance-attribute
¶
is_prepay: bool
Whether the payment item is prepay.
Allowed from version 7.7.6.
is_processed_externally
instance-attribute
¶
is_processed_externally: bool
Payment item is processed by external payment system.
payment_type
instance-attribute
¶
payment_type: DeliveriesResponseOrderPaymentType
Payment type.
Can be obtained by /api/1/payment_types operation.
PaymentTypeKind
¶
PositionWithSum
¶
PriceCategory
¶
Problem
¶
ProductGroup
¶
ProductOrderItem
¶
Bases: OrderItemBase
Order item: item.
position_id
class-attribute
instance-attribute
¶
position_id: str | None = None
Unique identifier of the item in the order. MUST be unique for the whole system. Therefore it must be generated with Guid.NewGuid(). If sent null, it generates automatically on iikoTransport side.
RegularCustomer
¶
Bases: CustomerBase
'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
id
class-attribute
instance-attribute
¶
id: str | None = None
Existing customer ID in RMS. If null - the phone number is searched in database, otherwise the new customer is created in RMS.
name
class-attribute
instance-attribute
¶
name: str | None = None
Name of customer. Required for new customers (i.e. if "id" == null) Not required if "id" specified.
should_receive_order_status_notifications
class-attribute
instance-attribute
¶
should_receive_order_status_notifications: bool | None = (
None
)
Whether customer receives order status notification messages.
Reserve
¶
Bases: IikoModel
Banquet/reserve.
cancel_reason
class-attribute
instance-attribute
¶
cancel_reason: ReserveCancelReason | None = None
The reserve cancellation reason or null if the reserve hasn't been canceled.
comment
class-attribute
instance-attribute
¶
comment: str | None = None
Optional comment for reserve or banquet.
estimated_start_time
instance-attribute
¶
estimated_start_time: IikoDateTime
Estimated time when reserve will be closed or banquet will be started.
event_type
class-attribute
instance-attribute
¶
event_type: str | None = None
Event type.
Allowed from version 8.5.6.
guests_coming_time
class-attribute
instance-attribute
¶
guests_coming_time: IikoDateTime | None = None
Time when guests came and reserve was closed or banquet was started.
order
class-attribute
instance-attribute
¶
order: RetrievedReserveOrder | None = None
Order. Used only at a banquet.
ReserveCancelReason
¶
ReserveInfo
¶
Bases: IikoModel
Banquet/reserve.
creation_status
instance-attribute
¶
creation_status: CreationStatus
Banquet/reserve creation status. In case of asynchronous creation, it allows to track the instance an banquet/reserve was validated/created in iikoFront.
error_info
class-attribute
instance-attribute
¶
error_info: ErrorInfo | None = None
Banquet/reserve creation error details. Required only if "creationStatus"="Error".
external_number
class-attribute
instance-attribute
¶
external_number: str | None = None
Banquet/reserve external number.
ReserveStatus
¶
RetrievedAddress
¶
Bases: IikoModel
Address details.
line1
class-attribute
instance-attribute
¶
line1: str | None = None
Address line 1. Contains the primary address information.
street
class-attribute
instance-attribute
¶
street: DeliveriesResponseOrderStreet | None = None
Street.
RetrievedAnonymousCustomer
¶
Bases: RetrievedCustomerBase
'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
RetrievedCancelCause
¶
RetrievedCity
¶
RetrievedCompoundOrderItem
¶
Bases: RetrievedOrderItemBase
Order item: composite item.
common_modifiers
class-attribute
instance-attribute
¶
common_modifiers: list[OrderItemModifier] | None = None
Indivisible modifiers.
primary_component
instance-attribute
¶
primary_component: RetrievedCompoundOrderItemComponent
Main component.
secondary_component
class-attribute
instance-attribute
¶
secondary_component: (
RetrievedCompoundOrderItemComponent | None
) = None
Additional component.
template
class-attribute
instance-attribute
¶
template: CompoundItemTemplate | None = None
Modifier scheme.
RetrievedCompoundOrderItemComponent
¶
Bases: IikoModel
Part of composite item.
modifiers
class-attribute
instance-attribute
¶
modifiers: list[OrderItemModifier] | None = None
Modifiers.
position_id
class-attribute
instance-attribute
¶
position_id: str | None = None
Unique identifier of the item in the order and for the whole system.
price
instance-attribute
¶
price: Decimal
Price per item unit. Can be sent different from the price in the base menu.
RetrievedConception
¶
RetrievedDeliveryPoint
¶
Bases: IikoModel
Delivery address coordinates.
address
class-attribute
instance-attribute
¶
address: RetrievedAddress | None = None
Delivery address details.
coordinates
class-attribute
instance-attribute
¶
coordinates: Coordinates | None = None
Delivery address coordinates.
RetrievedDynamicDiscount
¶
RetrievedEmployee
¶
RetrievedExternalData
¶
RetrievedGuestsInfo
¶
RetrievedLoyaltyInfo
¶
Bases: IikoModel
Information about Loyalty app.
applied_manual_conditions
class-attribute
instance-attribute
¶
Information about applied manual conditions.
coupon
class-attribute
instance-attribute
¶
coupon: str | None = None
Coupon No. that was considered when calculating loyalty program.
dynamic_discounts
class-attribute
instance-attribute
¶
dynamic_discounts: list[RetrievedDynamicDiscount] | None = (
None
)
Dynamic discounts.
Allowed from version 9.4.6.
RetrievedMarketingSource
¶
RetrievedOrder
¶
Bases: IikoModel
Order details.
cancel_info
class-attribute
instance-attribute
¶
cancel_info: CancelInfo | None = None
Delivery cancellation details.
Required only if delivery is canceled, i.e. status=Canceled.
complete_before
instance-attribute
¶
complete_before: IikoDateTime
Order fulfillment time (Local for the terminal).
conception
class-attribute
instance-attribute
¶
conception: RetrievedConception | None = None
Concept.
cooking_start_time
instance-attribute
¶
cooking_start_time: IikoDateTime
The time when you need to start cooking an order (Local for the terminal).
courier_info
class-attribute
instance-attribute
¶
courier_info: CourierInfo | None = None
Driver information.
customer
class-attribute
instance-attribute
¶
customer: RetrievedCustomer | None = None
Delivery customer.
delivery_duration
class-attribute
instance-attribute
¶
delivery_duration: int | None = None
Duration of delivery (in minutes).
delivery_point
class-attribute
instance-attribute
¶
delivery_point: RetrievedDeliveryPoint | None = None
Delivery point details.
Not required if order type is customer pickup. Otherwise, required.
delivery_zone
class-attribute
instance-attribute
¶
delivery_zone: str | None = None
Name of delivery zone.
discounts
class-attribute
instance-attribute
¶
discounts: list[DiscountItem] | None = None
Discounts.
estimated_time
class-attribute
instance-attribute
¶
estimated_time: IikoDateTime | None = None
Delivery estimated time.
external_courier_service
class-attribute
instance-attribute
¶
external_courier_service: ExternalCourierService | None = (
None
)
ECS info.
Allowed from version 7.7.7.
external_data
class-attribute
instance-attribute
¶
external_data: list[RetrievedExternalData] | None = None
Order external data.
Allowed from version 8.0.6.
guests_info
class-attribute
instance-attribute
¶
guests_info: RetrievedGuestsInfo | None = None
Information about order guests.
index_in_courier_route
class-attribute
instance-attribute
¶
index_in_courier_route: int | None = None
Ordinal number in route list.
Field is filled up at the time of delivery allocation by logistics in iikoFront. If logistics is not in use, the field is not filled up.
is_asap
class-attribute
instance-attribute
¶
is_asap: bool | None = None
Whether to deliver as soon as possible.
is_deleted
class-attribute
instance-attribute
¶
is_deleted: bool | None = None
Deprecated. Order is deleted.
locked_at
class-attribute
instance-attribute
¶
locked_at: IikoDateTime | None = None
Timestamp of when the order was taken for editing (lock).
loyalty_info
class-attribute
instance-attribute
¶
loyalty_info: RetrievedLoyaltyInfo | None = None
Information about Loyalty app.
null - only for unsupported POS versions.
marketing_source
class-attribute
instance-attribute
¶
marketing_source: RetrievedMarketingSource | None = None
Marketing source.
moved_from_delivery_id
class-attribute
instance-attribute
¶
moved_from_delivery_id: str | None = None
Tells that this delivery has been moved from terminal group with id MovedFromTerminalGroupId by cancelling delivery with deliveryId MovedFromDeliveryId.
Allowed from version 7.5.4.
moved_from_organization_id
class-attribute
instance-attribute
¶
moved_from_organization_id: str | None = None
Tells that this delivery has been moved from terminal group with id MovedFromTerminalGroupId by cancelling delivery with deliveryId MovedFromDeliveryId.
Allowed from version 7.5.4.
moved_from_terminal_group_id
class-attribute
instance-attribute
¶
moved_from_terminal_group_id: str | None = None
Tells that this delivery has been moved from terminal group with id MovedFromTerminalGroupId by cancelling delivery with deliveryId MovedFromDeliveryId.
Allowed from version 7.5.4.
moved_to_delivery_id
class-attribute
instance-attribute
¶
moved_to_delivery_id: str | None = None
Tells that this delivery has been canceled and moved to terminal group with id MovedToTerminalGroupId.
operator
class-attribute
instance-attribute
¶
operator: RetrievedEmployee | None = None
Operator that took order.
order_type
class-attribute
instance-attribute
¶
order_type: RetrievedOrderType | None = None
Order type.
parent_delivery_id
class-attribute
instance-attribute
¶
parent_delivery_id: str | None = None
ID of delivery serving as source for splitting by FCRs.
phone_extension
class-attribute
instance-attribute
¶
phone_extension: str | None = None
Extension delivery phone number.
price_category
class-attribute
instance-attribute
¶
price_category: PriceCategory | None = None
Price category of the order.
Allowed from version 9.0.5.
processed_payments_sum
class-attribute
instance-attribute
¶
processed_payments_sum: Decimal | None = None
The amount of processed payments.
null - only for unsupported POS versions.
Allowed from version 7.6.0.
status
instance-attribute
¶
status: DeliveryStatus
Delivery status.
Delivery status ReadyForCooking is deprecated from version 9.0.6.
terminal_group_id
instance-attribute
¶
terminal_group_id: str
ID of the terminal group where the order is located.
tracking_link
class-attribute
instance-attribute
¶
tracking_link: str | None = None
Order's tracking link.
when_bill_printed
class-attribute
instance-attribute
¶
when_bill_printed: IikoDateTime | None = None
Invoice printing time (guest bill time).
when_closed
class-attribute
instance-attribute
¶
when_closed: IikoDateTime | None = None
Delivery closing time (Local for delivery terminal).
when_confirmed
class-attribute
instance-attribute
¶
when_confirmed: IikoDateTime | None = None
Delivery confirmation time (Local for the terminal).
when_cooking_completed
class-attribute
instance-attribute
¶
when_cooking_completed: IikoDateTime | None = None
Cooking completion time (Local for the terminal).
when_created
instance-attribute
¶
when_created: IikoDateTime
Delivery creation time in iikoFront (Local for the terminal).
when_delivered
class-attribute
instance-attribute
¶
when_delivered: IikoDateTime | None = None
Actual delivery time (Local for delivery terminal).
when_packed
class-attribute
instance-attribute
¶
when_packed: IikoDateTime | None = None
Delivery packing time (Local for the terminal).
when_printed
class-attribute
instance-attribute
¶
when_printed: IikoDateTime | None = None
Service printing time (Local for the terminal).
when_received_by_api
class-attribute
instance-attribute
¶
when_received_by_api: IikoDateTime | None = None
Deprecated. Moment of time when CloudAPI received the request to create the order (UTC).
when_received_from_front
class-attribute
instance-attribute
¶
when_received_from_front: IikoDateTime | None = None
Deprecated. Moment of time when the order first received and saved from iikoFront (UTC).
when_sended
class-attribute
instance-attribute
¶
when_sended: IikoDateTime | None = None
Delivery dispatch time (Local for the terminal).
RetrievedOrderItemBase
¶
Bases: IikoModel
Order item.
combo_information
class-attribute
instance-attribute
¶
combo_information: RetrievedComboItemInformation | None = (
None
)
Combo details, if order item is part of combo.
deleted
class-attribute
instance-attribute
¶
deleted: ItemDeletedInfo | None = None
Item deletion details. If filled up, item is deleted.
when_printed
class-attribute
instance-attribute
¶
when_printed: IikoDateTime | None = None
Printing time (Local for the terminal).
RetrievedOrderStatus
¶
RetrievedOrderType
¶
RetrievedProduct
¶
RetrievedProductOrderItem
¶
Bases: RetrievedOrderItemBase
Order item: item.
codes
class-attribute
instance-attribute
¶
codes: list[list[OrderItemIdentifierCode]] | None = None
List of product codes. Each outer list item represents a separate product unit; each inner list contains codes associated with that unit.
Allowed from version 9.2.6.
modifiers
class-attribute
instance-attribute
¶
modifiers: list[OrderItemModifier] | None = None
Modifiers.
position_id
class-attribute
instance-attribute
¶
position_id: str | None = None
Unique identifier of the item in the order and for the whole system.
price
instance-attribute
¶
price: Decimal
Price per item unit. Can be sent different from the price in the base menu.
RetrievedProductSize
¶
RetrievedRegion
¶
RetrievedRegularCustomer
¶
Bases: RetrievedCustomerBase
RetrievedRegularCustomer.
birthdate
class-attribute
instance-attribute
¶
birthdate: IikoDateTime | None = None
Date of birth.
Allowed from version 7.6.1.
blacklist_reason
class-attribute
instance-attribute
¶
blacklist_reason: str | None = None
Reason why client was added to blacklist.
RetrievedRemovalType
¶
RetrievedReserveOrder
¶
Bases: IikoModel
Order.
conception
class-attribute
instance-attribute
¶
conception: RetrievedConception | None = None
Concept.
discounts
class-attribute
instance-attribute
¶
discounts: list[DiscountItem] | None = None
Discounts.
external_data
class-attribute
instance-attribute
¶
external_data: list[RetrievedExternalData] | None = None
Order external data.
Allowed from version 8.0.6.
guests_info
class-attribute
instance-attribute
¶
guests_info: RetrievedGuestsInfo | None = None
Information about order guests.
loyalty_info
class-attribute
instance-attribute
¶
loyalty_info: RetrievedLoyaltyInfo | None = None
Information about Loyalty app.
null - only for unsupported POS versions.
order_type
class-attribute
instance-attribute
¶
order_type: RetrievedOrderType | None = None
Order type.
processed_payments_sum
class-attribute
instance-attribute
¶
processed_payments_sum: Decimal | None = None
The amount of processed payments.
null - only for unsupported POS versions.
Allowed from version 7.6.0.
terminal_group_id
instance-attribute
¶
terminal_group_id: str
ID of the terminal group where the order is located.
when_bill_printed
class-attribute
instance-attribute
¶
when_bill_printed: IikoDateTime | None = None
Invoice printing time (guest bill time).
when_closed
class-attribute
instance-attribute
¶
when_closed: IikoDateTime | None = None
Delivery closing time (Local for delivery terminal).
RetrievedTableOrder
¶
Bases: IikoModel
Order.
conception
class-attribute
instance-attribute
¶
conception: RetrievedConception | None = None
Concept.
customer
class-attribute
instance-attribute
¶
customer: RetrievedRegularCustomer | None = None
Guest.
Allowed from version 7.5.2.
discounts
class-attribute
instance-attribute
¶
discounts: list[DiscountItem] | None = None
Discounts.
external_data
class-attribute
instance-attribute
¶
external_data: list[RetrievedExternalData] | None = None
Order external data.
Allowed from version 8.0.6.
guests_info
class-attribute
instance-attribute
¶
guests_info: RetrievedGuestsInfo | None = None
Information about order guests.
loyalty_info
class-attribute
instance-attribute
¶
loyalty_info: RetrievedLoyaltyInfo | None = None
Information about Loyalty app.
null - only for unsupported POS versions.
order_type
class-attribute
instance-attribute
¶
order_type: RetrievedOrderType | None = None
Order type.
phone
class-attribute
instance-attribute
¶
phone: str | None = None
Guest phone.
Allowed from version 7.5.2.
price_category
class-attribute
instance-attribute
¶
price_category: PriceCategory | None = None
Price Category of the order.
Allowed from version 9.0.5.
processed_payments_sum
class-attribute
instance-attribute
¶
processed_payments_sum: Decimal | None = None
The amount of processed payments.
null - only for unsupported POS versions.
Allowed from version 7.6.0.
split_order_between_cash_registers
class-attribute
instance-attribute
¶
split_order_between_cash_registers: (
SplitOrderBetweenCashRegisters | None
) = None
Need to split order between cash registers.
Not empty for orders in statuses New or Bill.
tab_name
class-attribute
instance-attribute
¶
tab_name: str | None = None
Tab name (only for fastfood terminals group in tab mode).
table_ids
instance-attribute
¶
Table IDs.
Can be obtained by /api/1/reserve/available_restaurant_sections operation.
terminal_group_id
instance-attribute
¶
terminal_group_id: str
ID of the terminal group where the order is located.
when_bill_printed
class-attribute
instance-attribute
¶
when_bill_printed: IikoDateTime | None = None
Invoice printing time (guest bill time).
when_closed
class-attribute
instance-attribute
¶
when_closed: IikoDateTime | None = None
Delivery closing time (Local for delivery terminal).
when_created
class-attribute
instance-attribute
¶
when_created: IikoDateTime | None = None
Order creation date (terminal time zone).
RetrievedTipsType
¶
RmsDiscount
¶
Bases: DiscountBase
RMS discount/surcharge.
Amount must be specified only if discount has "assign amount" setting enabled. In any other case, amount must not be specified.
ServiceOrderItem
¶
SimpleOrganizationInfo
¶
SplitOrderBetweenCashRegisters
¶
TableOrderInfo
¶
Bases: IikoModel
Order.
creation_status
instance-attribute
¶
creation_status: CreationStatus
Order creation status. In case of asynchronous creation, it allows to track the instance an order was validated/created in iikoFront.
error_info
class-attribute
instance-attribute
¶
error_info: ErrorInfo | None = None
Order creation error details. Required only if "creationStatus"="Error".
external_number
class-attribute
instance-attribute
¶
external_number: str | None = None
Order external number.
order
class-attribute
instance-attribute
¶
order: RetrievedTableOrder | None = None
Order creation details. Field is filled up if "creationStatus"="Success".
TerminalGroup
¶
Bases: IikoModel
DTO containing terminal groups details
address
class-attribute
instance-attribute
¶
address: str | None = None
Deprecated. Group address. Not used.
external_data
class-attribute
instance-attribute
¶
external_data: list[ExternalDataEntry] | None = None
Terminal group external data.
id
instance-attribute
¶
id: str
Delivery group ID.
Can be obtained by /api/1/terminal_groups operation.
organization_id
instance-attribute
¶
organization_id: str
Organization ID to which delivery group belongs.
Can be obtained by /api/1/organizations operation.
TerminalGroupsResponse
¶
Bases: IikoModel
DTO containing terminal groups details.
terminal_groups
instance-attribute
¶
terminal_groups: list[OrganizationItems[TerminalGroup]]
List of terminal groups broken down by organizations.
terminal_groups_in_sleep
instance-attribute
¶
terminal_groups_in_sleep: list[
OrganizationItems[TerminalGroup]
]
Terminal groups are in sleep mode because they are not active.
Can be awakened by /api/1/terminal_groups/awake operation.
TipsPaymentBase
¶
Bases: IikoModel
Base class of delivery order payment item.
is_fiscalized_externally
class-attribute
instance-attribute
¶
is_fiscalized_externally: bool | None = None
Whether the payment item is externally fiscalized.
Allowed from version 7.6.3.
is_prepay
class-attribute
instance-attribute
¶
is_prepay: bool | None = None
Deprecated. Whether the payment item is prepay. Unavailable for paymentKindType.LoyaltyCard.
Allowed from version 8.2.6.
is_processed_externally
class-attribute
instance-attribute
¶
is_processed_externally: bool | None = None
Whether payment item is processed by external payment system (made from outside).
payment_additional_data
class-attribute
instance-attribute
¶
payment_additional_data: PaymentAdditionalData | None = None
Additional payment parameters.
TipsPaymentItem
¶
Bases: IikoModel
Delivery order tips payment component.
is_fiscalized_externally
class-attribute
instance-attribute
¶
is_fiscalized_externally: bool | None = None
Whether the payment item is externally fiscalized.
Allowed from version 7.6.3.
is_prepay
instance-attribute
¶
is_prepay: bool
Whether the payment item is prepay.
Allowed from version 7.7.6.
is_processed_externally
instance-attribute
¶
is_processed_externally: bool
Payment item is processed by external payment system.
payment_type
instance-attribute
¶
payment_type: DeliveriesResponseOrderPaymentType
Payment type.
Can be obtained by /api/1/payment_types operation.
tips_type
class-attribute
instance-attribute
¶
tips_type: RetrievedTipsType | None = None
Tips type.