Order Integration
An Order integration will allow you to push take-out orders or table bookings to the Onslip POS system.
To achieve this, you will want to:
- Set up an Access Token on your realm, or if you want to share your integration, an OAuth integration object
- Get Product Groups, Products, and Product Modifiers, to be supplied as items in your order
- Get any Payment Methods, if the order is pre-paid with anything outside of cash or card
- Get Button Maps for online ordering menus
- Get Take-Out Status and a Locations take-out configuration
- Get Resources if you don't want take-out, but are interested in saving your Order as a booking to resources like tables
- Set up Web Hooks to subscribe to updates for your Order, and the other entities you require as above, as well as Records if you are interested in the receipt from the POS
- Post your Order
Authorization
Set up Access Token
When logged in to Backoffice, click your user name in the top right and select API Keys & Webhooks. In the API Keys tab click Generate Key.
Enter a name and an alias for the API key. For permissions, use your discretion depending on the resources you want access to. If you want to administrate the OAuth integration object using this token you will at least need show-integrations and edit-integrations. The OAuth integration can also be administrated directly in Backoffice.
Save the API key details when displayed, as the key secret will need to be regenerated if you lose it. See more information in Authentication & Authorization.
Create Integration Object (Optional)
If you only want to integrate to one realm with a bespoke integration you do not have to create an OAuth integration object. But if you intend to offer the integration to our mutual customers, read on.
You may create and edit your integration directly in Backoffice under API Keys & Webhooks. Navigate to the OAuth Integrations tab to do so. Or you may administrate it through the Integrations endpoint.
{
"oauth-redirect-uris": ["https://my.redirect.uri/callback"],
"name-t9n": [["sv-SE", "Min Exempelapp"]],
"author": "Onslip Cloud AB",
"description": "A super cool integration for orders",
"description-t9n": [["sv-SE", "En supercool integration för ordrar"]],
"type": "oauth",
"features": [
"take-out-orders"
],
"permissions": [
"show-records",
"show-product-groups",
"show-products",
"show-button-maps",
"show-payment-methods",
"use-triggers",
"show-resources",
"show-orders",
"edit-orders",
"show-product-modifiers",
"show-locations"
],
"name": "My Example App",
"confinements": [
"location"
],
"alias": "my-example-app",
"categories": ["orders"],
"web-address": "https://onslip.com/",
"email": "api@onslip.com"
}
This is an example of a potential Integrations object. For more detailed information on integration objects see Integrations. The name and description is always in English, with any potential translations supplied in name-t9n and description-t9n respectively. Each translation is an array of two strings, locale and translation.
The features array contains features that any realm would need to possess to use your integration. take-out-orders is required for take-out orders to be visible and interactive in the POS. Realms without the required feature flags will be rejected with an error message to your redirect URI. For resources, table-service is required.
This integration asks only for the necessary permissions, which is best practice. What permissions you want depends on the integration you are creating.
For table bookings
show-ordersis to get the statuses of your Order and others.edit-ordersis to create and edit your Order.show-resourcesis to get bookable Resources.show-customersis to get Customers to assign to the booking (Optional).use-triggersis to view and edit Web Hooks and other triggers for the service user.show-recordsis to get Records such as receipts (Optional).
For take-out
show-ordersis to get the statuses of your Order.edit-ordersis to create and edit your Order.show-product-groupsis to get Product Groups.show-productsis to get Products.show-button-mapsis to get Button Maps which includes the take-out menu layout.show-payment-methodsis to get Payment Methods outside of standard cash and card.use-triggersis to view and edit Web Hooks and other triggers for the service user.show-product-modifiersis to get Product Modifiers.show-locationsis to fetch a particular location's Take-Out Status.show-recordsis to get Records such as receipts (Optional).
With confinements containing "location", the integration will be scoped to a chosen location. This is to get the take-out status and take-out configuration of the chosen location.
When a client connects this integration, a service user will be created to hold the Access Token and any subsequent re-authorizations to that location will simply revoke the old token and replace it with a new one.
Create the integration in Backoffice, or with your Access Token created previously, via the REST API to the Integrations endpoint, or via one of our SDKs.
Integration Authorization
We have an instructional page on the basics of how authorization and token exchange works, see OAuth Authorization Code Flow, as well as the Integrations page for information regarding the requestOAuthAccessToken endpoint.
When the user has authorized your integration and been redirected to your endpoint, post a OAuthAuthorizationCodeRequest payload to requestOAuthAccessToken to get your Access Token. Make sure to save the realm property so you know which realm to make API calls to, as well as the location property, this is the location ID your integration is scoped to.
It is prudent to use the getClientInfo() SDK method or GET ~{realm}/ to get Client Info. There's a lot of useful info here such as the company, the access token, the scoped location, and most importantly the service user.
Here is an example of the service user in the Client Info. The ID is especially important as you will need it to create your triggers later.
{
"created": "2026-09-23T13:46:49.118Z",
"system-roles": [
"service"
],
"name": "My Example App",
"alias": "$oauth.my-example-app",
"id": 3,
"updated-by": 1,
"updated": "2026-09-23T13:46:49.118Z",
"email": ""
}
And here is an example of the scoped location.
{
"take-out-config": {
"order-times": [
"PT15M",
"PT20M"
],
"schedules": [
"* 8-17 * * 1",
"* 8-17 * * 2",
"* 8-17 * * 3",
"* 8-17 * * 4",
"* 8-20 * * 5",
"* 8-20 * * 6"
],
"last-order": "PT30M",
"button-map": 4
},
"created": "2026-09-22T13:33:40.381Z",
"name": "Example Restaurant",
"id": 1,
"updated-by": 1,
"updated": "2026-09-23T12:30:26.207Z"
}
take-out-config is of particular interest. order-times are durations for accept order buttons in the POS. schedules are Cron expressions, dictating the business hours when orders will be accepted. last-order is a string in ISO 8601 to determine how long in minutes before closing time that orders are denied. And button-map is which take-out menu (button map) ID to use.
Collecting Information
For your Order to have valid product items, the products need to exist in the customer realm. You will need to retrieve this information.
Product Groups
Product Groups dictate important properties of the Products that belong to it, such as the VAT rate, accounting, any kitchen printers to use, any product modifiers, etc.
With the listProductGroups() SDK method or a GET request to ~{realm}/product-groups/ you retrieve a list of product groups. This is an example of an array of typical product groups.
[
{
"vat-account": 2621,
"secondary-kitchen-printers": [],
"created": "2026-09-22T13:47:51.771Z",
"kitchen-printer": "kitchen-printer",
"updated-by": 1,
"type": "goods",
"vat-rate": 12,
"discount-account": 3730,
"labels": [],
"name": "Salads",
"id": 1,
"updated": "2026-09-22T13:52:38.236Z",
"account": 3002
},
{
"vat-account": 2621,
"secondary-kitchen-printers": [],
"created": "2026-09-22T13:47:51.771Z",
"kitchen-printer": "kitchen-printer",
"updated-by": 1,
"type": "goods",
"vat-rate": 12,
"modifiers": [
1,
2
],
"discount-account": 3730,
"labels": [],
"name": "Burgers",
"id": 2,
"updated": "2026-09-22T14:08:09.938Z",
"account": 3002
},
{
"vat-account": 2621,
"created": "2026-09-22T13:47:51.773Z",
"name": "Drinks",
"id": 3,
"updated-by": 1,
"type": "goods",
"vat-rate": 12,
"discount-account": 3730,
"updated": "2026-09-22T13:49:27.559Z",
"account": 3002
},
{
"vat-account": 2621,
"secondary-kitchen-printers": [],
"created": "2026-09-22T14:01:15.009Z",
"kitchen-printer": "kitchen-printer",
"updated-by": 1,
"type": "goods",
"vat-rate": 12,
"discount-account": 3730,
"labels": [],
"name": "Extras",
"id": 4,
"updated": "2026-09-22T14:01:15.009Z",
"account": 3002
}
]
You will note that modifiers is an array of numbers. These are ID's of ProductGroupModifiers that you will get later on. Whenever another entity is referred to, it is usually always by ID.
Products
Products are the actual articles for sale in the POS.
With the listProducts() SDK method or a GET request to ~{realm}/products/ you retrieve a list of products. This is an example of an array of typical products.
[
{
"product-group": 2,
"name-t9n": [],
"default-quantity": 1,
"price": 95,
"created": "2026-09-22T13:54:56.862Z",
"name": "Cheeseburger",
"id": 1,
"updated-by": 1,
"purchase-price": 0,
"updated": "2026-09-22T13:54:56.862Z"
},
{
"product-group": 2,
"name-t9n": [],
"default-quantity": 1,
"price": 85,
"created": "2026-09-22T13:54:56.862Z",
"name": "Halloumi Burger",
"id": 2,
"updated-by": 1,
"purchase-price": 0,
"updated": "2026-09-22T13:54:56.862Z"
},
{
"product-group": 1,
"name-t9n": [],
"default-quantity": 1,
"price": 80,
"created": "2026-09-22T13:55:10.654Z",
"name": "Caesar Salad",
"id": 3,
"updated-by": 1,
"purchase-price": 0,
"updated": "2026-09-22T13:55:10.654Z"
},
{
"product-group": 1,
"name-t9n": [],
"default-quantity": 1,
"price": 80,
"created": "2026-09-22T13:55:10.654Z",
"name": "Macaroni Salad",
"id": 4,
"updated-by": 1,
"purchase-price": 0,
"updated": "2026-09-22T13:55:10.654Z"
},
{
"product-group": 3,
"name-t9n": [],
"default-quantity": 1,
"price": 25,
"created": "2026-09-22T13:55:25.271Z",
"name": "Lemon Lime",
"id": 5,
"updated-by": 1,
"purchase-price": 0,
"updated": "2026-09-22T13:55:25.271Z"
},
{
"product-group": 3,
"name-t9n": [],
"default-quantity": 1,
"price": 25,
"created": "2026-09-22T13:55:25.290Z",
"name": "Cola",
"id": 6,
"updated-by": 1,
"purchase-price": 0,
"updated": "2026-09-22T13:55:25.290Z"
},
{
"product-group": 4,
"default-quantity": 1,
"price": 35,
"created": "2026-09-22T14:01:29.727Z",
"name": "With fries",
"id": 7,
"updated-by": 1,
"updated": "2026-09-22T14:01:29.727Z",
"labels": []
}
]
Again you will see that product-group refers to the ID of the product group it belongs to.
Product Modifiers
Product Modifiers exist to tweak products in a tab with extra modifiers, like "no onions" or to charge extra by including sides with a dish.
With the listProductModifiers() SDK method or a GET request to ~{realm}/product-modifiers/ you retrieve a list of product modifiers. This is an example of an array of product modifiers.
[
{
"created": "2026-09-22T14:01:52.118Z",
"name": "Extras",
"automatic": true,
"id": 1,
"updated-by": 1,
"title": "inline",
"type": "multiple-products",
"updated": "2026-09-22T14:01:52.118Z",
"products": [
7
],
"labels": []
},
{
"created": "2026-09-22T14:06:02.571Z",
"values": [
"No pickles",
"No onions",
"No lettuce",
"No tomato"
],
"name": "Remove",
"automatic": true,
"id": 2,
"updated-by": 1,
"title": "hidden",
"type": "multiple-values",
"updated": "2026-09-22T14:06:02.571Z",
"labels": []
}
]
Product Modifiers intended to cost money must exist as a Product, see the Extras product modifier in the example. It refers to product ID 7, which is "With fries".
Payment Methods
cash and card exist per default in the POS, but if you want to use other Payment Methods such as Swish, vouchers or even custom payment methods, you will need to retrieve information about these.
With the listPaymentMethods() SDK method or a GET request to ~{realm}/payment-methods/ you retrieve a list of payment methods. This is an example of an array of payment methods.
[
{
"virtual": true,
"created": "2026-09-22T14:24:19.378Z",
"name": "Swish",
"swish-merchant": "0500600111",
"id": 1,
"updated-by": 1,
"type": "swish",
"clearing-account": 1930,
"updated": "2026-09-22T14:24:19.378Z",
"account": 1930,
"labels": []
}
]
Button Maps
Button Maps provide an ordered grid, or list, of products, organized into sections. This is not only the layout of the buttons in the POS but also take-out menus.
With the listButtonMaps() SDK method or a GET request to ~{realm}/button-maps/ you retrieve a list of button maps. This is an example of an array of button maps.
The button maps of the type menu and menu-section are of particular interest as these are to be used for take-out. Which menu is relevant for the currently scoped location is determined in the Locations take-out-config property.
[
{
"buttons": [
{
"x": 0,
"y": 0,
"action": "display-button-map",
"theme": 1,
"button-map": 2
},
{
"x": 1,
"y": 0,
"action": "display-button-map",
"theme": 1,
"button-map": 3
}
],
"created": "2026-09-23T12:29:21.552Z",
"name": "Standard",
"width": 4,
"theme": "modern",
"id": 1,
"updated-by": 1,
"type": "tablet-groups",
"updated": "2026-09-23T12:29:49.648Z",
"height": 2
},
{
"buttons": [
{
"product": 3,
"x": 0,
"y": 0,
"action": "add-product-item",
"theme": 6
},
{
"product": 1,
"x": 1,
"y": 0,
"action": "add-product-item",
"theme": 6
},
{
"product": 2,
"x": 2,
"y": 0,
"action": "add-product-item",
"theme": 6
},
{
"product": 4,
"x": 3,
"y": 0,
"action": "add-product-item",
"theme": 6
}
],
"created": "2026-09-23T12:29:29.482Z",
"name": "Dishes",
"width": 4,
"id": 2,
"updated-by": 1,
"type": "tablet-buttons",
"updated": "2026-09-23T12:29:40.063Z",
"height": 4
},
{
"buttons": [
{
"product": 6,
"x": 0,
"y": 0,
"action": "add-product-item",
"theme": 6
},
{
"product": 5,
"x": 1,
"y": 0,
"action": "add-product-item",
"theme": 6
}
],
"created": "2026-09-23T12:29:42.908Z",
"name": "Drinks",
"width": 4,
"id": 3,
"updated-by": 1,
"type": "tablet-buttons",
"updated": "2026-09-23T12:29:49.651Z",
"height": 4
},
{
"buttons": [
{
"x": 0,
"y": 0,
"action": "display-button-map",
"button-map": 5
},
{
"x": 1,
"y": 0,
"action": "display-button-map",
"button-map": 6
},
{
"x": 2,
"y": 0,
"action": "display-button-map",
"button-map": 7
}
],
"created": "2026-09-23T12:30:24.557Z",
"name": "Take Out Menu",
"width": 0,
"id": 4,
"updated-by": 1,
"type": "menu",
"updated": "2026-09-23T12:30:48.586Z",
"height": 1
},
{
"buttons": [
{
"product": 1,
"x": 0,
"y": 0,
"action": "add-product-item"
},
{
"product": 2,
"x": 0,
"y": 1,
"action": "add-product-item"
}
],
"created": "2026-09-23T12:30:48.286Z",
"name": "Hamburgers",
"width": 1,
"id": 5,
"updated-by": 1,
"type": "menu-section",
"updated": "2026-09-23T12:30:48.286Z",
"height": 0
},
{
"buttons": [
{
"product": 3,
"x": 0,
"y": 0,
"action": "add-product-item"
},
{
"product": 4,
"x": 0,
"y": 1,
"action": "add-product-item"
}
],
"created": "2026-09-23T12:30:48.373Z",
"name": "Salads",
"width": 1,
"id": 6,
"updated-by": 1,
"type": "menu-section",
"updated": "2026-09-23T12:30:48.373Z",
"height": 0
},
{
"buttons": [
{
"product": 6,
"x": 0,
"y": 0,
"action": "add-product-item"
},
{
"product": 5,
"x": 0,
"y": 1,
"action": "add-product-item"
}
],
"created": "2026-09-23T12:30:48.474Z",
"name": "Drinks",
"width": 1,
"id": 7,
"updated-by": 1,
"type": "menu-section",
"updated": "2026-09-23T12:30:48.474Z",
"height": 0
}
]
Earlier when getting the location's take-out-config, the button-map ID was 4. That corresponds with the button map named "Take Out Menu". This button map contains references to other button maps as sub-sections, in this example the IDs 5, 6 and 7. They are the Hamburgers, Salads and Drinks menu sections respectively, and they in turn contain references to products.
Take-Out Status
The Take-Out Status can tell us if take-out configuration is set up and whether the business is open.
Assuming that our integration is scoped to location ID 1, you can get the current status with the getTakeOutStatus(1) SDK method or a GET request to ~{realm}/locations/1/take-out-status.
Here is an example of the TakeOutStatus.
{
"configured": true,
"active": false,
"enabled": true,
"open": true
}
Resource Maps and Resources
Resources are bookable resources such as dining tables, or rooms. This is not relevant to take-out orders, but is of interest if you intend to build a table booking integration.
Resource maps hold a graphical layout of resources.
With the listResourceMaps() SDK method or a GET request to ~{realm}/resource-maps/ you retrieve a list of resource maps. This is an example of an array of resource maps.
{
"created": "2026-09-23T12:06:36.366Z",
"name": "Dining Hall",
"width": 1000,
"resource-map-items": [
{
"shape": "rectangle",
"resource": 2,
"x": 320,
"width": 160,
"y": 480,
"type": "resource",
"height": 80
},
{
"shape": "rectangle",
"resource": 4,
"x": 560,
"width": 160,
"y": 480,
"type": "resource",
"height": 80
},
{
"shape": "rectangle",
"resource": 3,
"x": 800,
"width": 160,
"y": 480,
"type": "resource",
"height": 80
},
{
"shape": "rectangle",
"resource": 1,
"x": 80,
"width": 80,
"y": 160,
"type": "resource",
"height": 160
},
{
"shape": "rectangle",
"resource": 5,
"x": 240,
"width": 80,
"y": 160,
"type": "resource",
"height": 160
},
{
"shape": "rectangle",
"resource": 6,
"x": 400,
"width": 80,
"y": 160,
"type": "resource",
"height": 160
},
{
"shape": "rectangle",
"resource": 7,
"x": 560,
"width": 80,
"y": 160,
"type": "resource",
"height": 160
},
{
"shape": "rectangle",
"resource": 9,
"x": 720,
"width": 80,
"y": 160,
"type": "resource",
"height": 160
}
],
"location": 1,
"id": 1,
"updated-by": 1,
"updated": "2026-09-23T12:07:41.661Z",
"height": 570
}
And with a listResources() SDK method or a GET request to ~{realm}/resources/ you retrieve a list of resources. This is an example of an array of resource maps.
[
{
"created": "2026-09-23T12:06:30.170Z",
"name": "Table 4",
"location": 1,
"id": 1,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.170Z"
},
{
"created": "2026-09-23T12:06:30.170Z",
"name": "Table 1",
"location": 1,
"id": 2,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.170Z"
},
{
"created": "2026-09-23T12:06:30.170Z",
"name": "Table 3",
"location": 1,
"id": 3,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.170Z"
},
{
"created": "2026-09-23T12:06:30.171Z",
"name": "Table 2",
"location": 1,
"id": 4,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.171Z"
},
{
"created": "2026-09-23T12:06:30.361Z",
"name": "Table 5",
"location": 1,
"id": 5,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.361Z"
},
{
"created": "2026-09-23T12:06:30.369Z",
"name": "Table 6",
"location": 1,
"id": 6,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.369Z"
},
{
"created": "2026-09-23T12:06:30.370Z",
"name": "Table 7",
"location": 1,
"id": 7,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.370Z"
},
{
"created": "2026-09-23T12:06:30.372Z",
"name": "Table 9",
"location": 1,
"id": 8,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.372Z"
},
{
"created": "2026-09-23T12:06:30.438Z",
"name": "Table 8",
"location": 1,
"id": 9,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.438Z"
},
{
"created": "2026-09-23T12:06:30.446Z",
"name": "Table 11",
"location": 1,
"id": 10,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.446Z"
},
{
"created": "2026-09-23T12:06:30.448Z",
"name": "Table 12",
"location": 1,
"id": 11,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.448Z"
},
{
"created": "2026-09-23T12:06:30.456Z",
"name": "Table 10",
"location": 1,
"id": 12,
"updated-by": 1,
"updated": "2026-09-23T12:06:30.456Z"
}
]
With this, you should have all the info you need to build and push your Order. But what about when any of these entities get updated in the future, or new ones are added?
Triggers
We strongly discourage periodically polling entities for changes. Instead, set up Web Hooks to only receive changes when they actually happen.
For bespoke integrations not using OAuth you can create Web Hooks directly in Backoffice via API Keys & Webhooks.
Here is an example of a Trigger, which fires a POST request to an endpoint whenever a Product Group is created, updated or deleted.
{
"query": {
"resource": "product-groups",
"query": ""
},
"action": {
"webhook": {
"content-type": "application/json",
"endpoint-uri": "https://my.integrations.uri/some-secret-string/product-groups"
},
"log-level": "errors",
"name": "Example App Product Groups",
"description": "Get updates to product groups",
"type": "webhook"
},
"type": "query"
}
If you want authentication, to be certain of the request's legitimacy, you can add the access-token property to the webhook object under action. Supply the ID of your Access Token. When the Web Hook fires a POST request to you, check the authorization header, which can look like this:
Hawk id="$oauth.my-example-app+$oauth.my-example-app.l1@839655", ts="1790237644", nonce="7v70uc6k6qe7f", mac="ba3vPBB1/dh8FmJPWpU05sPKLFWR/KU+/gpObXhwYRQ=", hash="4ORbS4t9Wkpn/3kCA+yptBSMx1BmE5EFIHybSxdM82Y="
To verify the signature, pick a Hawk library for your language and supply the key identifier and key belonging to the Access Token you configured, along with the request's method, URL, and the ts/nonce/mac/hash values parsed from the authorization header. The library will recompute the mac from those inputs and compare it, and can also validate the hash against the request body and reject requests with a stale ts.
If your integration is written in JavaScript or TypeScript, you can use our @onslip/hawk package, which is what our own SDKs use. Its server.authenticate() method takes your incoming request and a callback that resolves the key identifier to its credentials, and returns the validated Authentication or throws if the signature is invalid.
For more information regarding Hawk authentication and validation see Authentication & Authorization.
Here is an example of the POST request body when a new product group is created. The three possible operations are create, update and delete.
{
"user-alias": "$oauth.my-example-app",
"data-object": {
"resource": "product-groups",
"payload": {
"vat-account": 2621,
"secondary-kitchen-printers": [],
"created": "2026-09-24T07:27:55.114Z",
"kitchen-printer": "kitchen-printer",
"updated-by": 1,
"type": "goods",
"vat-rate": 12,
"discount-account": 3730,
"labels": [],
"name": "Desserts",
"id": 5,
"updated": "2026-09-24T07:27:55.114Z",
"account": 3002
},
"operation": "create"
},
"company-alias": "839655",
"trigger": 1,
"service-endpoint-uri": "https://test.onslip360.com/v1/"
}
Create triggers for the resources you need, such as product-groups, products, product-modifiers, payment-methods, button-maps, resource-maps, customers, or resources. The query string should remain empty so you get all updates.
For the orders resource, if you only want take-out orders, set the query string to "type=take-out".
If you want receipts, make a records trigger, we recommend a query like "receipt.type=sale AND NOT copy-of>0". This ensures that you only receive purchase receipts, that are not copies.
And don't forget to make a trigger for the scoped location as well, with the resource locations and a query like "id=1", adjusting for the location's ID of course. If the client makes any changes to the take-out settings, you will want to know.
Making the Order
Create your Order with the SDK method addOrder() or by POST request to ~{realm}/orders/. For the full payload interface see Order.
Resource Booking Order
Here is an example of a resource booking order:
{
"name": "John Doe",
"state": "booked",
"location": 1,
"start-date": "2026-09-30T17:00:00.000Z",
"end-date": "2026-09-30T20:00:00.000Z",
"resources": [3],
"customers": [1]
}
This books resource ID 3 (Table 3) for John Doe on 2026-09-30 from 17:00 to 20:00 UTC on location 1. On the day of the booking, the staff can see the order on the resource in the POS.
Optionally, if John Doe exists as a customer in the registry (see Customers), you can supply their ID in the customers array. Otherwise you may omit it.
Note that there is no serverside checking if a resource is "occupied". You can have more than one order booked on the same resources at any time.
If you want to determine occupied resources, you could look up any bookings on a particular day with the SDK method listOrders("resources>0 AND start-date:[2026-09-30T00:00:00.000Z 2026-09-30T23:59:59.999Z] AND NOT state=cancelled AND NOT state=fulfilled").
Or by GET request ~{realm}/orders?q=resources>0 AND start-date:[2026-09-30T00:00:00.000Z 2026-09-30T23:59:59.999Z] AND NOT state=cancelled AND NOT state=fulfilled.
To see any booked or drop-in orders that are active and occupying resources right this moment, try the query resources>0 AND state=active.
Take-out Order
Here is an example of a take-out order:
{
"name": "Take-out 9463",
"type": "take-out",
"state": "requested",
"order-reference": "1790240414-b991eb92-5649-4532-ab3b-e5b12e18151e-my-example-app",
"auth-code": "9463",
"location": 1,
"end-date": "2026-09-30T15:00:00.000Z",
"payments": [
{
"amount": 310,
"method": "card"
}
],
"items": [
{
"product-group": 2,
"sub-items": [
{
"product-group": 4,
"product": 7,
"quantity": 1,
"price": 35,
"modifier": 1,
"product-name": "With fries",
"vat-rate": 12,
"type": "goods"
}
],
"product": 1,
"quantity": 1,
"vat-rate": 12,
"type": "goods",
"modifiers": [
{
"modifier": 2,
"values": ["No tomato"],
"name": "Remove",
"type": "multiple-values"
}
],
"price": 95,
"product-name": "Cheeseburger",
"purchase-price": 0
},
{
"product-group": 2,
"sub-items": [
{
"product-group": 4,
"product": 7,
"quantity": 1,
"price": 35,
"modifier": 1,
"product-name": "With fries",
"vat-rate": 12,
"type": "goods"
}
],
"product": 1,
"quantity": 1,
"vat-rate": 12,
"type": "goods",
"modifiers": [],
"price": 95,
"product-name": "Cheeseburger",
"purchase-price": 0
},
{
"product-group": 3,
"product": 6,
"quantity": 2,
"price": 25,
"product-name": "Cola",
"vat-rate": 12,
"type": "goods",
"purchase-price": 0
}
]
}
Note that the price of each Item is multiplied with quantity to determine a final cost. price should always be the cost of 1 Item.
The order-reference property is required for take-out orders and must be unique. We recommend a timestamp and a random UUID, followed by your integrations name.
If the take-out order is to be picked up at a specific time, supply this timestamp in UTC as an ISO string in the end-date field. If the end-date property is absent the order will be treated as "as soon as possible".
Any pre-payments are to be supplied in the payments array. You can update the payments array at any point and the payments are applied when entering the payment screen in the POS. Any refunds that need to be made after purchase will generally need manual handling in the POS.
The items array is used as a kind of blueprint when first accepting the order. The POS creates a Tab with the contents of items, but once the order is accepted and the Tab is created, the order's items is not referred to again, so any subsequent updates to it will have no effect.
When creating the order, it is returned back to you with an ID. You should save this ID to refer to later.
Order States
A take-out order should always start as the state requested. This will alert the staff with a chime that a new order has arrived in the POS.
Staff accepting the order will set the state to active, otherwise cancelled.
Later, the staff can choose to indicate the food is ready which will set the state to shipped, but some choose to go directly from active to finishing the order.
When the order has been finished and the receipt is printed, the state is fulfilled. An order can become cancelled at any point.
For resource booked orders, it generally progresses from booked to active, to fulfilled or cancelled.
Receipt
If you want the details of the receipt, use the records Web Hook you set up earlier. To find the receipt for your particular order, see the order parameter in receipt, which will match the ID of the order you created.
Here is an example of a receipt for a take-out order with ID 1.
{
"date": "2026-09-24T12:18:06.151Z",
"phone-number": "0500600111",
"queued": "2026-09-24T12:18:06.974Z",
"store-name": "Example Restaurant",
"batch-id": 1,
"training": false,
"control-unit-id": "KEAXE000123456789",
"accounting": [
{
"amount": -276.78,
"account": 3002
},
{
"amount": -33.22,
"account": 2621
},
{
"amount": 310,
"account": 1930
}
],
"updated-by": 1,
"locale": "sv-SE",
"type": "receipt",
"copies": 0,
"cashier": 1,
"client": 1,
"cashier-name": "Onslip",
"currency": "SEK",
"id": 20,
"web-address": "www.onslip.com",
"email": "api@onslip.com",
"timezone-offset": 120,
"company-name": "Example Restaurant",
"address": "Kungsgatan 12\n58218 Linköping",
"control-code": "SKI77U7IUMU2WMM2X7SVWAEPX44KBU4T;CYBOIOLFLSPV4Y7BPT4UXTWAYY",
"created": "2026-09-24T12:18:07.994Z",
"org-number": "123456-7890",
"store-address": "Kungsgatan 12\n58218 Linköping",
"client-name": "POS 1",
"updated-from": 1,
"location": 1,
"receipt": {
"total-sales-vat-amount": 33.22,
"total-sales-amount": 310,
"payments": [
{
"amount": -310,
"method": "card",
"name": "Card"
}
],
"change": 0,
"rounding": 0,
"type": "sale",
"total-vat-amount": 33.22,
"total-amount": 310,
"tab": 4,
"vat-summaries": [
{
"net-amount": 276.78,
"gross-amount": 310,
"vat-rate": 12,
"vat-amount": 33.22
}
],
"id": "S1-1",
"items": [
{
"product-group": 2,
"sub-items": [
{
"product-group": 4,
"product": 7,
"quantity": 1,
"tickets": ["O1-4"],
"price": 35,
"modifier": 1,
"product-name": "With fries",
"vat-rate": 12,
"type": "goods",
"stock-location": 1,
"vat-amount": 3.75
}
],
"product": 1,
"quantity": 1,
"tickets": ["O1-4"],
"vat-rate": 12,
"type": "goods",
"modifiers": [
{
"modifier": 2,
"values": ["No tomato"],
"name": "Remove",
"type": "multiple-values"
}
],
"stock-location": 1,
"price": 95,
"product-name": "Cheeseburger",
"purchase-price": 0,
"vat-amount": 10.18
},
{
"product-group": 2,
"sub-items": [
{
"product-group": 4,
"product": 7,
"quantity": 1,
"tickets": ["O1-4"],
"price": 35,
"modifier": 1,
"product-name": "With fries",
"vat-rate": 12,
"type": "goods",
"stock-location": 1,
"vat-amount": 3.75
}
],
"product": 1,
"quantity": 1,
"tickets": ["O1-4"],
"vat-rate": 12,
"type": "goods",
"modifiers": [],
"stock-location": 1,
"price": 95,
"product-name": "Cheeseburger",
"purchase-price": 0,
"vat-amount": 10.18
},
{
"product-group": 3,
"product": 6,
"quantity": 2,
"price": 25,
"product-name": "Cola",
"vat-rate": 12,
"type": "goods",
"purchase-price": 0,
"stock-location": 1,
"vat-amount": 2.68
}
],
"order": 1
},
"updated": "2026-09-24T12:18:07.994Z"
}
Tabs created from take-out orders cannot be split, but table bookings can. An order is not fulfilled until all Tabs belonging to it have been closed. So it is possible that one order may have more than one tab, hence more than one receipt. You should not rely on the presence of a receipt to determine whether the order is closed.
Conclusion
Your order integration should now be functional. Note that orders, tabs and kitchen printing cannot be entirely automated and hands off. Because of the way kitchen ticket printing and sales in the POS work, the staff need to interact with your order in the POS system by approving it, and finalizing the purchase.
If this is an integration you want to publish, make sure to test it properly on the test realm first, by connecting a sub-account via OAuth and pushing a few orders and making a few purchases.
Once you are ready for a review contact us at api@onslip.com and we will examine your integration, your test data, and determine if you can move to the production environment and connect live customer pilots.