curl --request POST \
--url https://api-dashboard.payra.com/v1/terminals/{id}/check-in \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"checked_out_to": "Tablet TB0011",
"checked_in_by": "j.doe"
}
'import requests
url = "https://api-dashboard.payra.com/v1/terminals/{id}/check-in"
payload = {
"checked_out_to": "Tablet TB0011",
"checked_in_by": "j.doe"
}
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({checked_out_to: 'Tablet TB0011', checked_in_by: 'j.doe'})
};
fetch('https://api-dashboard.payra.com/v1/terminals/{id}/check-in', 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-dashboard.payra.com/v1/terminals/{id}/check-in",
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([
'checked_out_to' => 'Tablet TB0011',
'checked_in_by' => 'j.doe'
]),
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-dashboard.payra.com/v1/terminals/{id}/check-in"
payload := strings.NewReader("{\n \"checked_out_to\": \"Tablet TB0011\",\n \"checked_in_by\": \"j.doe\"\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-dashboard.payra.com/v1/terminals/{id}/check-in")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"checked_out_to\": \"Tablet TB0011\",\n \"checked_in_by\": \"j.doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dashboard.payra.com/v1/terminals/{id}/check-in")
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 \"checked_out_to\": \"Tablet TB0011\",\n \"checked_in_by\": \"j.doe\"\n}"
response = http.request(request)
puts response.read_body{
"object": "terminal",
"id": "019f2c4e-7b1a-7d3e-9a10-3c5b8e2f4a61",
"label": "Truck 412",
"model": "AMS1",
"serial_number": "1853000123",
"checked_out_to": "Tablet TB0011",
"checked_out_at": "2026-10-21T12:05:00.000Z",
"checked_out_by": "j.doe",
"livemode": false
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}Check a terminal in
Frees the terminal for the next check-out. A terminal that is already free is answered as it is. Send checked_out_to to make the check-in conditional on who has it: when someone else does, the answer is 400 terminal_checked_out and nothing changes.
curl --request POST \
--url https://api-dashboard.payra.com/v1/terminals/{id}/check-in \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"checked_out_to": "Tablet TB0011",
"checked_in_by": "j.doe"
}
'import requests
url = "https://api-dashboard.payra.com/v1/terminals/{id}/check-in"
payload = {
"checked_out_to": "Tablet TB0011",
"checked_in_by": "j.doe"
}
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({checked_out_to: 'Tablet TB0011', checked_in_by: 'j.doe'})
};
fetch('https://api-dashboard.payra.com/v1/terminals/{id}/check-in', 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-dashboard.payra.com/v1/terminals/{id}/check-in",
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([
'checked_out_to' => 'Tablet TB0011',
'checked_in_by' => 'j.doe'
]),
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-dashboard.payra.com/v1/terminals/{id}/check-in"
payload := strings.NewReader("{\n \"checked_out_to\": \"Tablet TB0011\",\n \"checked_in_by\": \"j.doe\"\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-dashboard.payra.com/v1/terminals/{id}/check-in")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"checked_out_to\": \"Tablet TB0011\",\n \"checked_in_by\": \"j.doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dashboard.payra.com/v1/terminals/{id}/check-in")
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 \"checked_out_to\": \"Tablet TB0011\",\n \"checked_in_by\": \"j.doe\"\n}"
response = http.request(request)
puts response.read_body{
"object": "terminal",
"id": "019f2c4e-7b1a-7d3e-9a10-3c5b8e2f4a61",
"label": "Truck 412",
"model": "AMS1",
"serial_number": "1853000123",
"checked_out_to": "Tablet TB0011",
"checked_out_at": "2026-10-21T12:05:00.000Z",
"checked_out_by": "j.doe",
"livemode": false
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"param": "<string>"
}
}Authorizations
A secret key, sk_test_... or sk_live_...; a publishable key (pk_...) on the browser routes only
Path Parameters
1 - 64Body
Who is returning it. When sent, the check-in only goes through if this is who has the terminal, so a late return cannot free a terminal someone else took since.
1 - 120"Tablet TB0011"
Your user doing the check-in, kept in the history.
1 - 120"j.doe"
Response
The terminal, free
terminal Pass it as terminal on a payment.
"019f2c4e-7b1a-7d3e-9a10-3c5b8e2f4a61"
Your name for the terminal, such as the truck it rides in; null until you name it.
"Truck 412"
"AMS1"
Printed on the back of the terminal.
"1853000123"
Who has the terminal right now, as you named them at check-out: a tablet, a truck, a driver. null while it sits free.
"Tablet TB0011"
When it was checked out; null while it sits free.
"2026-10-21T12:05:00.000Z"
Your user who did the check-out, as you sent it; null when you sent none or while the terminal sits free.
"j.doe"
false