This endpoint is for creating an order that Tyro Connect will deliver to a POS.
Make sure you create the order in one of the following statuses:
CREATED
- the order has been created but not approved by the merchant.ACCEPTED
- the order has already been approved by the merchant (eg. via a separate app available to them).Making identical requests with the same orderId
and content does not create a new order. In this case, it returns the previously created order's details.
This means every new order must have a different orderId
.
Created order
Bad request
Invalid access token
Insufficient permissions to create an order
{- "locationId": "tc-merchant-2000",
- "origin": {
- "orderId": "2f8922fb-235f-40c6-af9a-3d6b46ce9635",
- "orderReference": "Order for Tom"
}, - "items": [
- {
- "id": "unique-item-id",
- "sku": "sku-known-to-the-pos",
- "description": "Amazing cheese burger",
- "unitPrice": {
- "currency": "AUD",
- "amount": 2000
}, - "discounts": [
- {
- "currency": "AUD",
- "amount": 1000,
- "description": "Half price cheese burgers on the first of the month"
}
], - "modifiers": [
- {
- "id": "uuid-3636-101",
- "sku": "634",
- "description": "Bacon",
- "unitPrice": {
- "amount": 0
}, - "quantity": 1
}
], - "allergens": [
- {
- "description": "Fish"
}, - {
- "description": "Nuts"
}
], - "quantity": 1
}
], - "discounts": [
- {
- "currency": "AUD",
- "amount": 200,
- "description": "Student discount"
}
], - "surcharges": [
- {
- "currency": "AUD",
- "amount": 200,
- "description": "Public Holiday"
}, - {
- "currency": "AUD",
- "amount": 200,
- "description": "Plastic take away containers"
}
], - "tip": {
- "currency": "AUD",
- "amount": 150
}, - "total": {
- "currency": "AUD",
- "amount": 1350
}, - "table": {
- "id": "B1",
- "section": "Bar"
}, - "status": "CREATED",
- "customers": [
- {
- "firstName": "Daniel"
}, - {
- "firstName": "Elizabeth"
}
], - "fulfilment": {
- "type": "PICK_UP"
}, - "paymentStatus": "CLOSED"
}
{- "id": "order-identifier-in-tyro-connect",
- "locationId": "tc-merchant-2000",
- "origin": {
- "orderId": "2f8922fb-235f-40c6-af9a-3d6b46ce9635",
- "orderReference": "Order for Tom",
- "name": "Charlie's Preorder App"
}, - "items": [
- {
- "id": "unique-item-id",
- "sku": "sku-known-to-the-pos",
- "description": "Amazing cheese burger",
- "unitPrice": {
- "currency": "AUD",
- "amount": 2000
}, - "discounts": [
- {
- "currency": "AUD",
- "amount": 1000,
- "description": "Half price cheese burgers on the first of the month"
}
], - "modifiers": [
- {
- "id": "uuid-3636-101",
- "sku": "634",
- "description": "Bacon",
- "unitPrice": {
- "amount": 0
}, - "quantity": 1
}
], - "allergens": [
- {
- "description": "Fish"
}, - {
- "description": "Nuts"
}
], - "quantity": 1
}
], - "discounts": [
- {
- "currency": "AUD",
- "amount": 200,
- "description": "Student discount"
}
], - "surcharges": [
- {
- "currency": "AUD",
- "amount": 200,
- "description": "Public Holiday"
}, - {
- "currency": "AUD",
- "amount": 200,
- "description": "Plastic take away containers"
}
], - "tip": {
- "currency": "AUD",
- "amount": 150
}, - "total": {
- "currency": "AUD",
- "amount": 1350
}, - "table": {
- "id": "B1",
- "section": "Bar"
}, - "status": "CREATED",
- "customers": [
- {
- "firstName": "Daniel"
}, - {
- "firstName": "Elizabeth"
}
], - "fulfilment": {
- "type": "PICK_UP"
}, - "paymentStatus": "CLOSED"
}