MENU navbar-image

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\": 11
}"
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": 11
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/statistic-overview

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 11

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\": 8,
    \"service_id\": 8,
    \"month\": 1
}"
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": 8,
    "service_id": 8,
    "month": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/statistic-booking

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 8

service_id   integer  optional  

The id of an existing record in the services table. Example: 8

month   integer  optional  

Le champ value doit être entre 1 et 12. Example: 1

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\": 6,
    \"service_id\": 4,
    \"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": 6,
    "service_id": 4,
    "month": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/statistic-finance

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 6

service_id   integer  optional  

The id of an existing record in the services table. Example: 4

month   integer  optional  

Le champ value doit être entre 1 et 12. Example: 1

Afficher les statistiques par chambre

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/statistic-room" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hotel_id\": 9,
    \"room_id\": 6,
    \"service_id\": 9,
    \"date_start\": \"2026-05-04T09:37:23\",
    \"date_end\": \"2026-05-04T09:37:23\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/statistic-room"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hotel_id": 9,
    "room_id": 6,
    "service_id": 9,
    "date_start": "2026-05-04T09:37:23",
    "date_end": "2026-05-04T09:37:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/statistic-room

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 9

room_id   integer  optional  

The id of an existing record in the rooms table. Example: 6

service_id   integer  optional  

The id of an existing record in the services table. Example: 9

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

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\": 77,
    \"nbre_items\": 11,
    \"filter_value\": \"mollitia\",
    \"service_id\": 8,
    \"hotel_id\": 19,
    \"type\": \"storable\",
    \"expired\": true
}"
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": 77,
    "nbre_items": 11,
    "filter_value": "mollitia",
    "service_id": 8,
    "hotel_id": 19,
    "type": "storable",
    "expired": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/articles/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 77

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: mollitia

service_id   integer  optional  

The id of an existing record in the services table. Example: 8

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 19

type   string  optional  

Example: storable

Must be one of:
  • consumable
  • storable
expired   boolean  optional  

Example: true

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\": \"illum\",
            \"type\": \"storable\",
            \"image\": \"fugit\",
            \"price\": 13.9322,
            \"description\": \"Corporis harum laboriosam quis autem.\",
            \"unit_of_measurement\": \"a\",
            \"alert_quantity\": 12,
            \"expiry_date\": \"2026-05-04T09:37:23\",
            \"container\": \"dolor\",
            \"container_unit\": \"datjlqcfypzybtrndkqyezgcy\",
            \"container_quantity\": 12,
            \"detail\": \"libero\",
            \"service_id\": 4,
            \"suppliers\": [
                17
            ]
        }
    ]
}"
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": "illum",
            "type": "storable",
            "image": "fugit",
            "price": 13.9322,
            "description": "Corporis harum laboriosam quis autem.",
            "unit_of_measurement": "a",
            "alert_quantity": 12,
            "expiry_date": "2026-05-04T09:37:23",
            "container": "dolor",
            "container_unit": "datjlqcfypzybtrndkqyezgcy",
            "container_quantity": 12,
            "detail": "libero",
            "service_id": 4,
            "suppliers": [
                17
            ]
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/articles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

articles   object[]   

Le champ value doit contenir au moins 1 éléments.

name   string   

Example: illum

type   string   

Example: storable

Must be one of:
  • consumable
  • storable
image   string  optional  

Example: fugit

price   number   

Example: 13.9322

description   string  optional  

Example: Corporis harum laboriosam quis autem.

unit_of_measurement   string  optional  

Example: a

alert_quantity   integer  optional  

Example: 12

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

container   string  optional  

Example: dolor

container_unit   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: datjlqcfypzybtrndkqyezgcy

container_quantity   integer  optional  

Le champ value doit être au moins 0. Example: 12

detail   string  optional  

Example: libero

service_id   integer   

The id of an existing record in the services table. Example: 4

suppliers   integer[]   

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."
}
 

Request      

GET api/articles/{article_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

article_id   integer   

The ID of the article. Example: 28

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\": \"maxime\",
    \"type\": \"consumable\",
    \"image\": \"ut\",
    \"price\": 688810.776467389,
    \"description\": \"Labore aut recusandae quas voluptate.\",
    \"unit_of_measurement\": \"et\",
    \"alert_quantity\": 17,
    \"expiry_date\": \"2026-05-04T09:37:23\",
    \"container\": \"eum\",
    \"container_unit\": \"vlbqra\",
    \"container_quantity\": 17,
    \"detail\": \"velit\",
    \"service_id\": 3
}"
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": "maxime",
    "type": "consumable",
    "image": "ut",
    "price": 688810.776467389,
    "description": "Labore aut recusandae quas voluptate.",
    "unit_of_measurement": "et",
    "alert_quantity": 17,
    "expiry_date": "2026-05-04T09:37:23",
    "container": "eum",
    "container_unit": "vlbqra",
    "container_quantity": 17,
    "detail": "velit",
    "service_id": 3
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/articles/{article_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

article_id   integer   

The ID of the article. Example: 28

Body Parameters

name   string  optional  

Example: maxime

type   string  optional  

Example: consumable

Must be one of:
  • consumable
  • storable
image   string  optional  

Example: ut

price   number  optional  

Example: 688810.77646739

description   string  optional  

Example: Labore aut recusandae quas voluptate.

unit_of_measurement   string  optional  

Example: et

alert_quantity   integer  optional  

Example: 17

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

container   string  optional  

Example: eum

container_unit   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: vlbqra

container_quantity   integer  optional  

Le champ value doit être au moins 0. Example: 17

detail   string  optional  

Example: velit

service_id   integer  optional  

The id of an existing record in the services table. Example: 3

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\": [
        9
    ]
}"
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": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/articles/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        5
    ]
}"
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": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/articles/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        12
    ]
}"
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": [
        12
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/articles/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 24,
    \"nbre_items\": 5,
    \"article_id\": 15,
    \"supplier_id\": 6
}"
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": 24,
    "nbre_items": 5,
    "article_id": 15,
    "supplier_id": 6
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/articles-suppliers/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 24

nbre_items   integer  optional  

Example: 5

article_id   integer  optional  

The id of an existing record in the articles table. Example: 15

supplier_id   integer  optional  

The id of an existing record in the users table. Example: 6

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=djqpnrqljojromnt"\
    --form "lastname=iimtqycvngnexjng"\
    --form "gender=female"\
    --form "birthday=2026-05-04T09:37:23"\
    --form "nationality=pbskhxhgtqfaakm"\
    --form "nui=wkblpiusunefyxsl"\
    --form "cni=pymacjavifscqxv"\
    --form "cnps=moighnco"\
    --form "passport_issue_date=2026-05-04T09:37:23"\
    --form "passport_issue_place=ubmqxlh"\
    --form "profession=bajqtfxfr"\
    --form "birth_place=ceyiiwlwcocwsgqbkssz"\
    --form "connexion_type=phone"\
    --form "email=candace09@example.com"\
    --form "phone=sllkwxvjjhf"\
    --form "phone2=kjydfqh"\
    --form "city=ul"\
    --form "address=ttvporlsongnwrewgozxl"\
    --form "country=qlqmnjycuvtupqrglndn"\
    --form "hotel_id=10"\
    --form "service_id=14"\
    --form "responsible_id=5"\
    --form "password=mw*^9]."\
    --form "photo=@/tmp/php2ft1uU" 
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', 'djqpnrqljojromnt');
body.append('lastname', 'iimtqycvngnexjng');
body.append('gender', 'female');
body.append('birthday', '2026-05-04T09:37:23');
body.append('nationality', 'pbskhxhgtqfaakm');
body.append('nui', 'wkblpiusunefyxsl');
body.append('cni', 'pymacjavifscqxv');
body.append('cnps', 'moighnco');
body.append('passport_issue_date', '2026-05-04T09:37:23');
body.append('passport_issue_place', 'ubmqxlh');
body.append('profession', 'bajqtfxfr');
body.append('birth_place', 'ceyiiwlwcocwsgqbkssz');
body.append('connexion_type', 'phone');
body.append('email', 'candace09@example.com');
body.append('phone', 'sllkwxvjjhf');
body.append('phone2', 'kjydfqh');
body.append('city', 'ul');
body.append('address', 'ttvporlsongnwrewgozxl');
body.append('country', 'qlqmnjycuvtupqrglndn');
body.append('hotel_id', '10');
body.append('service_id', '14');
body.append('responsible_id', '5');
body.append('password', 'mw*^9].');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/register

Headers

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

firstname   string   

Le champ value ne peut contenir plus de 255 caractères. Example: djqpnrqljojromnt

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: iimtqycvngnexjng

gender   string   

Example: female

Must be one of:
  • male
  • female
birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pbskhxhgtqfaakm

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wkblpiusunefyxsl

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pymacjavifscqxv

cnps   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: moighnco

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

passport_issue_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ubmqxlh

profession   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: bajqtfxfr

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ceyiiwlwcocwsgqbkssz

connexion_type   string   

Example: phone

Must be one of:
  • email
  • phone
email   string  optional  

This field is required when connexion_type is email. Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: candace09@example.com

phone   string  optional  

This field is required when connexion_type is phone. Le champ value ne peut contenir plus de 20 caractères. Example: sllkwxvjjhf

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: kjydfqh

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ul

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ttvporlsongnwrewgozxl

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qlqmnjycuvtupqrglndn

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 10

service_id   integer  optional  

The id of an existing record in the services table. Example: 14

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 5

password   string   

Le champ value doit contenir au moins 6 caractères. Example: mw*^9].

photo   file  optional  

Le champ value doit être une image. Le champ value ne peut être supérieur à 2048 kilobytes. Example: /tmp/php2ft1uU

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\": \"email\",
    \"email\": \"ibrahim65@example.com\",
    \"phone\": \"emclvlcztqzerzz\",
    \"verification_code\": \"dk\"
}"
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": "email",
    "email": "ibrahim65@example.com",
    "phone": "emclvlcztqzerzz",
    "verification_code": "dk"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/verify-account

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

connexion_type   string   

Example: email

Must be one of:
  • email
  • phone
email   string  optional  

This field is required when connexion_type is email. Le champ value doit être une address e-mail valide. The email of an existing record in the temp_users table. Le champ value ne peut contenir plus de 255 caractères. Example: ibrahim65@example.com

phone   string  optional  

This field is required when connexion_type is phone. The phone of an existing record in the temp_users table. Le champ value ne peut contenir plus de 20 caractères. Example: emclvlcztqzerzz

verification_code   string   

Le champ value ne peut contenir plus de 6 caractères. Example: dk

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\": \"fwyman@example.net\",
    \"phone\": \"hvfoitbfqakve\",
    \"password\": \"hy8\\\\:b*8LN\",
    \"device_key\": \"soluta\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "fwyman@example.net",
    "phone": "hvfoitbfqakve",
    "password": "hy8\\:b*8LN",
    "device_key": "soluta"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string  optional  

This field is required when phone is not present. Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: fwyman@example.net

phone   string  optional  

This field is required when email is not present. Le champ value ne peut contenir plus de 20 caractères. Example: hvfoitbfqakve

password   string   

Example: hy8\:b*8LN

device_key   string  optional  

Example: soluta

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\": \"obahringer@example.net\",
    \"phone\": \"fqwdlifknyrcfa\"
}"
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": "obahringer@example.net",
    "phone": "fqwdlifknyrcfa"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/reset-password

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

connexion_type   string   

Example: phone

Must be one of:
  • email
  • phone
email   string  optional  

This field is required when connexion_type is email. Le champ value doit être une address e-mail valide. The email of an existing record in the users table. Le champ value ne peut contenir plus de 255 caractères. Example: obahringer@example.net

phone   string  optional  

This field is required when connexion_type is phone. The phone of an existing record in the users table. Le champ value ne peut contenir plus de 20 caractères. Example: fqwdlifknyrcfa

Fonction permettant de réinitialiser le mot de passe de l'utilisateur

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/confirm-reset-password" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"connexion_type\": \"phone\",
    \"email\": \"bins.glenna@example.com\",
    \"phone\": \"uw\",
    \"verification_code\": \"tdhimniwpfqetbkgplikvawu\",
    \"password\": \"0kT3Pne\\\\$:;^4,4m{\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/confirm-reset-password"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "connexion_type": "phone",
    "email": "bins.glenna@example.com",
    "phone": "uw",
    "verification_code": "tdhimniwpfqetbkgplikvawu",
    "password": "0kT3Pne\\$:;^4,4m{"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/confirm-reset-password

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

connexion_type   string   

Example: phone

Must be one of:
  • email
  • phone
email   string  optional  

This field is required when connexion_type is email. Le champ value doit être une address e-mail valide. The email of an existing record in the users table. The email of an existing record in the temp_users table. Example: bins.glenna@example.com

phone   string  optional  

This field is required when connexion_type is phone. The phone of an existing record in the users table. The phone of an existing record in the temp_users table. Le champ value ne peut contenir plus de 20 caractères. Example: uw

verification_code   string   

Le champ value doit contenir au moins 6 caractères. Example: tdhimniwpfqetbkgplikvawu

password   string   

Le champ value doit contenir au moins 6 caractères. Example: 0kT3Pne\$:;^4,4m{

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());

Request      

POST api/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

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\": 9,
    \"nbre_items\": 7,
    \"filter_value\": \"architecto\",
    \"trashed\": true,
    \"user_id\": 15,
    \"user_approve_id\": 5,
    \"date\": \"2026-05-04\"
}"
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": 9,
    "nbre_items": 7,
    "filter_value": "architecto",
    "trashed": true,
    "user_id": 15,
    "user_approve_id": 5,
    "date": "2026-05-04"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 9

nbre_items   integer  optional  

Example: 7

filter_value   string  optional  

Example: architecto

trashed   boolean  optional  

Example: true

user_id   integer  optional  

The id of an existing record in the users table. Example: 15

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 5

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

Afficher une retenue sur salaire spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/salaries-advances/ducimus" \
    --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/ducimus"
);

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."
}
 

Request      

GET api/salaries-advances/{salary_advance_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_advance_id   string   

The ID of the salary advance. Example: ducimus

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\": 16,
            \"amount\": \"dignissimos\",
            \"reason\": \"tempore\"
        }
    ]
}"
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": 16,
            "amount": "dignissimos",
            "reason": "tempore"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

salary_advances   object[]   
user_approve_id   integer   

The id of an existing record in the users table. Example: 16

amount   string   

Example: dignissimos

reason   string   

Example: tempore

Mettre à jour une retenue sur salaire spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/salaries-advances/provident" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_approve_id\": 15,
    \"status\": \"approved\",
    \"reason\": \"corporis\",
    \"comments\": \"voluptatem\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-advances/provident"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_approve_id": 15,
    "status": "approved",
    "reason": "corporis",
    "comments": "voluptatem"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/salaries-advances/{salary_advance_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_advance_id   string   

The ID of the salary advance. Example: provident

Body Parameters

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 15

amount   string  optional  
status   string  optional  

Example: approved

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
reason   string  optional  

Example: corporis

comments   string  optional  

Example: voluptatem

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\": [
        14
    ]
}"
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": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        2
    ]
}"
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": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-advances/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        20
    ]
}"
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": [
        20
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/salaries-advances/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": \"only_trashed\",
    \"date\": \"2026-05-04\",
    \"page_items\": 14,
    \"nbre_items\": 17,
    \"filter_value\": \"natus\"
}"
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": "only_trashed",
    "date": "2026-05-04",
    "page_items": 14,
    "nbre_items": 17,
    "filter_value": "natus"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 7

