ποΈSend orders
This page provides a full description of all the routes available for handling orders. Each route is explained with its parameters, required headers, possible responses and examples of use.
β‘οΈ Push an order
π‘ Models
Order
total
number
Total including discounts and charges.
β
currency
string
Currency code ISO 4217
β
private_ref
string
The ID of the order in the partner system (Must be unique)
β
created_at
Date
Date and time when the order was created format ISO 8601
β
subtotal
number
Total without discounts and charges.
β
table_ref
string
ID of the table in the partner system
β
table_name
string
Name of the table in the partner system
β
guest_count
number
Number of guests for the order, if not provided default value "1" will be set.
β
OrderItem
ref
string
ID of the item within the order
β
product_ref
string
Item ID in the partner system
β
product_name
string
Item name
β
price
number
Price of the item
β
subtotal
number
Sum of the price of the item and its options, multiplied by the quantity
β
quantity
number
Item quantity
β
category_ref
string
Category ID of the item
β
category_name
string
Category name of the item
β
tax_rate
number
Tax rate in percent (0 - 100)
β
tax_price
number
Tax price for the item
β
OrderOption
ref
string
ID of the option in the partner system
β
name
string
Name of the option
β
price
number
Price of the option
β
quantity
number
Quantity of the option
β
SupportedServiceType Enum
view
Menu consultation only
eat_in
Eat directly at the restaurant
collection
Order pick-up at the restaurant
delivery
Order in delivery
checkout
Payment only after eating in the restaurant
π§Ύ Push an order
This route is dedicated to sending orders to Fyre. It enables your orders to be integrated easily and securely directly into our system. Using this route, you can transmit the details of your orders, which will then be processed by our API.
POST https://api.fyre.app/api/v1/locations/{fyre_id}/orders
HTTP headers: X-API-KEY: <your token>
Payload β¬οΈ
{
order:
}
π€ Responses
π Payload example
{
total: 8,
currency: "EUR",
items: [
{
ref: "Cheese123",
product_ref: "CheeseBurg",
product_name: "Cheeseburger",
price: 7,
subtotal: 8,
quantity: 1,
options: [
{
ref: "Ketchup1",
name: "Ketchup",
price: 1,
quantity: 1,
},
],
category_ref: "Burgers-456",
category_name: "Burgers",
tax_rate: 20,
tax_price: 1.6,
},
],
private_ref: "ABZQK4904",
subtotal: 8,
table_ref: "108",
table_name: "eat_in_table",
service_type: "eat_in",
guest_count: 1,
created_at: "2024-07-24T14:39:39.445Z",
}
ποΈ Import orders
To transmit large volumes of sales data, we use CSV files.
CSV files must comply with the RFC 4180 standard format:
Field Separation: Data fields should be separated by commas.
Value Escaping: Values containing reserved characters (such as commas, double quotes, etc.) must be enclosed in double-quotes.
To optimize performance and minimize data loss, the CSV file contents should be organized as follows:
Each row represents an individual order item.
Rows must be sorted by the order_id column to determine the start and end of each order.
Files should generally not exceed 20MB but can be smaller, depending on how you can chunk the data (e.g., daily sales, weekly sales, etc.).
POST https://api.fyre.app/api/v1/locations/{fyre_id}/orders/import
Payload β¬οΈ
{
file: File
}
File structure
location_ref
string
β
Unique identifier for a location in the external system
order_id
string
β
Unique identifier for a order in the external system. Must be unique when combined with location_ref
source_id
string
β
Unique identifier of the individual order item. Must be unique when combined with location_ref
parent_source_id
string
β
If the item is part of a combo (e.g., meal deals, topings, modifiers, cocktails), this field holds the source_id of the parent item
product_ref
string
β
Product identifier in the external system
product_name
string
β
Product name
category_ref
string
β
Category identifier in an external system
category_name
string
β
Category name
cost
number
β
Purchase price of the product in the order, if available
quantity
number
β
Quantity of ordered items
price
number
β
Price of individual item
options_price
number
β
Total price of child items that share the same parent_source_id
subtotal
number
β
Cost of an order item including options:
(price + options_price) * quantity
currency
string
β
Currency in ISO 4217 format. If not provided it will use the location currency
tax_price
number
β
Total tax amount for the ordered item, rounded to two decimal places.
tax_rate
number
β
The tax rate for an ordered item is a percentage between 0 and 100.
guests_count
number
β
Number of guests. If not provided it will default to 1
timezone
string
β
Timezone name in ISO-8601 format. If not provided it will use the location timezone
created_at
string
β
Order creation date in ISO 8601 format, expressed in UTC.
Below is a sample CSV file that follows the specified standard.
Last updated