List pending reservations for this device
curl --request GET \
--url https://api.contazen.ro/v1/invoice-series/{id}/reservations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contazen.ro/v1/invoice-series/{id}/reservations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contazen.ro/v1/invoice-series/{id}/reservations', 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.contazen.ro/v1/invoice-series/{id}/reservations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.contazen.ro/v1/invoice-series/{id}/reservations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contazen.ro/v1/invoice-series/{id}/reservations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contazen.ro/v1/invoice-series/{id}/reservations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"object": "list",
"data": [
{
"object": "number_reservation",
"token": "<string>",
"series_id": "<string>",
"number": 123,
"device_id": "<string>",
"reserved_at": 123,
"expires_at": 123,
"consumed_at": 123,
"client_local_uuid": "<string>"
}
],
"total": 123
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}Invoice Series
List Reservations
List pending number reservations owned by the caller mobile device.
GET
/
invoice-series
/
{id}
/
reservations
List pending reservations for this device
curl --request GET \
--url https://api.contazen.ro/v1/invoice-series/{id}/reservations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contazen.ro/v1/invoice-series/{id}/reservations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contazen.ro/v1/invoice-series/{id}/reservations', 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.contazen.ro/v1/invoice-series/{id}/reservations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.contazen.ro/v1/invoice-series/{id}/reservations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contazen.ro/v1/invoice-series/{id}/reservations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contazen.ro/v1/invoice-series/{id}/reservations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"object": "list",
"data": [
{
"object": "number_reservation",
"token": "<string>",
"series_id": "<string>",
"number": 123,
"device_id": "<string>",
"reserved_at": 123,
"expires_at": 123,
"consumed_at": 123,
"client_local_uuid": "<string>"
}
],
"total": 123
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"meta": {
"version": "v1",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_time": "23.45ms"
}
}Overview
Returns the reservation pool for the authenticated device on this series. Used by the mobile app to reconcile its local pool against the server’s view after a long offline period or a local database wipe. Only reservations wheredevice_id matches the caller’s user_session.device_id AND status = 'pending' are returned. Expired / consumed / released rows are omitted — those are not usable for new invoices.
Response
array
Same shape as Reserve Numbers.
integer
Number of usable reservations the calling device currently owns on this series.
Was this page helpful?
⌘I