archive   string  optional  

Example: only_trashed

Must be one of:
  • with_trashed
  • only_trashed
date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

page_items   integer  optional  

Example: 14

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Example: natus

Afficher les détails d'un avertissement

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/warnings/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/warnings/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."
}
 

Request      

GET api/warnings/{warning_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

warning_id   integer   

The ID of the warning. Example: 13

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\": 15,
            \"reason\": \"laborum\",
            \"date\": \"2026-05-04\"
        }
    ]
}"
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": 15,
            "reason": "laborum",
            "date": "2026-05-04"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warnings   object[]   
user_id   integer   

The id of an existing record in the users table. Example: 15

reason   string   

Example: laborum

date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

Modifier les détails d'un avertissement

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/warnings/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 16,
    \"reason\": \"fugit\",
    \"date\": \"2026-05-04\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/warnings/12"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 16,
    "reason": "fugit",
    "date": "2026-05-04"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/warnings/{warning_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

warning_id   integer   

The ID of the warning. Example: 12

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 16

reason   string  optional  

Example: fugit

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

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\": [
        19
    ]
}"
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": [
        19
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/warnings/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

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\": [
        7
    ]
}"
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": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/warnings/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

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\": [
        8
    ]
}"
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": [
        8
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/warnings/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

warning_ids   integer[]   

The id of an existing record in the warnings table.

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\": 53,
    \"nbre_items\": 14,
    \"filter_value\": \"omnis\",
    \"status\": \"delivered\",
    \"priority\": \"high\",
    \"article_ids\": [
        7
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/purchase-vouchers/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 53,
    "nbre_items": 14,
    "filter_value": "omnis",
    "status": "delivered",
    "priority": "high",
    "article_ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-vouchers/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 53

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

Example: omnis

status   string  optional  

Example: delivered

Must be one of:
  • requesting_price
  • purchase_order
  • paid
  • delivered
priority   string  optional  

Example: high

Must be one of:
  • low
  • medium
  • high
supplier_id   string  optional  

The id of an existing record in the users table.

hotel_id   string  optional  

The id of an existing record in the hotels table.

responsible_id   string  optional  

The id of an existing record in the users table.

article_ids   integer[]  optional  

The id of an existing record in the articles table.

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\": 15,
    \"responsible_id\": 1,
    \"description\": \"Corporis aspernatur vel natus saepe fuga.\",
    \"status\": \"requesting_price\",
    \"priority\": \"high\",
    \"quotation_file\": \"aut\",
    \"articles\": [
        {
            \"id\": 12,
            \"unit_price\": 8,
            \"quantity\": 27
        }
    ]
}"
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": 15,
    "responsible_id": 1,
    "description": "Corporis aspernatur vel natus saepe fuga.",
    "status": "requesting_price",
    "priority": "high",
    "quotation_file": "aut",
    "articles": [
        {
            "id": 12,
            "unit_price": 8,
            "quantity": 27
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-vouchers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supplier_id   integer   

The id of an existing record in the users table. Example: 15

responsible_id   integer   

The id of an existing record in the users table. Example: 1

description   string  optional  

Example: Corporis aspernatur vel natus saepe fuga.

status   string  optional  

Example: requesting_price

Must be one of:
  • requesting_price
  • purchase_order
  • paid
  • delivered
priority   string   

Example: high

Must be one of:
  • low
  • medium
  • high
quotation_file   string  optional  

Example: aut

articles   object[]   

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the articles table. Example: 12

unit_price   integer  optional  

Example: 8

quantity   integer   

Le champ value doit être au moins 1. Example: 27

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."
}
 

Request      

GET api/purchase-vouchers/{purchase_voucher}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

purchase_voucher   integer   

Example: 1

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\": 4,
    \"responsible_id\": 4,
    \"description\": \"Sint at quidem quas aut et unde.\",
    \"status\": \"paid\",
    \"priority\": \"high\",
    \"quotation_file\": \"iure\",
    \"payment_method\": \"Bank\",
    \"articles\": [
        {
            \"id\": 17,
            \"unit_price\": 11,
            \"quantity\": 59
        }
    ]
}"
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": 4,
    "responsible_id": 4,
    "description": "Sint at quidem quas aut et unde.",
    "status": "paid",
    "priority": "high",
    "quotation_file": "iure",
    "payment_method": "Bank",
    "articles": [
        {
            "id": 17,
            "unit_price": 11,
            "quantity": 59
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/purchase-vouchers/{purchase_voucher}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

purchase_voucher   integer   

Example: 1

Body Parameters

supplier_id   integer  optional  

The id of an existing record in the users table. Example: 4

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 4

description   string  optional  

Example: Sint at quidem quas aut et unde.

status   string  optional  

Example: paid

Must be one of:
  • requesting_price
  • purchase_order
  • paid
  • delivered
priority   string  optional  

Example: high

Must be one of:
  • low
  • medium
  • high
quotation_file   string  optional  

Example: iure

articles   object[]  optional  

Le champ value doit contenir au moins 1 éléments.

id   integer  optional  

The id of an existing record in the articles table. Example: 17

unit_price   integer  optional  

Example: 11

quantity   integer  optional  

Le champ value doit être au moins 1. Example: 59

payment_method   string  optional  

Example: Bank

Must be one of:
  • Cash
  • Bank
  • OM
  • MOMO

Fonction pour le multiple archivage des bonds d'achat

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/purchase-vouchers/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        6
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/purchase-vouchers/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-vouchers/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        20
    ]
}"
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": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/purchase-vouchers/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/purchase-vouchers/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Budget

Gestion des budgets de l'hôtel

Afficher les budgets

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/budgets/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 2,
    \"nbre_items\": 5,
    \"type\": \"revenue\",
    \"hotel_id\": 4
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/budgets/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 2,
    "nbre_items": 5,
    "type": "revenue",
    "hotel_id": 4
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/budgets/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 2

nbre_items   integer  optional  

Example: 5

type   string  optional  

Example: revenue

Must be one of:
  • expense
  • revenue
hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 4

Afficher un budget spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/budgets/7" \
    --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/budgets/7"
);

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."
}
 

Request      

GET api/budgets/{budget_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

budget_id   integer   

The ID of the budget. Example: 7

Créer un budget

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/budgets" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"jlmy\",
    \"type\": \"expense\",
    \"description\": \"Rerum ullam quia molestiae.\",
    \"realisation\": 6,
    \"hotel_id\": 7,
    \"items\": [
        {
            \"item_id\": 11,
            \"quantity\": 80,
            \"number\": 26,
            \"amount\": 3
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/budgets"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "jlmy",
    "type": "expense",
    "description": "Rerum ullam quia molestiae.",
    "realisation": 6,
    "hotel_id": 7,
    "items": [
        {
            "item_id": 11,
            "quantity": 80,
            "number": 26,
            "amount": 3
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/budgets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: jlmy

type   string   

Example: expense

Must be one of:
  • expense
  • revenue
description   string  optional  

Example: Rerum ullam quia molestiae.

realisation   number  optional  

Le champ value doit être au moins 0. Le champ value ne peut être supérieur à 100. Example: 6

hotel_id   integer   

The id of an existing record in the hotels table. Example: 7

items   object[]   

Le champ value doit contenir au moins 1 éléments.

item_id   integer   

Example: 11

quantity   integer  optional  

Le champ value doit être au moins 1. Example: 80

number   integer  optional  

Le champ value doit être au moins 1. Example: 26

amount   number   

Le champ value doit être au moins 0. Example: 3

Mettre à jour un budget

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/budgets/7" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"lktwu\",
    \"type\": \"revenue\",
    \"description\": \"Ut iure omnis voluptatem et.\",
    \"realisation\": 6,
    \"items\": [
        {
            \"item_id\": 2,
            \"quantity\": 21,
            \"number\": 75,
            \"amount\": 75
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/budgets/7"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "lktwu",
    "type": "revenue",
    "description": "Ut iure omnis voluptatem et.",
    "realisation": 6,
    "items": [
        {
            "item_id": 2,
            "quantity": 21,
            "number": 75,
            "amount": 75
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/budgets/{budget_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

budget_id   integer   

The ID of the budget. Example: 7

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: lktwu

type   string  optional  

Example: revenue

Must be one of:
  • expense
  • revenue
description   string  optional  

Example: Ut iure omnis voluptatem et.

realisation   number  optional  

Le champ value doit être au moins 0. Le champ value ne peut être supérieur à 100. Example: 6

items   object[]  optional  

Le champ value doit contenir au moins 1 éléments.

item_id   integer  optional  

This field is required when items is present. Example: 2

quantity   integer  optional  

Le champ value doit être au moins 1. Example: 21

number   integer  optional  

Le champ value doit être au moins 1. Example: 75

amount   number  optional  

This field is required when items is present. Le champ value doit être au moins 0. Example: 75

Archiver (soft delete) les budgets

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/budgets/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/budgets/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());

Request      

POST api/budgets/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Restaurer les budgets archivés

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/budgets/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/budgets/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());

Request      

POST api/budgets/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Supprimer définitivement les budgets

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/budgets/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/budgets/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/budgets/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Calculer la progression détaillée par service/expense_type

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/budgets/progress" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hotel_id\": 4,
    \"start_date\": \"2026-05-04T09:37:23\",
    \"end_date\": \"2113-10-04\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/budgets/progress"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hotel_id": 4,
    "start_date": "2026-05-04T09:37:23",
    "end_date": "2113-10-04"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/budgets/progress

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

hotel_id   integer   

The id of an existing record in the hotels table. Example: 4

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

end_date   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à start_date. Example: 2113-10-04

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\": 20,
    \"filter_value\": \"quidem\",
    \"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": 20,
    "filter_value": "quidem",
    "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."
"..."
}
 

Request      

POST api/room-categories/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

required. Example: 1

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Example: quidem

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 13

trashed   boolean  optional  

Example: false

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."
}
 

Request      

GET api/room-categories/{room_category}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_category   integer   

Example: 9

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\": 19,
            \"name\": \"voluptas\",
            \"description\": \"Dolores laborum voluptatum dolorum odit accusantium nulla in sapiente.\"
        }
    ]
}"
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": 19,
            "name": "voluptas",
            "description": "Dolores laborum voluptatum dolorum odit accusantium nulla in sapiente."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

room_categories   object[]   

Le champ value doit contenir au moins 1 éléments.

hotel_id   integer   

The id of an existing record in the hotels table. Example: 19

name   string   

Example: voluptas

description   string  optional  

Example: Dolores laborum voluptatum dolorum odit accusantium nulla in sapiente.

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\": \"reiciendis\",
    \"hotel_id\": 19,
    \"description\": \"Animi modi eum ut qui est vel quas.\"
}"
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": "reiciendis",
    "hotel_id": 19,
    "description": "Animi modi eum ut qui est vel quas."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/room-categories/{room_category}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_category   integer   

Example: 9

Body Parameters

name   string   

Example: reiciendis

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 19

description   string  optional  

Example: Animi modi eum ut qui est vel quas.

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/room-categories/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the room_categories table.

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\": [
        14
    ]
}"
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": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-categories/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        13
    ]
}"
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": [
        13
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/room-categories/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 26,
    \"nbre_items\": 9,
    \"filter_value\": \"deserunt\",
    \"hotel_id\": 11,
    \"room_type_id\": 20,
    \"room_category_id\": 10,
    \"service_id\": 18,
    \"status\": \"busy\",
    \"floor\": 15,
    \"number_of_room\": 19
}"
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": 26,
    "nbre_items": 9,
    "filter_value": "deserunt",
    "hotel_id": 11,
    "room_type_id": 20,
    "room_category_id": 10,
    "service_id": 18,
    "status": "busy",
    "floor": 15,
    "number_of_room": 19
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/rooms/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 26

nbre_items   integer  optional  

Example: 9

filter_value   string  optional  

Example: deserunt

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 11

room_type_id   integer  optional  

The id of an existing record in the room_types table. Example: 20

room_category_id   integer  optional  

The id of an existing record in the room_categories table. Example: 10

service_id   integer  optional  

Example: 18

status   string  optional  

Example: busy

Must be one of:
  • free
  • busy
floor   integer  optional  

Example: 15

number_of_room   integer  optional  

Example: 19

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."
}
 

Request      

GET api/rooms/{room_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_id   integer   

The ID of the room. Example: 1

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\": 14,
            \"room_type_id\": 8,
            \"room_category_id\": 4,
            \"service_id\": 8,
            \"floor\": 8,
            \"number\": 17,
            \"price\": 10,
            \"number_of_room\": 10,
            \"capacity\": 7,
            \"status\": \"busy\",
            \"name\": \"error\",
            \"description\": \"Voluptatem ullam est totam quia quos provident.\",
            \"image\": \"quo\"
        }
    ]
}"
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": 14,
            "room_type_id": 8,
            "room_category_id": 4,
            "service_id": 8,
            "floor": 8,
            "number": 17,
            "price": 10,
            "number_of_room": 10,
            "capacity": 7,
            "status": "busy",
            "name": "error",
            "description": "Voluptatem ullam est totam quia quos provident.",
            "image": "quo"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/rooms

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

rooms   object[]   
hotel_id   integer   

Example: 14

room_type_id   integer   

Example: 8

room_category_id   integer   

Example: 4

service_id   integer   

Example: 8

floor   integer  optional  

Example: 8

number   integer  optional  

Example: 17

price   integer   

Example: 10

number_of_room   integer  optional  

Example: 10

capacity   integer   

Example: 7

status   string   

Example: busy

Must be one of:
  • free
  • busy
name   string   

Example: error

description   string  optional  

Example: Voluptatem ullam est totam quia quos provident.

image   string  optional  

Example: quo

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\": 16,
    \"room_type_id\": 8,
    \"room_category_id\": 18,
    \"service_id\": 10,
    \"floor\": 19,
    \"number\": 9,
    \"price\": 12,
    \"number_of_room\": 7,
    \"image\": \"dolores\",
    \"capacity\": 17,
    \"status\": \"free\",
    \"description\": \"Sunt autem dolores distinctio dolorem vel eos.\"
}"
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": 16,
    "room_type_id": 8,
    "room_category_id": 18,
    "service_id": 10,
    "floor": 19,
    "number": 9,
    "price": 12,
    "number_of_room": 7,
    "image": "dolores",
    "capacity": 17,
    "status": "free",
    "description": "Sunt autem dolores distinctio dolorem vel eos."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/rooms/{room_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_id   integer   

The ID of the room. Example: 1

Body Parameters

hotel_id   integer  optional  

Example: 16

room_type_id   integer  optional  

Example: 8

room_category_id   integer  optional  

Example: 18

service_id   integer  optional  

Example: 10

floor   integer  optional  

Example: 19

number   integer  optional  

Example: 9

price   integer  optional  

Example: 12

number_of_room   integer  optional  

Example: 7

image   string  optional  

Example: dolores

capacity   integer  optional  

Example: 17

status   string  optional  

Example: free

Must be one of:
  • free
  • busy
description   string  optional  

Example: Sunt autem dolores distinctio dolorem vel eos.

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\": [
        3
    ]
}"
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": [
        3
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/rooms/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the rooms table.

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/rooms/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/rooms/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": \"non\"
}"
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": "non"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/find-licence

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

cle   string   

Example: non

Récuperer les clés d'applications

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/keys/iste" \
    --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/iste"
);

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."
}
 

Request      

GET api/keys/{id?}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string  optional  

