Import a floor plan (one-shot onboarding)
curl --request POST \
--url https://api.now-os.app/api/provider/v1/floorplan/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rooms": [
{
"externalId": "<string>",
"name": "<string>",
"tables": [
{
"externalId": "<string>",
"label": "<string>",
"seatCount": 123,
"x": 123,
"y": 123,
"minCovers": 1073741823,
"maxCovers": 1073741823,
"rotation": 0
}
],
"order": 1073741823,
"canvasWidth": 1000,
"canvasHeight": 1000,
"decorations": []
}
],
"replaceDraft": false
}
'import requests
url = "https://api.now-os.app/api/provider/v1/floorplan/import"
payload = {
"rooms": [
{
"externalId": "<string>",
"name": "<string>",
"tables": [
{
"externalId": "<string>",
"label": "<string>",
"seatCount": 123,
"x": 123,
"y": 123,
"minCovers": 1073741823,
"maxCovers": 1073741823,
"rotation": 0
}
],
"order": 1073741823,
"canvasWidth": 1000,
"canvasHeight": 1000,
"decorations": []
}
],
"replaceDraft": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rooms: [
{
externalId: '<string>',
name: '<string>',
tables: [
{
externalId: '<string>',
label: '<string>',
seatCount: 123,
x: 123,
y: 123,
minCovers: 1073741823,
maxCovers: 1073741823,
rotation: 0
}
],
order: 1073741823,
canvasWidth: 1000,
canvasHeight: 1000,
decorations: []
}
],
replaceDraft: false
})
};
fetch('https://api.now-os.app/api/provider/v1/floorplan/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.now-os.app/api/provider/v1/floorplan/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rooms' => [
[
'externalId' => '<string>',
'name' => '<string>',
'tables' => [
[
'externalId' => '<string>',
'label' => '<string>',
'seatCount' => 123,
'x' => 123,
'y' => 123,
'minCovers' => 1073741823,
'maxCovers' => 1073741823,
'rotation' => 0
]
],
'order' => 1073741823,
'canvasWidth' => 1000,
'canvasHeight' => 1000,
'decorations' => [
]
]
],
'replaceDraft' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.now-os.app/api/provider/v1/floorplan/import"
payload := strings.NewReader("{\n \"rooms\": [\n {\n \"externalId\": \"<string>\",\n \"name\": \"<string>\",\n \"tables\": [\n {\n \"externalId\": \"<string>\",\n \"label\": \"<string>\",\n \"seatCount\": 123,\n \"x\": 123,\n \"y\": 123,\n \"minCovers\": 1073741823,\n \"maxCovers\": 1073741823,\n \"rotation\": 0\n }\n ],\n \"order\": 1073741823,\n \"canvasWidth\": 1000,\n \"canvasHeight\": 1000,\n \"decorations\": []\n }\n ],\n \"replaceDraft\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.now-os.app/api/provider/v1/floorplan/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rooms\": [\n {\n \"externalId\": \"<string>\",\n \"name\": \"<string>\",\n \"tables\": [\n {\n \"externalId\": \"<string>\",\n \"label\": \"<string>\",\n \"seatCount\": 123,\n \"x\": 123,\n \"y\": 123,\n \"minCovers\": 1073741823,\n \"maxCovers\": 1073741823,\n \"rotation\": 0\n }\n ],\n \"order\": 1073741823,\n \"canvasWidth\": 1000,\n \"canvasHeight\": 1000,\n \"decorations\": []\n }\n ],\n \"replaceDraft\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.now-os.app/api/provider/v1/floorplan/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rooms\": [\n {\n \"externalId\": \"<string>\",\n \"name\": \"<string>\",\n \"tables\": [\n {\n \"externalId\": \"<string>\",\n \"label\": \"<string>\",\n \"seatCount\": 123,\n \"x\": 123,\n \"y\": 123,\n \"minCovers\": 1073741823,\n \"maxCovers\": 1073741823,\n \"rotation\": 0\n }\n ],\n \"order\": 1073741823,\n \"canvasWidth\": 1000,\n \"canvasHeight\": 1000,\n \"decorations\": []\n }\n ],\n \"replaceDraft\": false\n}"
response = http.request(request)
puts response.read_body{
"rooms": [
{
"externalRoomId": "<string>",
"roomId": "<string>",
"name": "<string>"
}
],
"mapping": [
{
"externalTableId": "<string>",
"tableId": "<string>",
"label": "<string>"
}
]
}{
"error": {
"message": "<string>",
"occupiedBy": {
"orderId": "<string>",
"reservationExternalId": "<string>"
}
}
}Endpoints
Import a floor plan (one-shot onboarding)
Push your canvas; NowOS creates the DRAFT (the operator reviews and publishes in the backoffice) and returns the externalTableId → tableId mapping — persist it as your pos_table_id column, there is no manual mapping anywhere. Refused once the location has a draft (unless replaceDraft) and always after the first publish.
POST
/
api
/
provider
/
v1
/
floorplan
/
import
Import a floor plan (one-shot onboarding)
curl --request POST \
--url https://api.now-os.app/api/provider/v1/floorplan/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rooms": [
{
"externalId": "<string>",
"name": "<string>",
"tables": [
{
"externalId": "<string>",
"label": "<string>",
"seatCount": 123,
"x": 123,
"y": 123,
"minCovers": 1073741823,
"maxCovers": 1073741823,
"rotation": 0
}
],
"order": 1073741823,
"canvasWidth": 1000,
"canvasHeight": 1000,
"decorations": []
}
],
"replaceDraft": false
}
'import requests
url = "https://api.now-os.app/api/provider/v1/floorplan/import"
payload = {
"rooms": [
{
"externalId": "<string>",
"name": "<string>",
"tables": [
{
"externalId": "<string>",
"label": "<string>",
"seatCount": 123,
"x": 123,
"y": 123,
"minCovers": 1073741823,
"maxCovers": 1073741823,
"rotation": 0
}
],
"order": 1073741823,
"canvasWidth": 1000,
"canvasHeight": 1000,
"decorations": []
}
],
"replaceDraft": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rooms: [
{
externalId: '<string>',
name: '<string>',
tables: [
{
externalId: '<string>',
label: '<string>',
seatCount: 123,
x: 123,
y: 123,
minCovers: 1073741823,
maxCovers: 1073741823,
rotation: 0
}
],
order: 1073741823,
canvasWidth: 1000,
canvasHeight: 1000,
decorations: []
}
],
replaceDraft: false
})
};
fetch('https://api.now-os.app/api/provider/v1/floorplan/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.now-os.app/api/provider/v1/floorplan/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rooms' => [
[
'externalId' => '<string>',
'name' => '<string>',
'tables' => [
[
'externalId' => '<string>',
'label' => '<string>',
'seatCount' => 123,
'x' => 123,
'y' => 123,
'minCovers' => 1073741823,
'maxCovers' => 1073741823,
'rotation' => 0
]
],
'order' => 1073741823,
'canvasWidth' => 1000,
'canvasHeight' => 1000,
'decorations' => [
]
]
],
'replaceDraft' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.now-os.app/api/provider/v1/floorplan/import"
payload := strings.NewReader("{\n \"rooms\": [\n {\n \"externalId\": \"<string>\",\n \"name\": \"<string>\",\n \"tables\": [\n {\n \"externalId\": \"<string>\",\n \"label\": \"<string>\",\n \"seatCount\": 123,\n \"x\": 123,\n \"y\": 123,\n \"minCovers\": 1073741823,\n \"maxCovers\": 1073741823,\n \"rotation\": 0\n }\n ],\n \"order\": 1073741823,\n \"canvasWidth\": 1000,\n \"canvasHeight\": 1000,\n \"decorations\": []\n }\n ],\n \"replaceDraft\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.now-os.app/api/provider/v1/floorplan/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rooms\": [\n {\n \"externalId\": \"<string>\",\n \"name\": \"<string>\",\n \"tables\": [\n {\n \"externalId\": \"<string>\",\n \"label\": \"<string>\",\n \"seatCount\": 123,\n \"x\": 123,\n \"y\": 123,\n \"minCovers\": 1073741823,\n \"maxCovers\": 1073741823,\n \"rotation\": 0\n }\n ],\n \"order\": 1073741823,\n \"canvasWidth\": 1000,\n \"canvasHeight\": 1000,\n \"decorations\": []\n }\n ],\n \"replaceDraft\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.now-os.app/api/provider/v1/floorplan/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rooms\": [\n {\n \"externalId\": \"<string>\",\n \"name\": \"<string>\",\n \"tables\": [\n {\n \"externalId\": \"<string>\",\n \"label\": \"<string>\",\n \"seatCount\": 123,\n \"x\": 123,\n \"y\": 123,\n \"minCovers\": 1073741823,\n \"maxCovers\": 1073741823,\n \"rotation\": 0\n }\n ],\n \"order\": 1073741823,\n \"canvasWidth\": 1000,\n \"canvasHeight\": 1000,\n \"decorations\": []\n }\n ],\n \"replaceDraft\": false\n}"
response = http.request(request)
puts response.read_body{
"rooms": [
{
"externalRoomId": "<string>",
"roomId": "<string>",
"name": "<string>"
}
],
"mapping": [
{
"externalTableId": "<string>",
"tableId": "<string>",
"label": "<string>"
}
]
}{
"error": {
"message": "<string>",
"occupiedBy": {
"orderId": "<string>",
"reservationExternalId": "<string>"
}
}
}Autorisations
Location-scoped API key (nowos_sk_live_…), issued at registration. The key identifies the location — URLs carry no location id.
Corps
application/json
⌘I