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.
Afficher les statistiques de réservations
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/statistic-booking" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hotel_id\": 12,
\"service_id\": 5,
\"month\": 2
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/statistic-booking"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hotel_id": 12,
"service_id": 5,
"month": 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 les statistiques de commandes
requires authentication
Example request:
curl --request POST \
"https://pessi.ms-hotel.net/api/statistic-finance" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hotel_id\": 7,
\"service_id\": 20,
\"month\": 1
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/statistic-finance"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hotel_id": 7,
"service_id": 20,
"month": 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.
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\": 11,
\"nbre_items\": 7,
\"filter_value\": \"sit\",
\"service_id\": 2,
\"hotel_id\": 9,
\"type\": \"storable\",
\"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": 11,
"nbre_items": 7,
"filter_value": "sit",
"service_id": 2,
"hotel_id": 9,
"type": "storable",
"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\": \"maiores\",
\"type\": \"storable\",
\"image\": \"delectus\",
\"price\": 3400457.15441822,
\"description\": \"Perferendis eos nihil dolorem nihil accusantium harum.\",
\"unit_of_measurement\": \"quo\",
\"alert_quantity\": 2,
\"expiry_date\": \"2026-03-10T18:48:50\",
\"container\": \"omnis\",
\"container_unit\": \"kwbya\",
\"container_quantity\": 71,
\"detail\": \"enim\",
\"service_id\": 6,
\"suppliers\": [
18
]
}
]
}"
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": "maiores",
"type": "storable",
"image": "delectus",
"price": 3400457.15441822,
"description": "Perferendis eos nihil dolorem nihil accusantium harum.",
"unit_of_measurement": "quo",
"alert_quantity": 2,
"expiry_date": "2026-03-10T18:48:50",
"container": "omnis",
"container_unit": "kwbya",
"container_quantity": 71,
"detail": "enim",
"service_id": 6,
"suppliers": [
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 article spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/articles/28" \
--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/28"
);
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/28" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"voluptas\",
\"type\": \"consumable\",
\"image\": \"ex\",
\"price\": 1268632.8970622,
\"description\": \"Consectetur id consequuntur quia.\",
\"unit_of_measurement\": \"distinctio\",
\"alert_quantity\": 13,
\"expiry_date\": \"2026-03-10T18:48:50\",
\"container\": \"tempore\",
\"container_unit\": \"oxopjbcomdnwldfgfsadfkax\",
\"container_quantity\": 48,
\"detail\": \"maiores\",
\"service_id\": 17
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/articles/28"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "voluptas",
"type": "consumable",
"image": "ex",
"price": 1268632.8970622,
"description": "Consectetur id consequuntur quia.",
"unit_of_measurement": "distinctio",
"alert_quantity": 13,
"expiry_date": "2026-03-10T18:48:50",
"container": "tempore",
"container_unit": "oxopjbcomdnwldfgfsadfkax",
"container_quantity": 48,
"detail": "maiores",
"service_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.
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\": [
7
]
}"
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": [
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.
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\": [
4
]
}"
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": [
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 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\": [
10
]
}"
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": [
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.
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\": 20,
\"nbre_items\": 3,
\"article_id\": 18,
\"supplier_id\": 9
}"
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": 20,
"nbre_items": 3,
"article_id": 18,
"supplier_id": 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.
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=itlcxkp"\
--form "lastname=tmacvttelboqnaotg"\
--form "gender=female"\
--form "birthday=2026-03-10T18:48:49"\
--form "nationality=zonagul"\
--form "nui=ixmzst"\
--form "cni=vukcynrxip"\
--form "cnps=bb"\
--form "passport_issue_date=2026-03-10T18:48:49"\
--form "passport_issue_place=hbsqr"\
--form "profession=dkxniucgxvvdmvitxapn"\
--form "birth_place=eqayhthrr"\
--form "connexion_type=email"\
--form "email=stracke.kris@example.org"\
--form "phone=rbdlhxubshsiafdugbe"\
--form "phone2=luyuuyhlonkjne"\
--form "city=ec"\
--form "address=lgqqvmdqhenjln"\
--form "country=agwcovxsgnshlc"\
--form "hotel_id=1"\
--form "service_id=17"\
--form "responsible_id=14"\
--form "password=-fb6EZM0%C3F"\
--form "photo=@/tmp/phpqkJoDD" 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', 'itlcxkp');
body.append('lastname', 'tmacvttelboqnaotg');
body.append('gender', 'female');
body.append('birthday', '2026-03-10T18:48:49');
body.append('nationality', 'zonagul');
body.append('nui', 'ixmzst');
body.append('cni', 'vukcynrxip');
body.append('cnps', 'bb');
body.append('passport_issue_date', '2026-03-10T18:48:49');
body.append('passport_issue_place', 'hbsqr');
body.append('profession', 'dkxniucgxvvdmvitxapn');
body.append('birth_place', 'eqayhthrr');
body.append('connexion_type', 'email');
body.append('email', 'stracke.kris@example.org');
body.append('phone', 'rbdlhxubshsiafdugbe');
body.append('phone2', 'luyuuyhlonkjne');
body.append('city', 'ec');
body.append('address', 'lgqqvmdqhenjln');
body.append('country', 'agwcovxsgnshlc');
body.append('hotel_id', '1');
body.append('service_id', '17');
body.append('responsible_id', '14');
body.append('password', '-fb6EZM0%C3F');
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\": \"blanda.easton@example.net\",
\"phone\": \"pcxuhlvtxqaa\",
\"verification_code\": \"yocf\"
}"
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": "blanda.easton@example.net",
"phone": "pcxuhlvtxqaa",
"verification_code": "yocf"
};
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\": \"retta.jast@example.net\",
\"phone\": \"tppnampvuwtqycv\",
\"password\": \"\\\"`S[PW]s$&r@a1ts#RlV\",
\"device_key\": \"id\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "retta.jast@example.net",
"phone": "tppnampvuwtqycv",
"password": "\"`S[PW]s$&r@a1ts#RlV",
"device_key": "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.
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\": \"fwill@example.com\",
\"phone\": \"yuvsqnhdsowphlihggk\"
}"
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": "fwill@example.com",
"phone": "yuvsqnhdsowphlihggk"
};
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\": \"email\",
\"email\": \"hoeger.valentina@example.com\",
\"phone\": \"sywyosdesqozeryn\",
\"verification_code\": \"gngswktdoqsiaujuebhpulqctjolhbakfulnpbqtxvgjnxedhp\",
\"password\": \"SJB*\\\\Y~OW77^tK[qZ|PD\"
}"
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": "email",
"email": "hoeger.valentina@example.com",
"phone": "sywyosdesqozeryn",
"verification_code": "gngswktdoqsiaujuebhpulqctjolhbakfulnpbqtxvgjnxedhp",
"password": "SJB*\\Y~OW77^tK[qZ|PD"
};
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\": 16,
\"nbre_items\": 2,
\"filter_value\": \"vitae\",
\"trashed\": false,
\"user_id\": 13,
\"user_approve_id\": 19,
\"date\": \"2026-03-10\"
}"
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": 16,
"nbre_items": 2,
"filter_value": "vitae",
"trashed": false,
"user_id": 13,
"user_approve_id": 19,
"date": "2026-03-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 une retenue sur salaire spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/salaries-advances/dicta" \
--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/dicta"
);
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\": 5,
\"amount\": \"voluptas\",
\"reason\": \"saepe\"
}
]
}"
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": 5,
"amount": "voluptas",
"reason": "saepe"
}
]
};
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/vero" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_approve_id\": 3,
\"status\": \"rejected\",
\"reason\": \"sed\",
\"comments\": \"quis\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-advances/vero"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_approve_id": 3,
"status": "rejected",
"reason": "sed",
"comments": "quis"
};
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\": [
19
]
}"
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": [
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 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\": [
5
]
}"
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": [
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.
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\": [
14
]
}"
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": [
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.
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\": 7,
\"archive\": \"with_trashed\",
\"date\": \"2026-03-10\",
\"page_items\": 11,
\"nbre_items\": 5,
\"filter_value\": \"repellat\"
}"
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": 7,
"archive": "with_trashed",
"date": "2026-03-10",
"page_items": 11,
"nbre_items": 5,
"filter_value": "repellat"
};
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/2" \
--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/2"
);
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\": 19,
\"reason\": \"aperiam\",
\"date\": \"2026-03-10\"
}
]
}"
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": 19,
"reason": "aperiam",
"date": "2026-03-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.
Modifier les détails d'un avertissement
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/warnings/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 11,
\"reason\": \"eos\",
\"date\": \"2026-03-10\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/warnings/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 11,
"reason": "eos",
"date": "2026-03-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.
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\": [
14
]
}"
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": [
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.
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\": [
3
]
}"
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": [
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 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\": [
19
]
}"
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": [
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.
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\": 69,
\"nbre_items\": 6,
\"filter_value\": \"eveniet\",
\"status\": \"paid\",
\"priority\": \"medium\",
\"article_ids\": [
16
]
}"
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": 69,
"nbre_items": 6,
"filter_value": "eveniet",
"status": "paid",
"priority": "medium",
"article_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.
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\": 7,
\"responsible_id\": 11,
\"description\": \"Perferendis rerum voluptate iusto perspiciatis est.\",
\"status\": \"delivered\",
\"priority\": \"low\",
\"quotation_file\": \"quod\",
\"articles\": [
{
\"id\": 11,
\"unit_price\": 13,
\"quantity\": 67
}
]
}"
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": 7,
"responsible_id": 11,
"description": "Perferendis rerum voluptate iusto perspiciatis est.",
"status": "delivered",
"priority": "low",
"quotation_file": "quod",
"articles": [
{
"id": 11,
"unit_price": 13,
"quantity": 67
}
]
};
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\": 13,
\"responsible_id\": 4,
\"description\": \"Quis placeat debitis accusamus sed sint.\",
\"status\": \"paid\",
\"priority\": \"medium\",
\"quotation_file\": \"exercitationem\",
\"payment_method\": \"MOMO\",
\"articles\": [
{
\"id\": 4,
\"unit_price\": 11,
\"quantity\": 69
}
]
}"
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": 13,
"responsible_id": 4,
"description": "Quis placeat debitis accusamus sed sint.",
"status": "paid",
"priority": "medium",
"quotation_file": "exercitationem",
"payment_method": "MOMO",
"articles": [
{
"id": 4,
"unit_price": 11,
"quantity": 69
}
]
};
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\": [
20
]
}"
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": [
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.
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\": [
4
]
}"
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": [
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 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\": [
1
]
}"
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": [
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.
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\": 19,
\"filter_value\": \"libero\",
\"hotel_id\": 13,
\"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": 19,
"filter_value": "libero",
"hotel_id": 13,
"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\": 4,
\"name\": \"repellendus\",
\"description\": \"Velit est explicabo est quam explicabo voluptatem a.\"
}
]
}"
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": 4,
"name": "repellendus",
"description": "Velit est explicabo est quam explicabo voluptatem a."
}
]
};
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\": \"repellat\",
\"hotel_id\": 11,
\"description\": \"Quia voluptatem dolor sapiente autem odit placeat.\"
}"
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": "repellat",
"hotel_id": 11,
"description": "Quia voluptatem dolor sapiente autem odit placeat."
};
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\": [
20
]
}"
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": [
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 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\": [
12
]
}"
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": [
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.
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\": [
17
]
}"
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": [
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.
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\": 80,
\"nbre_items\": 7,
\"filter_value\": \"debitis\",
\"hotel_id\": 12,
\"room_type_id\": 16,
\"room_category_id\": 3,
\"service_id\": 6,
\"status\": \"busy\",
\"floor\": 7,
\"number_of_room\": 20
}"
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": 80,
"nbre_items": 7,
"filter_value": "debitis",
"hotel_id": 12,
"room_type_id": 16,
"room_category_id": 3,
"service_id": 6,
"status": "busy",
"floor": 7,
"number_of_room": 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.
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\": 7,
\"room_type_id\": 11,
\"room_category_id\": 12,
\"service_id\": 3,
\"floor\": 13,
\"number\": 13,
\"price\": 11,
\"number_of_room\": 13,
\"capacity\": 15,
\"status\": \"busy\",
\"name\": \"dolor\",
\"description\": \"Laborum esse ea aut nesciunt maxime non quia.\",
\"image\": \"sed\"
}
]
}"
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": 7,
"room_type_id": 11,
"room_category_id": 12,
"service_id": 3,
"floor": 13,
"number": 13,
"price": 11,
"number_of_room": 13,
"capacity": 15,
"status": "busy",
"name": "dolor",
"description": "Laborum esse ea aut nesciunt maxime non quia.",
"image": "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 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\": 1,
\"room_category_id\": 1,
\"service_id\": 1,
\"floor\": 11,
\"number\": 17,
\"price\": 11,
\"number_of_room\": 6,
\"image\": \"dolorem\",
\"capacity\": 5,
\"status\": \"free\",
\"description\": \"Incidunt sunt sunt non assumenda repellat atque aut.\"
}"
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": 1,
"room_category_id": 1,
"service_id": 1,
"floor": 11,
"number": 17,
"price": 11,
"number_of_room": 6,
"image": "dolorem",
"capacity": 5,
"status": "free",
"description": "Incidunt sunt sunt non assumenda repellat atque aut."
};
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\": [
9
]
}"
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": [
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.
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\": [
5
]
}"
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": [
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.
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\": [
11
]
}"
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": [
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.
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\": \"sunt\"
}"
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": "sunt"
};
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/tenetur" \
--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/tenetur"
);
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\": 2,
\"nbre_items\": 9,
\"filter_value\": \"sit\",
\"customer_id\": 7,
\"payment_mode\": \"eveniet\",
\"status\": \"confirmed\",
\"payment_status\": \"none\",
\"product_id\": 3,
\"service_id\": 18,
\"date_start\": \"2026-03-10T18:48:50\",
\"date_end\": \"2026-03-10T18:48:50\",
\"hotel_id\": 7
}"
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": 2,
"nbre_items": 9,
"filter_value": "sit",
"customer_id": 7,
"payment_mode": "eveniet",
"status": "confirmed",
"payment_status": "none",
"product_id": 3,
"service_id": 18,
"date_start": "2026-03-10T18:48:50",
"date_end": "2026-03-10T18:48:50",
"hotel_id": 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.
Afficher les détails d'une commande
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/orders/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/orders/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.
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\": 7,
\"payment_mode\": \"sapiente\",
\"room_id\": 20,
\"room_service_id\": 12,
\"status\": \"paid\",
\"delivery_date\": \"2026-03-10T18:48:50\",
\"products\": [
{
\"id\": 2,
\"quantity\": 19
}
]
}"
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": 7,
"payment_mode": "sapiente",
"room_id": 20,
"room_service_id": 12,
"status": "paid",
"delivery_date": "2026-03-10T18:48:50",
"products": [
{
"id": 2,
"quantity": 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.
Modifier une commande
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/orders/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_id\": 9,
\"payment_mode\": \"qui\",
\"room_id\": 12,
\"room_service_id\": 13,
\"status\": \"paid\",
\"delivery_date\": \"2026-03-10T18:48:50\",
\"products\": [
{
\"id\": 6,
\"quantity\": 56
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/orders/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_id": 9,
"payment_mode": "qui",
"room_id": 12,
"room_service_id": 13,
"status": "paid",
"delivery_date": "2026-03-10T18:48:50",
"products": [
{
"id": 6,
"quantity": 56
}
]
};
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\": [
13
]
}"
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": [
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 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\": [
15
]
}"
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": [
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 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\": [
15
]
}"
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": [
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.
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\": 19,
\"nbre_items\": 18,
\"filter_value\": \"non\",
\"position\": \"facere\",
\"status\": \"Active\",
\"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": 19,
"nbre_items": 18,
"filter_value": "non",
"position": "facere",
"status": "Active",
"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/voluptatem" \
--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/voluptatem"
);
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\": 6,
\"user_approve_id\": 8,
\"type\": \"voluptatem\",
\"description\": \"Et dolor rerum aliquid maxime nesciunt non sed.\",
\"start_date\": \"2026-03-10T18:48:50\",
\"duration\": 19,
\"working_hours\": \"officia\",
\"position\": \"rerum\",
\"gross_salary\": 11,
\"status\": \"Pending\",
\"service_benefits\": \"quo\",
\"bonus\": \"sint\",
\"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": 6,
"user_approve_id": 8,
"type": "voluptatem",
"description": "Et dolor rerum aliquid maxime nesciunt non sed.",
"start_date": "2026-03-10T18:48:50",
"duration": 19,
"working_hours": "officia",
"position": "rerum",
"gross_salary": 11,
"status": "Pending",
"service_benefits": "quo",
"bonus": "sint",
"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/illum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 19,
\"user_approve_id\": 17,
\"type\": \"CDD\",
\"description\": \"Dicta est cupiditate illum et.\",
\"start_date\": \"2026-03-10T18:48:50\",
\"duration\": 74,
\"working_hours\": \"aspernatur\",
\"position\": \"consectetur\",
\"gross_salary\": 52,
\"status\": \"Active\",
\"service_benefits\": \"qui\",
\"bonus\": \"eligendi\",
\"number_days_off\": 9
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/contracts/illum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 19,
"user_approve_id": 17,
"type": "CDD",
"description": "Dicta est cupiditate illum et.",
"start_date": "2026-03-10T18:48:50",
"duration": 74,
"working_hours": "aspernatur",
"position": "consectetur",
"gross_salary": 52,
"status": "Active",
"service_benefits": "qui",
"bonus": "eligendi",
"number_days_off": 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 (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\": [
8
]
}"
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": [
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 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\": [
12
]
}"
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": [
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 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\": [
13
]
}"
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": [
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.
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\": 26,
\"nbre_items\": 11,
\"filter_value\": \"itaque\",
\"supplier_id\": 16,
\"hotel_id\": 15,
\"purchase_order_id\": 4,
\"user_id\": 7,
\"created_by\": 9,
\"responsible_id\": 15,
\"service_id\": 20,
\"payment_method\": \"MOMO\",
\"status\": \"rejected\",
\"reference\": \"repellendus\",
\"date_start\": \"2026-03-10T18:48:50\",
\"date_end\": \"2026-03-10T18:48:50\",
\"expense_type_id\": 5,
\"service_ids\": [
15
]
}"
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": 26,
"nbre_items": 11,
"filter_value": "itaque",
"supplier_id": 16,
"hotel_id": 15,
"purchase_order_id": 4,
"user_id": 7,
"created_by": 9,
"responsible_id": 15,
"service_id": 20,
"payment_method": "MOMO",
"status": "rejected",
"reference": "repellendus",
"date_start": "2026-03-10T18:48:50",
"date_end": "2026-03-10T18:48:50",
"expense_type_id": 5,
"service_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.
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\": \"pending\",
\"invoice_image\": \"iure\",
\"reasons\": \"accusamus\",
\"total_amount\": 53,
\"disbursement_date\": \"2026-03-10T18:48:50\",
\"responsible_id\": \"doloremque\",
\"validation_date\": \"2026-03-10T18:48:50\"
}"
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": "pending",
"invoice_image": "iure",
"reasons": "accusamus",
"total_amount": 53,
"disbursement_date": "2026-03-10T18:48:50",
"responsible_id": "doloremque",
"validation_date": "2026-03-10T18:48:50"
};
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/6" \
--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/6"
);
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/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"payment_method\": \"OM\",
\"status\": \"pending\",
\"invoice_image\": \"eveniet\",
\"reasons\": \"eum\",
\"total_amount\": 30,
\"disbursement_date\": \"2026-03-10T18:48:50\",
\"validation_date\": \"2026-03-10T18:48:50\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/disbursements/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"payment_method": "OM",
"status": "pending",
"invoice_image": "eveniet",
"reasons": "eum",
"total_amount": 30,
"disbursement_date": "2026-03-10T18:48:50",
"validation_date": "2026-03-10T18:48:50"
};
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\": [
7
]
}"
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": [
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 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\": [
15
]
}"
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": [
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 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\": [
5
]
}"
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": [
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.
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\": \"in\",
\"responsible_id\": 13,
\"hotel_id\": 14,
\"priority\": \"high\",
\"status\": \"refused\",
\"article_ids\": [
12
]
}"
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": "in",
"responsible_id": 13,
"hotel_id": 14,
"priority": "high",
"status": "refused",
"article_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.
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\": \"ttk\",
\"description\": \"Dignissimos odit repellat beatae consequatur nihil.\",
\"responsible_id\": 14,
\"status\": \"pending\",
\"priority\": \"medium\",
\"articles\": [
{
\"id\": 5,
\"unit_price\": 1,
\"quantity\": 62,
\"supplier_id\": 6
}
]
}"
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": "ttk",
"description": "Dignissimos odit repellat beatae consequatur nihil.",
"responsible_id": 14,
"status": "pending",
"priority": "medium",
"articles": [
{
"id": 5,
"unit_price": 1,
"quantity": 62,
"supplier_id": 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.
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\": \"mhxpgzkjwlvvgigubtyzeq\",
\"description\": \"Rerum optio nihil non non iste enim.\",
\"responsible_id\": 5,
\"status\": \"pending\",
\"priority\": \"low\",
\"articles\": [
{
\"id\": 14,
\"unit_price\": 16,
\"quantity\": 83,
\"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": "mhxpgzkjwlvvgigubtyzeq",
"description": "Rerum optio nihil non non iste enim.",
"responsible_id": 5,
"status": "pending",
"priority": "low",
"articles": [
{
"id": 14,
"unit_price": 16,
"quantity": 83,
"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\": [
20
]
}"
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": [
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.
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\": [
2
]
}"
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": [
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.
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\": 2,
\"user_approve_id\": 13,
\"status\": \"pending_approval\",
\"archive\": \"only_trashed\",
\"date\": \"2026-03-10T18:48:50\",
\"page_items\": 6,
\"nbre_items\": 16,
\"filter_value\": \"reprehenderit\"
}"
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": 2,
"user_approve_id": 13,
"status": "pending_approval",
"archive": "only_trashed",
"date": "2026-03-10T18:48:50",
"page_items": 6,
"nbre_items": 16,
"filter_value": "reprehenderit"
};
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/13" \
--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/13"
);
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\": \"labore\",
\"start_date\": \"2109-03-25\",
\"end_date\": \"2051-07-03\",
\"days_taken\": 14,
\"reason\": \"cyxuptwmbfyggjroolzssivgv\",
\"user_approve_id\": 6
}"
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": "labore",
"start_date": "2109-03-25",
"end_date": "2051-07-03",
"days_taken": 14,
"reason": "cyxuptwmbfyggjroolzssivgv",
"user_approve_id": 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.
Modifier une demande de congé
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/holidays/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"in\",
\"start_date\": \"2120-07-15\",
\"end_date\": \"2067-10-17\",
\"days_taken\": 8,
\"reason\": \"dkkvhuenzjcmsruycvi\",
\"status\": \"rejected\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/holidays/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "in",
"start_date": "2120-07-15",
"end_date": "2067-10-17",
"days_taken": 8,
"reason": "dkkvhuenzjcmsruycvi",
"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\": [
3
]
}"
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": [
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.
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\": [
2
]
}"
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": [
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 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\": [
20
]
}"
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": [
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.
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\": 9,
\"nbre_items\": 18,
\"filterValue\": \"nqrqijrhpagzfyperbmuqym\",
\"departure\": \"2026-03-10T18:48:50\",
\"return\": \"2051-08-19\",
\"duration\": 45,
\"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": 9,
"nbre_items": 18,
"filterValue": "nqrqijrhpagzfyperbmuqym",
"departure": "2026-03-10T18:48:50",
"return": "2051-08-19",
"duration": 45,
"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/in" \
--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/in"
);
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\": \"fcqlbejvsgsrjruwz\",
\"departure\": \"2120-08-09\",
\"return\": \"2027-12-18\",
\"duration\": 78,
\"user_approve_id\": 7,
\"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": "fcqlbejvsgsrjruwz",
"departure": "2120-08-09",
"return": "2027-12-18",
"duration": 78,
"user_approve_id": 7,
"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/veritatis" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"sfh\",
\"datedeparture\": \"2047-11-26\",
\"dateRetour\": \"2062-09-23\",
\"duration\": 34,
\"status\": \"approved\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permission-requests/veritatis"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "sfh",
"datedeparture": "2047-11-26",
"dateRetour": "2062-09-23",
"duration": 34,
"status": "approved"
};
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\": [
16
]
}"
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": [
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.
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\": [
5
]
}"
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": [
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.
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\": [
11
]
}"
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": [
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.
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\": 23,
\"nbre_items\": 12,
\"filter_value\": \"ea\",
\"seller_id\": 15,
\"hotel_id\": 2,
\"order_id\": 7,
\"service_id\": 12,
\"client_id\": 7,
\"created_by\": 5,
\"date_start\": \"2026-03-10T18:48:50\",
\"date_end\": \"2026-03-10T18:48:50\",
\"cashin_type\": \"order\",
\"payment_method\": \"officia\"
}"
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": 23,
"nbre_items": 12,
"filter_value": "ea",
"seller_id": 15,
"hotel_id": 2,
"order_id": 7,
"service_id": 12,
"client_id": 7,
"created_by": 5,
"date_start": "2026-03-10T18:48:50",
"date_end": "2026-03-10T18:48:50",
"cashin_type": "order",
"payment_method": "officia"
};
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/11" \
--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/11"
);
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\": 14,
\"booking_id\": 9,
\"payment_method\": \"ex\",
\"type\": \"sequi\",
\"amount\": 24485.26259,
\"date\": \"2026-03-10\"
}"
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": 14,
"booking_id": 9,
"payment_method": "ex",
"type": "sequi",
"amount": 24485.26259,
"date": "2026-03-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.
Modifier un encaissement
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/cash-ins/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 16,
\"service_id\": 14,
\"booking_id\": 16,
\"payment_method\": \"alias\",
\"amount\": 3.9790602
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/cash-ins/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 16,
"service_id": 14,
"booking_id": 16,
"payment_method": "alias",
"amount": 3.9790602
};
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\": [
9
]
}"
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": [
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.
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\": [
5
]
}"
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": [
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.
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\": [
19
]
}"
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": [
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.
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\": 12,
\"nbre_items\": 15,
\"filter_value\": \"porro\",
\"service_id\": 6,
\"hotel_id\": 11,
\"type\": \"internal\",
\"archive\": \"with_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": 12,
"nbre_items": 15,
"filter_value": "porro",
"service_id": 6,
"hotel_id": 11,
"type": "internal",
"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.
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\": \"sucewxi\",
\"description\": \"Non et ad sit ab sapiente doloremque.\",
\"start_date\": \"2026-03-10\",
\"end_date\": \"2081-08-08\",
\"type\": \"external\",
\"budget\": \"adipisci\",
\"hotel_id\": 19,
\"service_id\": 15
}"
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": "sucewxi",
"description": "Non et ad sit ab sapiente doloremque.",
"start_date": "2026-03-10",
"end_date": "2081-08-08",
"type": "external",
"budget": "adipisci",
"hotel_id": 19,
"service_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.
Modifier un évènement
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/events/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"tqgmwfdzn\",
\"description\": \"Aut et consequatur ab libero asperiores accusantium.\",
\"start_date\": \"2026-03-10\",
\"end_date\": \"2054-10-25\",
\"type\": \"internal\",
\"budget\": \"reiciendis\",
\"hotel_id\": 8,
\"service_id\": 3
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/events/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "tqgmwfdzn",
"description": "Aut et consequatur ab libero asperiores accusantium.",
"start_date": "2026-03-10",
"end_date": "2054-10-25",
"type": "internal",
"budget": "reiciendis",
"hotel_id": 8,
"service_id": 3
};
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\": [
10
]
}"
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": [
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.
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\": [
4
]
}"
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": [
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.
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\": 10,
\"filter_value\": \"exercitationem\",
\"founder_id\": 18,
\"manager_id\": 5,
\"assistant_id\": 10,
\"package_id\": 14
}"
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": 10,
"filter_value": "exercitationem",
"founder_id": 18,
"manager_id": 5,
"assistant_id": 10,
"package_id": 14
};
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\": \"dolorum\",
\"phone\": \"voluptatem\",
\"description\": \"Quasi quidem dolore eum vitae aut temporibus fuga.\",
\"stars\": 1,
\"email\": \"volkman.jensen@example.org\",
\"address\": \"doloribus\",
\"website\": \"omnis\",
\"logo\": \"optio\",
\"creation_date\": \"2026-03-10\",
\"city\": \"pdohckwawuhmnzhlzvaaoi\",
\"country\": \"stjwqrmyyprefmckcpskttmbl\",
\"type\": \"facere\",
\"category\": \"dolore\",
\"founder_id\": 5,
\"manager_id\": 4,
\"assistant_id\": 8,
\"package_id\": 18
}"
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": "dolorum",
"phone": "voluptatem",
"description": "Quasi quidem dolore eum vitae aut temporibus fuga.",
"stars": 1,
"email": "volkman.jensen@example.org",
"address": "doloribus",
"website": "omnis",
"logo": "optio",
"creation_date": "2026-03-10",
"city": "pdohckwawuhmnzhlzvaaoi",
"country": "stjwqrmyyprefmckcpskttmbl",
"type": "facere",
"category": "dolore",
"founder_id": 5,
"manager_id": 4,
"assistant_id": 8,
"package_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.
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\": \"alias\",
\"phone\": \"a\",
\"description\": \"Molestiae eos dignissimos rerum rerum voluptatem.\",
\"stars\": 5,
\"email\": \"kelsie.yost@example.com\",
\"address\": \"nihil\",
\"website\": \"et\",
\"logo\": \"consectetur\",
\"rib\": \"pariatur\",
\"niu\": \"nostrum\",
\"rc\": \"necessitatibus\",
\"creation_date\": \"2026-03-10\",
\"city\": \"et\",
\"country\": \"enim\",
\"type\": \"modi\",
\"category\": \"nostrum\",
\"founder_id\": 12,
\"manager_id\": 12,
\"assistant_id\": 13,
\"package_id\": 5
}"
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": "alias",
"phone": "a",
"description": "Molestiae eos dignissimos rerum rerum voluptatem.",
"stars": 5,
"email": "kelsie.yost@example.com",
"address": "nihil",
"website": "et",
"logo": "consectetur",
"rib": "pariatur",
"niu": "nostrum",
"rc": "necessitatibus",
"creation_date": "2026-03-10",
"city": "et",
"country": "enim",
"type": "modi",
"category": "nostrum",
"founder_id": 12,
"manager_id": 12,
"assistant_id": 13,
"package_id": 5
};
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\": [
10
]
}"
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": [
10
]
};
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\": [
5
]
}"
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": [
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.
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\": [
1
]
}"
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": [
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.
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\": 21,
\"nbre_items\": 13,
\"filter_value\": \"ipsum\",
\"article_id\": 11,
\"operation_type\": \"exit\",
\"product_id\": 1,
\"user_id\": 11,
\"from_date\": \"2026-03-10T18:48:50\",
\"to_date\": \"2056-03-16\",
\"date_start\": \"2026-03-10T18:48:50\",
\"date_end\": \"2045-03-21\"
}"
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": 21,
"nbre_items": 13,
"filter_value": "ipsum",
"article_id": 11,
"operation_type": "exit",
"product_id": 1,
"user_id": 11,
"from_date": "2026-03-10T18:48:50",
"to_date": "2056-03-16",
"date_start": "2026-03-10T18:48:50",
"date_end": "2045-03-21"
};
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\": 42,
\"nbre_items\": 2,
\"filter_value\": \"velit\",
\"product_id\": 11,
\"service_id\": 2,
\"operation_type\": \"exit\",
\"user_id\": 15,
\"date_start\": \"2026-03-10T18:48:50\",
\"date_end\": \"2049-04-19\"
}"
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": 42,
"nbre_items": 2,
"filter_value": "velit",
"product_id": 11,
"service_id": 2,
"operation_type": "exit",
"user_id": 15,
"date_start": "2026-03-10T18:48:50",
"date_end": "2049-04-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.
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\": 11,
\"description\": \"Quasi nulla est qui incidunt eligendi dolores.\",
\"operation_type\": \"exit\",
\"product_id\": 14
}"
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": 11,
"description": "Quasi nulla est qui incidunt eligendi dolores.",
"operation_type": "exit",
"product_id": 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 mouvement de produit spécifique
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/product-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/product-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.
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\": 24,
\"nbre_items\": 19,
\"filter_value\": \"nostrum\",
\"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": 24,
"nbre_items": 19,
"filter_value": "nostrum",
"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\": \"eum\",
\"amount\": \"assumenda\",
\"website\": true,
\"support_type\": \"premium\",
\"electronic_payment\": true,
\"mail_pro\": true
}"
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": "eum",
"amount": "assumenda",
"website": true,
"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.
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\": \"quos\",
\"website\": false,
\"support_type\": \"classic\",
\"electronic_payment\": true,
\"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": "quos",
"website": false,
"support_type": "classic",
"electronic_payment": true,
"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\": [
19
]
}"
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": [
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 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\": [
17
]
}"
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": [
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 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\": [
6
]
}"
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": [
6
]
};
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\": 86,
\"nbre_items\": 14,
\"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": 86,
"nbre_items": 14,
"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\": \"eligendi\"
}"
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": "eligendi"
};
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\": 66,
\"nbre_items\": 7,
\"filter_value\": \"est\"
}"
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": 66,
"nbre_items": 7,
"filter_value": "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 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\": \"velit\",
\"description\": \"Cumque rem nulla tenetur consequatur cumque.\",
\"ressource\": \"delectus\"
}
]
}"
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": "velit",
"description": "Cumque rem nulla tenetur consequatur cumque.",
"ressource": "delectus"
}
]
};
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/maxime" \
--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/maxime"
);
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/distinctio" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"error\",
\"permissions\": [
{
\"description\": \"Rerum corrupti consequatur et sint ut quia non.\",
\"ressource\": \"quos\"
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/permissions/distinctio"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "error",
"permissions": [
{
"description": "Rerum corrupti consequatur et sint ut quia non.",
"ressource": "quos"
}
]
};
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\": [
4
]
}"
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": [
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 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\": [
7
]
}"
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": [
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.
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\": [
15
]
}"
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": [
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.
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\": 35,
\"nbre_items\": 13,
\"filter_value\": \"ipsum\",
\"type\": \"staff\",
\"scan_per_course\": true,
\"saving_type\": \"manual\",
\"user_id\": 18,
\"date\": \"2026-03-10T18:48:50\"
}"
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": 35,
"nbre_items": 13,
"filter_value": "ipsum",
"type": "staff",
"scan_per_course": true,
"saving_type": "manual",
"user_id": 18,
"date": "2026-03-10T18:48:50"
};
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/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/staff-presences/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.
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\": 9,
\"scan_per_course\": true,
\"type\": \"staff\",
\"date\": \"2026-03-10T18:48:50\",
\"arrival_time\": \"18:48:50\",
\"departure_time\": \"18:48:50\",
\"reason\": \"aperiam\"
}"
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": 9,
"scan_per_course": true,
"type": "staff",
"date": "2026-03-10T18:48:50",
"arrival_time": "18:48:50",
"departure_time": "18:48:50",
"reason": "aperiam"
};
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/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 15,
\"scan_per_course\": true,
\"type\": \"employ\",
\"date\": \"2026-03-10T18:48:50\",
\"time\": \"18:48:50\",
\"arrival_time\": \"18:48:50\",
\"departure_time\": \"18:48:50\",
\"reason\": \"fugit\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/staff-presences/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 15,
"scan_per_course": true,
"type": "employ",
"date": "2026-03-10T18:48:50",
"time": "18:48:50",
"arrival_time": "18:48:50",
"departure_time": "18:48:50",
"reason": "fugit"
};
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\": [
14
]
}"
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": [
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.
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\": [
12
]
}"
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": [
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 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\": [
11
]
}"
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": [
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.
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\": 42,
\"nbre_items\": 13,
\"filter_value\": \"id\",
\"article_ids\": [
3
],
\"type\": \"storable\",
\"expired\": false,
\"service_id\": 9,
\"hotel_id\": 9
}"
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": 42,
"nbre_items": 13,
"filter_value": "id",
"article_ids": [
3
],
"type": "storable",
"expired": false,
"service_id": 9,
"hotel_id": 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.
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\": \"quasi\",
\"type\": \"consumable\",
\"image\": \"consectetur\",
\"price\": 3.61716,
\"manufacturing_cost\": 49,
\"description\": \"Est culpa quia in alias quae autem.\",
\"alert_quantity\": 10,
\"status\": \"validated\",
\"quantity\": 62,
\"expiry_date\": \"2026-03-10T18:48:50\",
\"service_id\": 16,
\"articles\": [
{
\"id\": 11,
\"quantity\": 42
}
]
}"
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": "quasi",
"type": "consumable",
"image": "consectetur",
"price": 3.61716,
"manufacturing_cost": 49,
"description": "Est culpa quia in alias quae autem.",
"alert_quantity": 10,
"status": "validated",
"quantity": 62,
"expiry_date": "2026-03-10T18:48:50",
"service_id": 16,
"articles": [
{
"id": 11,
"quantity": 42
}
]
};
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/12" \
--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/12"
);
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/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"est\",
\"type\": \"storable\",
\"image\": \"earum\",
\"price\": 226.877,
\"manufacturing_cost\": 49,
\"description\": \"Voluptatem maxime velit voluptatem voluptas ut sapiente ullam.\",
\"alert_quantity\": 17,
\"status\": \"pending\",
\"quantity\": 40,
\"expiry_date\": \"2026-03-10T18:48:50\",
\"service_id\": 10,
\"articles\": [
{
\"id\": 12,
\"quantity\": 85
}
]
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/products/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "est",
"type": "storable",
"image": "earum",
"price": 226.877,
"manufacturing_cost": 49,
"description": "Voluptatem maxime velit voluptatem voluptas ut sapiente ullam.",
"alert_quantity": 17,
"status": "pending",
"quantity": 40,
"expiry_date": "2026-03-10T18:48:50",
"service_id": 10,
"articles": [
{
"id": 12,
"quantity": 85
}
]
};
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\": [
1
]
}"
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": [
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.
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\": [
16
]
}"
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": [
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 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\": [
15
]
}"
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": [
15
]
};
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\": 36,
\"nbre_items\": 19,
\"filter_value\": \"maxime\",
\"hotel_id\": 8,
\"service_id\": 7,
\"user_id\": 13,
\"type\": 19
}"
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": 36,
"nbre_items": 19,
"filter_value": "maxime",
"hotel_id": 8,
"service_id": 7,
"user_id": 13,
"type": 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.
Affiche les détails d'une sanction spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://pessi.ms-hotel.net/api/punishments/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/punishments/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.
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\": \"Aspernatur maxime sint tempore quae magnam non illum.\",
\"user_id\": 13,
\"type\": \"cumque\",
\"reasons\": \"sunt\"
}
]
}"
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": "Aspernatur maxime sint tempore quae magnam non illum.",
"user_id": 13,
"type": "cumque",
"reasons": "sunt"
}
]
};
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/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Repellendus porro vitae qui.\",
\"user_id\": 18,
\"type\": \"soluta\",
\"reasons\": \"amet\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/punishments/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Repellendus porro vitae qui.",
"user_id": 18,
"type": "soluta",
"reasons": "amet"
};
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\": [
3
]
}"
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": [
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.
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\": [
5
]
}"
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": [
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.
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\": [
10
]
}"
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": [
10
]
};
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\": 89,
\"nbre_items\": 15,
\"filter_value\": \"in\",
\"user_id\": 12,
\"user_approve_id\": 1,
\"trashed\": true,
\"date\": \"2026-03-10\",
\"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": 89,
"nbre_items": 15,
"filter_value": "in",
"user_id": 12,
"user_approve_id": 1,
"trashed": true,
"date": "2026-03-10",
"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/11" \
--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/11"
);
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\": \"quibusdam\",
\"user_approve_id\": 8,
\"amount\": 84,
\"date\": \"2026-03-10T18:48:50\",
\"status\": \"in_progress\",
\"reason\": \"facilis\"
}
]
}"
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": "quibusdam",
"user_approve_id": 8,
"amount": 84,
"date": "2026-03-10T18:48:50",
"status": "in_progress",
"reason": "facilis"
}
]
};
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/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 19,
\"user_approve_id\": 3,
\"reason\": \"suscipit\",
\"date\": \"2026-03-10\",
\"status\": \"rejected\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/salaries-deductions/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 19,
"user_approve_id": 3,
"reason": "suscipit",
"date": "2026-03-10",
"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 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\": [
15
]
}"
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": [
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 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\": [
16
]
}"
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": [
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 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\": [
8
]
}"
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": [
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.
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\": 90,
\"nbre_items\": 8,
\"filter_value\": \"atybthlrpivgoiilee\"
}"
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": 90,
"nbre_items": 8,
"filter_value": "atybthlrpivgoiilee"
};
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\": \"pyftyxdckrsffawsron\",
\"description\": \"Eum quas perspiciatis est cum autem autem commodi.\",
\"amount\": 48
}"
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": "pyftyxdckrsffawsron",
"description": "Eum quas perspiciatis est cum autem autem commodi.",
"amount": 48
};
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/quia" \
--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/quia"
);
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/facere" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"rrenvgiigzowrmhdyqtckvrv\",
\"description\": \"Sint unde molestiae accusantium nihil esse.\",
\"amount\": 69
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/reductions/facere"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "rrenvgiigzowrmhdyqtckvrv",
"description": "Sint unde molestiae accusantium nihil esse.",
"amount": 69
};
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\": 15,
\"nbre_items\": 20,
\"filter_value\": \"modi\",
\"hotel_id\": 2,
\"room_type_id\": 12,
\"room_category_id\": 15,
\"room_id\": 4,
\"user_id\": 12,
\"status\": \"canceled\",
\"payment_status\": \"advance\",
\"room_service_id\": 4,
\"date\": \"2026-03-10\",
\"date_start\": \"2026-03-10\",
\"date_end\": \"2026-03-10\"
}"
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": 15,
"nbre_items": 20,
"filter_value": "modi",
"hotel_id": 2,
"room_type_id": 12,
"room_category_id": 15,
"room_id": 4,
"user_id": 12,
"status": "canceled",
"payment_status": "advance",
"room_service_id": 4,
"date": "2026-03-10",
"date_start": "2026-03-10",
"date_end": "2026-03-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.
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-03-10\",
\"end_date\": \"2039-05-10\",
\"user_id\": 1,
\"transport_mode\": \"vanxigeolhbjzdarzrjr\",
\"vehicle_number\": \"gagljismfdcb\",
\"arrival_time\": \"2026-03-10T18:48:49\",
\"departure_time\": \"2026-03-10T18:48:49\",
\"arrivals\": \"odbxyihkipnu\",
\"is_free\": true,
\"reduction_id\": 15,
\"reduction_amount\": 10
}"
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-03-10",
"end_date": "2039-05-10",
"user_id": 1,
"transport_mode": "vanxigeolhbjzdarzrjr",
"vehicle_number": "gagljismfdcb",
"arrival_time": "2026-03-10T18:48:49",
"departure_time": "2026-03-10T18:48:49",
"arrivals": "odbxyihkipnu",
"is_free": true,
"reduction_id": 15,
"reduction_amount": 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.
Mettre à jour une réservation
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/bookings/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2026-03-10T18:48:50\",
\"end_date\": \"2047-04-14\",
\"user_id\": 14,
\"room_service_id\": 15,
\"transport_mode\": \"xkgktmmqau\",
\"vehicle_number\": \"rbwtmcwhuoqjgjdfwwtmlilso\",
\"arrival_time\": \"2026-03-10T18:48:50\",
\"departure_time\": \"2026-03-10T18:48:50\",
\"arrivals\": \"xaiajrudhxqbxqwhbmfamrb\",
\"is_free\": true,
\"reduction_id\": 13,
\"reduction_amount\": 65,
\"rooms\": [
\"quia\"
],
\"status\": \"cancelled\"
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/bookings/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2026-03-10T18:48:50",
"end_date": "2047-04-14",
"user_id": 14,
"room_service_id": 15,
"transport_mode": "xkgktmmqau",
"vehicle_number": "rbwtmcwhuoqjgjdfwwtmlilso",
"arrival_time": "2026-03-10T18:48:50",
"departure_time": "2026-03-10T18:48:50",
"arrivals": "xaiajrudhxqbxqwhbmfamrb",
"is_free": true,
"reduction_id": 13,
"reduction_amount": 65,
"rooms": [
"quia"
],
"status": "cancelled"
};
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\": [
14
]
}"
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": [
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.
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\": [
3
]
}"
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": [
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.
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\": [
6
]
}"
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": [
6
]
};
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\": 61,
\"nbre_items\": 13,
\"filter_value\": \"esse\",
\"types\": [
\"magni\"
]
}"
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": 61,
"nbre_items": 13,
"filter_value": "esse",
"types": [
"magni"
]
};
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\": \"consequuntur\",
\"permissions\": [
15
],
\"description\": \"Et neque neque aut provident reiciendis vero.\",
\"type\": \"tempore\"
}"
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": "consequuntur",
"permissions": [
15
],
"description": "Et neque neque aut provident reiciendis vero.",
"type": "tempore"
};
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\": \"tempora\",
\"permissions\": [
9
],
\"description\": \"Illo officia modi possimus.\",
\"type\": \"nulla\"
}"
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": "tempora",
"permissions": [
9
],
"description": "Illo officia modi possimus.",
"type": "nulla"
};
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\": [
10
]
}"
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": [
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 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\": [
6
]
}"
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": [
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 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\": [
4
]
}"
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": [
4
]
};
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\": 56,
\"nbre_items\": 15,
\"filter_value\": \"sit\",
\"service_id\": 9,
\"archive\": \"only_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": 56,
"nbre_items": 15,
"filter_value": "sit",
"service_id": 9,
"archive": "only_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\": \"bfzrzgteyobaikk\",
\"description\": \"Quam ut dolor expedita suscipit cum ut et.\",
\"service_id\": 3
}
]
}"
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": "bfzrzgteyobaikk",
"description": "Quam ut dolor expedita suscipit cum ut et.",
"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.
Mettre à jour un service de chambre existant.
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/room-services/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"t\",
\"description\": \"Voluptas omnis architecto hic at pariatur.\",
\"service_id\": 6
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/room-services/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "t",
"description": "Voluptas omnis architecto hic at pariatur.",
"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.
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\": [
16
]
}"
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": [
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.
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\": [
5
]
}"
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": [
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.
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\": 55,
\"nbre_items\": 1,
\"filter_value\": \"ullam\",
\"type\": \"quasi\",
\"hotel_id\": 17,
\"responsible_id\": 12
}"
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": 55,
"nbre_items": 1,
"filter_value": "ullam",
"type": "quasi",
"hotel_id": 17,
"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.
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\": \"deleniti\",
\"image\": \"maiores\",
\"description\": \"Consectetur et et id eaque accusamus cum quo natus.\",
\"type\": \"nobis\",
\"hotel_id\": 4,
\"responsible_id\": 13
}
]
}"
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": "deleniti",
"image": "maiores",
"description": "Consectetur et et id eaque accusamus cum quo natus.",
"type": "nobis",
"hotel_id": 4,
"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.
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\": \"perspiciatis\",
\"image\": \"unde\",
\"description\": \"Hic quis tempore dolor at nam saepe voluptate recusandae.\",
\"type\": \"incidunt\",
\"hotel_id\": 17,
\"responsible_id\": 13
}"
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": "perspiciatis",
"image": "unde",
"description": "Hic quis tempore dolor at nam saepe voluptate recusandae.",
"type": "incidunt",
"hotel_id": 17,
"responsible_id": 13
};
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\": [
10
]
}"
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": [
10
]
};
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\": [
5
]
}"
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": [
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.
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\": [
11
]
}"
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": [
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.
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\": 35,
\"nbre_items\": 7,
\"filter_value\": \"necessitatibus\",
\"is_anonymous\": true,
\"user_id\": 19,
\"service_id\": 11,
\"status\": \"in_progress\",
\"date_start\": \"2026-03-10T18:48:50\",
\"date_end\": \"2026-03-10T18:48:50\"
}"
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": 35,
"nbre_items": 7,
"filter_value": "necessitatibus",
"is_anonymous": true,
"user_id": 19,
"service_id": 11,
"status": "in_progress",
"date_start": "2026-03-10T18:48:50",
"date_end": "2026-03-10T18:48:50"
};
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/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/feedbacks/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.
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\": 5,
\"message\": \"veydgkruhlb\",
\"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": 5,
"message": "veydgkruhlb",
"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/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"service_id\": 5,
\"status\": \"pending\",
\"message\": \"zoaymmwygweqc\",
\"is_anonymous\": true
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/feedbacks/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 5,
"status": "pending",
"message": "zoaymmwygweqc",
"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\": [
4
]
}"
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": [
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.
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\": [
2
]
}"
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": [
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 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\": [
15
]
}"
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": [
15
]
};
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\": 13,
\"nbre_items\": 1
}"
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": 13,
"nbre_items": 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.
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\": \"et\",
\"description\": \"Impedit ullam laboriosam natus id recusandae magnam dolores.\"
}"
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": "et",
"description": "Impedit ullam laboriosam natus id recusandae magnam dolores."
};
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\": \"ut\",
\"description\": \"Ipsum officia suscipit quis doloribus possimus.\"
}"
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": "ut",
"description": "Ipsum officia suscipit quis doloribus possimus."
};
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\": [
9
]
}"
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": [
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.
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\": [
1
]
}"
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": [
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.
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\": [
2
]
}"
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": [
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.
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\": 17,
\"filter_value\": \"veniam\",
\"hotel_id\": 9,
\"trashed\": true
}"
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": 17,
"filter_value": "veniam",
"hotel_id": 9,
"trashed": true
};
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\": \"perferendis\",
\"hotel_id\": 2,
\"description\": \"Expedita voluptatem rem incidunt.\"
}
]
}"
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": "perferendis",
"hotel_id": 2,
"description": "Expedita voluptatem rem incidunt."
}
]
};
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\": \"temporibus\",
\"hotel_id\": 9,
\"description\": \"Sit in ullam et est excepturi sint.\"
}"
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": "temporibus",
"hotel_id": 9,
"description": "Sit in ullam et est excepturi sint."
};
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\": [
6
]
}"
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": [
6
]
};
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\": [
7
]
}"
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": [
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/room-types/destroy" \
--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/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
18
]
};
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\": 1,
\"responsible_id\": 17,
\"page_items\": 4,
\"nbre_items\": 20,
\"filter_value\": \"pvhrlwagltx\",
\"priority\": \"low\",
\"status\": \"finished\"
}"
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": 1,
"responsible_id": 17,
"page_items": 4,
"nbre_items": 20,
"filter_value": "pvhrlwagltx",
"priority": "low",
"status": "finished"
};
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/5" \
--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/5"
);
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\": \"bmpjrmutkxtzgankylp\",
\"description\": \"Facere optio ut beatae aut in rem.\",
\"due_date\": \"2026-03-10\",
\"estimation\": 51,
\"priority\": \"high\",
\"user_ids\": [
18
],
\"responsible_id\": 3
}"
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": "bmpjrmutkxtzgankylp",
"description": "Facere optio ut beatae aut in rem.",
"due_date": "2026-03-10",
"estimation": 51,
"priority": "high",
"user_ids": [
18
],
"responsible_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 une tâche
requires authentication
Example request:
curl --request PUT \
"https://pessi.ms-hotel.net/api/tasks/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"crxhw\",
\"description\": \"Voluptatibus labore voluptate nulla eum error minima quos sit.\",
\"due_date\": \"2026-03-10\",
\"estimation\": 70,
\"priority\": \"medium\",
\"status\": \"started\",
\"user_ids\": [
3
],
\"responsible_id\": 17
}"
const url = new URL(
"https://pessi.ms-hotel.net/api/tasks/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "crxhw",
"description": "Voluptatibus labore voluptate nulla eum error minima quos sit.",
"due_date": "2026-03-10",
"estimation": 70,
"priority": "medium",
"status": "started",
"user_ids": [
3
],
"responsible_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.
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\": [
3
]
}"
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": [
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.
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\": [
15
]
}"
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": [
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 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\": [
6
]
}"
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": [
6
]
};
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\": \"fmofh\"
}"
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": "fmofh"
};
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\": [
\"minima\"
],
\"page_items\": 30,
\"nbre_items\": 4,
\"filter_value\": \"facere\",
\"order_by\": false,
\"service_id\": 16,
\"hotel_id\": 12,
\"responsible_id\": 15,
\"type\": \"tempora\"
}"
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": [
"minima"
],
"page_items": 30,
"nbre_items": 4,
"filter_value": "facere",
"order_by": false,
"service_id": 16,
"hotel_id": 12,
"responsible_id": 15,
"type": "tempora"
};
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\": \"pcshykrlqyskiwatmiicxbd\",
\"lastname\": \"psbuxuopjdlojvktqavssn\",
\"gender\": \"female\",
\"type\": \"ut\",
\"birthday\": \"2026-03-10T18:48:49\",
\"nationality\": \"bo\",
\"nui\": \"inaluautumbea\",
\"cni\": \"pasqpwh\",
\"cnps\": \"hohwwuzpfvjpwhtrclgo\",
\"passport_issue_date\": \"2026-03-10T18:48:49\",
\"passport_issue_place\": \"icjjvgldqfyrqbqiovrkbv\",
\"profession\": \"ofbuweolxqo\",
\"birth_place\": \"zuvdrbmvnwiolnzfqbhdnupwx\",
\"connexion_type\": \"email\",
\"email\": \"kutch.gennaro@example.net\",
\"phone\": \"xjfwlvchohthkqcp\",
\"phone2\": \"gwyctvf\",
\"city\": \"mfpzhotxwaqtddbmbwdvhydgc\",
\"address\": \"wtqydqydhfmkdkuninha\",
\"country\": \"jbyam\",
\"hotel_id\": 4,
\"service_id\": 5,
\"responsible_id\": 14,
\"password\": \"b$l?u(gUlaMfJe;doUq\",
\"photo\": \"corrupti\",
\"role_id\": 14,
\"articles\": [
6
]
}"
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": "pcshykrlqyskiwatmiicxbd",
"lastname": "psbuxuopjdlojvktqavssn",
"gender": "female",
"type": "ut",
"birthday": "2026-03-10T18:48:49",
"nationality": "bo",
"nui": "inaluautumbea",
"cni": "pasqpwh",
"cnps": "hohwwuzpfvjpwhtrclgo",
"passport_issue_date": "2026-03-10T18:48:49",
"passport_issue_place": "icjjvgldqfyrqbqiovrkbv",
"profession": "ofbuweolxqo",
"birth_place": "zuvdrbmvnwiolnzfqbhdnupwx",
"connexion_type": "email",
"email": "kutch.gennaro@example.net",
"phone": "xjfwlvchohthkqcp",
"phone2": "gwyctvf",
"city": "mfpzhotxwaqtddbmbwdvhydgc",
"address": "wtqydqydhfmkdkuninha",
"country": "jbyam",
"hotel_id": 4,
"service_id": 5,
"responsible_id": 14,
"password": "b$l?u(gUlaMfJe;doUq",
"photo": "corrupti",
"role_id": 14,
"articles": [
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.
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\": \"ahnqeswapftkddqggwoffqco\",
\"lastname\": \"ydynwfat\",
\"gender\": \"male\",
\"type\": \"numquam\",
\"birthday\": \"2026-03-10T18:48:49\",
\"nationality\": \"wayek\",
\"nui\": \"sxmhmlzuuetuxmkeqikjqimtv\",
\"cni\": \"pukevwmlibplooiqosljf\",
\"cnps\": \"ttgzpkcqjrqzbu\",
\"passport_issue_date\": \"2026-03-10T18:48:49\",
\"passport_issue_place\": \"mabgbcwccdcfhwngxzkwkb\",
\"profession\": \"latcverpwugmqgvrulilppij\",
\"birth_place\": \"uvpoej\",
\"connexion_type\": \"phone\",
\"email\": \"bhuels@example.com\",
\"phone\": \"rwibflsrjlq\",
\"phone2\": \"jphjbkag\",
\"city\": \"asgpwhycnx\",
\"address\": \"kjihdzyprwcpaqpgbiham\",
\"country\": \"qfijscnsgwlfycfyhjiq\",
\"hotel_id\": 1,
\"service_id\": 11,
\"responsible_id\": 2,
\"password\": \"|b\\\\jv|M2\",
\"photo\": \"quidem\",
\"role_id\": 9
}"
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": "ahnqeswapftkddqggwoffqco",
"lastname": "ydynwfat",
"gender": "male",
"type": "numquam",
"birthday": "2026-03-10T18:48:49",
"nationality": "wayek",
"nui": "sxmhmlzuuetuxmkeqikjqimtv",
"cni": "pukevwmlibplooiqosljf",
"cnps": "ttgzpkcqjrqzbu",
"passport_issue_date": "2026-03-10T18:48:49",
"passport_issue_place": "mabgbcwccdcfhwngxzkwkb",
"profession": "latcverpwugmqgvrulilppij",
"birth_place": "uvpoej",
"connexion_type": "phone",
"email": "bhuels@example.com",
"phone": "rwibflsrjlq",
"phone2": "jphjbkag",
"city": "asgpwhycnx",
"address": "kjihdzyprwcpaqpgbiham",
"country": "qfijscnsgwlfycfyhjiq",
"hotel_id": 1,
"service_id": 11,
"responsible_id": 2,
"password": "|b\\jv|M2",
"photo": "quidem",
"role_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.
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\": [
18
]
}"
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": [
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.
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\": [
20
]
}"
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": [
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.
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\": [
7
]
}"
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": [
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.