The ID of the . Example: iste

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\": 46,
    \"nbre_items\": 11,
    \"filter_value\": \"quas\",
    \"customer_id\": 7,
    \"payment_mode\": \"magnam\",
    \"status\": \"pending\",
    \"payment_status\": \"advance\",
    \"product_id\": 16,
    \"service_id\": 4,
    \"date_start\": \"2026-05-04T09:37:23\",
    \"date_end\": \"2026-05-04T09:37:23\",
    \"hotel_id\": 11
}"
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": 46,
    "nbre_items": 11,
    "filter_value": "quas",
    "customer_id": 7,
    "payment_mode": "magnam",
    "status": "pending",
    "payment_status": "advance",
    "product_id": 16,
    "service_id": 4,
    "date_start": "2026-05-04T09:37:23",
    "date_end": "2026-05-04T09:37:23",
    "hotel_id": 11
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/orders/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 46

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: quas

customer_id   integer  optional  

The id of an existing record in the users table. Example: 7

payment_mode   string  optional  

Example: magnam

status   string  optional  

Example: pending

Must be one of:
  • pending
  • paid
  • cancelled
  • confirmed
payment_status   string  optional  

Example: advance

Must be one of:
  • none
  • advance
  • completed
product_id   integer  optional  

The id of an existing record in the products table. Example: 16

service_id   integer  optional  

The id of an existing record in the services table. Example: 4

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 11

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."
}
 

Request      

GET api/orders/{order_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

order_id   integer   

The ID of the order. Example: 3

Ajouter une commande

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/orders" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"customer_id\": 16,
    \"payment_mode\": \"quae\",
    \"room_id\": 18,
    \"room_service_id\": 10,
    \"status\": \"pending\",
    \"delivery_date\": \"2026-05-04T09:37:23\",
    \"products\": [
        {
            \"id\": 2,
            \"quantity\": 51
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/orders"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "customer_id": 16,
    "payment_mode": "quae",
    "room_id": 18,
    "room_service_id": 10,
    "status": "pending",
    "delivery_date": "2026-05-04T09:37:23",
    "products": [
        {
            "id": 2,
            "quantity": 51
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/orders

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

customer_id   integer  optional  

The id of an existing record in the users table. Example: 16

payment_mode   string  optional  

Example: quae

room_id   integer  optional  

The id of an existing record in the rooms table. Example: 18

room_service_id   integer  optional  

The id of an existing record in the room_services table. Example: 10

status   string  optional  

Example: pending

Must be one of:
  • pending
  • paid
  • cancelled
  • confirmed
delivery_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

products   object[]   
id   integer   

The id of an existing record in the products table. Example: 2

quantity   integer   

Le champ value doit être au moins 1. Example: 51

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\": 11,
    \"payment_mode\": \"est\",
    \"room_id\": 17,
    \"room_service_id\": 3,
    \"status\": \"paid\",
    \"delivery_date\": \"2026-05-04T09:37:23\",
    \"products\": [
        {
            \"id\": 3,
            \"quantity\": 2
        }
    ]
}"
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": 11,
    "payment_mode": "est",
    "room_id": 17,
    "room_service_id": 3,
    "status": "paid",
    "delivery_date": "2026-05-04T09:37:23",
    "products": [
        {
            "id": 3,
            "quantity": 2
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/orders/{order_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

order_id   integer   

The ID of the order. Example: 3

Body Parameters

customer_id   integer  optional  

The id of an existing record in the users table. Example: 11

payment_mode   string  optional  

Example: est

room_id   integer  optional  

The id of an existing record in the rooms table. Example: 17

room_service_id   integer  optional  

The id of an existing record in the room_services table. Example: 3

status   string  optional  

Example: paid

Must be one of:
  • pending
  • paid
  • cancelled
  • confirmed
delivery_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

products   object[]  optional  
id   integer   

The id of an existing record in the products table. Example: 3

quantity   integer   

Le champ value doit être au moins 1. Example: 2

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\": [
        7
    ]
}"
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": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/orders/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/orders/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        12
    ]
}"
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": [
        12
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/orders/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 3,
    \"nbre_items\": 6,
    \"filter_value\": \"ad\",
    \"position\": \"aut\",
    \"status\": \"Pending\",
    \"trashed\": false
}"
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": 3,
    "nbre_items": 6,
    "filter_value": "ad",
    "position": "aut",
    "status": "Pending",
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Example: 3

nbre_items   integer  optional  

Example: 6

filter_value   string  optional  

Example: ad

position   string  optional  

Example: aut

status   string  optional  

Example: Pending

Must be one of:
  • Active
  • Terminated
  • Pending
trashed   boolean  optional  

Example: false

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/molestias" \
    --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/molestias"
);

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."
}
 

Request      

GET api/contracts/{contract}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contract   string   

The contract. Example: molestias

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\": 19,
    \"user_approve_id\": 4,
    \"type\": \"reprehenderit\",
    \"description\": \"Neque delectus autem fuga beatae asperiores velit magni neque.\",
    \"start_date\": \"2026-05-04T09:37:23\",
    \"duration\": 19,
    \"working_hours\": \"dolore\",
    \"position\": \"nemo\",
    \"gross_salary\": 32,
    \"status\": \"Active\",
    \"service_benefits\": \"sint\",
    \"bonus\": \"hic\",
    \"number_days_off\": 13
}"
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": 19,
    "user_approve_id": 4,
    "type": "reprehenderit",
    "description": "Neque delectus autem fuga beatae asperiores velit magni neque.",
    "start_date": "2026-05-04T09:37:23",
    "duration": 19,
    "working_hours": "dolore",
    "position": "nemo",
    "gross_salary": 32,
    "status": "Active",
    "service_benefits": "sint",
    "bonus": "hic",
    "number_days_off": 13
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 19

user_approve_id   integer   

The id of an existing record in the users table. Example: 4

type   string   

Example: reprehenderit

description   string  optional  

Example: Neque delectus autem fuga beatae asperiores velit magni neque.

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

duration   integer  optional  

Le champ value doit être au moins 1. Example: 19

working_hours   string   

Example: dolore

position   string   

Example: nemo

gross_salary   number   

Le champ value doit être au moins 0. Example: 32

status   string  optional  

Example: Active

Must be one of:
  • Active
  • Terminated
  • Pending
service_benefits   string  optional  

Example: sint

bonus   string  optional  

Example: hic

number_days_off   integer  optional  

Example: 13

Met à jour les informations d’un contrat donné.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/contracts/voluptate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 20,
    \"user_approve_id\": 9,
    \"type\": \"Stage\",
    \"description\": \"Qui vel ea et asperiores eum.\",
    \"start_date\": \"2026-05-04T09:37:23\",
    \"duration\": 3,
    \"working_hours\": \"aut\",
    \"position\": \"autem\",
    \"gross_salary\": 42,
    \"status\": \"Active\",
    \"service_benefits\": \"quibusdam\",
    \"bonus\": \"perferendis\",
    \"number_days_off\": 15
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/contracts/voluptate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 20,
    "user_approve_id": 9,
    "type": "Stage",
    "description": "Qui vel ea et asperiores eum.",
    "start_date": "2026-05-04T09:37:23",
    "duration": 3,
    "working_hours": "aut",
    "position": "autem",
    "gross_salary": 42,
    "status": "Active",
    "service_benefits": "quibusdam",
    "bonus": "perferendis",
    "number_days_off": 15
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/contracts/{contract}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contract   string   

The contract. Example: voluptate

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 20

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 9

type   string  optional  

Example: Stage

Must be one of:
  • CDD
  • CDI
  • Stage
description   string  optional  

Example: Qui vel ea et asperiores eum.

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

duration   integer  optional  

Le champ value doit être au moins 1. Example: 3

working_hours   string  optional  

Example: aut

position   string  optional  

Example: autem

gross_salary   number  optional  

Le champ value doit être au moins 0. Example: 42

status   string  optional  

Example: Active

Must be one of:
  • Active
  • Terminated
  • Pending
service_benefits   string  optional  

Example: quibusdam

bonus   string  optional  

Example: perferendis

number_days_off   integer  optional  

Example: 15

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\": [
        16
    ]
}"
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": [
        16
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        8
    ]
}"
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": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/contracts/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 25,
    \"nbre_items\": 33,
    \"filter_value\": \"fugit\",
    \"supplier_id\": 8,
    \"hotel_id\": 7,
    \"purchase_order_id\": 8,
    \"user_id\": 7,
    \"created_by\": 14,
    \"responsible_id\": 16,
    \"service_id\": 15,
    \"payment_method\": \"MOMO\",
    \"status\": \"approved\",
    \"reference\": \"neque\",
    \"date_start\": \"2026-05-04T09:37:23\",
    \"date_end\": \"2026-05-04T09:37:23\",
    \"expense_type_id\": 12,
    \"service_ids\": [
        17
    ]
}"
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": 25,
    "nbre_items": 33,
    "filter_value": "fugit",
    "supplier_id": 8,
    "hotel_id": 7,
    "purchase_order_id": 8,
    "user_id": 7,
    "created_by": 14,
    "responsible_id": 16,
    "service_id": 15,
    "payment_method": "MOMO",
    "status": "approved",
    "reference": "neque",
    "date_start": "2026-05-04T09:37:23",
    "date_end": "2026-05-04T09:37:23",
    "expense_type_id": 12,
    "service_ids": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/disbursements/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 25

nbre_items   integer  optional  

Le champ value doit être au moins 1. Example: 33

filter_value   string  optional  

Example: fugit

supplier_id   integer  optional  

The id of an existing record in the users table. Example: 8

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 7

purchase_order_id   integer  optional  

The id of an existing record in the purchase_orders table. Example: 8

user_id   integer  optional  

The id of an existing record in the users table. Example: 7

created_by   integer  optional  

The id of an existing record in the users table. Example: 14

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 16

service_id   integer  optional  

The id of an existing record in the services table. Example: 15

payment_method   string  optional  

Example: MOMO

Must be one of:
  • Cash
  • Bank
  • OM
  • MOMO
status   string  optional  

Example: approved

Must be one of:
  • pending
  • approved
  • rejected
reference   string  optional  

Example: neque

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

expense_type_id   integer  optional  

Example: 12

service_ids   integer[]  optional  

The id of an existing record in the services table.

Enregistrer un nouveau décaissement

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/disbursements" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_method\": \"Bank\",
    \"status\": \"rejected\",
    \"invoice_image\": \"quam\",
    \"reasons\": \"reiciendis\",
    \"total_amount\": 76,
    \"disbursement_date\": \"2026-05-04T09:37:23\",
    \"responsible_id\": \"mollitia\",
    \"validation_date\": \"2026-05-04T09:37:23\",
    \"salary_components\": [
        {
            \"salary_component_id\": \"consequatur\",
            \"coef\": 81,
            \"base_amount\": 50,
            \"coef_patronal\": 24,
            \"base_patronal\": 10
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/disbursements"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "payment_method": "Bank",
    "status": "rejected",
    "invoice_image": "quam",
    "reasons": "reiciendis",
    "total_amount": 76,
    "disbursement_date": "2026-05-04T09:37:23",
    "responsible_id": "mollitia",
    "validation_date": "2026-05-04T09:37:23",
    "salary_components": [
        {
            "salary_component_id": "consequatur",
            "coef": 81,
            "base_amount": 50,
            "coef_patronal": 24,
            "base_patronal": 10
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/disbursements

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

payment_method   string   

Example: Bank

Must be one of:
  • Cash
  • Bank
  • OM
  • MOMO
status   string  optional  

Example: rejected

Must be one of:
  • pending
  • approved
  • rejected
expense_type_id   string  optional  

The id of an existing record in the expense_types table.

invoice_image   string  optional  

Example: quam

reasons   string  optional  

Example: reiciendis

total_amount   number  optional  

Le champ value doit être au moins 0. Example: 76

disbursement_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

responsible_id   string   

The id of an existing record in the users table. Example: mollitia

user_id   string  optional  

The id of an existing record in the users table.

purchase_order_id   string  optional  

The id of an existing record in the purchase_orders table. This field is required when service_id is not present.

service_id   string  optional  

The id of an existing record in the services table. This field is required when purchase_order_id is not present.

validation_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

salary_components   object[]  optional  
salary_component_id   string   

The id of an existing record in the salary_components table. Example: consequatur

coef   number  optional  

Le champ value doit être au moins 0. Example: 81

base_amount   number  optional  

Le champ value doit être au moins 0. Example: 50

coef_patronal   number  optional  

Le champ value doit être au moins 0. Example: 24

base_patronal   number  optional  

Le champ value doit être au moins 0. Example: 10

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."
}
 

Request      

GET api/disbursements/{disbursement_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

disbursement_id   integer   

The ID of the disbursement. Example: 6

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\": \"rejected\",
    \"invoice_image\": \"officia\",
    \"reasons\": \"hic\",
    \"total_amount\": 50,
    \"disbursement_date\": \"2026-05-04T09:37:23\",
    \"validation_date\": \"2026-05-04T09:37:23\",
    \"salary_components\": [
        {
            \"salary_component_id\": \"officiis\",
            \"coef\": 74,
            \"base_amount\": 43,
            \"coef_patronal\": 20,
            \"base_patronal\": 77
        }
    ]
}"
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": "rejected",
    "invoice_image": "officia",
    "reasons": "hic",
    "total_amount": 50,
    "disbursement_date": "2026-05-04T09:37:23",
    "validation_date": "2026-05-04T09:37:23",
    "salary_components": [
        {
            "salary_component_id": "officiis",
            "coef": 74,
            "base_amount": 43,
            "coef_patronal": 20,
            "base_patronal": 77
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/disbursements/{disbursement_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

disbursement_id   integer   

The ID of the disbursement. Example: 6

Body Parameters

payment_method   string  optional  

Example: OM

Must be one of:
  • Cash
  • Bank
  • OM
  • MOMO
status   string  optional  

Example: rejected

Must be one of:
  • pending
  • approved
  • rejected
expense_type_id   string  optional  

The id of an existing record in the expense_types table.

invoice_image   string  optional  

Example: officia

reasons   string  optional  

Example: hic

total_amount   number  optional  

Le champ value doit être au moins 0. Example: 50

disbursement_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

responsible_id   string  optional  

The id of an existing record in the users table.

user_id   string  optional  

The id of an existing record in the users table.

purchase_order_id   string  optional  

The id of an existing record in the purchase_orders table.

service_id   string  optional  

The id of an existing record in the services table.

validation_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

salary_components   object[]  optional  
salary_component_id   string   

The id of an existing record in the salary_components table. Example: officiis

coef   number  optional  

Le champ value doit être au moins 0. Example: 74

base_amount   number  optional  

Le champ value doit être au moins 0. Example: 43

coef_patronal   number  optional  

Le champ value doit être au moins 0. Example: 20

base_patronal   number  optional  

Le champ value doit être au moins 0. Example: 77

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\": [
        9
    ]
}"
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": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/disbursements/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/disbursements/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        2
    ]
}"
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": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/disbursements/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": \"optio\",
    \"responsible_id\": 18,
    \"hotel_id\": 8,
    \"priority\": \"medium\",
    \"status\": \"accepted\",
    \"article_ids\": [
        1
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/supply-demands/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter_value": "optio",
    "responsible_id": 18,
    "hotel_id": 8,
    "priority": "medium",
    "status": "accepted",
    "article_ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

filter_value   string  optional  

Example: optio

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 18

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 8

priority   string  optional  

Example: medium

Must be one of:
  • high
  • medium
  • low
status   string  optional  

Example: accepted

Must be one of:
  • pending
  • accepted
  • refused
