Check out
curl --request POST \
--url https://api.spacebring.com/check_ins/v1/checkout \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"checkInId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.spacebring.com/check_ins/v1/checkout"
payload = {
"checkInId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
checkInId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
code: '<string>',
locationRef: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.spacebring.com/check_ins/v1/checkout', 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.spacebring.com/check_ins/v1/checkout",
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([
'checkInId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'code' => '<string>',
'locationRef' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.spacebring.com/check_ins/v1/checkout"
payload := strings.NewReader("{\n \"checkInId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"code\": \"<string>\",\n \"locationRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.spacebring.com/check_ins/v1/checkout")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"checkInId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"code\": \"<string>\",\n \"locationRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/check_ins/v1/checkout")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"checkInId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"code\": \"<string>\",\n \"locationRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"checkIn": {
"createDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"networkRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "checkedIn",
"startDate": "2023-11-07T05:31:56Z",
"type": "deskBooking",
"booking": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"checkInDate": "2023-11-07T05:31:56Z",
"checkInScheduleRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"checkOutDate": "2023-11-07T05:31:56Z",
"code": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"eventTicket": {
"eventRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"visit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userHost": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"surname": "<string>"
}
}
}
}{
"message": "<string>",
"type": "<string>"
}{
"message": "<string>",
"type": "<string>"
}{
"message": "<string>",
"type": "<string>"
}Check-ins
Check out
Record a departure on an open check-in. Identify it with its check-in id, or with the location and the six-digit code it was opened with. With bearer token authentication, the user must be an administrator of the location.
OAuth
Required scopes:checkInsPOST
/
check_ins
/
v1
/
checkout
Check out
curl --request POST \
--url https://api.spacebring.com/check_ins/v1/checkout \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"checkInId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.spacebring.com/check_ins/v1/checkout"
payload = {
"checkInId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
checkInId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
code: '<string>',
locationRef: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.spacebring.com/check_ins/v1/checkout', 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.spacebring.com/check_ins/v1/checkout",
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([
'checkInId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'code' => '<string>',
'locationRef' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.spacebring.com/check_ins/v1/checkout"
payload := strings.NewReader("{\n \"checkInId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"code\": \"<string>\",\n \"locationRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.spacebring.com/check_ins/v1/checkout")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"checkInId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"code\": \"<string>\",\n \"locationRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/check_ins/v1/checkout")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"checkInId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"code\": \"<string>\",\n \"locationRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"checkIn": {
"createDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"networkRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "checkedIn",
"startDate": "2023-11-07T05:31:56Z",
"type": "deskBooking",
"booking": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"checkInDate": "2023-11-07T05:31:56Z",
"checkInScheduleRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"checkOutDate": "2023-11-07T05:31:56Z",
"code": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"eventTicket": {
"eventRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"visit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userHost": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"surname": "<string>"
}
}
}
}{
"message": "<string>",
"type": "<string>"
}{
"message": "<string>",
"type": "<string>"
}{
"message": "<string>",
"type": "<string>"
}Authorizations
BasicAuthOAuth2
See our authentication documentation for how to authorize your requests
Headers
The id of the network. Required when using bearer token authentication
Body
application/json
The ID of the check-in.
Confirmation code of the check-in, or a member's personal code. Required when the check-in was created with one.
UUID of the location the code was issued in. Required when the check-in is resolved by its code or a customer ref.
Response
OK
The check-in.
Show child attributes
Show child attributes
Was this page helpful?