Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Aperçu des statistiques/ statistic Overview
Afficher les statistiques de chaque hotel ou d'un groupe d'hotel
Afficher les effectifs des éléments de statistique
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/statistic-overview" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hotel_id\": 16
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/statistic-overview"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hotel_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Articles
Gestion des articles
Afficher la liste des articles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/articles/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 89,
\"nbre_items\": 3,
\"filter_value\": \"optio\",
\"service_id\": 15,
\"hotel_id\": 18,
\"type\": \"consumable\",
\"expired\": false
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 89,
"nbre_items": 3,
"filter_value": "optio",
"service_id": 15,
"hotel_id": 18,
"type": "consumable",
"expired": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enregistrer des articles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/articles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"articles\": [
{
\"name\": \"dignissimos\",
\"type\": \"consumable\",
\"image\": \"corporis\",
\"price\": 0,
\"description\": \"Illum quia quo totam aut quibusdam ut.\",
\"unit_of_measurement\": \"ducimus\",
\"alert_quantity\": 4,
\"expiry_date\": \"2026-02-06T09:06:13\",
\"container\": \"veritatis\",
\"container_unit\": \"kpnjhojoxvvlhvesmfomnuwb\",
\"container_quantity\": 28,
\"detail\": \"sed\",
\"service_id\": 16,
\"suppliers\": [
2
]
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"articles": [
{
"name": "dignissimos",
"type": "consumable",
"image": "corporis",
"price": 0,
"description": "Illum quia quo totam aut quibusdam ut.",
"unit_of_measurement": "ducimus",
"alert_quantity": 4,
"expiry_date": "2026-02-06T09:06:13",
"container": "veritatis",
"container_unit": "kpnjhojoxvvlhvesmfomnuwb",
"container_quantity": 28,
"detail": "sed",
"service_id": 16,
"suppliers": [
2
]
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un article spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/articles/26" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/articles/26"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un article spécifique
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/articles/26" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"odio\",
\"type\": \"storable\",
\"image\": \"sunt\",
\"price\": 281156.38,
\"description\": \"Aut facilis qui quam.\",
\"unit_of_measurement\": \"est\",
\"alert_quantity\": 5,
\"expiry_date\": \"2026-02-06T09:06:14\",
\"container\": \"natus\",
\"container_unit\": \"lglkghnheobbxymsxzgjwp\",
\"container_quantity\": 2,
\"detail\": \"sunt\",
\"service_id\": 6
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles/26"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "odio",
"type": "storable",
"image": "sunt",
"price": 281156.38,
"description": "Aut facilis qui quam.",
"unit_of_measurement": "est",
"alert_quantity": 5,
"expiry_date": "2026-02-06T09:06:14",
"container": "natus",
"container_unit": "lglkghnheobbxymsxzgjwp",
"container_quantity": 2,
"detail": "sunt",
"service_id": 6
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des articles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/articles/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des articles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/articles/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des articles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/articles/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
6
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
6
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Articles-Fournisseurs
Avoir la liste des fournisseurs d'un article et inversément
Avoir la liste des fournisseurs d'un article et inversément
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/articles-suppliers/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 66,
\"nbre_items\": 1,
\"article_id\": 6,
\"supplier_id\": 20
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles-suppliers/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 66,
"nbre_items": 1,
"article_id": 6,
"supplier_id": 20
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Authentification
Gestion de l'authentification des utilisateurs
Fonction permettant à un utilisateur de s'inscrire
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/register" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "firstname=yhucdozqzhsokfxzzsypvgvhx"\
--form "lastname=hzrmbxflrhsvbr"\
--form "gender=male"\
--form "birthday=2026-02-06T09:06:13"\
--form "nationality=wniatbrxbkuxvmwgziys"\
--form "nui=msbeboqcfljhlemnxryb"\
--form "cni=ilijulotarappxuzpseqbsouw"\
--form "cnps=inwcxurdgoow"\
--form "passport_issue_date=2026-02-06T09:06:13"\
--form "passport_issue_place=jukzfakcehnevqaon"\
--form "profession=wpppwptjnrtlwjas"\
--form "birth_place=rteqsgvhqfqrldry"\
--form "connexion_type=email"\
--form "email=miller.bette@example.com"\
--form "phone=mubfbsvxtkepykmpkg"\
--form "phone2=oqfdzyd"\
--form "city=nvxvep"\
--form "address=bkzas"\
--form "country=xmaqu"\
--form "hotel_id=20"\
--form "service_id=20"\
--form "responsible_id=7"\
--form "password=W_|%:~1EqDw>34vG,}|~"\
--form "photo=@/tmp/phpK33CKp" const url = new URL(
"https://pessi.ms-hotel.net/api/register"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('firstname', 'yhucdozqzhsokfxzzsypvgvhx');
body.append('lastname', 'hzrmbxflrhsvbr');
body.append('gender', 'male');
body.append('birthday', '2026-02-06T09:06:13');
body.append('nationality', 'wniatbrxbkuxvmwgziys');
body.append('nui', 'msbeboqcfljhlemnxryb');
body.append('cni', 'ilijulotarappxuzpseqbsouw');
body.append('cnps', 'inwcxurdgoow');
body.append('passport_issue_date', '2026-02-06T09:06:13');
body.append('passport_issue_place', 'jukzfakcehnevqaon');
body.append('profession', 'wpppwptjnrtlwjas');
body.append('birth_place', 'rteqsgvhqfqrldry');
body.append('connexion_type', 'email');
body.append('email', 'miller.bette@example.com');
body.append('phone', 'mubfbsvxtkepykmpkg');
body.append('phone2', 'oqfdzyd');
body.append('city', 'nvxvep');
body.append('address', 'bkzas');
body.append('country', 'xmaqu');
body.append('hotel_id', '20');
body.append('service_id', '20');
body.append('responsible_id', '7');
body.append('password', 'W_|%:~1EqDw>34vG,}|~');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
On vérifie le code envoyé par email
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/verify-account" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"connexion_type\": \"phone\",
\"email\": \"isatterfield@example.com\",
\"phone\": \"tecvxc\",
\"verification_code\": \"od\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/verify-account"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"connexion_type": "phone",
"email": "isatterfield@example.com",
"phone": "tecvxc",
"verification_code": "od"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction permettant à un utilisateur déjà inscrit de se connecter
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"wfeest@example.com\",
\"phone\": \"cfqjztpsxvjhx\",
\"password\": \"|4Y8`ms+vUB:=SV*\\/W\",
\"device_key\": \"quo\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "wfeest@example.com",
"phone": "cfqjztpsxvjhx",
"password": "|4Y8`ms+vUB:=SV*\/W",
"device_key": "quo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction permettant de demander un lien pour réinitialiser le mot de passe
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/reset-password" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"connexion_type\": \"phone\",
\"email\": \"lelia.abernathy@example.org\",
\"phone\": \"tnduv\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/reset-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"connexion_type": "phone",
"email": "lelia.abernathy@example.org",
"phone": "tnduv"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction permettant de réinitialiser le mot de passe de l'utilisateur
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/confirm-reset-password" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"connexion_type\": \"phone\",
\"email\": \"kiehn.maria@example.org\",
\"phone\": \"jrbkdkxwu\",
\"verification_code\": \"fmxuybjnbqjbaayunyocxhayenaheylfxcnfddcattfjsmaianfuecirn\",
\"password\": \"M_CIr0&tRSyvmci\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/confirm-reset-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"connexion_type": "phone",
"email": "kiehn.maria@example.org",
"phone": "jrbkdkxwu",
"verification_code": "fmxuybjnbqjbaayunyocxhayenaheylfxcnfddcattfjsmaianfuecirn",
"password": "M_CIr0&tRSyvmci"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction permettant à un utilisateur connecté de se déconnecter
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/logout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/logout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Avance sur salaire / Salary advance
Gestion des avances sur salaire
Afficher la liste filtrée des avances sur salaire
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-advances/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 12,
\"nbre_items\": 3,
\"filter_value\": \"consequatur\",
\"trashed\": false,
\"user_id\": 16,
\"user_approve_id\": 8,
\"date\": \"2026-02-06\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 12,
"nbre_items": 3,
"filter_value": "consequatur",
"trashed": false,
"user_id": 16,
"user_approve_id": 8,
"date": "2026-02-06"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher une retenue sur salaire spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/salaries-advances/soluta" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances/soluta"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the form for creating a new resource.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-advances" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"salary_advances\": [
{
\"user_approve_id\": 13,
\"amount\": \"non\",
\"reason\": \"quis\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"salary_advances": [
{
"user_approve_id": 13,
"amount": "non",
"reason": "quis"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour une retenue sur salaire spécifique
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/salaries-advances/laborum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_approve_id\": 20,
\"status\": \"rejected\",
\"reason\": \"quam\",
\"comments\": \"cupiditate\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances/laborum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_approve_id": 20,
"status": "rejected",
"reason": "quam",
"comments": "cupiditate"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les avances sur salaire spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-advances/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
11
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les avances sur salaire archivées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-advances/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
6
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
6
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les avances sur salaire spécifiées.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/salaries-advances/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Avertissements
Gestion des avertissements
Lister les avertissements
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/warnings/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 16,
\"archive\": \"only_trashed\",
\"date\": \"2026-02-06\",
\"page_items\": 7,
\"nbre_items\": 13,
\"filter_value\": \"et\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/warnings/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 16,
"archive": "only_trashed",
"date": "2026-02-06",
"page_items": 7,
"nbre_items": 13,
"filter_value": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'un avertissement
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/warnings/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/warnings/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un ou plusieurs avertissements
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/warnings" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warnings\": [
{
\"user_id\": 13,
\"reason\": \"saepe\",
\"date\": \"2026-02-06\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/warnings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warnings": [
{
"user_id": 13,
"reason": "saepe",
"date": "2026-02-06"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier les détails d'un avertissement
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/warnings/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 12,
\"reason\": \"ut\",
\"date\": \"2026-02-06\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/warnings/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 12,
"reason": "ut",
"date": "2026-02-06"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre un ou plusieurs avertissements en corbeille (soft delete)
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/warnings/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warning_ids\": [
17
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/warnings/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warning_ids": [
17
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer un ou plusieurs avertissements de la corbeille
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/warnings/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warning_ids\": [
13
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/warnings/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warning_ids": [
13
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement un ou plusieurs avertissements
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/warnings/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"warning_ids\": [
5
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/warnings/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"warning_ids": [
5
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Bons d'achats
Gestion des bons d'achat
Afficher une liste filtrée des bons d'achat
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/purchase-vouchers/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 65,
\"nbre_items\": 18,
\"filter_value\": \"magni\",
\"status\": \"paid\",
\"priority\": \"low\",
\"article_ids\": [
7
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/purchase-vouchers/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 65,
"nbre_items": 18,
"filter_value": "magni",
"status": "paid",
"priority": "low",
"article_ids": [
7
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enregistrer un bon d'achat
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/purchase-vouchers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supplier_id\": 3,
\"responsible_id\": 8,
\"description\": \"Facere molestiae optio dolorem assumenda perferendis tempora.\",
\"status\": \"delivered\",
\"priority\": \"high\",
\"quotation_file\": \"velit\",
\"articles\": [
{
\"id\": 20,
\"unit_price\": 20,
\"quantity\": 54
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/purchase-vouchers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supplier_id": 3,
"responsible_id": 8,
"description": "Facere molestiae optio dolorem assumenda perferendis tempora.",
"status": "delivered",
"priority": "high",
"quotation_file": "velit",
"articles": [
{
"id": 20,
"unit_price": 20,
"quantity": 54
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un bon d'achat spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/purchase-vouchers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/purchase-vouchers/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/purchase-vouchers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supplier_id\": 2,
\"responsible_id\": 19,
\"description\": \"Facere dolor nisi molestias voluptas.\",
\"status\": \"requesting_price\",
\"priority\": \"medium\",
\"quotation_file\": \"non\",
\"payment_method\": \"Cash\",
\"articles\": [
{
\"id\": 8,
\"unit_price\": 10,
\"quantity\": 71
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/purchase-vouchers/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supplier_id": 2,
"responsible_id": 19,
"description": "Facere dolor nisi molestias voluptas.",
"status": "requesting_price",
"priority": "medium",
"quotation_file": "non",
"payment_method": "Cash",
"articles": [
{
"id": 8,
"unit_price": 10,
"quantity": 71
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des bonds d'achat
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/purchase-vouchers/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
6
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/purchase-vouchers/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
6
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des bonds d'achat
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/purchase-vouchers/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/purchase-vouchers/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des bonds d'achat
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/purchase-vouchers/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/purchase-vouchers/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Catégories de chambres
Gestion des catégories de chambres
Lister les catégories de chambres disponibles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-categories/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 1,
\"nbre_items\": 3,
\"filter_value\": \"perferendis\",
\"hotel_id\": 10,
\"trashed\": false
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-categories/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 1,
"nbre_items": 3,
"filter_value": "perferendis",
"hotel_id": 10,
"trashed": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": 5,
"name": "Famimial",
"description": "La meilleure",
"author": {
"id": 1,
"name": "Admin",
"phone": null,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-02-14 10:50:03",
"updated_at": "2025-02-14 10:50:03",
"deleted_at": null,
"token": null
},
"created_at": "2025-02-14 14:51:35",
"deleted_at": null,
"count_rooms": 0
},
{
"id": 2,
"name": "VIP",
"description": null,
"author": null,
"created_at": "2025-02-14 14:39:45",
"deleted_at": null,
"count_rooms": 0
}
],
"links": {
"first": "http://127.0.0.1:8000/api/room-categories/all?page=1",
"last": "http://127.0.0.1:8000/api/room-categories/all?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Précédent",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/room-categories/all?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Suivant »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/room-categories/all",
"per_page": 1000000,
"to": 2,
"total": 2
}
}
Example response (403):
{
"message": "User does not have the right permissions."
"..."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les informations sur une catégorie de chambre
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/room-categories/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/room-categories/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouer une catégorie de chambre
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_categories\": [
{
\"hotel_id\": 3,
\"name\": \"voluptates\",
\"description\": \"Est sint neque dolorum laboriosam dolor.\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"room_categories": [
{
"hotel_id": 3,
"name": "voluptates",
"description": "Est sint neque dolorum laboriosam dolor."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une catégorie de chambre
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/room-categories/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"eaque\",
\"hotel_id\": 4,
\"description\": \"Quidem dolorem repellat molestiae deserunt voluptatibus ut similique.\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-categories/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "eaque",
"hotel_id": 4,
"description": "Quidem dolorem repellat molestiae deserunt voluptatibus ut similique."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver une ou plusieurs catégories de chambre NB: Un type de chambre ne peut pas être supprimé si il est lié à quelque chose d'autre dans le système
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/room-categories/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-categories/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer une ou plusieurs catégories de chambre de la corbeille
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-categories/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-categories/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
8
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Forcer la suppression d'un ou plusieurs hotel(s) du système
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/room-categories/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-categories/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
14
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Chambres
Gestions des chambres
Afficher les informations sur les chambres disponibles/occupées
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/rooms/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 32,
\"nbre_items\": 13,
\"filter_value\": \"illum\",
\"hotel_id\": 4,
\"room_type_id\": 14,
\"room_category_id\": 13,
\"service_id\": 12,
\"status\": \"busy\",
\"floor\": 5,
\"number_of_room\": 18
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/rooms/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 32,
"nbre_items": 13,
"filter_value": "illum",
"hotel_id": 4,
"room_type_id": 14,
"room_category_id": 13,
"service_id": 12,
"status": "busy",
"floor": 5,
"number_of_room": 18
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les informations d'une chambre
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/rooms/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/rooms/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une ou plusieurs chambres d'hotel
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/rooms" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"rooms\": [
{
\"hotel_id\": 4,
\"room_type_id\": 1,
\"room_category_id\": 3,
\"service_id\": 4,
\"floor\": 16,
\"number\": 18,
\"price\": 6,
\"number_of_room\": 5,
\"capacity\": 10,
\"status\": \"busy\",
\"name\": \"eos\",
\"description\": \"Enim ducimus exercitationem aliquid fugit consequatur nostrum.\",
\"image\": \"rerum\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/rooms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rooms": [
{
"hotel_id": 4,
"room_type_id": 1,
"room_category_id": 3,
"service_id": 4,
"floor": 16,
"number": 18,
"price": 6,
"number_of_room": 5,
"capacity": 10,
"status": "busy",
"name": "eos",
"description": "Enim ducimus exercitationem aliquid fugit consequatur nostrum.",
"image": "rerum"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour les informations d'une chambre d'hotel
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/rooms/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hotel_id\": 19,
\"room_type_id\": 4,
\"room_category_id\": 3,
\"service_id\": 15,
\"floor\": 19,
\"number\": 13,
\"price\": 20,
\"number_of_room\": 18,
\"image\": \"nam\",
\"capacity\": 6,
\"status\": \"free\",
\"description\": \"Odio quo earum officia et provident quaerat.\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/rooms/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hotel_id": 19,
"room_type_id": 4,
"room_category_id": 3,
"service_id": 15,
"floor": 19,
"number": 13,
"price": 20,
"number_of_room": 18,
"image": "nam",
"capacity": 6,
"status": "free",
"description": "Odio quo earum officia et provident quaerat."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver une ou plusieurs chambres d'hotel
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/rooms/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/rooms/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
1
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer une ou plusieurs chambres d'hotel
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/rooms/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/rooms/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer une ou plusieurs chambres d'hotels
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/rooms/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/rooms/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Clés
Gestion des clés de l'application'
Récupérer la route de l'application
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/find-licence" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"cle\": \"et\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/find-licence"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"cle": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Récuperer les clés d'applications
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/keys/commodi" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/keys/commodi"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Commandes
Gestion des commandes
Lister les commandes
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/orders/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 63,
\"nbre_items\": 17,
\"filter_value\": \"aut\",
\"customer_id\": 1,
\"payment_mode\": \"nisi\",
\"status\": \"cancelled\",
\"payment_status\": \"advance\",
\"product_id\": 14,
\"service_id\": 5,
\"hotel_id\": 5
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/orders/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 63,
"nbre_items": 17,
"filter_value": "aut",
"customer_id": 1,
"payment_mode": "nisi",
"status": "cancelled",
"payment_status": "advance",
"product_id": 14,
"service_id": 5,
"hotel_id": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'une commande
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/orders/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/orders/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une commande
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/orders" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_id\": 16,
\"payment_mode\": \"voluptas\",
\"room_id\": 16,
\"room_service_id\": 5,
\"status\": \"paid\",
\"delivery_date\": \"2026-02-06T09:06:14\",
\"products\": [
{
\"id\": 20,
\"quantity\": 62
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/orders"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_id": 16,
"payment_mode": "voluptas",
"room_id": 16,
"room_service_id": 5,
"status": "paid",
"delivery_date": "2026-02-06T09:06:14",
"products": [
{
"id": 20,
"quantity": 62
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une commande
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/orders/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_id\": 2,
\"payment_mode\": \"pariatur\",
\"room_id\": 7,
\"room_service_id\": 6,
\"status\": \"paid\",
\"delivery_date\": \"2026-02-06T09:06:14\",
\"products\": [
{
\"id\": 9,
\"quantity\": 22
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/orders/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_id": 2,
"payment_mode": "pariatur",
"room_id": 7,
"room_service_id": 6,
"status": "paid",
"delivery_date": "2026-02-06T09:06:14",
"products": [
{
"id": 9,
"quantity": 22
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les presences spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/orders/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/orders/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
11
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les orders archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/orders/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
3
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/orders/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les orders spécifiés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/orders/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/orders/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Contrats
Gestion des contrats employés
Retourne la liste des contrats avec la possibilité de filtrer et paginer les résultats.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/contracts/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 14,
\"nbre_items\": 18,
\"filter_value\": \"reiciendis\",
\"position\": \"pariatur\",
\"status\": \"Pending\",
\"trashed\": true
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/contracts/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 14,
"nbre_items": 18,
"filter_value": "reiciendis",
"position": "pariatur",
"status": "Pending",
"trashed": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Affiche les détails d’un contrat spécifique à partir de son identifiant.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/contracts/molestiae" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/contracts/molestiae"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crée un nouveau contrat pour un utilisateur, après vérification d'absence de contrat actif.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/contracts" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 7,
\"user_approve_id\": 6,
\"type\": \"ratione\",
\"description\": \"Reiciendis dolorem nihil similique qui et saepe dignissimos.\",
\"start_date\": \"2026-02-06T09:06:14\",
\"duration\": 6,
\"working_hours\": \"explicabo\",
\"position\": \"praesentium\",
\"gross_salary\": 70,
\"status\": \"Pending\",
\"service_benefits\": \"quia\",
\"bonus\": \"autem\",
\"number_days_off\": 16
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/contracts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 7,
"user_approve_id": 6,
"type": "ratione",
"description": "Reiciendis dolorem nihil similique qui et saepe dignissimos.",
"start_date": "2026-02-06T09:06:14",
"duration": 6,
"working_hours": "explicabo",
"position": "praesentium",
"gross_salary": 70,
"status": "Pending",
"service_benefits": "quia",
"bonus": "autem",
"number_days_off": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Met à jour les informations d’un contrat donné.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/contracts/odit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 3,
\"user_approve_id\": 20,
\"type\": \"CDI\",
\"description\": \"Asperiores velit excepturi iusto fugit vitae consequuntur cum.\",
\"start_date\": \"2026-02-06T09:06:14\",
\"duration\": 84,
\"working_hours\": \"molestias\",
\"position\": \"exercitationem\",
\"gross_salary\": 77,
\"status\": \"Pending\",
\"service_benefits\": \"et\",
\"bonus\": \"eligendi\",
\"number_days_off\": 1
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/contracts/odit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 3,
"user_approve_id": 20,
"type": "CDI",
"description": "Asperiores velit excepturi iusto fugit vitae consequuntur cum.",
"start_date": "2026-02-06T09:06:14",
"duration": 84,
"working_hours": "molestias",
"position": "exercitationem",
"gross_salary": 77,
"status": "Pending",
"service_benefits": "et",
"bonus": "eligendi",
"number_days_off": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les contrats spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/contracts/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/contracts/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les contrats archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/contracts/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/contracts/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les contrats spécifiés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/contracts/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/contracts/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Decaissements
Gestion des décaissements
Afficher la liste des décaissements en fonction des filtres
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/disbursements/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 52,
\"nbre_items\": 86,
\"filter_value\": \"delectus\",
\"supplier_id\": 16,
\"hotel_id\": 12,
\"purchase_order_id\": 4,
\"user_id\": 14,
\"responsible_id\": 3,
\"payment_method\": \"Bank\",
\"status\": \"pending\",
\"reference\": \"et\",
\"date_start\": \"2026-02-06T09:06:14\",
\"date_end\": \"2026-02-06T09:06:14\",
\"service_ids\": [
5
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 52,
"nbre_items": 86,
"filter_value": "delectus",
"supplier_id": 16,
"hotel_id": 12,
"purchase_order_id": 4,
"user_id": 14,
"responsible_id": 3,
"payment_method": "Bank",
"status": "pending",
"reference": "et",
"date_start": "2026-02-06T09:06:14",
"date_end": "2026-02-06T09:06:14",
"service_ids": [
5
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enregistrer un nouveau décaissement
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/disbursements" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"payment_method\": \"Bank\",
\"status\": \"rejected\",
\"invoice_image\": \"sapiente\",
\"reasons\": \"omnis\",
\"total_amount\": 27,
\"disbursement_date\": \"2026-02-06T09:06:14\",
\"responsible_id\": \"quibusdam\",
\"validation_date\": \"2026-02-06T09:06:14\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"payment_method": "Bank",
"status": "rejected",
"invoice_image": "sapiente",
"reasons": "omnis",
"total_amount": 27,
"disbursement_date": "2026-02-06T09:06:14",
"responsible_id": "quibusdam",
"validation_date": "2026-02-06T09:06:14"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un décaissement spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/disbursements/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/disbursements/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"payment_method\": \"Cash\",
\"status\": \"approved\",
\"invoice_image\": \"soluta\",
\"reasons\": \"et\",
\"total_amount\": 82,
\"disbursement_date\": \"2026-02-06T09:06:14\",
\"validation_date\": \"2026-02-06T09:06:14\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"payment_method": "Cash",
"status": "approved",
"invoice_image": "soluta",
"reasons": "et",
"total_amount": 82,
"disbursement_date": "2026-02-06T09:06:14",
"validation_date": "2026-02-06T09:06:14"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les décaissements.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/disbursements/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
13
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
13
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les décaissements archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/disbursements/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
18
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les décaissements spécifiés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/disbursements/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
7
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Demande d'approvisionnement | Supply demand
Contrôleur chargé de la gestion des demandes d'approvisionnement.
Affiche la liste paginée des demandes d'approvisionnement, avec filtres optionnels.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/supply-demands/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"filter_value\": \"accusamus\",
\"responsible_id\": 11,
\"hotel_id\": 3,
\"priority\": \"low\",
\"status\": \"pending\",
\"article_ids\": [
1
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/supply-demands/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"filter_value": "accusamus",
"responsible_id": 11,
"hotel_id": 3,
"priority": "low",
"status": "pending",
"article_ids": [
1
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Affiche les détails d'une demande d'approvisionnement spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/supply-demands/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/supply-demands/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crée une nouvelle demande d'approvisionnement.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/supply-demands" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"uswwwehiupctrxuenox\",
\"description\": \"Saepe consequatur ea voluptatem accusantium maiores sit.\",
\"responsible_id\": 8,
\"status\": \"pending\",
\"priority\": \"high\",
\"articles\": [
{
\"id\": 10,
\"unit_price\": 3,
\"quantity\": 23,
\"supplier_id\": 15
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/supply-demands"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "uswwwehiupctrxuenox",
"description": "Saepe consequatur ea voluptatem accusantium maiores sit.",
"responsible_id": 8,
"status": "pending",
"priority": "high",
"articles": [
{
"id": 10,
"unit_price": 3,
"quantity": 23,
"supplier_id": 15
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Met à jour les informations d'une demande d'approvisionnement existante.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/supply-demands/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"zvtbknshzoua\",
\"description\": \"Voluptate est fugit ad sunt et est voluptatibus.\",
\"responsible_id\": 1,
\"status\": \"accepted\",
\"priority\": \"medium\",
\"articles\": [
{
\"id\": 18,
\"unit_price\": 1,
\"quantity\": 14,
\"supplier_id\": 2
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/supply-demands/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "zvtbknshzoua",
"description": "Voluptate est fugit ad sunt et est voluptatibus.",
"responsible_id": 1,
"status": "accepted",
"priority": "medium",
"articles": [
{
"id": 18,
"unit_price": 1,
"quantity": 14,
"supplier_id": 2
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Met en corbeille (suppression logique) une ou plusieurs demandes d'approvisionnement.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/supply-demands/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supply_demand_ids\": [
4
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/supply-demands/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supply_demand_ids": [
4
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaure une ou plusieurs demandes d'approvisionnement supprimées (suppression logique).
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/supply-demands/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supply_demand_ids\": [
15
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/supply-demands/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supply_demand_ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Demande de congé
Gestion des demandes de congé employé
Lister les congés enregistrés
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/holidays/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 14,
\"user_approve_id\": 8,
\"status\": \"approved\",
\"archive\": \"only_trashed\",
\"date\": \"2026-02-06T09:06:14\",
\"page_items\": 4,
\"nbre_items\": 13,
\"filter_value\": \"illo\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/holidays/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 14,
"user_approve_id": 8,
"status": "approved",
"archive": "only_trashed",
"date": "2026-02-06T09:06:14",
"page_items": 4,
"nbre_items": 13,
"filter_value": "illo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'une retenue sur salaire
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/holidays/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/holidays/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enregistrer une demande de congé
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/holidays" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"molestias\",
\"start_date\": \"2052-05-17\",
\"end_date\": \"2034-05-17\",
\"days_taken\": 12,
\"reason\": \"dimwgsxbzuvzhcdhrdxaxba\",
\"user_approve_id\": 2
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/holidays"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "molestias",
"start_date": "2052-05-17",
"end_date": "2034-05-17",
"days_taken": 12,
"reason": "dimwgsxbzuvzhcdhrdxaxba",
"user_approve_id": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une demande de congé
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/holidays/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"quisquam\",
\"start_date\": \"2118-05-05\",
\"end_date\": \"2120-10-14\",
\"days_taken\": 10,
\"reason\": \"sfkzfppujpfgxtmhwunq\",
\"status\": \"rejected\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/holidays/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "quisquam",
"start_date": "2118-05-05",
"end_date": "2120-10-14",
"days_taken": 10,
"reason": "sfkzfppujpfgxtmhwunq",
"status": "rejected"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver une ou plusieurs demandes de congés
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/holidays/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idHolidays\": [
11
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/holidays/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idHolidays": [
11
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer une ou plusieurs demandes de congés
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/holidays/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idHolidays\": [
12
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/holidays/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idHolidays": [
12
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer une ou plusieurs demandes de congés
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/holidays/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idHolidays\": [
8
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/holidays/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idHolidays": [
8
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Demandes de Permissions
Contrôleur pour la gestion des demandes de permission des utilisateurs
Affiche une liste paginée des demandes de permission.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permission-requests/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 26,
\"nbre_items\": 9,
\"filterValue\": \"xrcydk\",
\"departure\": \"2026-02-06T09:06:14\",
\"return\": \"2061-04-23\",
\"duration\": 61,
\"archive\": \"with_trashed\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 26,
"nbre_items": 9,
"filterValue": "xrcydk",
"departure": "2026-02-06T09:06:14",
"return": "2061-04-23",
"duration": 61,
"archive": "with_trashed"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Affiche les détails d'une demande de permission spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/permission-requests/et" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests/et"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crée une nouvelle demande de permission.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permission-requests" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"hs\",
\"departure\": \"2042-03-06\",
\"return\": \"2086-03-28\",
\"duration\": 80,
\"user_approve_id\": 18,
\"status\": \"pending\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "hs",
"departure": "2042-03-06",
"return": "2086-03-28",
"duration": 80,
"user_approve_id": 18,
"status": "pending"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Met à jour une demande de permission si elle est encore en attente.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/permission-requests/eveniet" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"ppym\",
\"datedeparture\": \"2057-02-13\",
\"dateRetour\": \"2047-04-28\",
\"duration\": 27,
\"status\": \"rejected\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests/eveniet"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "ppym",
"datedeparture": "2057-02-13",
"dateRetour": "2047-04-28",
"duration": 27,
"status": "rejected"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les presences spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permission-requests/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les permission_requests archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permission-requests/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les permission_requests spécifiés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permission-requests/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
7
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Encaissements
Gestion des encaissements
Lister les encaissements
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/cash-ins/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 45,
\"nbre_items\": 13,
\"filter_value\": \"hic\",
\"seller_id\": 1,
\"hotel_id\": 4,
\"order_id\": 7,
\"client_id\": 1,
\"date_start\": \"2026-02-06T09:06:14\",
\"date_end\": \"2026-02-06T09:06:14\",
\"cashin_type\": \"booking\",
\"payment_method\": \"suscipit\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 45,
"nbre_items": 13,
"filter_value": "hic",
"seller_id": 1,
"hotel_id": 4,
"order_id": 7,
"client_id": 1,
"date_start": "2026-02-06T09:06:14",
"date_end": "2026-02-06T09:06:14",
"cashin_type": "booking",
"payment_method": "suscipit"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'un encaissement
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/cash-ins/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un encaissment
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/cash-ins" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 18,
\"service_id\": 10,
\"booking_id\": 19,
\"payment_method\": \"voluptas\",
\"type\": \"aliquam\",
\"amount\": 272.6513,
\"date\": \"2026-02-06\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 18,
"service_id": 10,
"booking_id": 19,
"payment_method": "voluptas",
"type": "aliquam",
"amount": 272.6513,
"date": "2026-02-06"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un encaissement
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/cash-ins/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 2,
\"service_id\": 16,
\"booking_id\": 18,
\"payment_method\": \"et\",
\"amount\": 103.70317
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 2,
"service_id": 16,
"booking_id": 18,
"payment_method": "et",
"amount": 103.70317
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les entrées spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/cash-ins/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
17
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les entrées archivées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/cash-ins/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les entrées spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/cash-ins/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
10
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Evenements
Gestion des évènements
Lister les évènements
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/events/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 74,
\"nbre_items\": 9,
\"filter_value\": \"dolorem\",
\"service_id\": 5,
\"hotel_id\": 6,
\"type\": \"internal\",
\"archive\": \"only_trashed\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/events/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 74,
"nbre_items": 9,
"filter_value": "dolorem",
"service_id": 5,
"hotel_id": 6,
"type": "internal",
"archive": "only_trashed"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un évènement
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/events/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/events/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un évènement
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/events" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"lyfrlnvbwwzrymksoz\",
\"description\": \"Eligendi sit omnis ducimus vel repudiandae mollitia laboriosam.\",
\"start_date\": \"2026-02-06\",
\"end_date\": \"2111-06-06\",
\"type\": \"internal\",
\"budget\": \"nostrum\",
\"hotel_id\": 5,
\"service_id\": 3
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/events"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "lyfrlnvbwwzrymksoz",
"description": "Eligendi sit omnis ducimus vel repudiandae mollitia laboriosam.",
"start_date": "2026-02-06",
"end_date": "2111-06-06",
"type": "internal",
"budget": "nostrum",
"hotel_id": 5,
"service_id": 3
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un évènement
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/events/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"xzxvbx\",
\"description\": \"Aut odit harum laudantium quo qui aspernatur distinctio.\",
\"start_date\": \"2026-02-06\",
\"end_date\": \"2113-02-04\",
\"type\": \"external\",
\"budget\": \"at\",
\"hotel_id\": 17,
\"service_id\": 9
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/events/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "xzxvbx",
"description": "Aut odit harum laudantium quo qui aspernatur distinctio.",
"start_date": "2026-02-06",
"end_date": "2113-02-04",
"type": "external",
"budget": "at",
"hotel_id": 17,
"service_id": 9
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver un ou plusieurs events
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/events/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_ids\": [
20
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/events/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_ids": [
20
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer un ou plusieurs events
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/events/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_ids\": [
18
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/events/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_ids": [
18
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Hotels
Gestion des hotels de l'application
Lister les hotels de la plateforme
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/hotels/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 1,
\"nbre_items\": 12,
\"filter_value\": \"provident\",
\"founder_id\": 7,
\"manager_id\": 2,
\"assistant_id\": 9,
\"package_id\": 12
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/hotels/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 1,
"nbre_items": 12,
"filter_value": "provident",
"founder_id": 7,
"manager_id": 2,
"assistant_id": 9,
"package_id": 12
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": 3,
"name": "Pessi Hotel",
"phone": "+1-206-252-5925",
"description": "Sit quibusdam.",
"stars": 4,
"email": "isauer@example.net",
"address": "5733 Payton Union\nLake Godfreymouth, LA 34761-3059",
"website": null,
"author": null,
"created_at": "2025-02-14 10:50:03"
}
],
"links": {
"first": "http://127.0.0.1:8000/api/hotels/all?page=1",
"last": "http://127.0.0.1:8000/api/hotels/all?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Précédent",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/hotels/all?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Suivant »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/hotels/all",
"per_page": 1000000,
"to": 3,
"total": 3
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les informations sur un hotel
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/hotels/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/hotels/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Créer un hôtel
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/hotels" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"temporibus\",
\"phone\": \"in\",
\"description\": \"Veritatis sit autem quia.\",
\"stars\": 5,
\"email\": \"zieme.amiya@example.com\",
\"address\": \"libero\",
\"website\": \"totam\",
\"logo\": \"totam\",
\"creation_date\": \"2026-02-06\",
\"city\": \"ksortuloblrsir\",
\"country\": \"rwttsnaqaqsaeu\",
\"type\": \"quia\",
\"category\": \"perspiciatis\",
\"founder_id\": 7,
\"manager_id\": 11,
\"assistant_id\": 13,
\"package_id\": 11
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/hotels"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "temporibus",
"phone": "in",
"description": "Veritatis sit autem quia.",
"stars": 5,
"email": "zieme.amiya@example.com",
"address": "libero",
"website": "totam",
"logo": "totam",
"creation_date": "2026-02-06",
"city": "ksortuloblrsir",
"country": "rwttsnaqaqsaeu",
"type": "quia",
"category": "perspiciatis",
"founder_id": 7,
"manager_id": 11,
"assistant_id": 13,
"package_id": 11
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier les informations d'un hotel
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/hotels/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"provident\",
\"phone\": \"ullam\",
\"description\": \"Accusantium est et amet aliquid maiores minima.\",
\"stars\": 3,
\"email\": \"rossie01@example.com\",
\"address\": \"culpa\",
\"website\": \"assumenda\",
\"logo\": \"dolorem\",
\"rib\": \"enim\",
\"niu\": \"molestiae\",
\"rc\": \"qui\",
\"creation_date\": \"2026-02-06\",
\"city\": \"rerum\",
\"country\": \"aspernatur\",
\"type\": \"molestias\",
\"category\": \"nemo\",
\"founder_id\": 18,
\"manager_id\": 3,
\"assistant_id\": 10,
\"package_id\": 17
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/hotels/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "provident",
"phone": "ullam",
"description": "Accusantium est et amet aliquid maiores minima.",
"stars": 3,
"email": "rossie01@example.com",
"address": "culpa",
"website": "assumenda",
"logo": "dolorem",
"rib": "enim",
"niu": "molestiae",
"rc": "qui",
"creation_date": "2026-02-06",
"city": "rerum",
"country": "aspernatur",
"type": "molestias",
"category": "nemo",
"founder_id": 18,
"manager_id": 3,
"assistant_id": 10,
"package_id": 17
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver un ou plusieurs hotel(s) NB: Un hotel ne peut pas être supprimé si il est lié à quelque chose d'autre dans le système
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/hotels/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
20
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/hotels/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
20
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer un ou plusieurs hotel(s) de la corbeille
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/hotels/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/hotels/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
7
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Forcer la suppression d'un ou plusieurs hotel(s) du système
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/hotels/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/hotels/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mouvements d'articles
Gestion des mouvements d'articles
Lister les mouvements d'article en fonction du filtre
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/article-movements/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 31,
\"nbre_items\": 2,
\"filter_value\": \"beatae\",
\"article_id\": 14,
\"operation_type\": \"exit\",
\"product_id\": 14,
\"from_date\": \"2026-02-06T09:06:14\",
\"to_date\": \"2122-09-23\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/article-movements/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 31,
"nbre_items": 2,
"filter_value": "beatae",
"article_id": 14,
"operation_type": "exit",
"product_id": 14,
"from_date": "2026-02-06T09:06:14",
"to_date": "2122-09-23"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un mouvement d'article spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/article-movements/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/article-movements/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mouvements des produits
Gestion des mouvements de produits
Lister les mouvements de produit en fonction du filtre
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/product-movements/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 28,
\"nbre_items\": 5,
\"filter_value\": \"rerum\",
\"product_id\": 13,
\"service_id\": 4,
\"operation_type\": \"exit\",
\"from_date\": \"2026-02-06T09:06:14\",
\"to_date\": \"2054-08-29\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/product-movements/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 28,
"nbre_items": 5,
"filter_value": "rerum",
"product_id": 13,
"service_id": 4,
"operation_type": "exit",
"from_date": "2026-02-06T09:06:14",
"to_date": "2054-08-29"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Effectuer un mouvement de produit (possibilité d'en créer)
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/product-movements" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"quantity\": 2,
\"description\": \"Velit dolores quidem modi vel quisquam.\",
\"operation_type\": \"exit\",
\"product_id\": 18
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/product-movements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quantity": 2,
"description": "Velit dolores quidem modi vel quisquam.",
"operation_type": "exit",
"product_id": 18
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un mouvement de produit spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/product-movements/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/product-movements/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Packages / Forfaits
Gestion des packages / forfaits
Lister les packages / forfaits disponibles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/packages/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 54,
\"nbre_items\": 10,
\"filter_value\": \"vitae\",
\"website\": false,
\"support_type\": \"premium\",
\"electronic_payment\": true,
\"mail_pro\": true
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/packages/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 54,
"nbre_items": 10,
"filter_value": "vitae",
"website": false,
"support_type": "premium",
"electronic_payment": true,
"mail_pro": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les informations sur un package
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/packages/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/packages/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Créer un package / forfait
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/packages" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nobis\",
\"amount\": \"accusamus\",
\"website\": false,
\"support_type\": \"classic\",
\"electronic_payment\": true,
\"mail_pro\": false
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/packages"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nobis",
"amount": "accusamus",
"website": false,
"support_type": "classic",
"electronic_payment": true,
"mail_pro": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier les informations d'un package
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/packages/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"rerum\",
\"website\": true,
\"support_type\": \"premium\",
\"electronic_payment\": false,
\"mail_pro\": true
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/packages/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "rerum",
"website": true,
"support_type": "premium",
"electronic_payment": false,
"mail_pro": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des packages
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/packages/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/packages/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des packages
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/packages/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
6
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/packages/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
6
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des packages
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/packages/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/packages/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Paramètres Généraux
Gestion des paramètres généraux dans l'application
Lister les paramètres globaux de l'app
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/settings/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 75,
\"nbre_items\": 12,
\"filter_value\": \"eum\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/settings/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 75,
"nbre_items": 12,
"filter_value": "eum"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'un paramètre global
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/settings/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/settings/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier la valeur d'un paramètre global
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/settings/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"value\": \"aperiam\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/settings/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"value": "aperiam"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Permissions
Gestion des permissions
Afficher la liste des permissions
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permissions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 82,
\"nbre_items\": 6,
\"filter_value\": \"omnis\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permissions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 82,
"nbre_items": 6,
"filter_value": "omnis"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une liste de permission
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permissions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permissions\": [
{
\"name\": \"soluta\",
\"description\": \"Aut quia voluptatem cumque dolore eos omnis aperiam.\",
\"ressource\": \"quia\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permissions": [
{
"name": "soluta",
"description": "Aut quia voluptatem cumque dolore eos omnis aperiam.",
"ressource": "quia"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher une permission spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/permissions/porro" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/permissions/porro"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre a jour une permission spécifique
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/permissions/perspiciatis" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"et\",
\"permissions\": [
{
\"description\": \"Cum aut cupiditate accusamus nesciunt perspiciatis.\",
\"ressource\": \"reiciendis\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permissions/perspiciatis"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "et",
"permissions": [
{
"description": "Cum aut cupiditate accusamus nesciunt perspiciatis.",
"ressource": "reiciendis"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des permissions
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permissions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permissions/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des permissions
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permissions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permissions/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
12
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des permissions
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/permissions/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
5
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permissions/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
5
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Presence du personnel / Staff presence
Gestion des présences du personnel
Afficher la liste filtrée des présences du personnel
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/staff-presences/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 79,
\"nbre_items\": 20,
\"filter_value\": \"perspiciatis\",
\"type\": \"staff\",
\"scan_per_course\": false,
\"saving_type\": \"qr_code\",
\"user_id\": 5,
\"date\": \"2026-02-06T09:06:14\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 79,
"nbre_items": 20,
"filter_value": "perspiciatis",
"type": "staff",
"scan_per_course": false,
"saving_type": "qr_code",
"user_id": 5,
"date": "2026-02-06T09:06:14"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/staff-presences/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enregistrer une nouvelle présence de personnel.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/staff-presences" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 14,
\"scan_per_course\": false,
\"type\": \"staff\",
\"date\": \"2026-02-06T09:06:14\",
\"arrival_time\": \"09:06:14\",
\"departure_time\": \"09:06:14\",
\"reason\": \"ad\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 14,
"scan_per_course": false,
"type": "staff",
"date": "2026-02-06T09:06:14",
"arrival_time": "09:06:14",
"departure_time": "09:06:14",
"reason": "ad"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une présence du personnel
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/staff-presences/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 17,
\"scan_per_course\": true,
\"type\": \"staff\",
\"date\": \"2026-02-06T09:06:14\",
\"time\": \"09:06:14\",
\"arrival_time\": \"09:06:14\",
\"departure_time\": \"09:06:14\",
\"reason\": \"eum\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 17,
"scan_per_course": true,
"type": "staff",
"date": "2026-02-06T09:06:14",
"time": "09:06:14",
"arrival_time": "09:06:14",
"departure_time": "09:06:14",
"reason": "eum"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les presences spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/staff-presences/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
13
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
13
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les staff_presences archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/staff-presences/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
9
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
9
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les staff_presences spécifiés.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/staff-presences/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Produits
Gestion des produits
Afficher la liste des produits
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/products/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 61,
\"nbre_items\": 11,
\"filter_value\": \"harum\",
\"article_ids\": [
16
],
\"type\": \"storable\",
\"expired\": false,
\"service_id\": 4,
\"hotel_id\": 15
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/products/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 61,
"nbre_items": 11,
"filter_value": "harum",
"article_ids": [
16
],
"type": "storable",
"expired": false,
"service_id": 4,
"hotel_id": 15
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter de nouveaux produits
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/products" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"maiores\",
\"type\": \"storable\",
\"image\": \"veritatis\",
\"price\": 32045.808,
\"description\": \"Deleniti consectetur cupiditate exercitationem in.\",
\"alert_quantity\": 5,
\"status\": \"validated\",
\"quantity\": 60,
\"expiry_date\": \"2026-02-06T09:06:14\",
\"service_id\": 5,
\"articles\": [
{
\"id\": 20,
\"quantity\": 70
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/products"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "maiores",
"type": "storable",
"image": "veritatis",
"price": 32045.808,
"description": "Deleniti consectetur cupiditate exercitationem in.",
"alert_quantity": 5,
"status": "validated",
"quantity": 60,
"expiry_date": "2026-02-06T09:06:14",
"service_id": 5,
"articles": [
{
"id": 20,
"quantity": 70
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un produit spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/products/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/products/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier un produit spécifique
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/products/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"praesentium\",
\"type\": \"storable\",
\"image\": \"sit\",
\"price\": 1.9149331,
\"description\": \"Qui qui explicabo assumenda nemo nihil quaerat.\",
\"alert_quantity\": 9,
\"status\": \"pending\",
\"quantity\": 21,
\"expiry_date\": \"2026-02-06T09:06:14\",
\"service_id\": 15,
\"articles\": [
{
\"id\": 16,
\"quantity\": 21
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/products/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "praesentium",
"type": "storable",
"image": "sit",
"price": 1.9149331,
"description": "Qui qui explicabo assumenda nemo nihil quaerat.",
"alert_quantity": 9,
"status": "pending",
"quantity": 21,
"expiry_date": "2026-02-06T09:06:14",
"service_id": 15,
"articles": [
{
"id": 16,
"quantity": 21
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des products
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/products/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/products/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des products
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/products/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
15
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/products/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
15
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des products
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/products/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/products/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Punitions
Gestion des punitions
Liste les sanctions avec filtrage par utilisateur, type ou valeur de recherche.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/punishments/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 23,
\"nbre_items\": 9,
\"filter_value\": \"ipsam\",
\"hotel_id\": 14,
\"service_id\": 3,
\"user_id\": 12,
\"type\": 2
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/punishments/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 23,
"nbre_items": 9,
"filter_value": "ipsam",
"hotel_id": 14,
"service_id": 3,
"user_id": 12,
"type": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Affiche les détails d'une sanction spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/punishments/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/punishments/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crée une ou plusieurs sanctions à partir des données fournies.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/punishments" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"punishments\": [
{
\"description\": \"Reiciendis hic est debitis ratione eos voluptas natus.\",
\"user_id\": 12,
\"type\": \"delectus\",
\"reasons\": \"in\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/punishments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"punishments": [
{
"description": "Reiciendis hic est debitis ratione eos voluptas natus.",
"user_id": 12,
"type": "delectus",
"reasons": "in"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Met à jour les informations d'une sanction existante.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/punishments/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Et quis optio est explicabo officia hic et.\",
\"user_id\": 14,
\"type\": \"error\",
\"reasons\": \"voluptatem\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/punishments/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Et quis optio est explicabo officia hic et.",
"user_id": 14,
"type": "error",
"reasons": "voluptatem"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Met en corbeille (soft delete) une ou plusieurs sanctions.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/punishments/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"punishment_ids\": [
14
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/punishments/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"punishment_ids": [
14
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaure une ou plusieurs sanctions mises en corbeille.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/punishments/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"punishment_ids\": [
1
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/punishments/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"punishment_ids": [
1
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprime définitivement une ou plusieurs sanctions mises en corbeille.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/punishments/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"punishment_ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/punishments/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"punishment_ids": [
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retenue sur salaire / Salary deduction
Gestion des retenus sur salaire
Afficher la liste filtrée des retenues sur salaire
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-deductions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 59,
\"nbre_items\": 13,
\"filter_value\": \"delectus\",
\"user_id\": 1,
\"user_approve_id\": 16,
\"trashed\": true,
\"date\": \"2026-02-06\",
\"status\": \"pending_approval\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 59,
"nbre_items": 13,
"filter_value": "delectus",
"user_id": 1,
"user_approve_id": 16,
"trashed": true,
"date": "2026-02-06",
"status": "pending_approval"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher une retenue sur salaire spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/salaries-deductions/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the form for creating a new resource.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-deductions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"salary_deductions\": [
{
\"user_id\": \"similique\",
\"user_approve_id\": 9,
\"amount\": 9,
\"date\": \"2026-02-06T09:06:14\",
\"status\": \"approved\",
\"reason\": \"sed\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"salary_deductions": [
{
"user_id": "similique",
"user_approve_id": 9,
"amount": 9,
"date": "2026-02-06T09:06:14",
"status": "approved",
"reason": "sed"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour une retenue sur salaire spécifique
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/salaries-deductions/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 20,
\"user_approve_id\": 14,
\"reason\": \"suscipit\",
\"date\": \"2026-02-06\",
\"status\": \"pending_approval\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 20,
"user_approve_id": 14,
"reason": "suscipit",
"date": "2026-02-06",
"status": "pending_approval"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les retenues sur salaire spécifiées.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-deductions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
8
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les feedbacks archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/salaries-deductions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
12
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
12
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les feedbacks spécifiés.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/salaries-deductions/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Réductions
Gestion des réductions
Afficher la liste des réductions
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/reductions/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 6,
\"nbre_items\": 73,
\"filter_value\": \"aukaafpbtsvknikrdpsslrpzv\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/reductions/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 6,
"nbre_items": 73,
"filter_value": "aukaafpbtsvknikrdpsslrpzv"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enregistrer une nouvelle réduction
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/reductions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"cocpeajhkoahfmqgzq\",
\"description\": \"Cumque accusantium ut ipsum et.\",
\"amount\": 78
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/reductions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "cocpeajhkoahfmqgzq",
"description": "Cumque accusantium ut ipsum et.",
"amount": 78
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'une réduction
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/reductions/sed" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/reductions/sed"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour une réduction
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/reductions/tempore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"hbbtlzpmxibtozbqf\",
\"description\": \"Ipsa blanditiis et cumque qui velit ipsum dolor et.\",
\"amount\": 33
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/reductions/tempore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "hbbtlzpmxibtozbqf",
"description": "Ipsa blanditiis et cumque qui velit ipsum dolor et.",
"amount": 33
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher la corbeille des réductions supprimées
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/reductions/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"https://pessi.ms-hotel.net/api/reductions/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer une réduction supprimée
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/reductions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"https://pessi.ms-hotel.net/api/reductions/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer une réduction (soft delete)
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/reductions/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"https://pessi.ms-hotel.net/api/reductions/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Réservations
Gestion des réservations
Afficher la liste des réservations
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/bookings/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 89,
\"nbre_items\": 16,
\"filter_value\": \"numquam\",
\"hotel_id\": 8,
\"room_type_id\": 5,
\"room_category_id\": 17,
\"room_id\": 13,
\"user_id\": 18,
\"status\": \"pending\",
\"payment_status\": \"advance\",
\"room_service_id\": 20,
\"date\": \"2026-02-06\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/bookings/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 89,
"nbre_items": 16,
"filter_value": "numquam",
"hotel_id": 8,
"room_type_id": 5,
"room_category_id": 17,
"room_id": 13,
"user_id": 18,
"status": "pending",
"payment_status": "advance",
"room_service_id": 20,
"date": "2026-02-06"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enregistrer une nouvelle réservation
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/bookings" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2026-02-06\",
\"end_date\": \"2106-07-25\",
\"user_id\": 19,
\"transport_mode\": \"dodrfrnjlhrofscmmvurgall\",
\"vehicle_number\": \"jdo\",
\"arrival_time\": \"2026-02-06T09:06:13\",
\"departure_time\": \"2026-02-06T09:06:13\",
\"arrivals\": \"zhkurtuejufbxvxhfdntgznc\",
\"is_free\": true,
\"rooms\": [
\"voluptatem\"
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/bookings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2026-02-06",
"end_date": "2106-07-25",
"user_id": 19,
"transport_mode": "dodrfrnjlhrofscmmvurgall",
"vehicle_number": "jdo",
"arrival_time": "2026-02-06T09:06:13",
"departure_time": "2026-02-06T09:06:13",
"arrivals": "zhkurtuejufbxvxhfdntgznc",
"is_free": true,
"rooms": [
"voluptatem"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour une réservation
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/bookings/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2026-02-06T09:06:13\",
\"end_date\": \"2037-03-04\",
\"user_id\": 3,
\"room_service_id\": 9,
\"transport_mode\": \"rhfwl\",
\"vehicle_number\": \"uwymsfpt\",
\"arrival_time\": \"2026-02-06T09:06:13\",
\"departure_time\": \"2026-02-06T09:06:13\",
\"arrivals\": \"nk\",
\"is_free\": false,
\"rooms\": [
\"aut\"
],
\"status\": \"checked_in\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/bookings/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2026-02-06T09:06:13",
"end_date": "2037-03-04",
"user_id": 3,
"room_service_id": 9,
"transport_mode": "rhfwl",
"vehicle_number": "uwymsfpt",
"arrival_time": "2026-02-06T09:06:13",
"departure_time": "2026-02-06T09:06:13",
"arrivals": "nk",
"is_free": false,
"rooms": [
"aut"
],
"status": "checked_in"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des Reservations
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/bookings/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
4
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/bookings/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
4
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des Reservations
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/bookings/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/bookings/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
8
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des Reservations
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/bookings/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/bookings/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Rôles
Gestion des rôles
Lister les roles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/roles/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 50,
\"nbre_items\": 8,
\"filter_value\": \"ipsam\",
\"types\": [
\"est\"
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/roles/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 50,
"nbre_items": 8,
"filter_value": "ipsam",
"types": [
"est"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une liste de role
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/roles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"rerum\",
\"permissions\": [
17
],
\"description\": \"Eveniet dolores laboriosam qui qui numquam qui culpa.\",
\"type\": \"iste\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "rerum",
"permissions": [
17
],
"description": "Eveniet dolores laboriosam qui qui numquam qui culpa.",
"type": "iste"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un role spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/roles/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/roles/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier ou un role spécifique
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/roles/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"rerum\",
\"permissions\": [
5
],
\"description\": \"Nisi earum vel rerum magnam nobis id sed.\",
\"type\": \"et\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/roles/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "rerum",
"permissions": [
5
],
"description": "Nisi earum vel rerum magnam nobis id sed.",
"type": "et"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des roles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/roles/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/roles/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des roles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/roles/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/roles/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
17
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des roles
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/roles/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/roles/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Service de chambre
Gestion des services de chambre
Récupérer la liste des services de chambre avec filtres et pagination.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-services/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 84,
\"nbre_items\": 10,
\"filter_value\": \"voluptas\",
\"service_id\": 19,
\"archive\": \"with_trashed\",
\"order_by\": \"service_id\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-services/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 84,
"nbre_items": 10,
"filter_value": "voluptas",
"service_id": 19,
"archive": "with_trashed",
"order_by": "service_id"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'un service de chambre spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/room-services/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/room-services/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Créer un ou plusieurs services de chambre.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-services" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_services\": [
{
\"name\": \"mebuvp\",
\"description\": \"Impedit itaque est commodi.\",
\"service_id\": 18
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-services"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"room_services": [
{
"name": "mebuvp",
"description": "Impedit itaque est commodi.",
"service_id": 18
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour un service de chambre existant.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/room-services/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"wfzndbwiphzalkujxa\",
\"description\": \"Ea labore qui ullam quia.\",
\"service_id\": 9
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-services/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "wfzndbwiphzalkujxa",
"description": "Ea labore qui ullam quia.",
"service_id": 9
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver un ou plusieurs services de chambre.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-services/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-services/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
11
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer un ou plusieurs services de chambre archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-services/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
13
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-services/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
13
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Services
Contrôleur responsable de la gestion des services.
Récupérer la liste des services avec filtres et pagination.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/services/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 5,
\"nbre_items\": 7,
\"filter_value\": \"error\",
\"hotel_id\": 12,
\"responsible_id\": 4
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/services/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 5,
"nbre_items": 7,
"filter_value": "error",
"hotel_id": 12,
"responsible_id": 4
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'un service spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/services/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/services/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Créer un ou plusieurs services.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/services" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"services\": [
{
\"name\": \"eos\",
\"image\": \"nihil\",
\"description\": \"Quibusdam nisi commodi quidem ducimus et nesciunt.\",
\"hotel_id\": 8,
\"responsible_id\": 12
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/services"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"services": [
{
"name": "eos",
"image": "nihil",
"description": "Quibusdam nisi commodi quidem ducimus et nesciunt.",
"hotel_id": 8,
"responsible_id": 12
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour un service existant.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/services/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"necessitatibus\",
\"image\": \"ut\",
\"description\": \"Molestiae nobis hic veniam.\",
\"hotel_id\": 9,
\"responsible_id\": 6
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/services/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "necessitatibus",
"image": "ut",
"description": "Molestiae nobis hic veniam.",
"hotel_id": 9,
"responsible_id": 6
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver un ou plusieurs services.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/services/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/services/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer un ou plusieurs services archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/services/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/services/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
7
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement un ou plusieurs services.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/services/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
16
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/services/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
16
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Suggestions / Feedback
Gestion des suggestions des utilisateurs
Affiche une liste des feedbacks filtrés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/feedbacks/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 29,
\"nbre_items\": 4,
\"filter_value\": \"omnis\",
\"is_anonymous\": false,
\"user_id\": 3,
\"service_id\": 4,
\"status\": \"received\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 29,
"nbre_items": 4,
"filter_value": "omnis",
"is_anonymous": false,
"user_id": 3,
"service_id": 4,
"status": "received"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'une suggestion / feedback
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/feedbacks/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Créer une suggestion / feedback
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/feedbacks" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"service_id\": 1,
\"message\": \"mxlsxwnlcx\",
\"is_anonyme\": true
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 1,
"message": "mxlsxwnlcx",
"is_anonyme": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour une suggestion / feedback
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/feedbacks/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"service_id\": 3,
\"status\": \"pending\",
\"message\": \"fhenzl\",
\"is_anonymous\": true
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 3,
"status": "pending",
"message": "fhenzl",
"is_anonymous": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les feedbacks spécifiés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/feedbacks/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
7
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
7
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les feedbacks archivés.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/feedbacks/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
9
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
9
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les feedbacks spécifiés.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/feedbacks/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
2
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Type de dépense / Expense Type
Gestion des présences du personnel
Afficher les types de dépense
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/expense-types/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 82,
\"nbre_items\": 10
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/expense-types/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 82,
"nbre_items": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher un type de dépense spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/expense-types/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/expense-types/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Creer un type de dépense
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/expense-types" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ut\",
\"description\": \"Magnam illo iste voluptatem quo quisquam.\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/expense-types"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ut",
"description": "Magnam illo iste voluptatem quo quisquam."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre a jour les types de dépense
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/expense-types/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"inventore\",
\"description\": \"Vero eveniet iure cupiditate voluptate optio itaque reprehenderit.\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/expense-types/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "inventore",
"description": "Vero eveniet iure cupiditate voluptate optio itaque reprehenderit."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver (soft delete) les types de dépense.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/expense-types/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
3
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/expense-types/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer les types de dépense archivée.
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/expense-types/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
17
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/expense-types/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
17
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer définitivement les expense_types spécifiés.
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/expense-types/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
9
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/expense-types/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
9
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Types de Chambres
Gestion des types de chambres
Lister les types de chambres disponibles
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-types/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_items\": 1,
\"nbre_items\": 13,
\"filter_value\": \"laudantium\",
\"hotel_id\": 20,
\"trashed\": false
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-types/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page_items": 1,
"nbre_items": 13,
"filter_value": "laudantium",
"hotel_id": 20,
"trashed": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": 2,
"name": "Chambre VIP",
"description": null,
"author": {
"id": 1,
"name": "Admin",
"phone": null,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-02-14 10:50:03",
"updated_at": "2025-02-14 10:50:03",
"deleted_at": null,
"token": null
},
"created_at": "2025-02-14 11:42:24",
"count_rooms": 0
},
{
"id": 4,
"name": "Salle de fëte",
"description": null,
"author": {
"id": 1,
"name": "Admin",
"phone": null,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-02-14 10:50:03",
"updated_at": "2025-02-14 10:50:03",
"deleted_at": null,
"token": null
},
"created_at": "2025-02-14 11:56:06",
"count_rooms": 0
},
{
"id": 3,
"name": "Suite Présidentielle",
"description": null,
"author": {
"id": 1,
"name": "Admin",
"phone": null,
"created_by": null,
"updated_by": null,
"deleted_by": null,
"created_at": "2025-02-14 10:50:03",
"updated_at": "2025-02-14 10:50:03",
"deleted_at": null,
"token": null
},
"created_at": "2025-02-14 11:44:16",
"count_rooms": 0
}
],
"links": {
"first": "http://127.0.0.1:8000/api/room-types/all?page=1",
"last": "http://127.0.0.1:8000/api/room-types/all?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Précédent",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/room-types/all?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Suivant »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/room-types/all",
"per_page": 1000000,
"to": 3,
"total": 3
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les informations sur un type de chambre
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/room-types/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/room-types/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouer un type de chambre
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-types" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_types\": [
{
\"name\": \"aliquid\",
\"hotel_id\": 12,
\"description\": \"Id omnis qui molestiae culpa.\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-types"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"room_types": [
{
"name": "aliquid",
"hotel_id": 12,
"description": "Id omnis qui molestiae culpa."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter un type de chambre
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/room-types/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"est\",
\"hotel_id\": 5,
\"description\": \"Aut assumenda molestiae qui expedita minus molestiae eligendi natus.\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-types/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "est",
"hotel_id": 5,
"description": "Aut assumenda molestiae qui expedita minus molestiae eligendi natus."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archiver un ou plusieurs type de chambre NB: Un type de chambre ne peut pas être supprimé si il est lié à quelque chose d'autre dans le système
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/room-types/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
11
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-types/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
11
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restaurer un ou plusieurs type de chambre de la corbeille
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/room-types/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
18
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-types/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
18
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Forcer la suppression d'un ou plusieurs hotel(s) du système
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/room-types/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
3
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-types/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tâches
Gestion des tâches
Lister les tâches
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/tasks/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 12,
\"responsible_id\": 8,
\"page_items\": 43,
\"nbre_items\": 7,
\"filter_value\": \"cknukxwshlskpaqbkjtvsduet\",
\"priority\": \"medium\",
\"status\": \"started\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/tasks/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 12,
"responsible_id": 8,
"page_items": 43,
"nbre_items": 7,
"filter_value": "cknukxwshlskpaqbkjtvsduet",
"priority": "medium",
"status": "started"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Afficher les détails d'une tâche
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/tasks/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/tasks/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajouter une tâche
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/tasks" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"jqdkykskfdq\",
\"description\": \"Aliquam aut labore debitis iusto quas ut fugiat.\",
\"due_date\": \"2026-02-06\",
\"estimation\": 58,
\"priority\": \"low\",
\"user_ids\": [
10
],
\"responsible_id\": 13
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/tasks"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "jqdkykskfdq",
"description": "Aliquam aut labore debitis iusto quas ut fugiat.",
"due_date": "2026-02-06",
"estimation": 58,
"priority": "low",
"user_ids": [
10
],
"responsible_id": 13
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modifier une tâche
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/tasks/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dysfiaruxeq\",
\"description\": \"Facilis modi vel esse consequatur ut beatae.\",
\"due_date\": \"2026-02-06\",
\"estimation\": 57,
\"priority\": \"high\",
\"status\": \"created\",
\"user_ids\": [
18
],
\"responsible_id\": 6
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/tasks/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dysfiaruxeq",
"description": "Facilis modi vel esse consequatur ut beatae.",
"due_date": "2026-02-06",
"estimation": 57,
"priority": "high",
"status": "created",
"user_ids": [
18
],
"responsible_id": 6
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des taches
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/tasks/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
4
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/tasks/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
4
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples des taches
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/tasks/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/tasks/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
19
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple des taches
requires authentication
Example request:
curl --request DELETE \
"https://pessi.ms-hotel.net/api/tasks/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
8
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/tasks/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
8
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload de fichier
Gestion des uploads de fichiers
Upload d'un fichier
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/upload-photo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"photo\": \"ekbochobaawqzaxoufvndjjy\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/upload-photo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"photo": "ekbochobaawqzaxoufvndjjy"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Utilisateurs
Gestion des utilisateurs
Fonction qui permet de recuperer la liste des utilisateurs
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/users/all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"role_id\": 5,
\"role_types\": [
\"impedit\"
],
\"page_items\": 35,
\"nbre_items\": 2,
\"filter_value\": \"laboriosam\",
\"order_by\": true,
\"service_id\": 7,
\"hotel_id\": 11,
\"responsible_id\": 10,
\"type\": \"sit\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/users/all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"role_id": 5,
"role_types": [
"impedit"
],
"page_items": 35,
"nbre_items": 2,
"filter_value": "laboriosam",
"order_by": true,
"service_id": 7,
"hotel_id": 11,
"responsible_id": 10,
"type": "sit"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction qui permet d'ajouter un utilisateur sans passer par la verification
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"firstname\": \"od\",
\"lastname\": \"f\",
\"gender\": \"male\",
\"type\": \"fugiat\",
\"birthday\": \"2026-02-06T09:06:13\",
\"nationality\": \"yinc\",
\"nui\": \"sveypvgohiki\",
\"cni\": \"jmnvzdexsarzl\",
\"cnps\": \"jrsntucrmhlf\",
\"passport_issue_date\": \"2026-02-06T09:06:13\",
\"passport_issue_place\": \"zkorci\",
\"profession\": \"kojfouklpbgdnqyi\",
\"birth_place\": \"srsm\",
\"connexion_type\": \"email\",
\"email\": \"lorenza55@example.org\",
\"phone\": \"ck\",
\"phone2\": \"mciiebznwk\",
\"city\": \"rtqwzzlawzyvdosywwf\",
\"address\": \"x\",
\"country\": \"wtbeaktlkbtkfvfhxkcberz\",
\"hotel_id\": 11,
\"service_id\": 1,
\"responsible_id\": 13,
\"password\": \"\\\\7IN.VA#$WQQKv!D6\",
\"photo\": \"magni\",
\"role_id\": 9,
\"articles\": [
19
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"firstname": "od",
"lastname": "f",
"gender": "male",
"type": "fugiat",
"birthday": "2026-02-06T09:06:13",
"nationality": "yinc",
"nui": "sveypvgohiki",
"cni": "jmnvzdexsarzl",
"cnps": "jrsntucrmhlf",
"passport_issue_date": "2026-02-06T09:06:13",
"passport_issue_place": "zkorci",
"profession": "kojfouklpbgdnqyi",
"birth_place": "srsm",
"connexion_type": "email",
"email": "lorenza55@example.org",
"phone": "ck",
"phone2": "mciiebznwk",
"city": "rtqwzzlawzyvdosywwf",
"address": "x",
"country": "wtbeaktlkbtkfvfhxkcberz",
"hotel_id": 11,
"service_id": 1,
"responsible_id": 13,
"password": "\\7IN.VA#$WQQKv!D6",
"photo": "magni",
"role_id": 9,
"articles": [
19
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cette route permet d'afficher les informations d'un utilisateur
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/users/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://pessi.ms-hotel.net/api/users/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction permettant de mettre à jour les informations d'un utilisateur
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/users/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"firstname\": \"h\",
\"lastname\": \"rlceddshyb\",
\"gender\": \"male\",
\"type\": \"commodi\",
\"birthday\": \"2026-02-06T09:06:13\",
\"nationality\": \"fd\",
\"nui\": \"jrclpytllfdms\",
\"cni\": \"dksezghgmwlvmwz\",
\"cnps\": \"cins\",
\"passport_issue_date\": \"2026-02-06T09:06:13\",
\"passport_issue_place\": \"ggb\",
\"profession\": \"qpaoserpgvigccmsheaddrb\",
\"birth_place\": \"opgjczmzz\",
\"connexion_type\": \"phone\",
\"email\": \"yeichmann@example.net\",
\"phone\": \"mzgelsmhzgmcoh\",
\"phone2\": \"fppho\",
\"city\": \"pftvgkhpztdyapcxaylotpb\",
\"address\": \"wzftynlgjoacevrneqplbld\",
\"country\": \"auuo\",
\"hotel_id\": 5,
\"service_id\": 19,
\"responsible_id\": 13,
\"password\": \"U_%0yt%#\",
\"photo\": \"vero\",
\"role_id\": 10
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/users/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"firstname": "h",
"lastname": "rlceddshyb",
"gender": "male",
"type": "commodi",
"birthday": "2026-02-06T09:06:13",
"nationality": "fd",
"nui": "jrclpytllfdms",
"cni": "dksezghgmwlvmwz",
"cnps": "cins",
"passport_issue_date": "2026-02-06T09:06:13",
"passport_issue_place": "ggb",
"profession": "qpaoserpgvigccmsheaddrb",
"birth_place": "opgjczmzz",
"connexion_type": "phone",
"email": "yeichmann@example.net",
"phone": "mzgelsmhzgmcoh",
"phone2": "fppho",
"city": "pftvgkhpztdyapcxaylotpb",
"address": "wzftynlgjoacevrneqplbld",
"country": "auuo",
"hotel_id": 5,
"service_id": 19,
"responsible_id": 13,
"password": "U_%0yt%#",
"photo": "vero",
"role_id": 10
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction pour le multiple archivage des utilisateurs
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/users/trash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
10
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/users/trash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_ids": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de restauration multiples d'utilisateurs
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/users/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
10
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/users/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_ids": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fonction de suppression définitive multiple d'utilisateurs
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/users/destroy" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_ids\": [
5
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/users/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_ids": [
5
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.