article_ids   integer[]  optional  

The id of an existing record in the articles table.

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."
}
 

Request      

GET api/supply-demands/{supply_demand_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

supply_demand_id   integer   

The ID of the supply demand. Example: 1

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\": \"yjwwyhpokjlunkwnu\",
    \"description\": \"Et mollitia et vel adipisci commodi et ab minima.\",
    \"responsible_id\": 17,
    \"status\": \"refused\",
    \"priority\": \"medium\",
    \"articles\": [
        {
            \"id\": 18,
            \"unit_price\": 15,
            \"quantity\": 25,
            \"supplier_id\": 18
        }
    ]
}"
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": "yjwwyhpokjlunkwnu",
    "description": "Et mollitia et vel adipisci commodi et ab minima.",
    "responsible_id": 17,
    "status": "refused",
    "priority": "medium",
    "articles": [
        {
            "id": 18,
            "unit_price": 15,
            "quantity": 25,
            "supplier_id": 18
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yjwwyhpokjlunkwnu

description   string  optional  

Example: Et mollitia et vel adipisci commodi et ab minima.

responsible_id   integer   

The id of an existing record in the users table. Example: 17

status   string  optional  

Example: refused

Must be one of:
  • pending
  • accepted
  • refused
priority   string   

Example: medium

Must be one of:
  • high
  • medium
  • low
articles   object[]   

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the articles table. Example: 18

unit_price   integer  optional  

Example: 15

quantity   integer   

Le champ value doit être au moins 1. Example: 25

supplier_id   integer   

The id of an existing record in the users table. Example: 18

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\": \"kpfpofzssynfoyxr\",
    \"description\": \"Libero dolores autem omnis distinctio ut alias ipsum iste.\",
    \"responsible_id\": 15,
    \"status\": \"accepted\",
    \"priority\": \"high\",
    \"articles\": [
        {
            \"id\": 4,
            \"unit_price\": 17,
            \"quantity\": 9,
            \"supplier_id\": 13
        }
    ]
}"
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": "kpfpofzssynfoyxr",
    "description": "Libero dolores autem omnis distinctio ut alias ipsum iste.",
    "responsible_id": 15,
    "status": "accepted",
    "priority": "high",
    "articles": [
        {
            "id": 4,
            "unit_price": 17,
            "quantity": 9,
            "supplier_id": 13
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/supply-demands/{supply_demand_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

supply_demand_id   integer   

The ID of the supply demand. Example: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: kpfpofzssynfoyxr

description   string  optional  

Example: Libero dolores autem omnis distinctio ut alias ipsum iste.

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 15

status   string  optional  

Example: accepted

Must be one of:
  • pending
  • accepted
  • refused
priority   string  optional  

Example: high

Must be one of:
  • high
  • medium
  • low
articles   object[]  optional  

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the articles table. Example: 4

unit_price   integer  optional  

Example: 17

quantity   integer   

Le champ value doit être au moins 1. Example: 9

supplier_id   integer   

The id of an existing record in the users table. Example: 13

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\": [
        12
    ]
}"
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": [
        12
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supply_demand_ids   integer[]  optional  

The id of an existing record in the supply_demands table.

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/supply-demands/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

supply_demand_ids   integer[]  optional  

The id of an existing record in the supply_demands table.

Demande d'explication / Explanation Request

Gestion des demandes d'explication

Afficher les demandes d'explication

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/explanation-requests/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 30,
    \"nbre_items\": 21
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/explanation-requests/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 30,
    "nbre_items": 21
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/explanation-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 30

nbre_items   integer  optional  

Le champ value doit être au moins 1. Le champ value ne peut être supérieur à 1000. Example: 21

Afficher une demande d'explication spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/explanation-requests/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/explanation-requests/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."
}
 

Request      

GET api/explanation-requests/{explanation_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

explanation_request   integer   

Example: 6

Creer une demande d'explication

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/explanation-requests" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"zg\",
    \"description\": \"Sequi consequatur sed qui.\",
    \"idUser\": 19,
    \"idResponsable\": 16,
    \"image\": \"occaecati\",
    \"comments\": \"molestias\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/explanation-requests"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "zg",
    "description": "Sequi consequatur sed qui.",
    "idUser": 19,
    "idResponsable": 16,
    "image": "occaecati",
    "comments": "molestias"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/explanation-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: zg

description   string  optional  

Example: Sequi consequatur sed qui.

idUser   integer   

The id of an existing record in the users table. Example: 19

idResponsable   integer   

The id of an existing record in the users table. Example: 16

image   string  optional  

Example: occaecati

comments   string  optional  

Example: molestias

Mettre a jour une demande d'explication

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/explanation-requests/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"yfxumolclltzwbuyuaamrejtq\",
    \"description\": \"Beatae molestiae iusto quisquam sequi laborum consequuntur officiis assumenda.\",
    \"idUser\": 13,
    \"idResponsable\": 17,
    \"image\": \"culpa\",
    \"comments\": \"neque\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/explanation-requests/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "yfxumolclltzwbuyuaamrejtq",
    "description": "Beatae molestiae iusto quisquam sequi laborum consequuntur officiis assumenda.",
    "idUser": 13,
    "idResponsable": 17,
    "image": "culpa",
    "comments": "neque"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/explanation-requests/{explanation_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

explanation_request   integer   

Example: 16

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yfxumolclltzwbuyuaamrejtq

description   string  optional  

Example: Beatae molestiae iusto quisquam sequi laborum consequuntur officiis assumenda.

idUser   integer  optional  

The id of an existing record in the users table. Example: 13

idResponsable   integer  optional  

The id of an existing record in the users table. Example: 17

image   string  optional  

Example: culpa

comments   string  optional  

Example: neque

Archiver (soft delete) les demandes d'explication.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/explanation-requests/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/explanation-requests/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());

Request      

POST api/explanation-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the explanation_requests table.

Restaurer les demandes d'explication archivées.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/explanation-requests/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/explanation-requests/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/explanation-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the explanation_requests table.

Supprimer définitivement les demandes d'explication spécifiées.

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/explanation-requests/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        9
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/explanation-requests/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        9
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/explanation-requests/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]  optional  

The id of an existing record in the explanation_requests table.

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\": 3,
    \"user_approve_id\": 5,
    \"status\": \"rejected\",
    \"archive\": \"with_trashed\",
    \"date\": \"2026-05-04T09:37:23\",
    \"page_items\": 11,
    \"nbre_items\": 18,
    \"filter_value\": \"itaque\"
}"
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": 3,
    "user_approve_id": 5,
    "status": "rejected",
    "archive": "with_trashed",
    "date": "2026-05-04T09:37:23",
    "page_items": 11,
    "nbre_items": 18,
    "filter_value": "itaque"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/holidays/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 3

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 5

status   string  optional  

Example: rejected

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
archive   string  optional  

Example: with_trashed

Must be one of:
  • with_trashed
  • only_trashed
date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

page_items   integer  optional  

Example: 11

nbre_items   integer  optional  

Example: 18

filter_value   string  optional  

Example: itaque

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."
}
 

Request      

GET api/holidays/{holiday_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

holiday_id   integer   

The ID of the holiday. Example: 13

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\": \"officia\",
    \"start_date\": \"2066-11-22\",
    \"end_date\": \"2117-07-19\",
    \"days_taken\": 9,
    \"reason\": \"mygmronesuhmzvacvogfdwsz\",
    \"user_approve_id\": 7
}"
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": "officia",
    "start_date": "2066-11-22",
    "end_date": "2117-07-19",
    "days_taken": 9,
    "reason": "mygmronesuhmzvacvogfdwsz",
    "user_approve_id": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/holidays

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

type   string   

Example: officia

start_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à today. Example: 2066-11-22

end_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2117-07-19

days_taken   integer   

Example: 9

reason   string   

Le champ value ne peut contenir plus de 255 caractères. Example: mygmronesuhmzvacvogfdwsz

user_approve_id   integer   

The id of an existing record in the users table. Example: 7

Modifier une demande de congé

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/holidays/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"itaque\",
    \"start_date\": \"2059-03-13\",
    \"end_date\": \"2033-02-25\",
    \"days_taken\": 10,
    \"reason\": \"rstnwrnnofggqeb\",
    \"status\": \"in_progress\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/holidays/10"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "itaque",
    "start_date": "2059-03-13",
    "end_date": "2033-02-25",
    "days_taken": 10,
    "reason": "rstnwrnnofggqeb",
    "status": "in_progress"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/holidays/{holiday_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

holiday_id   integer   

The ID of the holiday. Example: 10

Body Parameters

type   string  optional  

Example: itaque

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à today. Example: 2059-03-13

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2033-02-25

days_taken   integer  optional  

Example: 10

reason   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rstnwrnnofggqeb

status   string  optional  

Example: in_progress

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

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\": [
        14
    ]
}"
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": [
        14
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/holidays/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idHolidays   integer[]   

The id of an existing record in the holidays table.

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\": [
        5
    ]
}"
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": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/holidays/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idHolidays   integer[]   

The id of an existing record in the holidays table.

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\": [
        6
    ]
}"
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": [
        6
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/holidays/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

idHolidays   integer[]   

The id of an existing record in the holidays table.

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\": 17,
    \"filterValue\": \"mqaxrfgonxmlzqwdsbeytu\",
    \"departure\": \"2026-05-04T09:37:23\",
    \"return\": \"2002-07-24\",
    \"duration\": 2,
    \"archive\": \"only_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": 17,
    "filterValue": "mqaxrfgonxmlzqwdsbeytu",
    "departure": "2026-05-04T09:37:23",
    "return": "2002-07-24",
    "duration": 2,
    "archive": "only_trashed"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 9

nbre_items   integer  optional  

Le champ value doit être au moins 1. Le champ value ne peut être supérieur à 10000. Example: 17

filterValue   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mqaxrfgonxmlzqwdsbeytu

departure   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

return   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après datedeparture. Example: 2002-07-24

duration   integer  optional  

Le champ value doit être au moins 1. Example: 2

status   string  optional  
archive   string  optional  

Example: only_trashed

Must be one of:
  • with_trashed
  • only_trashed

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/vero" \
    --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/vero"
);

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."
}
 

Request      

GET api/permission-requests/{permissions_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permissions_request   string   

Example: vero

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\": \"lxiotlhsnk\",
    \"departure\": \"2033-11-04\",
    \"return\": \"2069-09-18\",
    \"duration\": 73,
    \"user_approve_id\": 7,
    \"status\": \"rejected\"
}"
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": "lxiotlhsnk",
    "departure": "2033-11-04",
    "return": "2069-09-18",
    "duration": 73,
    "user_approve_id": 7,
    "status": "rejected"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

reason   string   

Le champ value ne peut contenir plus de 255 caractères. Example: lxiotlhsnk

departure   string   

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à today. Example: 2033-11-04

return   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après departure. Example: 2069-09-18

duration   integer  optional  

Le champ value doit être au moins 1. Example: 73

user_approve_id   integer   

The id of an existing record in the users table. Example: 7

status   string  optional  

Example: rejected

Must be one of:
  • pending
  • approved
  • rejected

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/consequatur" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"agkdlqolbywbriqepraapecc\",
    \"datedeparture\": \"2052-02-22\",
    \"dateRetour\": \"2030-09-05\",
    \"duration\": 71,
    \"status\": \"approved\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permission-requests/consequatur"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reason": "agkdlqolbywbriqepraapecc",
    "datedeparture": "2052-02-22",
    "dateRetour": "2030-09-05",
    "duration": 71,
    "status": "approved"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/permission-requests/{permissions_request}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permissions_request   string   

Example: consequatur

Body Parameters

reason   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: agkdlqolbywbriqepraapecc

datedeparture   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à today. Example: 2052-02-22

dateRetour   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après datedeparture. Example: 2030-09-05

duration   integer  optional  

Le champ value doit être au moins 1. Example: 71

status   string  optional  

Example: approved

Must be one of:
  • pending
  • approved
  • rejected

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\": [
        20
    ]
}"
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": [
        20
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        9
    ]
}"
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": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        5
    ]
}"
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": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permission-requests/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 54,
    \"nbre_items\": 1,
    \"filter_value\": \"esse\",
    \"seller_id\": 20,
    \"hotel_id\": 15,
    \"order_id\": 4,
    \"service_id\": 1,
    \"client_id\": 14,
    \"created_by\": 13,
    \"date_start\": \"2026-05-04T09:37:23\",
    \"date_end\": \"2026-05-04T09:37:23\",
    \"cashin_type\": \"order\",
    \"payment_method\": \"in\"
}"
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": 54,
    "nbre_items": 1,
    "filter_value": "esse",
    "seller_id": 20,
    "hotel_id": 15,
    "order_id": 4,
    "service_id": 1,
    "client_id": 14,
    "created_by": 13,
    "date_start": "2026-05-04T09:37:23",
    "date_end": "2026-05-04T09:37:23",
    "cashin_type": "order",
    "payment_method": "in"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/cash-ins/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 54

nbre_items   integer  optional  

Example: 1

filter_value   string  optional  

Example: esse

seller_id   integer  optional  

The id of an existing record in the users table. Example: 20

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 15

order_id   integer  optional  

The id of an existing record in the orders table. Example: 4

service_id   integer  optional  

The id of an existing record in the services table. Example: 1

client_id   integer  optional  

The id of an existing record in the users table. Example: 14

created_by   integer  optional  

The id of an existing record in the users table. Example: 13

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

cashin_type   integer  optional  

Example: order

Must be one of:
  • booking
  • order
payment_method   string  optional  

Example: in

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."
}
 

Request      

GET api/cash-ins/{cash_in}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

cash_in   integer   

Example: 11

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\": 1,
    \"service_id\": 1,
    \"booking_id\": 17,
    \"payment_method\": \"numquam\",
    \"type\": \"est\",
    \"amount\": 3184743,
    \"date\": \"2026-05-04\"
}"
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": 1,
    "service_id": 1,
    "booking_id": 17,
    "payment_method": "numquam",
    "type": "est",
    "amount": 3184743,
    "date": "2026-05-04"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/cash-ins

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

order_id   integer  optional  

Example: 1

service_id   integer   

Example: 1

booking_id   integer  optional  

Example: 17

payment_method   string   

Example: numquam

type   string  optional  

Example: est

amount   number   

Example: 3184743

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

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\": 11,
    \"service_id\": 9,
    \"booking_id\": 14,
    \"payment_method\": \"labore\",
    \"amount\": 10.32
}"
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": 11,
    "service_id": 9,
    "booking_id": 14,
    "payment_method": "labore",
    "amount": 10.32
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/cash-ins/{cash_in}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

cash_in   integer   

Example: 11

Body Parameters

order_id   integer  optional  

Example: 11

service_id   integer  optional  

Example: 9

booking_id   integer  optional  

Example: 14

payment_method   string  optional  

Example: labore

amount   number  optional  

Example: 10.32

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\": [
        19
    ]
}"
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": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/cash-ins/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        15
    ]
}"
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": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/cash-ins/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        2
    ]
}"
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": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/cash-ins/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 15,
    \"nbre_items\": 10,
    \"filter_value\": \"adipisci\",
    \"service_id\": 2,
    \"hotel_id\": 13,
    \"type\": \"external\",
    \"archive\": \"only_trashed\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/events/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 15,
    "nbre_items": 10,
    "filter_value": "adipisci",
    "service_id": 2,
    "hotel_id": 13,
    "type": "external",
    "archive": "only_trashed"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/events/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 15

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

Example: adipisci

service_id   integer  optional  

The id of an existing record in the services table. Example: 2

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 13

type   string  optional  

Example: external

Must be one of:
  • internal
  • external
archive   string  optional  

Example: only_trashed

Must be one of:
  • with_trashed
  • only_trashed

Afficher un évènement

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/events/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/events/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."
}
 

Request      

GET api/events/{event_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

event_id   integer   

The ID of the event. Example: 2

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\": \"yxbaogixejuppspsst\",
    \"description\": \"Quisquam natus perferendis alias laboriosam nisi perferendis et.\",
    \"start_date\": \"2026-05-04\",
    \"end_date\": \"2034-03-20\",
    \"type\": \"external\",
    \"budget\": \"necessitatibus\",
    \"hotel_id\": 17,
    \"service_id\": 11
}"
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": "yxbaogixejuppspsst",
    "description": "Quisquam natus perferendis alias laboriosam nisi perferendis et.",
    "start_date": "2026-05-04",
    "end_date": "2034-03-20",
    "type": "external",
    "budget": "necessitatibus",
    "hotel_id": 17,
    "service_id": 11
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/events

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 200 caractères. Example: yxbaogixejuppspsst

description   string   

Example: Quisquam natus perferendis alias laboriosam nisi perferendis et.

start_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

end_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2034-03-20

type   string   

Example: external

Must be one of:
  • internal
  • external
parental_contribution   string  optional  
budget   string  optional  

Example: necessitatibus

hotel_id   integer   

The id of an existing record in the hotels table. Example: 17

service_id   integer  optional  

The id of an existing record in the services table. Example: 11

Modifier un évènement

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/events/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"uuftvi\",
    \"description\": \"Voluptates neque quia exercitationem quod aliquid.\",
    \"start_date\": \"2026-05-04\",
    \"end_date\": \"2080-10-03\",
    \"type\": \"internal\",
    \"budget\": \"sequi\",
    \"hotel_id\": 15,
    \"service_id\": 7
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/events/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "uuftvi",
    "description": "Voluptates neque quia exercitationem quod aliquid.",
    "start_date": "2026-05-04",
    "end_date": "2080-10-03",
    "type": "internal",
    "budget": "sequi",
    "hotel_id": 15,
    "service_id": 7
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/events/{event_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

event_id   integer   

The ID of the event. Example: 2

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: uuftvi

description   string  optional  

Example: Voluptates neque quia exercitationem quod aliquid.

start_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

end_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Le champ value doit être une date après ou égale à start_date. Example: 2080-10-03

type   string  optional  

Example: internal

Must be one of:
  • internal
  • external
parental_contribution   string  optional  
budget   string  optional  

Example: sequi

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 15

service_id   integer  optional  

The id of an existing record in the services table. Example: 7

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\": [
        9
    ]
}"
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": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/events/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

event_ids   integer[]   

The id of an existing record in the events table.

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\": [
        14
    ]
}"
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": [
        14
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/events/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

event_ids   integer[]   

The id of an existing record in the events table.

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\": 18,
    \"filter_value\": \"soluta\",
    \"founder_id\": 19,
    \"manager_id\": 8,
    \"assistant_id\": 17,
    \"package_id\": 15
}"
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": 18,
    "filter_value": "soluta",
    "founder_id": 19,
    "manager_id": 8,
    "assistant_id": 17,
    "package_id": 15
};

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
    }
}
 

Request      

POST api/hotels/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

required. Example: 1

nbre_items   integer  optional  

Example: 18

filter_value   string  optional  

Example: soluta

founder_id   integer  optional  

The id of an existing record in the users table. Example: 19

manager_id   integer  optional  

The id of an existing record in the users table. Example: 8

assistant_id   integer  optional  

The id of an existing record in the users table. Example: 17

package_id   integer  optional  

The id of an existing record in the packages table. Example: 15

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."
}
 

Request      

GET api/hotels/{hotel_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

hotel_id   integer   

The ID of the hotel. Example: 3

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\": \"animi\",
    \"phone\": \"non\",
    \"description\": \"Necessitatibus doloribus iste vel consequatur laboriosam a quos.\",
    \"stars\": 5,
    \"email\": \"preston.homenick@example.com\",
    \"address\": \"amet\",
    \"website\": \"sequi\",
    \"logo\": \"architecto\",
    \"creation_date\": \"2026-05-04\",
    \"city\": \"vmttsunn\",
    \"country\": \"vaqwzejgcqgzcxqgpbstmqzc\",
    \"type\": \"dolorum\",
    \"category\": \"odio\",
    \"founder_id\": 9,
    \"manager_id\": 2,
    \"assistant_id\": 9,
    \"package_id\": 8
}"
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": "animi",
    "phone": "non",
    "description": "Necessitatibus doloribus iste vel consequatur laboriosam a quos.",
    "stars": 5,
    "email": "preston.homenick@example.com",
    "address": "amet",
    "website": "sequi",
    "logo": "architecto",
    "creation_date": "2026-05-04",
    "city": "vmttsunn",
    "country": "vaqwzejgcqgzcxqgpbstmqzc",
    "type": "dolorum",
    "category": "odio",
    "founder_id": 9,
    "manager_id": 2,
    "assistant_id": 9,
    "package_id": 8
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/hotels

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: animi

phone   string   

Example: non

description   string   

Example: Necessitatibus doloribus iste vel consequatur laboriosam a quos.

stars   integer   

Le champ value doit être au moins 1. Le champ value ne peut être supérieur à 5. Example: 5

email   string   

Le champ value doit être une address e-mail valide. Example: preston.homenick@example.com

address   string   

Example: amet

website   string  optional  

Example: sequi

logo   string  optional  

Example: architecto

phone2   string  optional  
rib   string  optional  
niu   string  optional  
rc   string  optional  
creation_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

city   string   

Le champ value ne peut contenir plus de 100 caractères. Example: vmttsunn

country   string   

Le champ value ne peut contenir plus de 100 caractères. Example: vaqwzejgcqgzcxqgpbstmqzc

type   string  optional  

Example: dolorum

category   string  optional  

Example: odio

founder_id   integer   

The id of an existing record in the users table. Example: 9

manager_id   integer   

The id of an existing record in the users table. Example: 2

assistant_id   integer  optional  

The id of an existing record in the users table. Example: 9

package_id   integer   

Example: 8

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\": \"asperiores\",
    \"phone\": \"ut\",
    \"description\": \"Optio nemo quia unde quas voluptatibus molestiae.\",
    \"stars\": 2,
    \"email\": \"okeeling@example.net\",
    \"address\": \"inventore\",
    \"website\": \"omnis\",
    \"logo\": \"est\",
    \"rib\": \"quia\",
    \"niu\": \"qui\",
    \"rc\": \"iste\",
    \"creation_date\": \"2026-05-04\",
    \"city\": \"tempora\",
    \"country\": \"accusantium\",
    \"type\": \"quae\",
    \"category\": \"quam\",
    \"founder_id\": 16,
    \"manager_id\": 20,
    \"assistant_id\": 5,
    \"package_id\": 7
}"
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": "asperiores",
    "phone": "ut",
    "description": "Optio nemo quia unde quas voluptatibus molestiae.",
    "stars": 2,
    "email": "okeeling@example.net",
    "address": "inventore",
    "website": "omnis",
    "logo": "est",
    "rib": "quia",
    "niu": "qui",
    "rc": "iste",
    "creation_date": "2026-05-04",
    "city": "tempora",
    "country": "accusantium",
    "type": "quae",
    "category": "quam",
    "founder_id": 16,
    "manager_id": 20,
    "assistant_id": 5,
    "package_id": 7
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/hotels/{hotel_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

hotel_id   integer   

The ID of the hotel. Example: 3

Body Parameters

name   string  optional  

Example: asperiores

phone   string  optional  

Example: ut

description   string  optional  

Example: Optio nemo quia unde quas voluptatibus molestiae.

stars   integer  optional  

Le champ value doit être au moins 1. Le champ value ne peut être supérieur à 5. Example: 2

email   string  optional  

Le champ value doit être une address e-mail valide. Example: okeeling@example.net

address   string  optional  

Example: inventore

website   string  optional  

Example: omnis

logo   string  optional  

Example: est

rib   string  optional  

Example: quia

niu   string  optional  

Example: qui

rc   string  optional  

Example: iste

creation_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

city   string  optional  

Example: tempora

country   string  optional  

Example: accusantium

type   string  optional  

Example: quae

category   string  optional  

Example: quam

founder_id   integer  optional  

The id of an existing record in the users table. Example: 16

manager_id   integer  optional  

The id of an existing record in the users table. Example: 20

assistant_id   integer  optional  

The id of an existing record in the users table. Example: 5

package_id   integer  optional  

Example: 7

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\": [
        18
    ]
}"
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": [
        18
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/hotels/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the hotels table.

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\": [
        2
    ]
}"
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": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/hotels/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Forcer la suppression d'un ou plusieurs hotel(s) du système

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/hotels/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/hotels/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/hotels/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 75,
    \"nbre_items\": 5,
    \"filter_value\": \"aut\",
    \"article_id\": 10,
    \"operation_type\": \"entry\",
    \"product_id\": 3,
    \"user_id\": 3,
    \"from_date\": \"2026-05-04T09:37:23\",
    \"to_date\": \"2108-05-14\",
    \"date_start\": \"2026-05-04T09:37:23\",
    \"date_end\": \"2077-06-07\"
}"
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": 75,
    "nbre_items": 5,
    "filter_value": "aut",
    "article_id": 10,
    "operation_type": "entry",
    "product_id": 3,
    "user_id": 3,
    "from_date": "2026-05-04T09:37:23",
    "to_date": "2108-05-14",
    "date_start": "2026-05-04T09:37:23",
    "date_end": "2077-06-07"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/article-movements/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 75

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Example: aut

article_id   integer  optional  

The id of an existing record in the articles table. Example: 10

operation_type   string  optional  

Example: entry

Must be one of:
  • entry
  • exit
product_id   integer  optional  

The id of an existing record in the products table. Example: 3

user_id   integer  optional  

The id of an existing record in the users table. Example: 3

from_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

to_date   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à from_date. Example: 2108-05-14

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

date_end   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à date_start. Example: 2077-06-07

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."
}
 

Request      

GET api/article-movements/{article_movement_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

article_movement_id   integer   

The ID of the article movement. Example: 1

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\": 81,
    \"nbre_items\": 14,
    \"filter_value\": \"id\",
    \"product_id\": 20,
    \"service_id\": 2,
    \"operation_type\": \"exit\",
    \"user_id\": 6,
    \"date_start\": \"2026-05-04T09:37:23\",
    \"date_end\": \"2074-05-20\"
}"
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": 81,
    "nbre_items": 14,
    "filter_value": "id",
    "product_id": 20,
    "service_id": 2,
    "operation_type": "exit",
    "user_id": 6,
    "date_start": "2026-05-04T09:37:23",
    "date_end": "2074-05-20"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/product-movements/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 81

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

Example: id

product_id   integer  optional  

The id of an existing record in the products table. Example: 20

service_id   integer  optional  

The id of an existing record in the services table. Example: 2

operation_type   string  optional  

Example: exit

Must be one of:
  • entry
  • exit
user_id   integer  optional  

The id of an existing record in the users table. Example: 6

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

date_end   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à date_start. Example: 2074-05-20

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\": 13,
    \"description\": \"Enim ullam eveniet eveniet id dolores et rerum.\",
    \"operation_type\": \"exit\",
    \"product_id\": 10
}"
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": 13,
    "description": "Enim ullam eveniet eveniet id dolores et rerum.",
    "operation_type": "exit",
    "product_id": 10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/product-movements

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

quantity   integer   

Example: 13

description   string  optional  

Example: Enim ullam eveniet eveniet id dolores et rerum.

operation_type   string   

Example: exit

Must be one of:
  • entry
  • exit
product_id   integer   

The id of an existing record in the products table. Example: 10

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."
}
 

Request      

GET api/product-movements/{product_movement_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

product_movement_id   integer   

The ID of the product movement. Example: 1

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\": 21,
    \"nbre_items\": 10,
    \"filter_value\": \"suscipit\",
    \"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": 21,
    "nbre_items": 10,
    "filter_value": "suscipit",
    "website": false,
    "support_type": "premium",
    "electronic_payment": true,
    "mail_pro": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/packages/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 21

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

Example: suscipit

website   boolean  optional  

Example: false

support_type   string  optional  

Example: premium

Must be one of:
  • classic
  • premium
electronic_payment   boolean  optional  

Example: true

mail_pro   boolean  optional  

Example: true

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."
}
 

Request      

GET api/packages/{package_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

package_id   integer   

The ID of the package. Example: 1

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\": \"unde\",
    \"amount\": \"iure\",
    \"website\": false,
    \"support_type\": \"classic\",
    \"electronic_payment\": false,
    \"mail_pro\": false
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/packages"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "unde",
    "amount": "iure",
    "website": false,
    "support_type": "classic",
    "electronic_payment": false,
    "mail_pro": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/packages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: unde

amount   string   

Example: iure

website   boolean   

Example: false

support_type   string   

Example: classic

Must be one of:
  • classic
  • premium
electronic_payment   boolean   

Example: false

mail_pro   boolean   

Example: false

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\": \"ut\",
    \"website\": true,
    \"support_type\": \"classic\",
    \"electronic_payment\": true,
    \"mail_pro\": false
}"
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": "ut",
    "website": true,
    "support_type": "classic",
    "electronic_payment": true,
    "mail_pro": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/packages/{package_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

package_id   integer   

The ID of the package. Example: 1

Body Parameters

name   string  optional  

Example: ut

amount   string  optional  
website   boolean  optional  

Example: true

support_type   string  optional  

Example: classic

Must be one of:
  • classic
  • premium
electronic_payment   boolean  optional  

Example: true

mail_pro   boolean  optional  

Example: false

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\": [
        9
    ]
}"
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": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/packages/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de restauration multiples des packages

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/packages/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        6
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/packages/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/packages/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        2
    ]
}"
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": [
        2
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/packages/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Paiements MTN Mobile Money

API pour la gestion des paiements via MTN Mobile Money (Cameroun).

Webhook MTN

requires authentication

Reçoit les notifications asynchrones de MTN Mobile Money.

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/mtn/callback" \
    --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/mtn/callback"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/mtn/callback

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Initier un paiement MTN

requires authentication

Lance une demande de Push STK MTN vers le mobile du client.

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/mtn-payments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"booking_id\": 1,
    \"order_id_hms\": 12,
    \"service_id\": 5,
    \"amount\": 5000,
    \"payment_mode\": \"MTN Mobile Money\",
    \"phonePayeur\": \"670000000\",
    \"reference\": \"Réservation Suite 204\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/mtn-payments"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "booking_id": 1,
    "order_id_hms": 12,
    "service_id": 5,
    "amount": 5000,
    "payment_mode": "MTN Mobile Money",
    "phonePayeur": "670000000",
    "reference": "Réservation Suite 204"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/mtn-payments

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

booking_id   integer  optional  

ID de la réservation (optionnel). Example: 1

order_id_hms   integer  optional  

ID de la commande HMS (optionnel). Example: 12

service_id   integer  optional  

ID du service direct (optionnel). Example: 5

amount   number   

Montant de la transaction. Example: 5000

payment_mode   string   

Mode de paiement (MTN Mobile Money). Example: MTN Mobile Money

phonePayeur   string   

Numéro MTN du payeur (format 6xxxxxxxx). Example: 670000000

reference   string  optional  

Référence personnalisée. Example: Réservation Suite 204

Vérifier le statut (MTN)

requires authentication

Permet de consulter l'état d'un paiement MTN. Si réussi, un encaissement (CashIn) est créé.

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/mtn-payments/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/mtn-payments/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."
}
 

Request      

GET api/mtn-payments/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

ID de la transaction HMS. Example: 2

Paiements Orange Money

Contrôleur pour la gestion des paiements via Orange Money (Cameroun). Supporte les paiements Web (redirection vers page Orange) et Mobile Push (STK).

Fonctionnalités :

Webhook Orange Money

requires authentication

Reçoit les notifications asynchrones d'Orange Money pour les paiements Web et Mobile.

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/om/callback" \
    --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/om/callback"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/om/callback

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

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\": 74,
    \"nbre_items\": 11,
    \"filter_value\": \"similique\"
}"
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": 74,
    "nbre_items": 11,
    "filter_value": "similique"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/settings/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 74

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: similique

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."
}
 

Request      

GET api/settings/{setting_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

setting_id   integer   

The ID of the setting. Example: 1

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\": \"earum\"
}"
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": "earum"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/settings/{setting_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

setting_id   integer   

The ID of the setting. Example: 1

Body Parameters

value   string   

Example: earum

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\": 67,
    \"nbre_items\": 11,
    \"filter_value\": \"perspiciatis\"
}"
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": 67,
    "nbre_items": 11,
    "filter_value": "perspiciatis"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permissions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 67

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: perspiciatis

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\": \"ut\",
            \"description\": \"Nobis dolor aut reprehenderit sunt eius.\",
            \"ressource\": \"illo\"
        }
    ]
}"
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": "ut",
            "description": "Nobis dolor aut reprehenderit sunt eius.",
            "ressource": "illo"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

permissions   object[]   

Le champ value doit contenir au moins 1 éléments.

name   string   

Example: ut

description   string  optional  

Example: Nobis dolor aut reprehenderit sunt eius.

ressource   string   

Example: illo

Afficher une permission spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/permissions/alias" \
    --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/alias"
);

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."
}
 

Request      

GET api/permissions/{permission}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission   string   

The permission. Example: alias

Mettre a jour une permission spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/permissions/dolorem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"molestiae\",
    \"permissions\": [
        {
            \"description\": \"Autem ratione dolor fugiat vel sed pariatur accusamus.\",
            \"ressource\": \"facere\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permissions/dolorem"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "molestiae",
    "permissions": [
        {
            "description": "Autem ratione dolor fugiat vel sed pariatur accusamus.",
            "ressource": "facere"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/permissions/{permission}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

permission   string   

The permission. Example: dolorem

Body Parameters

name   string   

Example: molestiae

permissions   object[]  optional  
description   string  optional  

Example: Autem ratione dolor fugiat vel sed pariatur accusamus.

ressource   string  optional  

Example: facere

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permissions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de restauration multiples des permissions

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/permissions/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        12
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permissions/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        12
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permissions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        11
    ]
}"
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": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/permissions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 7,
    \"nbre_items\": 3,
    \"filter_value\": \"sunt\",
    \"type\": \"staff\",
    \"scan_per_course\": true,
    \"saving_type\": \"qr_code\",
    \"user_id\": 17,
    \"date\": \"2026-05-04T09:37:23\"
}"
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": 7,
    "nbre_items": 3,
    "filter_value": "sunt",
    "type": "staff",
    "scan_per_course": true,
    "saving_type": "qr_code",
    "user_id": 17,
    "date": "2026-05-04T09:37:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/staff-presences/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 7

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

Example: sunt

type   string  optional  

Example: staff

Must be one of:
  • staff
  • employ
scan_per_course   boolean  optional  

Example: true

saving_type   string  optional  

Example: qr_code

Must be one of:
  • manual
  • qr_code
user_id   integer  optional  

The id of an existing record in the users table. Example: 17

date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

Display the specified resource.

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/staff-presences/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/staff-presences/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."
}
 

Request      

GET api/staff-presences/{staff_presence_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

staff_presence_id   integer   

The ID of the staff presence. Example: 2

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\": 15,
    \"scan_per_course\": false,
    \"type\": \"staff\",
    \"date\": \"2026-05-04T09:37:23\",
    \"arrival_time\": \"09:37:23\",
    \"departure_time\": \"09:37:23\",
    \"reason\": \"aut\"
}"
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": 15,
    "scan_per_course": false,
    "type": "staff",
    "date": "2026-05-04T09:37:23",
    "arrival_time": "09:37:23",
    "departure_time": "09:37:23",
    "reason": "aut"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/staff-presences

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 15

scan_per_course   boolean   

Example: false

type   string   

Example: staff

Must be one of:
  • staff
  • employ
date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

arrival_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:37:23

departure_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:37:23

reason   string  optional  

Example: aut

Modifier une présence du personnel

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/staff-presences/18" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 7,
    \"scan_per_course\": false,
    \"type\": \"employ\",
    \"date\": \"2026-05-04T09:37:23\",
    \"time\": \"09:37:23\",
    \"arrival_time\": \"09:37:23\",
    \"departure_time\": \"09:37:23\",
    \"reason\": \"rerum\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/staff-presences/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 7,
    "scan_per_course": false,
    "type": "employ",
    "date": "2026-05-04T09:37:23",
    "time": "09:37:23",
    "arrival_time": "09:37:23",
    "departure_time": "09:37:23",
    "reason": "rerum"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/staff-presences/{staff_presence_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

staff_presence_id   integer   

The ID of the staff presence. Example: 18

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 7

scan_per_course   boolean  optional  

Example: false

type   string  optional  

Example: employ

Must be one of:
  • staff
  • employ
date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:37:23

arrival_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:37:23

departure_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:37:23

reason   string  optional  

Example: rerum

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/staff-presences/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        19
    ]
}"
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": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/staff-presences/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/staff-presences/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 79,
    \"nbre_items\": 8,
    \"filter_value\": \"quam\",
    \"article_ids\": [
        1
    ],
    \"type\": \"storable\",
    \"expired\": false,
    \"service_id\": 16,
    \"hotel_id\": 11
}"
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": 79,
    "nbre_items": 8,
    "filter_value": "quam",
    "article_ids": [
        1
    ],
    "type": "storable",
    "expired": false,
    "service_id": 16,
    "hotel_id": 11
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/products/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 79

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Example: quam

article_ids   integer[]  optional  

The id of an existing record in the articles table.

type   string  optional  

Example: storable

Must be one of:
  • consumable
  • storable
expired   boolean  optional  

Example: false

service_id   integer  optional  

The id of an existing record in the services table. Example: 16

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 11

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\": \"aut\",
    \"type\": \"consumable\",
    \"image\": \"optio\",
    \"price\": 44.4,
    \"manufacturing_cost\": 28,
    \"description\": \"Repudiandae est magni est omnis magnam aut et.\",
    \"alert_quantity\": 2,
    \"status\": \"validated\",
    \"quantity\": 34,
    \"expiry_date\": \"2026-05-04T09:37:23\",
    \"service_id\": 5,
    \"articles\": [
        {
            \"id\": 14,
            \"quantity\": 22
        }
    ]
}"
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": "aut",
    "type": "consumable",
    "image": "optio",
    "price": 44.4,
    "manufacturing_cost": 28,
    "description": "Repudiandae est magni est omnis magnam aut et.",
    "alert_quantity": 2,
    "status": "validated",
    "quantity": 34,
    "expiry_date": "2026-05-04T09:37:23",
    "service_id": 5,
    "articles": [
        {
            "id": 14,
            "quantity": 22
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/products

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: aut

type   string   

Example: consumable

Must be one of:
  • consumable
  • storable
image   string  optional  

Example: optio

price   number   

Example: 44.4

manufacturing_cost   number  optional  

Le champ value doit être au moins 0. Example: 28

description   string  optional  

Example: Repudiandae est magni est omnis magnam aut et.

alert_quantity   integer  optional  

Example: 2

status   string  optional  

Example: validated

Must be one of:
  • pending
  • validated
quantity   integer  optional  

Le champ value doit être au moins 0. Example: 34

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

service_id   integer  optional  

The id of an existing record in the services table. Example: 5

articles   object[]   

Le champ value doit contenir au moins 1 éléments.

id   integer   

The id of an existing record in the articles table. Example: 14

quantity   number   

Le champ value doit être au moins 0. Example: 22

Afficher un produit spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/products/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/products/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."
}
 

Request      

GET api/products/{product_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

product_id   integer   

The ID of the product. Example: 13

Modifier un produit spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/products/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"voluptatem\",
    \"type\": \"consumable\",
    \"image\": \"et\",
    \"price\": 2394111.3683587643,
    \"manufacturing_cost\": 43,
    \"description\": \"Cumque et sint laudantium et architecto.\",
    \"alert_quantity\": 8,
    \"status\": \"pending\",
    \"quantity\": 26,
    \"expiry_date\": \"2026-05-04T09:37:23\",
    \"service_id\": 12,
    \"articles\": [
        {
            \"id\": 6,
            \"quantity\": 12
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/products/13"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "voluptatem",
    "type": "consumable",
    "image": "et",
    "price": 2394111.3683587643,
    "manufacturing_cost": 43,
    "description": "Cumque et sint laudantium et architecto.",
    "alert_quantity": 8,
    "status": "pending",
    "quantity": 26,
    "expiry_date": "2026-05-04T09:37:23",
    "service_id": 12,
    "articles": [
        {
            "id": 6,
            "quantity": 12
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/products/{product_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

product_id   integer   

The ID of the product. Example: 13

Body Parameters

name   string  optional  

Example: voluptatem

type   string  optional  

Example: consumable

Must be one of:
  • consumable
  • storable
image   string  optional  

Example: et

price   number  optional  

Example: 2394111.3683588

manufacturing_cost   number  optional  

Le champ value doit être au moins 0. Example: 43

description   string  optional  

Example: Cumque et sint laudantium et architecto.

alert_quantity   integer  optional  

Example: 8

status   string  optional  

Example: pending

Must be one of:
  • pending
  • validated
quantity   integer  optional  

Le champ value doit être au moins 0. Example: 26

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

service_id   integer  optional  

The id of an existing record in the services table. Example: 12

articles   object[]  optional  

Le champ value doit contenir au moins 1 éléments.

id   integer  optional  

The id of an existing record in the articles table. Example: 6

quantity   integer  optional  

Le champ value doit être au moins 1. Example: 12

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\": [
        9
    ]
}"
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": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/products/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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());

Request      

POST api/products/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de suppression définitive multiple des products

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/products/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        16
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/products/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/products/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 22,
    \"nbre_items\": 17,
    \"filter_value\": \"sapiente\",
    \"hotel_id\": 17,
    \"service_id\": 15,
    \"user_id\": 10,
    \"type\": 6
}"
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": 22,
    "nbre_items": 17,
    "filter_value": "sapiente",
    "hotel_id": 17,
    "service_id": 15,
    "user_id": 10,
    "type": 6
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/punishments/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 22

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Example: sapiente

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 17

service_id   integer  optional  

The id of an existing record in the services table. Example: 15

user_id   integer  optional  

The id of an existing record in the users table. Example: 10

type   integer  optional  

Example: 6

Affiche les détails d'une sanction spécifique.

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/punishments/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/punishments/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."
}
 

Request      

GET api/punishments/{punishment_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

punishment_id   integer   

The ID of the punishment. Example: 2

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\": \"Reprehenderit autem sed mollitia nam quo.\",
            \"user_id\": 15,
            \"type\": \"voluptatibus\",
            \"reasons\": \"culpa\"
        }
    ]
}"
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": "Reprehenderit autem sed mollitia nam quo.",
            "user_id": 15,
            "type": "voluptatibus",
            "reasons": "culpa"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/punishments

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

punishments   object[]   

Le champ value doit contenir au moins 1 éléments.

description   string  optional  

Example: Reprehenderit autem sed mollitia nam quo.

user_id   integer   

The id of an existing record in the users table. Example: 15

type   string   

Example: voluptatibus

reasons   string   

Example: culpa

Met à jour les informations d'une sanction existante.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/punishments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Esse fugit eveniet est soluta earum magni.\",
    \"user_id\": 17,
    \"type\": \"perspiciatis\",
    \"reasons\": \"quaerat\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/punishments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Esse fugit eveniet est soluta earum magni.",
    "user_id": 17,
    "type": "perspiciatis",
    "reasons": "quaerat"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/punishments/{punishment_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

punishment_id   integer   

The ID of the punishment. Example: 1

Body Parameters

description   string  optional  

Example: Esse fugit eveniet est soluta earum magni.

user_id   integer  optional  

The id of an existing record in the users table. Example: 17

type   string  optional  

Example: perspiciatis

reasons   string  optional  

Example: quaerat

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\": [
        12
    ]
}"
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": [
        12
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/punishments/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

punishment_ids   integer[]   

The id of an existing record in the punishments table.

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\": [
        3
    ]
}"
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": [
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/punishments/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

punishment_ids   integer[]   

The id of an existing record in the punishments table.

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\": [
        9
    ]
}"
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": [
        9
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/punishments/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

punishment_ids   integer[]   

The id of an existing record in the punishments table.

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\": 54,
    \"nbre_items\": 19,
    \"filter_value\": \"dolores\",
    \"user_id\": 13,
    \"user_approve_id\": 7,
    \"trashed\": true,
    \"date\": \"2026-05-04\",
    \"status\": \"approved\"
}"
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": 54,
    "nbre_items": 19,
    "filter_value": "dolores",
    "user_id": 13,
    "user_approve_id": 7,
    "trashed": true,
    "date": "2026-05-04",
    "status": "approved"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-deductions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 54

nbre_items   integer  optional  

Example: 19

filter_value   string  optional  

Example: dolores

user_id   integer  optional  

The id of an existing record in the users table. Example: 13

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 7

trashed   boolean  optional  

Example: true

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

status   string  optional  

Example: approved

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

Afficher une retenue sur salaire spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/salaries-deductions/14" \
    --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/14"
);

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."
}
 

Request      

GET api/salaries-deductions/{salary_deduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_deduction   integer   

Example: 14

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\": \"non\",
            \"user_approve_id\": 9,
            \"amount\": 76,
            \"date\": \"2026-05-04T09:37:23\",
            \"status\": \"approved\",
            \"reason\": \"architecto\"
        }
    ]
}"
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": "non",
            "user_approve_id": 9,
            "amount": 76,
            "date": "2026-05-04T09:37:23",
            "status": "approved",
            "reason": "architecto"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-deductions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

salary_deductions   object[]   
user_id   string   

The id of an existing record in the users table. Example: non

user_approve_id   integer   

The id of an existing record in the users table. Example: 9

amount   number   

Le champ value doit être au moins 0. Example: 76

date   string   

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

status   string  optional  

Example: approved

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected
reason   string   

Example: architecto

Mettre à jour une retenue sur salaire spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/salaries-deductions/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 20,
    \"user_approve_id\": 5,
    \"reason\": \"eaque\",
    \"date\": \"2026-05-04\",
    \"status\": \"pending_approval\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-deductions/17"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 20,
    "user_approve_id": 5,
    "reason": "eaque",
    "date": "2026-05-04",
    "status": "pending_approval"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/salaries-deductions/{salary_deduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

salary_deduction   integer   

Example: 17

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 20

user_approve_id   integer  optional  

The id of an existing record in the users table. Example: 5

amount   string  optional  
reason   string  optional  

Example: eaque

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

status   string  optional  

Example: pending_approval

Must be one of:
  • pending_approval
  • in_progress
  • approved
  • rejected

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-deductions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        8
    ]
}"
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": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/salaries-deductions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        3
    ]
}"
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": [
        3
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/salaries-deductions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 42,
    \"nbre_items\": 12,
    \"filter_value\": \"zxmcubl\"
}"
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": 42,
    "nbre_items": 12,
    "filter_value": "zxmcubl"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/reductions/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 42

nbre_items   integer  optional  

Le champ value doit être au moins 1. Example: 12

filter_value   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: zxmcubl

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\": \"gvc\",
    \"description\": \"Harum laboriosam omnis sed.\",
    \"amount\": 20
}"
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": "gvc",
    "description": "Harum laboriosam omnis sed.",
    "amount": 20
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/reductions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 255 caractères. Example: gvc

description   string  optional  

Example: Harum laboriosam omnis sed.

amount   number   

Le champ value doit être au moins 0. Example: 20

Afficher les détails d'une réduction

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/reductions/tempora" \
    --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/tempora"
);

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."
}
 

Request      

GET api/reductions/{reduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

reduction   string   

The reduction. Example: tempora

Mettre à jour une réduction

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/reductions/voluptate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"lpcsnfznrztvcboxvvxpfo\",
    \"description\": \"Asperiores saepe et ut sequi.\",
    \"amount\": 63
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/reductions/voluptate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "lpcsnfznrztvcboxvvxpfo",
    "description": "Asperiores saepe et ut sequi.",
    "amount": 63
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/reductions/{reduction}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

reduction   string   

The reduction. Example: voluptate

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: lpcsnfznrztvcboxvvxpfo

description   string  optional  

Example: Asperiores saepe et ut sequi.

amount   number  optional  

Le champ value doit être au moins 0. Example: 63

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());

Request      

POST api/reductions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   string[]  optional  

The id of an existing record in the reductions table.

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());

Request      

POST api/reductions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   string[]  optional  

The id of an existing record in the reductions table.

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());

Request      

POST api/reductions/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   string[]  optional  

The id of an existing record in the reductions table.

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\": 52,
    \"nbre_items\": 8,
    \"filter_value\": \"nobis\",
    \"hotel_id\": 4,
    \"room_type_id\": 20,
    \"room_category_id\": 9,
    \"room_id\": 13,
    \"user_id\": 16,
    \"status\": \"dolore\",
    \"payment_status\": \"advance\",
    \"room_service_id\": 14,
    \"date\": \"2026-05-04\",
    \"date_start\": \"2026-05-04\",
    \"date_end\": \"2026-05-04\"
}"
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": 52,
    "nbre_items": 8,
    "filter_value": "nobis",
    "hotel_id": 4,
    "room_type_id": 20,
    "room_category_id": 9,
    "room_id": 13,
    "user_id": 16,
    "status": "dolore",
    "payment_status": "advance",
    "room_service_id": 14,
    "date": "2026-05-04",
    "date_start": "2026-05-04",
    "date_end": "2026-05-04"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/bookings/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 52

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Example: nobis

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 4

room_type_id   integer  optional  

The id of an existing record in the room_types table. Example: 20

room_category_id   integer  optional  

The id of an existing record in the room_categories table. Example: 9

room_id   integer  optional  

The id of an existing record in the rooms table. Example: 13

user_id   integer  optional  

The id of an existing record in the users table. Example: 16

status   string  optional  

Example: dolore

payment_status   string  optional  

Example: advance

Must be one of:
  • none
  • advance
  • completed
room_service_id   integer  optional  

The id of an existing record in the room_services table. Example: 14

date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

date_start   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

date_end   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

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-05-04\",
    \"end_date\": \"2026-05-04\",
    \"user_id\": 1,
    \"type\": \"nuite\",
    \"transport_mode\": \"xdcy\",
    \"vehicle_number\": \"ivh\",
    \"arrival_time\": \"2026-05-04T09:37:23\",
    \"departure_time\": \"2026-05-04T09:37:23\",
    \"arrivals\": \"mnzia\",
    \"is_free\": true,
    \"reduction_id\": 17,
    \"reduction_amount\": 61
}"
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-05-04",
    "end_date": "2026-05-04",
    "user_id": 1,
    "type": "nuite",
    "transport_mode": "xdcy",
    "vehicle_number": "ivh",
    "arrival_time": "2026-05-04T09:37:23",
    "departure_time": "2026-05-04T09:37:23",
    "arrivals": "mnzia",
    "is_free": true,
    "reduction_id": 17,
    "reduction_amount": 61
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/bookings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

start_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

end_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

user_id   integer   

The id of an existing record in the users table. Example: 1

type   string  optional  

Example: nuite

Must be one of:
  • nuite
  • sieste
transport_mode   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: xdcy

vehicle_number   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: ivh

arrival_time   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

departure_time   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

arrivals   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: mnzia

is_free   boolean  optional  

Example: true

reduction_id   integer  optional  

The id of an existing record in the reductions table. Example: 17

reduction_amount   number  optional  

Le champ value doit être au moins 0. Example: 61

rooms   string[]  optional  

The id of an existing record in the rooms table.

Mettre à jour une réservation

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/bookings/6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-05-04T09:37:23\",
    \"end_date\": \"2068-09-27\",
    \"user_id\": 11,
    \"room_service_id\": 8,
    \"transport_mode\": \"omhutlhb\",
    \"vehicle_number\": \"txk\",
    \"arrival_time\": \"2026-05-04T09:37:23\",
    \"departure_time\": \"2026-05-04T09:37:23\",
    \"arrivals\": \"cdrfflcaqljafhdan\",
    \"is_free\": false,
    \"reduction_id\": 7,
    \"reduction_amount\": 73,
    \"rooms\": [
        \"quisquam\"
    ],
    \"type\": \"nuite\",
    \"status\": \"expired\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/bookings/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "start_date": "2026-05-04T09:37:23",
    "end_date": "2068-09-27",
    "user_id": 11,
    "room_service_id": 8,
    "transport_mode": "omhutlhb",
    "vehicle_number": "txk",
    "arrival_time": "2026-05-04T09:37:23",
    "departure_time": "2026-05-04T09:37:23",
    "arrivals": "cdrfflcaqljafhdan",
    "is_free": false,
    "reduction_id": 7,
    "reduction_amount": 73,
    "rooms": [
        "quisquam"
    ],
    "type": "nuite",
    "status": "expired"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/bookings/{booking_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

booking_id   integer   

The ID of the booking. Example: 6

Body Parameters

start_date   string   

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

end_date   string   

Le champ value doit être une date valide. Le champ value doit être une date après start_date. Example: 2068-09-27

user_id   integer   

The id of an existing record in the users table. Example: 11

room_service_id   integer  optional  

The id of an existing record in the room_services table. Example: 8

transport_mode   string  optional  

Le champ value ne peut contenir plus de 50 caractères. Example: omhutlhb

vehicle_number   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: txk

arrival_time   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

departure_time   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

arrivals   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: cdrfflcaqljafhdan

is_free   boolean  optional  

Example: false

reduction_id   integer  optional  

The id of an existing record in the reductions table. Example: 7

reduction_amount   number  optional  

Le champ value doit être au moins 0. Example: 73

rooms   string[]   

The id of an existing record in the rooms table.

type   string  optional  

Example: nuite

Must be one of:
  • nuite
  • sieste
status   string  optional  

Example: expired

Must be one of:
  • pending
  • confirmed
  • checked_in
  • checked_out
  • cancelled
  • no_show
  • refunded
  • draft
  • expired

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\": [
        8
    ]
}"
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": [
        8
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/bookings/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        19
    ]
}"
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": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/bookings/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de suppression définitive multiple des Reservations

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/bookings/destroy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/bookings/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/bookings/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 27,
    \"nbre_items\": 16,
    \"filter_value\": \"ratione\",
    \"types\": [
        \"qui\"
    ]
}"
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": 27,
    "nbre_items": 16,
    "filter_value": "ratione",
    "types": [
        "qui"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/roles/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 27

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

Example: ratione

types   string[]  optional  

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\": \"cumque\",
    \"permissions\": [
        9
    ],
    \"description\": \"Expedita nihil magnam corrupti vel dicta.\",
    \"type\": \"laudantium\"
}"
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": "cumque",
    "permissions": [
        9
    ],
    "description": "Expedita nihil magnam corrupti vel dicta.",
    "type": "laudantium"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: cumque

permissions   integer[]   

The id of an existing record in the permissions table.

description   string  optional  

Example: Expedita nihil magnam corrupti vel dicta.

type   string  optional  

Example: laudantium

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."
}
 

Request      

GET api/roles/{role_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role_id   integer   

The ID of the role. Example: 1

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\": \"temporibus\",
    \"permissions\": [
        14
    ],
    \"description\": \"Natus qui sint neque quidem alias sit voluptatibus.\",
    \"type\": \"quo\"
}"
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": "temporibus",
    "permissions": [
        14
    ],
    "description": "Natus qui sint neque quidem alias sit voluptatibus.",
    "type": "quo"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/roles/{role_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

role_id   integer   

The ID of the role. Example: 1

Body Parameters

name   string  optional  

Example: temporibus

permissions   integer[]  optional  

The id of an existing record in the permissions table.

description   string  optional  

Example: Natus qui sint neque quidem alias sit voluptatibus.

type   string  optional  

Example: quo

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\": [
        6
    ]
}"
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": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/roles/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        19
    ]
}"
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": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/roles/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/roles/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 72,
    \"nbre_items\": 20,
    \"filter_value\": \"qui\",
    \"service_id\": 20,
    \"archive\": \"with_trashed\",
    \"order_by\": \"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": 72,
    "nbre_items": 20,
    "filter_value": "qui",
    "service_id": 20,
    "archive": "with_trashed",
    "order_by": "id"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-services/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 72

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Example: qui

service_id   integer  optional  

The id of an existing record in the services table. Example: 20

archive   string  optional  

Example: with_trashed

Must be one of:
  • with_trashed
  • only_trashed
order_by   string  optional  

Example: id

Must be one of:
  • id
  • name
  • service_id

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/7" \
    --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/7"
);

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."
}
 

Request      

GET api/room-services/{room_service}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_service   integer   

Example: 7

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\": \"bfao\",
            \"description\": \"Sed possimus aliquam debitis.\",
            \"service_id\": 7
        }
    ]
}"
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": "bfao",
            "description": "Sed possimus aliquam debitis.",
            "service_id": 7
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-services

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

room_services   object[]   
name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: bfao

description   string  optional  

Le champ value ne peut contenir plus de 5000 caractères. Example: Sed possimus aliquam debitis.

price   string  optional  
service_id   integer  optional  

The id of an existing record in the services table. Example: 7

Mettre à jour un service de chambre existant.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/room-services/5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"czajkvqv\",
    \"description\": \"Harum distinctio blanditiis neque neque iste ut.\",
    \"service_id\": 1
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/5"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "czajkvqv",
    "description": "Harum distinctio blanditiis neque neque iste ut.",
    "service_id": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/room-services/{room_service}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_service   integer   

Example: 5

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: czajkvqv

description   string  optional  

Le champ value ne peut contenir plus de 5000 caractères. Example: Harum distinctio blanditiis neque neque iste ut.

price   string  optional  
service_id   integer  optional  

The id of an existing record in the services table. Example: 1

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\": [
        3
    ]
}"
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": [
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-services/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the room_services table.

Restaurer un ou plusieurs services de chambre archivés.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/room-services/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        13
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-services/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the room_services table.

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\": 14,
    \"nbre_items\": 17,
    \"filter_value\": \"repudiandae\",
    \"type\": \"facere\",
    \"hotel_id\": 12,
    \"responsible_id\": 18
}"
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": 14,
    "nbre_items": 17,
    "filter_value": "repudiandae",
    "type": "facere",
    "hotel_id": 12,
    "responsible_id": 18
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/services/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 14

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Example: repudiandae

type   string  optional  

Example: facere

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 12

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 18

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."
}
 

Request      

GET api/services/{service_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

service_id   integer   

The ID of the service. Example: 1

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\": \"non\",
            \"image\": \"in\",
            \"description\": \"Facilis alias inventore incidunt culpa.\",
            \"type\": \"expedita\",
            \"hotel_id\": 13,
            \"responsible_id\": 10
        }
    ]
}"
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": "non",
            "image": "in",
            "description": "Facilis alias inventore incidunt culpa.",
            "type": "expedita",
            "hotel_id": 13,
            "responsible_id": 10
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/services

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

services   object[]   

Le champ value doit contenir au moins 1 éléments.

name   string   

Example: non

image   string  optional  

Example: in

description   string  optional  

Example: Facilis alias inventore incidunt culpa.

type   string  optional  

Example: expedita

hotel_id   integer   

The id of an existing record in the hotels table. Example: 13

responsible_id   integer   

The id of an existing record in the users table. Example: 10

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\": \"quo\",
    \"image\": \"reiciendis\",
    \"description\": \"Voluptatibus accusamus aut officia est adipisci natus neque blanditiis.\",
    \"type\": \"sint\",
    \"hotel_id\": 2,
    \"responsible_id\": 9
}"
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": "quo",
    "image": "reiciendis",
    "description": "Voluptatibus accusamus aut officia est adipisci natus neque blanditiis.",
    "type": "sint",
    "hotel_id": 2,
    "responsible_id": 9
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/services/{service_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

service_id   integer   

The ID of the service. Example: 1

Body Parameters

name   string  optional  

Example: quo

image   string  optional  

Example: reiciendis

description   string  optional  

Example: Voluptatibus accusamus aut officia est adipisci natus neque blanditiis.

type   string  optional  

Example: sint

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 2

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 9

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/services/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        1
    ]
}"
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": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/services/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        13
    ]
}"
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": [
        13
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/services/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 42,
    \"nbre_items\": 8,
    \"filter_value\": \"maxime\",
    \"is_anonymous\": false,
    \"user_id\": 20,
    \"service_id\": 15,
    \"status\": \"pending\",
    \"date_start\": \"2026-05-04T09:37:23\",
    \"date_end\": \"2026-05-04T09:37:23\"
}"
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": 42,
    "nbre_items": 8,
    "filter_value": "maxime",
    "is_anonymous": false,
    "user_id": 20,
    "service_id": 15,
    "status": "pending",
    "date_start": "2026-05-04T09:37:23",
    "date_end": "2026-05-04T09:37:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/feedbacks/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 42

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Example: maxime

is_anonymous   boolean  optional  

Example: false

user_id   integer  optional  

The id of an existing record in the users table. Example: 20

service_id   integer  optional  

The id of an existing record in the services table. Example: 15

status   string  optional  

Example: pending

Must be one of:
  • pending
  • received
  • in_progress
  • resolved
date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

Afficher les détails d'une suggestion / feedback

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/feedbacks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/feedbacks/{feedback_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

feedback_id   integer   

The ID of the feedback. Example: 1

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\": 20,
    \"message\": \"bd\",
    \"is_anonyme\": false
}"
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": 20,
    "message": "bd",
    "is_anonyme": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/feedbacks

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

service_id   integer  optional  

The id of an existing record in the services table. Example: 20

message   string   

Le champ value ne peut contenir plus de 1000 caractères. Example: bd

is_anonyme   boolean  optional  

Example: false

Mettre à jour une suggestion / feedback

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/feedbacks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"service_id\": 10,
    \"status\": \"in_progress\",
    \"message\": \"itterzxavukctibvenr\",
    \"is_anonymous\": false
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "service_id": 10,
    "status": "in_progress",
    "message": "itterzxavukctibvenr",
    "is_anonymous": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/feedbacks/{feedback_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

feedback_id   integer   

The ID of the feedback. Example: 1

Body Parameters

service_id   integer  optional  

The id of an existing record in the services table. Example: 10

status   string  optional  

Example: in_progress

Must be one of:
  • pending
  • received
  • in_progress
  • resolved
message   string  optional  

Le champ value ne peut contenir plus de 1000 caractères. Example: itterzxavukctibvenr

is_anonymous   boolean  optional  

Example: false

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/feedbacks/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        12
    ]
}"
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": [
        12
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/feedbacks/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        19
    ]
}"
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": [
        19
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/feedbacks/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 9,
    \"nbre_items\": 4
}"
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": 9,
    "nbre_items": 4
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-types/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 9

nbre_items   integer  optional  

Example: 4

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."
}
 

Request      

GET api/expense-types/{expense_type}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

expense_type   integer   

Example: 1

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\": \"at\",
    \"description\": \"Et nemo esse quo.\"
}"
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": "at",
    "description": "Et nemo esse quo."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Example: at

description   string  optional  

Example: Et nemo esse quo.

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\": \"cupiditate\",
    \"description\": \"Exercitationem incidunt reiciendis quod animi omnis.\"
}"
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": "cupiditate",
    "description": "Exercitationem incidunt reiciendis quod animi omnis."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/expense-types/{expense_type}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

expense_type   integer   

Example: 1

Body Parameters

name   string  optional  

Example: cupiditate

description   string  optional  

Example: Exercitationem incidunt reiciendis quod animi omnis.

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\": [
        12
    ]
}"
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": [
        12
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-types/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        4
    ]
}"
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": [
        4
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/expense-types/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        12
    ]
}"
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": [
        12
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/expense-types/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 20,
    \"filter_value\": \"unde\",
    \"hotel_id\": 4,
    \"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": 20,
    "filter_value": "unde",
    "hotel_id": 4,
    "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
    }
}
 

Request      

POST api/room-types/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

page_items   integer  optional  

required. Example: 1

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Example: unde

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 4

trashed   boolean  optional  

Example: true

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."
}
 

Request      

GET api/room-types/{room_type}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_type   integer   

Example: 3

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\": \"ea\",
            \"hotel_id\": 18,
            \"description\": \"Accusamus ipsum molestiae tempore ab.\"
        }
    ]
}"
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": "ea",
            "hotel_id": 18,
            "description": "Accusamus ipsum molestiae tempore ab."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

room_types   object[]   

Le champ value doit contenir au moins 1 éléments.

name   string   

Example: ea

hotel_id   integer   

The id of an existing record in the hotels table. Example: 18

description   string  optional  

Example: Accusamus ipsum molestiae tempore ab.

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\": \"soluta\",
    \"hotel_id\": 16,
    \"description\": \"Nobis explicabo nisi reprehenderit exercitationem possimus.\"
}"
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": "soluta",
    "hotel_id": 16,
    "description": "Nobis explicabo nisi reprehenderit exercitationem possimus."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/room-types/{room_type}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

room_type   integer   

Example: 3

Body Parameters

name   string   

Example: soluta

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 16

description   string  optional  

Example: Nobis explicabo nisi reprehenderit exercitationem possimus.

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\": [
        10
    ]
}"
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": [
        10
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/room-types/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the room_types table.

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\": [
        11
    ]
}"
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": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-types/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        19
    ]
}"
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": [
        19
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/room-types/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": 12,
    \"page_items\": 85,
    \"nbre_items\": 5,
    \"filter_value\": \"cewsqknnpfscqrfpojlv\",
    \"priority\": \"medium\",
    \"status\": \"started\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 1,
    "responsible_id": 12,
    "page_items": 85,
    "nbre_items": 5,
    "filter_value": "cewsqknnpfscqrfpojlv",
    "priority": "medium",
    "status": "started"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/tasks/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 1

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 12

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 85

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: cewsqknnpfscqrfpojlv

priority   string  optional  

Example: medium

Must be one of:
  • low
  • medium
  • high
status   string  optional  

Example: started

Must be one of:
  • created
  • started
  • finished

Afficher les détails d'une tâche

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/tasks/20" \
    --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/20"
);

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."
}
 

Request      

GET api/tasks/{task_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

task_id   integer   

The ID of the task. Example: 20

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\": \"onolz\",
    \"description\": \"Laborum non tempore magnam quaerat.\",
    \"due_date\": \"2026-05-04\",
    \"estimation\": 82,
    \"priority\": \"high\",
    \"user_ids\": [
        3
    ],
    \"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": "onolz",
    "description": "Laborum non tempore magnam quaerat.",
    "due_date": "2026-05-04",
    "estimation": 82,
    "priority": "high",
    "user_ids": [
        3
    ],
    "responsible_id": 3
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/tasks

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Le champ value ne peut contenir plus de 250 caractères. Example: onolz

description   string   

Example: Laborum non tempore magnam quaerat.

due_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

estimation   integer   

Le champ value doit être au moins 0. Example: 82

priority   string   

Example: high

Must be one of:
  • low
  • medium
  • high
user_ids   integer[]  optional  

The id of an existing record in the users table.

responsible_id   integer   

The id of an existing record in the users table. Example: 3

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\": \"ojsax\",
    \"description\": \"Facere asperiores et ratione et modi commodi.\",
    \"due_date\": \"2026-05-04\",
    \"estimation\": 36,
    \"priority\": \"low\",
    \"status\": \"started\",
    \"user_ids\": [
        8
    ],
    \"responsible_id\": 3
}"
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": "ojsax",
    "description": "Facere asperiores et ratione et modi commodi.",
    "due_date": "2026-05-04",
    "estimation": 36,
    "priority": "low",
    "status": "started",
    "user_ids": [
        8
    ],
    "responsible_id": 3
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/tasks/{task_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

task_id   integer   

The ID of the task. Example: 9

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 250 caractères. Example: ojsax

description   string  optional  

Example: Facere asperiores et ratione et modi commodi.

due_date   string  optional  

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-05-04

estimation   integer  optional  

Le champ value doit être au moins 0. Example: 36

priority   string  optional  

Example: low

Must be one of:
  • low
  • medium
  • high
status   string  optional  

Example: started

Must be one of:
  • created
  • started
  • finished
user_ids   integer[]  optional  

The id of an existing record in the users table.

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 3

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\": [
        13
    ]
}"
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": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/tasks/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        7
    ]
}"
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": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/tasks/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": [
        16
    ]
}"
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": [
        16
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/tasks/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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\": \"djd\"
}"
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": "djd"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/upload-photo

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

photo   string   

Le champ value ne peut contenir plus de 5120 caractères. Example: djd

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\": 15,
    \"role_types\": [
        \"iusto\"
    ],
    \"page_items\": 14,
    \"nbre_items\": 17,
    \"filter_value\": \"ex\",
    \"order_by\": true,
    \"service_id\": 15,
    \"hotel_id\": 14,
    \"responsible_id\": 20,
    \"type\": \"pariatur\"
}"
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": 15,
    "role_types": [
        "iusto"
    ],
    "page_items": 14,
    "nbre_items": 17,
    "filter_value": "ex",
    "order_by": true,
    "service_id": 15,
    "hotel_id": 14,
    "responsible_id": 20,
    "type": "pariatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/all

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

role_id   integer  optional  

The id of an existing record in the roles table. Example: 15

role_types   string[]  optional  

The type of an existing record in the roles table.

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 14

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Example: ex

order_by   boolean  optional  

Example: true

service_id   integer  optional  

The id of an existing record in the services table. Example: 15

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 14

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 20

type   string  optional  

Example: pariatur

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\": \"ecqobtaseqp\",
    \"lastname\": \"sxoxd\",
    \"gender\": \"female\",
    \"type\": \"sit\",
    \"birthday\": \"2026-05-04T09:37:23\",
    \"nationality\": \"sufhkpdhogfat\",
    \"nui\": \"aeg\",
    \"cni\": \"qsxdxxehzlbsplhdu\",
    \"cnps\": \"sedcrdutvdzj\",
    \"passport_issue_date\": \"2026-05-04T09:37:23\",
    \"passport_issue_place\": \"jolwmugpdseqonwksmvuk\",
    \"profession\": \"dbiufmljkjqrz\",
    \"birth_place\": \"jib\",
    \"connexion_type\": \"phone\",
    \"email\": \"esteban.willms@example.com\",
    \"phone\": \"uzrsrcfrlfm\",
    \"phone2\": \"kjvdsyfavgrimhk\",
    \"city\": \"dztnunub\",
    \"address\": \"aubsuptgfyhzwgccvwqsqfrdx\",
    \"country\": \"qpnbjwthnwzxwcjx\",
    \"hotel_id\": 4,
    \"service_id\": 19,
    \"responsible_id\": 20,
    \"password\": \"Y1eYUX0\",
    \"photo\": \"mollitia\",
    \"role_id\": 9,
    \"articles\": [
        4
    ]
}"
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": "ecqobtaseqp",
    "lastname": "sxoxd",
    "gender": "female",
    "type": "sit",
    "birthday": "2026-05-04T09:37:23",
    "nationality": "sufhkpdhogfat",
    "nui": "aeg",
    "cni": "qsxdxxehzlbsplhdu",
    "cnps": "sedcrdutvdzj",
    "passport_issue_date": "2026-05-04T09:37:23",
    "passport_issue_place": "jolwmugpdseqonwksmvuk",
    "profession": "dbiufmljkjqrz",
    "birth_place": "jib",
    "connexion_type": "phone",
    "email": "esteban.willms@example.com",
    "phone": "uzrsrcfrlfm",
    "phone2": "kjvdsyfavgrimhk",
    "city": "dztnunub",
    "address": "aubsuptgfyhzwgccvwqsqfrdx",
    "country": "qpnbjwthnwzxwcjx",
    "hotel_id": 4,
    "service_id": 19,
    "responsible_id": 20,
    "password": "Y1eYUX0",
    "photo": "mollitia",
    "role_id": 9,
    "articles": [
        4
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

firstname   string   

Le champ value ne peut contenir plus de 255 caractères. Example: ecqobtaseqp

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: sxoxd

gender   string   

Example: female

Must be one of:
  • male
  • female
type   string  optional  

Example: sit

birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: sufhkpdhogfat

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: aeg

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qsxdxxehzlbsplhdu

cnps   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: sedcrdutvdzj

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

passport_issue_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jolwmugpdseqonwksmvuk

profession   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dbiufmljkjqrz

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jib

connexion_type   string   

Example: phone

Must be one of:
  • email
  • phone
email   string  optional  

This field is required when connexion_type is email. Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: esteban.willms@example.com

phone   string  optional  

This field is required when connexion_type is phone. Le champ value ne peut contenir plus de 20 caractères. Example: uzrsrcfrlfm

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: kjvdsyfavgrimhk

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dztnunub

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: aubsuptgfyhzwgccvwqsqfrdx

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qpnbjwthnwzxwcjx

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 4

service_id   integer  optional  

The id of an existing record in the services table. Example: 19

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 20

password   string   

Le champ value doit contenir au moins 6 caractères. Example: Y1eYUX0

photo   string  optional  

Example: mollitia

role_id   integer  optional  

The id of an existing record in the roles table. Example: 9

articles   integer[]  optional  

The id of an existing record in the articles table.

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."
}
 

Request      

GET api/users/{user_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   integer   

The ID of the user. Example: 1

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\": \"jshondktzublzmssvxicaurt\",
    \"lastname\": \"fubgjoykfxxnlwbuagoj\",
    \"gender\": \"female\",
    \"type\": \"aut\",
    \"birthday\": \"2026-05-04T09:37:23\",
    \"nationality\": \"zwmrk\",
    \"nui\": \"aygprulxqyumgb\",
    \"cni\": \"hesqhxdajyesxhvuvcsa\",
    \"cnps\": \"p\",
    \"passport_issue_date\": \"2026-05-04T09:37:23\",
    \"passport_issue_place\": \"iwodibrusddojyqi\",
    \"profession\": \"gzbvvntspraslkdpujb\",
    \"birth_place\": \"vtsjsvb\",
    \"connexion_type\": \"email\",
    \"email\": \"hilpert.lindsay@example.net\",
    \"phone\": \"aboenvrxikhnd\",
    \"phone2\": \"ptddonbcmyivr\",
    \"city\": \"eaprtfznyhhocnzsjggjoxft\",
    \"address\": \"rionwfosuqtpiotiaqjdfv\",
    \"country\": \"dxkahabbwfmx\",
    \"hotel_id\": 5,
    \"service_id\": 8,
    \"responsible_id\": 3,
    \"password\": \")X*nPAfvlV\\\"61_17H\",
    \"photo\": \"et\",
    \"role_id\": 15
}"
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": "jshondktzublzmssvxicaurt",
    "lastname": "fubgjoykfxxnlwbuagoj",
    "gender": "female",
    "type": "aut",
    "birthday": "2026-05-04T09:37:23",
    "nationality": "zwmrk",
    "nui": "aygprulxqyumgb",
    "cni": "hesqhxdajyesxhvuvcsa",
    "cnps": "p",
    "passport_issue_date": "2026-05-04T09:37:23",
    "passport_issue_place": "iwodibrusddojyqi",
    "profession": "gzbvvntspraslkdpujb",
    "birth_place": "vtsjsvb",
    "connexion_type": "email",
    "email": "hilpert.lindsay@example.net",
    "phone": "aboenvrxikhnd",
    "phone2": "ptddonbcmyivr",
    "city": "eaprtfznyhhocnzsjggjoxft",
    "address": "rionwfosuqtpiotiaqjdfv",
    "country": "dxkahabbwfmx",
    "hotel_id": 5,
    "service_id": 8,
    "responsible_id": 3,
    "password": ")X*nPAfvlV\"61_17H",
    "photo": "et",
    "role_id": 15
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/users/{user_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   integer   

The ID of the user. Example: 1

Body Parameters

firstname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jshondktzublzmssvxicaurt

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: fubgjoykfxxnlwbuagoj

gender   string  optional  

Example: female

Must be one of:
  • male
  • female
type   string  optional  

Example: aut

birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: zwmrk

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: aygprulxqyumgb

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: hesqhxdajyesxhvuvcsa

cnps   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: p

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-05-04T09:37:23

passport_issue_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: iwodibrusddojyqi

profession   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: gzbvvntspraslkdpujb

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: vtsjsvb

connexion_type   string  optional  

Example: email

Must be one of:
  • email
  • phone
email   string  optional  

Le champ value doit être une address e-mail valide. Le champ value ne peut contenir plus de 255 caractères. Example: hilpert.lindsay@example.net

phone   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: aboenvrxikhnd

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: ptddonbcmyivr

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: eaprtfznyhhocnzsjggjoxft

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rionwfosuqtpiotiaqjdfv

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dxkahabbwfmx

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 5

service_id   integer  optional  

The id of an existing record in the services table. Example: 8

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 3

password   string  optional  

Le champ value doit contenir au moins 6 caractères. Example: )X*nPAfvlV"61_17H

photo   string  optional  

Example: et

role_id   integer  optional  

The id of an existing record in the roles table. Example: 15

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\": [
        6
    ]
}"
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": [
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional  

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\": [
        11
    ]
}"
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": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional  

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\": [
        4
    ]
}"
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": [
        4
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_ids   integer[]  optional