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

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: 19

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\": 7,
    \"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": 7,
    "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: 7

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\": 5,
    \"service_id\": 14,
    \"month\": 2
}"
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": 5,
    "service_id": 14,
    "month": 2
};

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: 5

service_id   integer  optional  

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

month   integer  optional  

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

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\": 3,
    \"room_id\": 1,
    \"service_id\": 4,
    \"date_start\": \"2026-04-15T13:44:15\",
    \"date_end\": \"2026-04-15T13:44:15\"
}"
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": 3,
    "room_id": 1,
    "service_id": 4,
    "date_start": "2026-04-15T13:44:15",
    "date_end": "2026-04-15T13:44:15"
};

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: 3

room_id   integer  optional  

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

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-04-15T13:44:15

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

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\": 24,
    \"nbre_items\": 5,
    \"filter_value\": \"ea\",
    \"service_id\": 18,
    \"hotel_id\": 16,
    \"type\": \"consumable\",
    \"expired\": false
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/articles/all"
);

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

let body = {
    "page_items": 24,
    "nbre_items": 5,
    "filter_value": "ea",
    "service_id": 18,
    "hotel_id": 16,
    "type": "consumable",
    "expired": false
};

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: 24

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Example: ea

service_id   integer  optional  

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

hotel_id   integer  optional  

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

type   string  optional  

Example: consumable

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

Example: false

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\": \"deserunt\",
            \"type\": \"storable\",
            \"image\": \"aliquam\",
            \"price\": 108784331.96588169,
            \"description\": \"Quis saepe iste magni.\",
            \"unit_of_measurement\": \"culpa\",
            \"alert_quantity\": 15,
            \"expiry_date\": \"2026-04-15T13:44:14\",
            \"container\": \"molestias\",
            \"container_unit\": \"vuvjmsedjpwlqdqzfcixqeuf\",
            \"container_quantity\": 43,
            \"detail\": \"labore\",
            \"service_id\": 13,
            \"suppliers\": [
                3
            ]
        }
    ]
}"
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": "deserunt",
            "type": "storable",
            "image": "aliquam",
            "price": 108784331.96588169,
            "description": "Quis saepe iste magni.",
            "unit_of_measurement": "culpa",
            "alert_quantity": 15,
            "expiry_date": "2026-04-15T13:44:14",
            "container": "molestias",
            "container_unit": "vuvjmsedjpwlqdqzfcixqeuf",
            "container_quantity": 43,
            "detail": "labore",
            "service_id": 13,
            "suppliers": [
                3
            ]
        }
    ]
};

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: deserunt

type   string   

Example: storable

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

Example: aliquam

price   number   

Example: 108784331.96588

description   string  optional  

Example: Quis saepe iste magni.

unit_of_measurement   string  optional  

Example: culpa

alert_quantity   integer  optional  

Example: 15

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

container   string  optional  

Example: molestias

container_unit   string  optional  

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

container_quantity   integer  optional  

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

detail   string  optional  

Example: labore

service_id   integer   

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

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\": \"odit\",
    \"type\": \"consumable\",
    \"image\": \"numquam\",
    \"price\": 433868816.95,
    \"description\": \"Et expedita laborum fuga error laboriosam accusamus.\",
    \"unit_of_measurement\": \"eligendi\",
    \"alert_quantity\": 3,
    \"expiry_date\": \"2026-04-15T13:44:14\",
    \"container\": \"voluptas\",
    \"container_unit\": \"g\",
    \"container_quantity\": 64,
    \"detail\": \"illum\",
    \"service_id\": 4
}"
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": "odit",
    "type": "consumable",
    "image": "numquam",
    "price": 433868816.95,
    "description": "Et expedita laborum fuga error laboriosam accusamus.",
    "unit_of_measurement": "eligendi",
    "alert_quantity": 3,
    "expiry_date": "2026-04-15T13:44:14",
    "container": "voluptas",
    "container_unit": "g",
    "container_quantity": 64,
    "detail": "illum",
    "service_id": 4
};

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: odit

type   string  optional  

Example: consumable

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

Example: numquam

price   number  optional  

Example: 433868816.95

description   string  optional  

Example: Et expedita laborum fuga error laboriosam accusamus.

unit_of_measurement   string  optional  

Example: eligendi

alert_quantity   integer  optional  

Example: 3

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

container   string  optional  

Example: voluptas

container_unit   string  optional  

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

container_quantity   integer  optional  

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

detail   string  optional  

Example: illum

service_id   integer  optional  

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

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

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

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

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\": 61,
    \"nbre_items\": 9,
    \"article_id\": 20,
    \"supplier_id\": 9
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/articles-suppliers/all"
);

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

let body = {
    "page_items": 61,
    "nbre_items": 9,
    "article_id": 20,
    "supplier_id": 9
};

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: 61

nbre_items   integer  optional  

Example: 9

article_id   integer  optional  

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

supplier_id   integer  optional  

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

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=rshhduuwllqhohd"\
    --form "lastname=jqzudlmtqmecyrbkzus"\
    --form "gender=male"\
    --form "birthday=2026-04-15T13:44:14"\
    --form "nationality=jjgznifhxvxkm"\
    --form "nui=uzjyuxijxamzzstwntdrorh"\
    --form "cni=pfxnorsqkiugqckor"\
    --form "cnps=kriclczfuhxtaghorrbohxwwa"\
    --form "passport_issue_date=2026-04-15T13:44:14"\
    --form "passport_issue_place=ulzyifpufbnaavam"\
    --form "profession=ctyojqkf"\
    --form "birth_place=mqi"\
    --form "connexion_type=email"\
    --form "email=brianne71@example.org"\
    --form "phone=brfnm"\
    --form "phone2=nfhqxb"\
    --form "city=jiavgavhukbethptotjjtnyp"\
    --form "address=e"\
    --form "country=tscbohvvkspajkdsetpr"\
    --form "hotel_id=15"\
    --form "service_id=17"\
    --form "responsible_id=8"\
    --form "password=U)RAS/91nB>dEKd"\
    --form "photo=@/tmp/phpG6sGaj" 
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', 'rshhduuwllqhohd');
body.append('lastname', 'jqzudlmtqmecyrbkzus');
body.append('gender', 'male');
body.append('birthday', '2026-04-15T13:44:14');
body.append('nationality', 'jjgznifhxvxkm');
body.append('nui', 'uzjyuxijxamzzstwntdrorh');
body.append('cni', 'pfxnorsqkiugqckor');
body.append('cnps', 'kriclczfuhxtaghorrbohxwwa');
body.append('passport_issue_date', '2026-04-15T13:44:14');
body.append('passport_issue_place', 'ulzyifpufbnaavam');
body.append('profession', 'ctyojqkf');
body.append('birth_place', 'mqi');
body.append('connexion_type', 'email');
body.append('email', 'brianne71@example.org');
body.append('phone', 'brfnm');
body.append('phone2', 'nfhqxb');
body.append('city', 'jiavgavhukbethptotjjtnyp');
body.append('address', 'e');
body.append('country', 'tscbohvvkspajkdsetpr');
body.append('hotel_id', '15');
body.append('service_id', '17');
body.append('responsible_id', '8');
body.append('password', 'U)RAS/91nB>dEKd');
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: rshhduuwllqhohd

lastname   string  optional  

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

gender   string   

Example: male

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

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

nationality   string  optional  

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

nui   string  optional  

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

cni   string  optional  

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

cnps   string  optional  

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

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

passport_issue_place   string  optional  

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

profession   string  optional  

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

birth_place   string  optional  

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

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. Le champ value ne peut contenir plus de 255 caractères. Example: brianne71@example.org

phone   string  optional  

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

phone2   string  optional  

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

city   string  optional  

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

address   string  optional  

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

country   string  optional  

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

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: 17

responsible_id   integer  optional  

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

password   string   

Le champ value doit contenir au moins 6 caractères. Example: U)RAS/91nB>dEKd

photo   file  optional  

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

On vérifie le code envoyé par email

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/verify-account" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"connexion_type\": \"phone\",
    \"email\": \"susan40@example.net\",
    \"phone\": \"mirlbaxkchupyb\",
    \"verification_code\": \"lf\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/verify-account"
);

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

let body = {
    "connexion_type": "phone",
    "email": "susan40@example.net",
    "phone": "mirlbaxkchupyb",
    "verification_code": "lf"
};

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: 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 temp_users table. Le champ value ne peut contenir plus de 255 caractères. Example: susan40@example.net

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: mirlbaxkchupyb

verification_code   string   

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

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\": \"adele96@example.net\",
    \"phone\": \"zdt\",
    \"password\": \"7)Gye\\\\@UnO9]fXS\",
    \"device_key\": \"at\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/login"
);

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

let body = {
    "email": "adele96@example.net",
    "phone": "zdt",
    "password": "7)Gye\\@UnO9]fXS",
    "device_key": "at"
};

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: adele96@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: zdt

password   string   

Example: 7)Gye\@UnO9]fXS

device_key   string  optional  

Example: at

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\": \"gerard.weimann@example.com\",
    \"phone\": \"ijpbowyii\"
}"
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": "gerard.weimann@example.com",
    "phone": "ijpbowyii"
};

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: gerard.weimann@example.com

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: ijpbowyii

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\": \"etromp@example.org\",
    \"phone\": \"skkqce\",
    \"verification_code\": \"napvehaxvshoas\",
    \"password\": \"\\\"f{xfB\\/&^~;9r2FT8\"
}"
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": "etromp@example.org",
    "phone": "skkqce",
    "verification_code": "napvehaxvshoas",
    "password": "\"f{xfB\/&^~;9r2FT8"
};

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: etromp@example.org

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: skkqce

verification_code   string   

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

password   string   

Le champ value doit contenir au moins 6 caractères. Example: "f{xfB/&^~;9r2FT8

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\": 11,
    \"nbre_items\": 20,
    \"filter_value\": \"quis\",
    \"trashed\": false,
    \"user_id\": 4,
    \"user_approve_id\": 6,
    \"date\": \"2026-04-15\"
}"
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": 11,
    "nbre_items": 20,
    "filter_value": "quis",
    "trashed": false,
    "user_id": 4,
    "user_approve_id": 6,
    "date": "2026-04-15"
};

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: 11

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Example: quis

trashed   boolean  optional  

Example: false

user_id   integer  optional  

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

user_approve_id   integer  optional  

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

date   string  optional  

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

Afficher une retenue sur salaire spécifique

requires authentication

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

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: odit

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\": 15,
            \"amount\": \"et\",
            \"reason\": \"quibusdam\"
        }
    ]
}"
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": 15,
            "amount": "et",
            "reason": "quibusdam"
        }
    ]
};

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: 15

amount   string   

Example: et

reason   string   

Example: quibusdam

Mettre à jour une retenue sur salaire spécifique

requires authentication

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

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

let body = {
    "user_approve_id": 4,
    "status": "rejected",
    "reason": "enim",
    "comments": "minus"
};

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: reiciendis

Body Parameters

user_approve_id   integer  optional  

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

amount   string  optional  
status   string  optional  

Example: rejected

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

Example: enim

comments   string  optional  

Example: minus

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

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

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

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\": 9,
    \"archive\": \"with_trashed\",
    \"date\": \"2026-04-15\",
    \"page_items\": 17,
    \"nbre_items\": 15,
    \"filter_value\": \"eveniet\"
}"
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": 9,
    "archive": "with_trashed",
    "date": "2026-04-15",
    "page_items": 17,
    "nbre_items": 15,
    "filter_value": "eveniet"
};

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: 9

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. Must be a valid date in the format Y-m-d. Example: 2026-04-15

page_items   integer  optional  

Example: 17

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Example: eveniet

Afficher les détails d'un avertissement

requires authentication

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

Ajouter un ou plusieurs avertissements

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/warnings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"warnings\": [
        {
            \"user_id\": 19,
            \"reason\": \"odio\",
            \"date\": \"2026-04-15\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/warnings"
);

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

let body = {
    "warnings": [
        {
            "user_id": 19,
            "reason": "odio",
            "date": "2026-04-15"
        }
    ]
};

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: 19

reason   string   

Example: odio

date   string   

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

Modifier les détails d'un avertissement

requires authentication

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

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

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

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: 19

Body Parameters

user_id   integer  optional  

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

reason   string  optional  

Example: et

date   string  optional  

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

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

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

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\": 84,
    \"nbre_items\": 11,
    \"filter_value\": \"occaecati\",
    \"status\": \"requesting_price\",
    \"priority\": \"high\",
    \"article_ids\": [
        20
    ]
}"
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": 84,
    "nbre_items": 11,
    "filter_value": "occaecati",
    "status": "requesting_price",
    "priority": "high",
    "article_ids": [
        20
    ]
};

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: 84

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: occaecati

status   string  optional  

Example: requesting_price

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\": 1,
    \"responsible_id\": 10,
    \"description\": \"Quaerat non odit ex excepturi consequatur perspiciatis.\",
    \"status\": \"delivered\",
    \"priority\": \"high\",
    \"quotation_file\": \"omnis\",
    \"articles\": [
        {
            \"id\": 18,
            \"unit_price\": 10,
            \"quantity\": 59
        }
    ]
}"
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": 1,
    "responsible_id": 10,
    "description": "Quaerat non odit ex excepturi consequatur perspiciatis.",
    "status": "delivered",
    "priority": "high",
    "quotation_file": "omnis",
    "articles": [
        {
            "id": 18,
            "unit_price": 10,
            "quantity": 59
        }
    ]
};

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: 1

responsible_id   integer   

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

description   string  optional  

Example: Quaerat non odit ex excepturi consequatur perspiciatis.

status   string  optional  

Example: delivered

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: omnis

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: 10

quantity   integer   

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

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\": 7,
    \"responsible_id\": 8,
    \"description\": \"Cum deleniti provident architecto numquam occaecati magnam sed.\",
    \"status\": \"requesting_price\",
    \"priority\": \"medium\",
    \"quotation_file\": \"ipsum\",
    \"payment_method\": \"MOMO\",
    \"articles\": [
        {
            \"id\": 18,
            \"unit_price\": 5,
            \"quantity\": 7
        }
    ]
}"
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": 7,
    "responsible_id": 8,
    "description": "Cum deleniti provident architecto numquam occaecati magnam sed.",
    "status": "requesting_price",
    "priority": "medium",
    "quotation_file": "ipsum",
    "payment_method": "MOMO",
    "articles": [
        {
            "id": 18,
            "unit_price": 5,
            "quantity": 7
        }
    ]
};

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

responsible_id   integer  optional  

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

description   string  optional  

Example: Cum deleniti provident architecto numquam occaecati magnam sed.

status   string  optional  

Example: requesting_price

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

Example: medium

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

Example: ipsum

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: 18

unit_price   integer  optional  

Example: 5

quantity   integer  optional  

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

payment_method   string  optional  

Example: MOMO

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

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

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

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[]   

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\": 18,
    \"filter_value\": \"quam\",
    \"hotel_id\": 17,
    \"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": 18,
    "filter_value": "quam",
    "hotel_id": 17,
    "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: 18

filter_value   string  optional  

Example: quam

hotel_id   integer  optional  

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

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\": 7,
            \"name\": \"excepturi\",
            \"description\": \"Hic aut dolorem quia tempore tempora voluptatem.\"
        }
    ]
}"
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": 7,
            "name": "excepturi",
            "description": "Hic aut dolorem quia tempore tempora voluptatem."
        }
    ]
};

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

name   string   

Example: excepturi

description   string  optional  

Example: Hic aut dolorem quia tempore tempora voluptatem.

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\": \"harum\",
    \"hotel_id\": 1,
    \"description\": \"Dolorem et non temporibus blanditiis aut.\"
}"
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": "harum",
    "hotel_id": 1,
    "description": "Dolorem et non temporibus blanditiis aut."
};

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: harum

hotel_id   integer  optional  

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

description   string  optional  

Example: Dolorem et non temporibus blanditiis aut.

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

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\": [
        8
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-categories/restore"
);

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

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

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

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\": 33,
    \"nbre_items\": 18,
    \"filter_value\": \"ut\",
    \"hotel_id\": 17,
    \"room_type_id\": 13,
    \"room_category_id\": 10,
    \"service_id\": 18,
    \"status\": \"busy\",
    \"floor\": 18,
    \"number_of_room\": 6
}"
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": 33,
    "nbre_items": 18,
    "filter_value": "ut",
    "hotel_id": 17,
    "room_type_id": 13,
    "room_category_id": 10,
    "service_id": 18,
    "status": "busy",
    "floor": 18,
    "number_of_room": 6
};

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: 33

nbre_items   integer  optional  

Example: 18

filter_value   string  optional  

Example: ut

hotel_id   integer  optional  

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

room_type_id   integer  optional  

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

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: 18

number_of_room   integer  optional  

Example: 6

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\": 16,
            \"room_type_id\": 12,
            \"room_category_id\": 1,
            \"service_id\": 3,
            \"floor\": 1,
            \"number\": 11,
            \"price\": 10,
            \"number_of_room\": 8,
            \"capacity\": 19,
            \"status\": \"free\",
            \"name\": \"vel\",
            \"description\": \"Et facere qui sint consectetur.\",
            \"image\": \"nostrum\"
        }
    ]
}"
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": 16,
            "room_type_id": 12,
            "room_category_id": 1,
            "service_id": 3,
            "floor": 1,
            "number": 11,
            "price": 10,
            "number_of_room": 8,
            "capacity": 19,
            "status": "free",
            "name": "vel",
            "description": "Et facere qui sint consectetur.",
            "image": "nostrum"
        }
    ]
};

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: 16

room_type_id   integer   

Example: 12

room_category_id   integer   

Example: 1

service_id   integer   

Example: 3

floor   integer  optional  

Example: 1

number   integer  optional  

Example: 11

price   integer   

Example: 10

number_of_room   integer  optional  

Example: 8

capacity   integer   

Example: 19

status   string   

Example: free

Must be one of:
  • free
  • busy
name   string   

Example: vel

description   string  optional  

Example: Et facere qui sint consectetur.

image   string  optional  

Example: nostrum

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\": 15,
    \"room_type_id\": 18,
    \"room_category_id\": 9,
    \"service_id\": 4,
    \"floor\": 15,
    \"number\": 6,
    \"price\": 5,
    \"number_of_room\": 2,
    \"image\": \"sapiente\",
    \"capacity\": 11,
    \"status\": \"busy\",
    \"description\": \"Rerum quaerat rerum et aut totam dolorem repellendus.\"
}"
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": 15,
    "room_type_id": 18,
    "room_category_id": 9,
    "service_id": 4,
    "floor": 15,
    "number": 6,
    "price": 5,
    "number_of_room": 2,
    "image": "sapiente",
    "capacity": 11,
    "status": "busy",
    "description": "Rerum quaerat rerum et aut totam dolorem repellendus."
};

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: 15

room_type_id   integer  optional  

Example: 18

room_category_id   integer  optional  

Example: 9

service_id   integer  optional  

Example: 4

floor   integer  optional  

Example: 15

number   integer  optional  

Example: 6

price   integer  optional  

Example: 5

number_of_room   integer  optional  

Example: 2

image   string  optional  

Example: sapiente

capacity   integer  optional  

Example: 11

status   string  optional  

Example: busy

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

Example: Rerum quaerat rerum et aut totam dolorem repellendus.

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

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

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

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

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: odit

Récuperer les clés d'applications

requires authentication

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

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: nesciunt

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\": 15,
    \"nbre_items\": 12,
    \"filter_value\": \"eos\",
    \"customer_id\": 18,
    \"payment_mode\": \"quis\",
    \"status\": \"cancelled\",
    \"payment_status\": \"none\",
    \"product_id\": 6,
    \"service_id\": 10,
    \"date_start\": \"2026-04-15T13:44:14\",
    \"date_end\": \"2026-04-15T13:44:14\",
    \"hotel_id\": 15
}"
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": 15,
    "nbre_items": 12,
    "filter_value": "eos",
    "customer_id": 18,
    "payment_mode": "quis",
    "status": "cancelled",
    "payment_status": "none",
    "product_id": 6,
    "service_id": 10,
    "date_start": "2026-04-15T13:44:14",
    "date_end": "2026-04-15T13:44:14",
    "hotel_id": 15
};

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: 15

nbre_items   integer  optional  

Example: 12

filter_value   string  optional  

Example: eos

customer_id   integer  optional  

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

payment_mode   string  optional  

Example: quis

status   string  optional  

Example: cancelled

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

Example: none

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

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

service_id   integer  optional  

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

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

hotel_id   integer  optional  

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

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\": 12,
    \"payment_mode\": \"dolor\",
    \"room_id\": 19,
    \"room_service_id\": 12,
    \"status\": \"confirmed\",
    \"delivery_date\": \"2026-04-15T13:44:15\",
    \"products\": [
        {
            \"id\": 12,
            \"quantity\": 57
        }
    ]
}"
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": 12,
    "payment_mode": "dolor",
    "room_id": 19,
    "room_service_id": 12,
    "status": "confirmed",
    "delivery_date": "2026-04-15T13:44:15",
    "products": [
        {
            "id": 12,
            "quantity": 57
        }
    ]
};

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: 12

payment_mode   string  optional  

Example: dolor

room_id   integer  optional  

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

room_service_id   integer  optional  

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

status   string  optional  

Example: confirmed

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

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

products   object[]   
id   integer   

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

quantity   integer   

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

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\": 17,
    \"payment_mode\": \"numquam\",
    \"room_id\": 1,
    \"room_service_id\": 19,
    \"status\": \"confirmed\",
    \"delivery_date\": \"2026-04-15T13:44:15\",
    \"products\": [
        {
            \"id\": 11,
            \"quantity\": 82
        }
    ]
}"
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": 17,
    "payment_mode": "numquam",
    "room_id": 1,
    "room_service_id": 19,
    "status": "confirmed",
    "delivery_date": "2026-04-15T13:44:15",
    "products": [
        {
            "id": 11,
            "quantity": 82
        }
    ]
};

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: 17

payment_mode   string  optional  

Example: numquam

room_id   integer  optional  

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

room_service_id   integer  optional  

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

status   string  optional  

Example: confirmed

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

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

products   object[]  optional  
id   integer   

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

quantity   integer   

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

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

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

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\": [
        10
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/orders/destroy"
);

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

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

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

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\": 20,
    \"nbre_items\": 1,
    \"filter_value\": \"hic\",
    \"position\": \"voluptatibus\",
    \"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": 20,
    "nbre_items": 1,
    "filter_value": "hic",
    "position": "voluptatibus",
    "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: 20

nbre_items   integer  optional  

Example: 1

filter_value   string  optional  

Example: hic

position   string  optional  

Example: voluptatibus

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

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: incidunt

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\": 8,
    \"user_approve_id\": 11,
    \"type\": \"repudiandae\",
    \"description\": \"Est sit similique dolor perspiciatis minima.\",
    \"start_date\": \"2026-04-15T13:44:15\",
    \"duration\": 3,
    \"working_hours\": \"reprehenderit\",
    \"position\": \"vero\",
    \"gross_salary\": 46,
    \"status\": \"Pending\",
    \"service_benefits\": \"illo\",
    \"bonus\": \"incidunt\",
    \"number_days_off\": 7
}"
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": 8,
    "user_approve_id": 11,
    "type": "repudiandae",
    "description": "Est sit similique dolor perspiciatis minima.",
    "start_date": "2026-04-15T13:44:15",
    "duration": 3,
    "working_hours": "reprehenderit",
    "position": "vero",
    "gross_salary": 46,
    "status": "Pending",
    "service_benefits": "illo",
    "bonus": "incidunt",
    "number_days_off": 7
};

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: 8

user_approve_id   integer   

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

type   string   

Example: repudiandae

description   string  optional  

Example: Est sit similique dolor perspiciatis minima.

start_date   string   

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

duration   integer  optional  

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

working_hours   string   

Example: reprehenderit

position   string   

Example: vero

gross_salary   number   

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

status   string  optional  

Example: Pending

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

Example: illo

bonus   string  optional  

Example: incidunt

number_days_off   integer  optional  

Example: 7

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

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/contracts/ullam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 3,
    \"user_approve_id\": 4,
    \"type\": \"CDD\",
    \"description\": \"Ex culpa consequatur porro et consequatur.\",
    \"start_date\": \"2026-04-15T13:44:15\",
    \"duration\": 42,
    \"working_hours\": \"velit\",
    \"position\": \"quas\",
    \"gross_salary\": 30,
    \"status\": \"Terminated\",
    \"service_benefits\": \"ab\",
    \"bonus\": \"laboriosam\",
    \"number_days_off\": 15
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/contracts/ullam"
);

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

let body = {
    "user_id": 3,
    "user_approve_id": 4,
    "type": "CDD",
    "description": "Ex culpa consequatur porro et consequatur.",
    "start_date": "2026-04-15T13:44:15",
    "duration": 42,
    "working_hours": "velit",
    "position": "quas",
    "gross_salary": 30,
    "status": "Terminated",
    "service_benefits": "ab",
    "bonus": "laboriosam",
    "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: ullam

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: 4

type   string  optional  

Example: CDD

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

Example: Ex culpa consequatur porro et consequatur.

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

duration   integer  optional  

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

working_hours   string  optional  

Example: velit

position   string  optional  

Example: quas

gross_salary   number  optional  

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

status   string  optional  

Example: Terminated

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

Example: ab

bonus   string  optional  

Example: laboriosam

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

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

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

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\": 56,
    \"nbre_items\": 17,
    \"filter_value\": \"beatae\",
    \"supplier_id\": 2,
    \"hotel_id\": 5,
    \"purchase_order_id\": 7,
    \"user_id\": 1,
    \"created_by\": 1,
    \"responsible_id\": 2,
    \"service_id\": 15,
    \"payment_method\": \"Bank\",
    \"status\": \"rejected\",
    \"reference\": \"quia\",
    \"date_start\": \"2026-04-15T13:44:14\",
    \"date_end\": \"2026-04-15T13:44:14\",
    \"expense_type_id\": 11,
    \"service_ids\": [
        19
    ]
}"
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": 56,
    "nbre_items": 17,
    "filter_value": "beatae",
    "supplier_id": 2,
    "hotel_id": 5,
    "purchase_order_id": 7,
    "user_id": 1,
    "created_by": 1,
    "responsible_id": 2,
    "service_id": 15,
    "payment_method": "Bank",
    "status": "rejected",
    "reference": "quia",
    "date_start": "2026-04-15T13:44:14",
    "date_end": "2026-04-15T13:44:14",
    "expense_type_id": 11,
    "service_ids": [
        19
    ]
};

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: 56

nbre_items   integer  optional  

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

filter_value   string  optional  

Example: beatae

supplier_id   integer  optional  

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

hotel_id   integer  optional  

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

purchase_order_id   integer  optional  

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

user_id   integer  optional  

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

created_by   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: 2

service_id   integer  optional  

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

payment_method   string  optional  

Example: Bank

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

Example: rejected

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

Example: quia

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

expense_type_id   integer  optional  

Example: 11

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\": \"MOMO\",
    \"status\": \"pending\",
    \"invoice_image\": \"sint\",
    \"reasons\": \"ex\",
    \"total_amount\": 15,
    \"disbursement_date\": \"2026-04-15T13:44:14\",
    \"responsible_id\": \"dolores\",
    \"validation_date\": \"2026-04-15T13:44:14\",
    \"salary_components\": [
        {
            \"salary_component_id\": \"perspiciatis\",
            \"coef\": 89,
            \"base_amount\": 41,
            \"coef_patronal\": 83,
            \"base_patronal\": 85
        }
    ]
}"
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": "MOMO",
    "status": "pending",
    "invoice_image": "sint",
    "reasons": "ex",
    "total_amount": 15,
    "disbursement_date": "2026-04-15T13:44:14",
    "responsible_id": "dolores",
    "validation_date": "2026-04-15T13:44:14",
    "salary_components": [
        {
            "salary_component_id": "perspiciatis",
            "coef": 89,
            "base_amount": 41,
            "coef_patronal": 83,
            "base_patronal": 85
        }
    ]
};

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: MOMO

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

Example: pending

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: sint

reasons   string  optional  

Example: ex

total_amount   number  optional  

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

disbursement_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

responsible_id   string   

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

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-04-15T13:44:14

salary_components   object[]  optional  
salary_component_id   string   

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

coef   number  optional  

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

base_amount   number  optional  

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

coef_patronal   number  optional  

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

base_patronal   number  optional  

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

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\": \"voluptatem\",
    \"reasons\": \"omnis\",
    \"total_amount\": 21,
    \"disbursement_date\": \"2026-04-15T13:44:14\",
    \"validation_date\": \"2026-04-15T13:44:14\",
    \"salary_components\": [
        {
            \"salary_component_id\": \"soluta\",
            \"coef\": 80,
            \"base_amount\": 26,
            \"coef_patronal\": 63,
            \"base_patronal\": 86
        }
    ]
}"
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": "voluptatem",
    "reasons": "omnis",
    "total_amount": 21,
    "disbursement_date": "2026-04-15T13:44:14",
    "validation_date": "2026-04-15T13:44:14",
    "salary_components": [
        {
            "salary_component_id": "soluta",
            "coef": 80,
            "base_amount": 26,
            "coef_patronal": 63,
            "base_patronal": 86
        }
    ]
};

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: voluptatem

reasons   string  optional  

Example: omnis

total_amount   number  optional  

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

disbursement_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

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-04-15T13:44:14

salary_components   object[]  optional  
salary_component_id   string   

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

coef   number  optional  

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

base_amount   number  optional  

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

coef_patronal   number  optional  

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

base_patronal   number  optional  

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

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

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

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

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\": \"esse\",
    \"responsible_id\": 1,
    \"hotel_id\": 16,
    \"priority\": \"medium\",
    \"status\": \"accepted\",
    \"article_ids\": [
        4
    ]
}"
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": "esse",
    "responsible_id": 1,
    "hotel_id": 16,
    "priority": "medium",
    "status": "accepted",
    "article_ids": [
        4
    ]
};

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: esse

responsible_id   integer  optional  

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

hotel_id   integer  optional  

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

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\": \"nzosnquvzlqqzvrnoqtefqllf\",
    \"description\": \"Ut sequi laboriosam molestias in.\",
    \"responsible_id\": 11,
    \"status\": \"pending\",
    \"priority\": \"low\",
    \"articles\": [
        {
            \"id\": 12,
            \"unit_price\": 3,
            \"quantity\": 34,
            \"supplier_id\": 11
        }
    ]
}"
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": "nzosnquvzlqqzvrnoqtefqllf",
    "description": "Ut sequi laboriosam molestias in.",
    "responsible_id": 11,
    "status": "pending",
    "priority": "low",
    "articles": [
        {
            "id": 12,
            "unit_price": 3,
            "quantity": 34,
            "supplier_id": 11
        }
    ]
};

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: nzosnquvzlqqzvrnoqtefqllf

description   string  optional  

Example: Ut sequi laboriosam molestias in.

responsible_id   integer   

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

status   string  optional  

Example: pending

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

Example: low

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: 12

unit_price   integer  optional  

Example: 3

quantity   integer   

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

supplier_id   integer   

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

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\": \"ksq\",
    \"description\": \"Sed quisquam provident in saepe excepturi.\",
    \"responsible_id\": 6,
    \"status\": \"refused\",
    \"priority\": \"high\",
    \"articles\": [
        {
            \"id\": 13,
            \"unit_price\": 19,
            \"quantity\": 7,
            \"supplier_id\": 10
        }
    ]
}"
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": "ksq",
    "description": "Sed quisquam provident in saepe excepturi.",
    "responsible_id": 6,
    "status": "refused",
    "priority": "high",
    "articles": [
        {
            "id": 13,
            "unit_price": 19,
            "quantity": 7,
            "supplier_id": 10
        }
    ]
};

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: ksq

description   string  optional  

Example: Sed quisquam provident in saepe excepturi.

responsible_id   integer  optional  

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

status   string  optional  

Example: refused

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: 13

unit_price   integer  optional  

Example: 19

quantity   integer   

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

supplier_id   integer   

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

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

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\": [
        2
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/supply-demands/restore"
);

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

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

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

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\": 47,
    \"nbre_items\": 16
}"
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": 47,
    "nbre_items": 16
};

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: 47

nbre_items   integer  optional  

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

Afficher une demande d'explication spécifique

requires authentication

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

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\": \"w\",
    \"description\": \"Vitae non quam quia vel.\",
    \"idUser\": 20,
    \"idResponsable\": 7,
    \"image\": \"et\",
    \"comments\": \"et\"
}"
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": "w",
    "description": "Vitae non quam quia vel.",
    "idUser": 20,
    "idResponsable": 7,
    "image": "et",
    "comments": "et"
};

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: w

description   string  optional  

Example: Vitae non quam quia vel.

idUser   integer   

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

idResponsable   integer   

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

image   string  optional  

Example: et

comments   string  optional  

Example: et

Mettre a jour une demande d'explication

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/explanation-requests/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"tbzxtkzhjyykyrhx\",
    \"description\": \"Eveniet consequatur dolorem modi mollitia.\",
    \"idUser\": 7,
    \"idResponsable\": 12,
    \"image\": \"quos\",
    \"comments\": \"minima\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/explanation-requests/2"
);

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

let body = {
    "name": "tbzxtkzhjyykyrhx",
    "description": "Eveniet consequatur dolorem modi mollitia.",
    "idUser": 7,
    "idResponsable": 12,
    "image": "quos",
    "comments": "minima"
};

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: 2

Body Parameters

name   string  optional  

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

description   string  optional  

Example: Eveniet consequatur dolorem modi mollitia.

idUser   integer  optional  

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

idResponsable   integer  optional  

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

image   string  optional  

Example: quos

comments   string  optional  

Example: minima

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

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

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

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\": 10,
    \"user_approve_id\": 20,
    \"status\": \"approved\",
    \"archive\": \"with_trashed\",
    \"date\": \"2026-04-15T13:44:15\",
    \"page_items\": 8,
    \"nbre_items\": 19,
    \"filter_value\": \"accusantium\"
}"
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": 10,
    "user_approve_id": 20,
    "status": "approved",
    "archive": "with_trashed",
    "date": "2026-04-15T13:44:15",
    "page_items": 8,
    "nbre_items": 19,
    "filter_value": "accusantium"
};

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: 10

user_approve_id   integer  optional  

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

status   string  optional  

Example: approved

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-04-15T13:44:15

page_items   integer  optional  

Example: 8

nbre_items   integer  optional  

Example: 19

filter_value   string  optional  

Example: accusantium

Afficher les détails d'une retenue sur salaire

requires authentication

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

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\": \"et\",
    \"start_date\": \"2043-07-31\",
    \"end_date\": \"2123-01-08\",
    \"days_taken\": 17,
    \"reason\": \"ujzhvy\",
    \"user_approve_id\": 6
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/holidays"
);

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

let body = {
    "type": "et",
    "start_date": "2043-07-31",
    "end_date": "2123-01-08",
    "days_taken": 17,
    "reason": "ujzhvy",
    "user_approve_id": 6
};

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: et

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: 2043-07-31

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: 2123-01-08

days_taken   integer   

Example: 17

reason   string   

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

user_approve_id   integer   

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

Modifier une demande de congé

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/holidays/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"totam\",
    \"start_date\": \"2099-07-28\",
    \"end_date\": \"2100-03-27\",
    \"days_taken\": 19,
    \"reason\": \"twbdhmdxyrea\",
    \"status\": \"approved\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/holidays/2"
);

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

let body = {
    "type": "totam",
    "start_date": "2099-07-28",
    "end_date": "2100-03-27",
    "days_taken": 19,
    "reason": "twbdhmdxyrea",
    "status": "approved"
};

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: 2

Body Parameters

type   string  optional  

Example: totam

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: 2099-07-28

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: 2100-03-27

days_taken   integer  optional  

Example: 19

reason   string  optional  

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

status   string  optional  

Example: approved

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

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

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

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\": 63,
    \"nbre_items\": 8,
    \"filterValue\": \"imgidnsfrnknwio\",
    \"departure\": \"2026-04-15T13:44:15\",
    \"return\": \"2118-12-25\",
    \"duration\": 42,
    \"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": 63,
    "nbre_items": 8,
    "filterValue": "imgidnsfrnknwio",
    "departure": "2026-04-15T13:44:15",
    "return": "2118-12-25",
    "duration": 42,
    "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: 63

nbre_items   integer  optional  

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

filterValue   string  optional  

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

departure   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

return   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après datedeparture. Example: 2118-12-25

duration   integer  optional  

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

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

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: ut

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\": \"extybjpjqbhhbvxpghreyt\",
    \"departure\": \"2082-09-29\",
    \"return\": \"2052-09-09\",
    \"duration\": 74,
    \"user_approve_id\": 5,
    \"status\": \"pending\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permission-requests"
);

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

let body = {
    "reason": "extybjpjqbhhbvxpghreyt",
    "departure": "2082-09-29",
    "return": "2052-09-09",
    "duration": 74,
    "user_approve_id": 5,
    "status": "pending"
};

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: extybjpjqbhhbvxpghreyt

departure   string   

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à today. Example: 2082-09-29

return   string  optional  

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

duration   integer  optional  

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

user_approve_id   integer   

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

status   string  optional  

Example: pending

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/incidunt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"bymitdhkswp\",
    \"datedeparture\": \"2113-10-24\",
    \"dateRetour\": \"2063-06-12\",
    \"duration\": 88,
    \"status\": \"rejected\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permission-requests/incidunt"
);

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

let body = {
    "reason": "bymitdhkswp",
    "datedeparture": "2113-10-24",
    "dateRetour": "2063-06-12",
    "duration": 88,
    "status": "rejected"
};

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: incidunt

Body Parameters

reason   string  optional  

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

datedeparture   string  optional  

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

dateRetour   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après datedeparture. Example: 2063-06-12

duration   integer  optional  

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

status   string  optional  

Example: rejected

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

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

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

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\": 15,
    \"filter_value\": \"maiores\",
    \"seller_id\": 10,
    \"hotel_id\": 10,
    \"order_id\": 10,
    \"service_id\": 2,
    \"client_id\": 20,
    \"created_by\": 1,
    \"date_start\": \"2026-04-15T13:44:15\",
    \"date_end\": \"2026-04-15T13:44:15\",
    \"cashin_type\": \"booking\",
    \"payment_method\": \"ut\"
}"
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": 15,
    "filter_value": "maiores",
    "seller_id": 10,
    "hotel_id": 10,
    "order_id": 10,
    "service_id": 2,
    "client_id": 20,
    "created_by": 1,
    "date_start": "2026-04-15T13:44:15",
    "date_end": "2026-04-15T13:44:15",
    "cashin_type": "booking",
    "payment_method": "ut"
};

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: 15

filter_value   string  optional  

Example: maiores

seller_id   integer  optional  

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

hotel_id   integer  optional  

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

order_id   integer  optional  

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

service_id   integer  optional  

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

client_id   integer  optional  

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

created_by   integer  optional  

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

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

cashin_type   integer  optional  

Example: booking

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

Example: ut

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\": 19,
    \"service_id\": 1,
    \"booking_id\": 5,
    \"payment_method\": \"ut\",
    \"type\": \"consequatur\",
    \"amount\": 2824828.341627,
    \"date\": \"2026-04-15\"
}"
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": 19,
    "service_id": 1,
    "booking_id": 5,
    "payment_method": "ut",
    "type": "consequatur",
    "amount": 2824828.341627,
    "date": "2026-04-15"
};

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: 19

service_id   integer   

Example: 1

booking_id   integer  optional  

Example: 5

payment_method   string   

Example: ut

type   string  optional  

Example: consequatur

amount   number   

Example: 2824828.341627

date   string  optional  

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

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\": 12,
    \"booking_id\": 4,
    \"payment_method\": \"consequuntur\",
    \"amount\": 410730863.4180848
}"
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": 12,
    "booking_id": 4,
    "payment_method": "consequuntur",
    "amount": 410730863.4180848
};

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: 12

booking_id   integer  optional  

Example: 4

payment_method   string  optional  

Example: consequuntur

amount   number  optional  

Example: 410730863.41808

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

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\": [
        5
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/cash-ins/restore"
);

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

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

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

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\": [
        10
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/cash-ins/destroy"
);

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

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

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

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\": 14,
    \"nbre_items\": 5,
    \"filter_value\": \"quod\",
    \"service_id\": 9,
    \"hotel_id\": 17,
    \"type\": \"internal\",
    \"archive\": \"with_trashed\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/events/all"
);

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

let body = {
    "page_items": 14,
    "nbre_items": 5,
    "filter_value": "quod",
    "service_id": 9,
    "hotel_id": 17,
    "type": "internal",
    "archive": "with_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: 14

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Example: quod

service_id   integer  optional  

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

hotel_id   integer  optional  

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

type   string  optional  

Example: internal

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

Example: with_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\": \"fwgylwagxj\",
    \"description\": \"Quos aut quam quis nesciunt.\",
    \"start_date\": \"2026-04-15\",
    \"end_date\": \"2077-06-19\",
    \"type\": \"internal\",
    \"budget\": \"eos\",
    \"hotel_id\": 17,
    \"service_id\": 9
}"
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": "fwgylwagxj",
    "description": "Quos aut quam quis nesciunt.",
    "start_date": "2026-04-15",
    "end_date": "2077-06-19",
    "type": "internal",
    "budget": "eos",
    "hotel_id": 17,
    "service_id": 9
};

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: fwgylwagxj

description   string   

Example: Quos aut quam quis nesciunt.

start_date   string   

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

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: 2077-06-19

type   string   

Example: internal

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

Example: eos

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: 9

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\": \"dlyqvwthuyjgldejtgq\",
    \"description\": \"Qui aliquam pariatur ratione.\",
    \"start_date\": \"2026-04-15\",
    \"end_date\": \"2109-11-23\",
    \"type\": \"internal\",
    \"budget\": \"aut\",
    \"hotel_id\": 5,
    \"service_id\": 2
}"
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": "dlyqvwthuyjgldejtgq",
    "description": "Qui aliquam pariatur ratione.",
    "start_date": "2026-04-15",
    "end_date": "2109-11-23",
    "type": "internal",
    "budget": "aut",
    "hotel_id": 5,
    "service_id": 2
};

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: dlyqvwthuyjgldejtgq

description   string  optional  

Example: Qui aliquam pariatur ratione.

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-04-15

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: 2109-11-23

type   string  optional  

Example: internal

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

Example: aut

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: 2

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

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

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\": 4,
    \"filter_value\": \"beatae\",
    \"founder_id\": 9,
    \"manager_id\": 18,
    \"assistant_id\": 17,
    \"package_id\": 5
}"
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": 4,
    "filter_value": "beatae",
    "founder_id": 9,
    "manager_id": 18,
    "assistant_id": 17,
    "package_id": 5
};

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: 4

filter_value   string  optional  

Example: beatae

founder_id   integer  optional  

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

manager_id   integer  optional  

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

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: 5

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\": \"officia\",
    \"phone\": \"a\",
    \"description\": \"Dolorem qui nam a nobis ratione quisquam.\",
    \"stars\": 4,
    \"email\": \"zschaden@example.org\",
    \"address\": \"et\",
    \"website\": \"velit\",
    \"logo\": \"est\",
    \"creation_date\": \"2026-04-15\",
    \"city\": \"gxrkcqvmq\",
    \"country\": \"ibovbojyr\",
    \"type\": \"nobis\",
    \"category\": \"quo\",
    \"founder_id\": 14,
    \"manager_id\": 3,
    \"assistant_id\": 13,
    \"package_id\": 15
}"
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": "officia",
    "phone": "a",
    "description": "Dolorem qui nam a nobis ratione quisquam.",
    "stars": 4,
    "email": "zschaden@example.org",
    "address": "et",
    "website": "velit",
    "logo": "est",
    "creation_date": "2026-04-15",
    "city": "gxrkcqvmq",
    "country": "ibovbojyr",
    "type": "nobis",
    "category": "quo",
    "founder_id": 14,
    "manager_id": 3,
    "assistant_id": 13,
    "package_id": 15
};

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: officia

phone   string   

Example: a

description   string   

Example: Dolorem qui nam a nobis ratione quisquam.

stars   integer   

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

email   string   

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

address   string   

Example: et

website   string  optional  

Example: velit

logo   string  optional  

Example: est

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-04-15

city   string   

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

country   string   

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

type   string  optional  

Example: nobis

category   string  optional  

Example: quo

founder_id   integer   

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

manager_id   integer   

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

assistant_id   integer  optional  

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

package_id   integer   

Example: 15

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\": \"ut\",
    \"phone\": \"non\",
    \"description\": \"Aperiam labore aliquid fuga maiores tempora.\",
    \"stars\": 4,
    \"email\": \"myles.feil@example.net\",
    \"address\": \"in\",
    \"website\": \"laudantium\",
    \"logo\": \"qui\",
    \"rib\": \"aliquam\",
    \"niu\": \"quas\",
    \"rc\": \"aperiam\",
    \"creation_date\": \"2026-04-15\",
    \"city\": \"soluta\",
    \"country\": \"non\",
    \"type\": \"et\",
    \"category\": \"excepturi\",
    \"founder_id\": 17,
    \"manager_id\": 17,
    \"assistant_id\": 7,
    \"package_id\": 9
}"
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": "ut",
    "phone": "non",
    "description": "Aperiam labore aliquid fuga maiores tempora.",
    "stars": 4,
    "email": "myles.feil@example.net",
    "address": "in",
    "website": "laudantium",
    "logo": "qui",
    "rib": "aliquam",
    "niu": "quas",
    "rc": "aperiam",
    "creation_date": "2026-04-15",
    "city": "soluta",
    "country": "non",
    "type": "et",
    "category": "excepturi",
    "founder_id": 17,
    "manager_id": 17,
    "assistant_id": 7,
    "package_id": 9
};

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: ut

phone   string  optional  

Example: non

description   string  optional  

Example: Aperiam labore aliquid fuga maiores tempora.

stars   integer  optional  

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

email   string  optional  

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

address   string  optional  

Example: in

website   string  optional  

Example: laudantium

logo   string  optional  

Example: qui

rib   string  optional  

Example: aliquam

niu   string  optional  

Example: quas

rc   string  optional  

Example: aperiam

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-04-15

city   string  optional  

Example: soluta

country   string  optional  

Example: non

type   string  optional  

Example: et

category   string  optional  

Example: excepturi

founder_id   integer  optional  

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

manager_id   integer  optional  

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

assistant_id   integer  optional  

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

package_id   integer  optional  

Example: 9

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

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

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

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\": 26,
    \"nbre_items\": 2,
    \"filter_value\": \"quis\",
    \"article_id\": 20,
    \"operation_type\": \"exit\",
    \"product_id\": 1,
    \"user_id\": 11,
    \"from_date\": \"2026-04-15T13:44:15\",
    \"to_date\": \"2038-09-09\",
    \"date_start\": \"2026-04-15T13:44:15\",
    \"date_end\": \"2051-05-06\"
}"
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": 26,
    "nbre_items": 2,
    "filter_value": "quis",
    "article_id": 20,
    "operation_type": "exit",
    "product_id": 1,
    "user_id": 11,
    "from_date": "2026-04-15T13:44:15",
    "to_date": "2038-09-09",
    "date_start": "2026-04-15T13:44:15",
    "date_end": "2051-05-06"
};

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: 26

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Example: quis

article_id   integer  optional  

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

operation_type   string  optional  

Example: exit

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

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

user_id   integer  optional  

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

from_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

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: 2038-09-09

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

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: 2051-05-06

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\": 17,
    \"nbre_items\": 3,
    \"filter_value\": \"autem\",
    \"product_id\": 15,
    \"service_id\": 2,
    \"operation_type\": \"entry\",
    \"user_id\": 1,
    \"date_start\": \"2026-04-15T13:44:15\",
    \"date_end\": \"2093-05-21\"
}"
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": 17,
    "nbre_items": 3,
    "filter_value": "autem",
    "product_id": 15,
    "service_id": 2,
    "operation_type": "entry",
    "user_id": 1,
    "date_start": "2026-04-15T13:44:15",
    "date_end": "2093-05-21"
};

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: 17

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

Example: autem

product_id   integer  optional  

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

service_id   integer  optional  

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

operation_type   string  optional  

Example: entry

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

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

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

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: 2093-05-21

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\": 9,
    \"description\": \"Qui voluptatem quo est labore est.\",
    \"operation_type\": \"entry\",
    \"product_id\": 3
}"
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": 9,
    "description": "Qui voluptatem quo est labore est.",
    "operation_type": "entry",
    "product_id": 3
};

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: 9

description   string  optional  

Example: Qui voluptatem quo est labore est.

operation_type   string   

Example: entry

Must be one of:
  • entry
  • exit
product_id   integer   

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

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\": 84,
    \"nbre_items\": 4,
    \"filter_value\": \"et\",
    \"website\": true,
    \"support_type\": \"premium\",
    \"electronic_payment\": false,
    \"mail_pro\": false
}"
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": 84,
    "nbre_items": 4,
    "filter_value": "et",
    "website": true,
    "support_type": "premium",
    "electronic_payment": false,
    "mail_pro": false
};

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: 84

nbre_items   integer  optional  

Example: 4

filter_value   string  optional  

Example: et

website   boolean  optional  

Example: true

support_type   string  optional  

Example: premium

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

Example: false

mail_pro   boolean  optional  

Example: false

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\": \"neque\",
    \"amount\": \"non\",
    \"website\": false,
    \"support_type\": \"premium\",
    \"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": "neque",
    "amount": "non",
    "website": false,
    "support_type": "premium",
    "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: neque

amount   string   

Example: non

website   boolean   

Example: false

support_type   string   

Example: premium

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

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

let body = {
    "name": "sunt",
    "website": true,
    "support_type": "premium",
    "electronic_payment": false,
    "mail_pro": true
};

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: sunt

amount   string  optional  
website   boolean  optional  

Example: true

support_type   string  optional  

Example: premium

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

Example: false

mail_pro   boolean  optional  

Example: true

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

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

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[]   

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

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: 11

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: repellendus

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

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: id

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\": 62,
    \"nbre_items\": 14,
    \"filter_value\": \"nihil\"
}"
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": 62,
    "nbre_items": 14,
    "filter_value": "nihil"
};

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: 62

nbre_items   integer  optional  

Example: 14

filter_value   string  optional  

Example: nihil

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\": \"maxime\",
            \"description\": \"Aut odit laudantium itaque.\",
            \"ressource\": \"commodi\"
        }
    ]
}"
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": "maxime",
            "description": "Aut odit laudantium itaque.",
            "ressource": "commodi"
        }
    ]
};

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: maxime

description   string  optional  

Example: Aut odit laudantium itaque.

ressource   string   

Example: commodi

Afficher une permission spécifique

requires authentication

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

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: sint

Mettre a jour une permission spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/permissions/at" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"voluptatem\",
    \"permissions\": [
        {
            \"description\": \"Ut minima dolor nisi cupiditate voluptate quia.\",
            \"ressource\": \"nobis\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permissions/at"
);

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

let body = {
    "name": "voluptatem",
    "permissions": [
        {
            "description": "Ut minima dolor nisi cupiditate voluptate quia.",
            "ressource": "nobis"
        }
    ]
};

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: at

Body Parameters

name   string   

Example: voluptatem

permissions   object[]  optional  
description   string  optional  

Example: Ut minima dolor nisi cupiditate voluptate quia.

ressource   string  optional  

Example: nobis

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

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

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

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\": 60,
    \"nbre_items\": 17,
    \"filter_value\": \"ut\",
    \"type\": \"employ\",
    \"scan_per_course\": true,
    \"saving_type\": \"qr_code\",
    \"user_id\": 18,
    \"date\": \"2026-04-15T13:44:15\"
}"
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": 60,
    "nbre_items": 17,
    "filter_value": "ut",
    "type": "employ",
    "scan_per_course": true,
    "saving_type": "qr_code",
    "user_id": 18,
    "date": "2026-04-15T13:44:15"
};

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: 60

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Example: ut

type   string  optional  

Example: employ

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: 18

date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

Display the specified resource.

requires authentication

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

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: 19

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\": 7,
    \"scan_per_course\": true,
    \"type\": \"employ\",
    \"date\": \"2026-04-15T13:44:15\",
    \"arrival_time\": \"13:44:15\",
    \"departure_time\": \"13:44:15\",
    \"reason\": \"non\"
}"
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": 7,
    "scan_per_course": true,
    "type": "employ",
    "date": "2026-04-15T13:44:15",
    "arrival_time": "13:44:15",
    "departure_time": "13:44:15",
    "reason": "non"
};

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

scan_per_course   boolean   

Example: true

type   string   

Example: employ

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

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

arrival_time   string  optional  

Must be a valid date in the format H:i:s. Example: 13:44:15

departure_time   string  optional  

Must be a valid date in the format H:i:s. Example: 13:44:15

reason   string  optional  

Example: non

Modifier une présence du personnel

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/staff-presences/8" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 1,
    \"scan_per_course\": false,
    \"type\": \"staff\",
    \"date\": \"2026-04-15T13:44:15\",
    \"time\": \"13:44:15\",
    \"arrival_time\": \"13:44:15\",
    \"departure_time\": \"13:44:15\",
    \"reason\": \"odit\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/staff-presences/8"
);

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

let body = {
    "user_id": 1,
    "scan_per_course": false,
    "type": "staff",
    "date": "2026-04-15T13:44:15",
    "time": "13:44:15",
    "arrival_time": "13:44:15",
    "departure_time": "13:44:15",
    "reason": "odit"
};

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: 8

Body Parameters

user_id   integer  optional  

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

scan_per_course   boolean  optional  

Example: false

type   string  optional  

Example: staff

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

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

time   string  optional  

Must be a valid date in the format H:i:s. Example: 13:44:15

arrival_time   string  optional  

Must be a valid date in the format H:i:s. Example: 13:44:15

departure_time   string  optional  

Must be a valid date in the format H:i:s. Example: 13:44:15

reason   string  optional  

Example: odit

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

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

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\": [
        19
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/staff-presences/destroy"
);

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

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

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

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\": 29,
    \"nbre_items\": 15,
    \"filter_value\": \"officiis\",
    \"article_ids\": [
        1
    ],
    \"type\": \"consumable\",
    \"expired\": true,
    \"service_id\": 1,
    \"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": 29,
    "nbre_items": 15,
    "filter_value": "officiis",
    "article_ids": [
        1
    ],
    "type": "consumable",
    "expired": true,
    "service_id": 1,
    "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: 29

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Example: officiis

article_ids   integer[]  optional  

The id of an existing record in the articles table.

type   string  optional  

Example: consumable

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

Example: true

service_id   integer  optional  

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

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\": \"sit\",
    \"type\": \"storable\",
    \"image\": \"ex\",
    \"price\": 2923.62078,
    \"manufacturing_cost\": 39,
    \"description\": \"Laboriosam distinctio accusamus quasi ipsam inventore voluptatibus iure.\",
    \"alert_quantity\": 2,
    \"status\": \"validated\",
    \"quantity\": 3,
    \"expiry_date\": \"2026-04-15T13:44:14\",
    \"service_id\": 17,
    \"articles\": [
        {
            \"id\": 16,
            \"quantity\": 15
        }
    ]
}"
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": "sit",
    "type": "storable",
    "image": "ex",
    "price": 2923.62078,
    "manufacturing_cost": 39,
    "description": "Laboriosam distinctio accusamus quasi ipsam inventore voluptatibus iure.",
    "alert_quantity": 2,
    "status": "validated",
    "quantity": 3,
    "expiry_date": "2026-04-15T13:44:14",
    "service_id": 17,
    "articles": [
        {
            "id": 16,
            "quantity": 15
        }
    ]
};

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: sit

type   string   

Example: storable

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

Example: ex

price   number   

Example: 2923.62078

manufacturing_cost   number  optional  

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

description   string  optional  

Example: Laboriosam distinctio accusamus quasi ipsam inventore voluptatibus iure.

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: 3

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

service_id   integer  optional  

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

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: 16

quantity   number   

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

Afficher un produit spécifique

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/products/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://pessi.ms-hotel.net/api/products/12"
);

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

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

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: 12

Modifier un produit spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/products/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"facilis\",
    \"type\": \"storable\",
    \"image\": \"eum\",
    \"price\": 1882852.30369,
    \"manufacturing_cost\": 85,
    \"description\": \"Omnis reprehenderit quia nostrum corporis suscipit.\",
    \"alert_quantity\": 17,
    \"status\": \"validated\",
    \"quantity\": 90,
    \"expiry_date\": \"2026-04-15T13:44:14\",
    \"service_id\": 4,
    \"articles\": [
        {
            \"id\": 3,
            \"quantity\": 74
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/products/12"
);

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

let body = {
    "name": "facilis",
    "type": "storable",
    "image": "eum",
    "price": 1882852.30369,
    "manufacturing_cost": 85,
    "description": "Omnis reprehenderit quia nostrum corporis suscipit.",
    "alert_quantity": 17,
    "status": "validated",
    "quantity": 90,
    "expiry_date": "2026-04-15T13:44:14",
    "service_id": 4,
    "articles": [
        {
            "id": 3,
            "quantity": 74
        }
    ]
};

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: 12

Body Parameters

name   string  optional  

Example: facilis

type   string  optional  

Example: storable

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

Example: eum

price   number  optional  

Example: 1882852.30369

manufacturing_cost   number  optional  

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

description   string  optional  

Example: Omnis reprehenderit quia nostrum corporis suscipit.

alert_quantity   integer  optional  

Example: 17

status   string  optional  

Example: validated

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

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

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

service_id   integer  optional  

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

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: 3

quantity   integer  optional  

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

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

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

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

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\": 26,
    \"nbre_items\": 9,
    \"filter_value\": \"ipsam\",
    \"hotel_id\": 18,
    \"service_id\": 19,
    \"user_id\": 10,
    \"type\": 12
}"
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": 26,
    "nbre_items": 9,
    "filter_value": "ipsam",
    "hotel_id": 18,
    "service_id": 19,
    "user_id": 10,
    "type": 12
};

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: 26

nbre_items   integer  optional  

Example: 9

filter_value   string  optional  

Example: ipsam

hotel_id   integer  optional  

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

service_id   integer  optional  

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

user_id   integer  optional  

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

type   integer  optional  

Example: 12

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\": \"Mollitia doloremque quia adipisci minima.\",
            \"user_id\": 20,
            \"type\": \"voluptatem\",
            \"reasons\": \"odit\"
        }
    ]
}"
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": "Mollitia doloremque quia adipisci minima.",
            "user_id": 20,
            "type": "voluptatem",
            "reasons": "odit"
        }
    ]
};

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: Mollitia doloremque quia adipisci minima.

user_id   integer   

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

type   string   

Example: voluptatem

reasons   string   

Example: odit

Met à jour les informations d'une sanction existante.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/punishments/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Accusantium repellendus voluptatem corrupti numquam.\",
    \"user_id\": 6,
    \"type\": \"eos\",
    \"reasons\": \"aliquid\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/punishments/16"
);

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

let body = {
    "description": "Accusantium repellendus voluptatem corrupti numquam.",
    "user_id": 6,
    "type": "eos",
    "reasons": "aliquid"
};

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: 16

Body Parameters

description   string  optional  

Example: Accusantium repellendus voluptatem corrupti numquam.

user_id   integer  optional  

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

type   string  optional  

Example: eos

reasons   string  optional  

Example: aliquid

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

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

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\": [
        2
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/punishments/destroy"
);

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

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

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

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\": 82,
    \"nbre_items\": 5,
    \"filter_value\": \"facere\",
    \"user_id\": 19,
    \"user_approve_id\": 14,
    \"trashed\": false,
    \"date\": \"2026-04-15\",
    \"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": 82,
    "nbre_items": 5,
    "filter_value": "facere",
    "user_id": 19,
    "user_approve_id": 14,
    "trashed": false,
    "date": "2026-04-15",
    "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: 82

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Example: facere

user_id   integer  optional  

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

user_approve_id   integer  optional  

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

trashed   boolean  optional  

Example: false

date   string  optional  

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

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/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/salaries-deductions/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/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: 13

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\": \"voluptates\",
            \"user_approve_id\": 16,
            \"amount\": 56,
            \"date\": \"2026-04-15T13:44:15\",
            \"status\": \"in_progress\",
            \"reason\": \"repellendus\"
        }
    ]
}"
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": "voluptates",
            "user_approve_id": 16,
            "amount": 56,
            "date": "2026-04-15T13:44:15",
            "status": "in_progress",
            "reason": "repellendus"
        }
    ]
};

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: voluptates

user_approve_id   integer   

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

amount   number   

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

date   string   

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

status   string  optional  

Example: in_progress

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

Example: repellendus

Mettre à jour une retenue sur salaire spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/salaries-deductions/7" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 11,
    \"user_approve_id\": 1,
    \"reason\": \"nemo\",
    \"date\": \"2026-04-15\",
    \"status\": \"approved\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-deductions/7"
);

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

let body = {
    "user_id": 11,
    "user_approve_id": 1,
    "reason": "nemo",
    "date": "2026-04-15",
    "status": "approved"
};

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

Body Parameters

user_id   integer  optional  

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

user_approve_id   integer  optional  

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

amount   string  optional  
reason   string  optional  

Example: nemo

date   string  optional  

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

status   string  optional  

Example: approved

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

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

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

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

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: 74

nbre_items   integer  optional  

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

filter_value   string  optional  

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

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\": \"ykmxsx\",
    \"description\": \"Distinctio ut quaerat deserunt aut.\",
    \"amount\": 10
}"
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": "ykmxsx",
    "description": "Distinctio ut quaerat deserunt aut.",
    "amount": 10
};

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: ykmxsx

description   string  optional  

Example: Distinctio ut quaerat deserunt aut.

amount   number   

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

Afficher les détails d'une réduction

requires authentication

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

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: ratione

Mettre à jour une réduction

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/reductions/quo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"dggfsx\",
    \"description\": \"Minus nesciunt est voluptatem.\",
    \"amount\": 29
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/reductions/quo"
);

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

let body = {
    "name": "dggfsx",
    "description": "Minus nesciunt est voluptatem.",
    "amount": 29
};

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: quo

Body Parameters

name   string  optional  

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

description   string  optional  

Example: Minus nesciunt est voluptatem.

amount   number  optional  

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

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\": 43,
    \"nbre_items\": 15,
    \"filter_value\": \"et\",
    \"hotel_id\": 4,
    \"room_type_id\": 11,
    \"room_category_id\": 8,
    \"room_id\": 10,
    \"user_id\": 10,
    \"status\": \"ea\",
    \"payment_status\": \"advance\",
    \"room_service_id\": 1,
    \"date\": \"2026-04-15\",
    \"date_start\": \"2026-04-15\",
    \"date_end\": \"2026-04-15\"
}"
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": 43,
    "nbre_items": 15,
    "filter_value": "et",
    "hotel_id": 4,
    "room_type_id": 11,
    "room_category_id": 8,
    "room_id": 10,
    "user_id": 10,
    "status": "ea",
    "payment_status": "advance",
    "room_service_id": 1,
    "date": "2026-04-15",
    "date_start": "2026-04-15",
    "date_end": "2026-04-15"
};

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: 43

nbre_items   integer  optional  

Example: 15

filter_value   string  optional  

Example: et

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: 11

room_category_id   integer  optional  

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

room_id   integer  optional  

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

user_id   integer  optional  

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

status   string  optional  

Example: ea

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: 1

date   string  optional  

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

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-04-15

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-04-15

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-04-15\",
    \"end_date\": \"2026-04-15\",
    \"user_id\": 5,
    \"type\": \"sieste\",
    \"transport_mode\": \"aukdzhwwzoxbn\",
    \"vehicle_number\": \"yeyyoepbboat\",
    \"arrival_time\": \"2026-04-15T13:44:14\",
    \"departure_time\": \"2026-04-15T13:44:14\",
    \"arrivals\": \"mdlirls\",
    \"is_free\": true,
    \"reduction_id\": 14,
    \"reduction_amount\": 53
}"
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-04-15",
    "end_date": "2026-04-15",
    "user_id": 5,
    "type": "sieste",
    "transport_mode": "aukdzhwwzoxbn",
    "vehicle_number": "yeyyoepbboat",
    "arrival_time": "2026-04-15T13:44:14",
    "departure_time": "2026-04-15T13:44:14",
    "arrivals": "mdlirls",
    "is_free": true,
    "reduction_id": 14,
    "reduction_amount": 53
};

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-04-15

end_date   string   

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

user_id   integer   

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

type   string  optional  

Example: sieste

Must be one of:
  • nuite
  • sieste
transport_mode   string  optional  

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

vehicle_number   string  optional  

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

arrival_time   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

departure_time   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

arrivals   string  optional  

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

is_free   boolean  optional  

Example: true

reduction_id   integer  optional  

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

reduction_amount   number  optional  

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

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-04-15T13:44:14\",
    \"end_date\": \"2046-10-08\",
    \"user_id\": 19,
    \"room_service_id\": 5,
    \"transport_mode\": \"pmewpvmvln\",
    \"vehicle_number\": \"fhcrxsmgnfvamlwj\",
    \"arrival_time\": \"2026-04-15T13:44:14\",
    \"departure_time\": \"2026-04-15T13:44:14\",
    \"arrivals\": \"pobnpqwwjsdtuqcdemfs\",
    \"is_free\": false,
    \"reduction_id\": 12,
    \"reduction_amount\": 35,
    \"rooms\": [
        \"sed\"
    ],
    \"type\": \"sieste\",
    \"status\": \"draft\"
}"
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-04-15T13:44:14",
    "end_date": "2046-10-08",
    "user_id": 19,
    "room_service_id": 5,
    "transport_mode": "pmewpvmvln",
    "vehicle_number": "fhcrxsmgnfvamlwj",
    "arrival_time": "2026-04-15T13:44:14",
    "departure_time": "2026-04-15T13:44:14",
    "arrivals": "pobnpqwwjsdtuqcdemfs",
    "is_free": false,
    "reduction_id": 12,
    "reduction_amount": 35,
    "rooms": [
        "sed"
    ],
    "type": "sieste",
    "status": "draft"
};

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-04-15T13:44:14

end_date   string   

Le champ value doit être une date valide. Le champ value doit être une date après start_date. Example: 2046-10-08

user_id   integer   

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

room_service_id   integer  optional  

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

transport_mode   string  optional  

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

vehicle_number   string  optional  

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

arrival_time   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

departure_time   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

arrivals   string  optional  

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

is_free   boolean  optional  

Example: false

reduction_id   integer  optional  

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

reduction_amount   number  optional  

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

rooms   string[]   

The id of an existing record in the rooms table.

type   string  optional  

Example: sieste

Must be one of:
  • nuite
  • sieste
status   string  optional  

Example: draft

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

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

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

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\": 65,
    \"nbre_items\": 5,
    \"filter_value\": \"explicabo\",
    \"types\": [
        \"quia\"
    ]
}"
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": 65,
    "nbre_items": 5,
    "filter_value": "explicabo",
    "types": [
        "quia"
    ]
};

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: 65

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Example: explicabo

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\": \"recusandae\",
    \"permissions\": [
        16
    ],
    \"description\": \"Ipsam harum molestias beatae laboriosam.\",
    \"type\": \"eum\"
}"
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": "recusandae",
    "permissions": [
        16
    ],
    "description": "Ipsam harum molestias beatae laboriosam.",
    "type": "eum"
};

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: recusandae

permissions   integer[]   

The id of an existing record in the permissions table.

description   string  optional  

Example: Ipsam harum molestias beatae laboriosam.

type   string  optional  

Example: eum

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\": \"omnis\",
    \"permissions\": [
        3
    ],
    \"description\": \"Tempora itaque natus est optio.\",
    \"type\": \"sint\"
}"
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": "omnis",
    "permissions": [
        3
    ],
    "description": "Tempora itaque natus est optio.",
    "type": "sint"
};

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: omnis

permissions   integer[]  optional  

The id of an existing record in the permissions table.

description   string  optional  

Example: Tempora itaque natus est optio.

type   string  optional  

Example: sint

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

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

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\": [
        16
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/roles/destroy"
);

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

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

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

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\": 11,
    \"nbre_items\": 8,
    \"filter_value\": \"ut\",
    \"service_id\": 16,
    \"archive\": \"with_trashed\",
    \"order_by\": \"name\"
}"
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": 11,
    "nbre_items": 8,
    "filter_value": "ut",
    "service_id": 16,
    "archive": "with_trashed",
    "order_by": "name"
};

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: 11

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Example: ut

service_id   integer  optional  

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

archive   string  optional  

Example: with_trashed

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

Example: name

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/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-services/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-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: 9

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\": \"hypcatsnxxnefkvge\",
            \"description\": \"Debitis quia voluptatem voluptatem voluptas ab est est.\",
            \"service_id\": 12
        }
    ]
}"
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": "hypcatsnxxnefkvge",
            "description": "Debitis quia voluptatem voluptatem voluptas ab est est.",
            "service_id": 12
        }
    ]
};

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: hypcatsnxxnefkvge

description   string  optional  

Le champ value ne peut contenir plus de 5000 caractères. Example: Debitis quia voluptatem voluptatem voluptas ab est est.

price   string  optional  
service_id   integer  optional  

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

Mettre à jour un service de chambre existant.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/room-services/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"iuxyuf\",
    \"description\": \"Sed sit delectus voluptates velit non.\",
    \"service_id\": 15
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/3"
);

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

let body = {
    "name": "iuxyuf",
    "description": "Sed sit delectus voluptates velit non.",
    "service_id": 15
};

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: 3

Body Parameters

name   string  optional  

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

description   string  optional  

Le champ value ne peut contenir plus de 5000 caractères. Example: Sed sit delectus voluptates velit non.

price   string  optional  
service_id   integer  optional  

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

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

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

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\": 47,
    \"nbre_items\": 12,
    \"filter_value\": \"sit\",
    \"type\": \"voluptatum\",
    \"hotel_id\": 20,
    \"responsible_id\": 3
}"
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": 47,
    "nbre_items": 12,
    "filter_value": "sit",
    "type": "voluptatum",
    "hotel_id": 20,
    "responsible_id": 3
};

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: 47

nbre_items   integer  optional  

Example: 12

filter_value   string  optional  

Example: sit

type   string  optional  

Example: voluptatum

hotel_id   integer  optional  

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

responsible_id   integer  optional  

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

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\": \"aut\",
            \"image\": \"enim\",
            \"description\": \"Dolorem eos adipisci temporibus quia.\",
            \"type\": \"fugit\",
            \"hotel_id\": 6,
            \"responsible_id\": 5
        }
    ]
}"
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": "aut",
            "image": "enim",
            "description": "Dolorem eos adipisci temporibus quia.",
            "type": "fugit",
            "hotel_id": 6,
            "responsible_id": 5
        }
    ]
};

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: aut

image   string  optional  

Example: enim

description   string  optional  

Example: Dolorem eos adipisci temporibus quia.

type   string  optional  

Example: fugit

hotel_id   integer   

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

responsible_id   integer   

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

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\": \"qui\",
    \"image\": \"nihil\",
    \"description\": \"Et cum et numquam esse.\",
    \"type\": \"et\",
    \"hotel_id\": 9,
    \"responsible_id\": 12
}"
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": "qui",
    "image": "nihil",
    "description": "Et cum et numquam esse.",
    "type": "et",
    "hotel_id": 9,
    "responsible_id": 12
};

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: qui

image   string  optional  

Example: nihil

description   string  optional  

Example: Et cum et numquam esse.

type   string  optional  

Example: et

hotel_id   integer  optional  

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

responsible_id   integer  optional  

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

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

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

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\": [
        11
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/services/destroy"
);

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

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

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

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\": 12,
    \"nbre_items\": 2,
    \"filter_value\": \"laboriosam\",
    \"is_anonymous\": false,
    \"user_id\": 13,
    \"service_id\": 20,
    \"status\": \"resolved\",
    \"date_start\": \"2026-04-15T13:44:15\",
    \"date_end\": \"2026-04-15T13:44:15\"
}"
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": 12,
    "nbre_items": 2,
    "filter_value": "laboriosam",
    "is_anonymous": false,
    "user_id": 13,
    "service_id": 20,
    "status": "resolved",
    "date_start": "2026-04-15T13:44:15",
    "date_end": "2026-04-15T13:44:15"
};

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: 12

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Example: laboriosam

is_anonymous   boolean  optional  

Example: false

user_id   integer  optional  

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

service_id   integer  optional  

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

status   string  optional  

Example: resolved

Must be one of:
  • pending
  • received
  • in_progress
  • resolved
date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

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\": 13,
    \"message\": \"vzwmtivwzsuduhdxdp\",
    \"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": 13,
    "message": "vzwmtivwzsuduhdxdp",
    "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: 13

message   string   

Le champ value ne peut contenir plus de 1000 caractères. Example: vzwmtivwzsuduhdxdp

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\": 3,
    \"status\": \"pending\",
    \"message\": \"noi\",
    \"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": 3,
    "status": "pending",
    "message": "noi",
    "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: 3

status   string  optional  

Example: pending

Must be one of:
  • pending
  • received
  • in_progress
  • resolved
message   string  optional  

Le champ value ne peut contenir plus de 1000 caractères. Example: noi

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

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

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

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[]   

Transactions

Gestion des transactions de paiement (OM/MOMO)

Liste des transactions

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/transactions/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 77,
    \"nbre_items\": 10,
    \"filter_value\": \"sed\",
    \"hotel_id\": 1,
    \"cash_in_id\": 4,
    \"status\": \"pending\",
    \"payment_mode\": \"cash\",
    \"start_date\": \"2026-04-15T13:44:15\",
    \"end_date\": \"2026-04-15T13:44:15\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/transactions/all"
);

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

let body = {
    "page_items": 77,
    "nbre_items": 10,
    "filter_value": "sed",
    "hotel_id": 1,
    "cash_in_id": 4,
    "status": "pending",
    "payment_mode": "cash",
    "start_date": "2026-04-15T13:44:15",
    "end_date": "2026-04-15T13:44:15"
};

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

Request      

POST api/transactions/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: 10

filter_value   string  optional  

Example: sed

hotel_id   integer  optional  

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

cash_in_id   integer  optional  

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

status   string  optional  

Example: pending

Must be one of:
  • pending
  • success
  • failed
  • cancelled
payment_mode   string  optional  

Example: cash

Must be one of:
  • OM
  • MOMO
  • card
  • cash
start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

end_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

Afficher une transaction

requires authentication

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

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

transaction_id   integer   

The ID of the transaction. Example: 7

Créer une transaction

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/transactions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"access_token\": \"quia\",
    \"expires_in\": 10,
    \"order_id\": \"unde\",
    \"amount\": 80,
    \"reference\": \"repellendus\",
    \"status\": \"cancelled\",
    \"message\": \"laboriosam\",
    \"pay_token\": \"accusamus\",
    \"payment_url\": \"http:\\/\\/www.sipes.com\\/cumque-ducimus-perferendis-voluptatem-et\",
    \"notif_token\": \"quod\",
    \"tnxid\": \"amet\",
    \"payment_mode\": \"MOMO\",
    \"payment_date\": \"2026-04-15T13:44:15\",
    \"cash_in_id\": 6,
    \"hotel_id\": 10
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/transactions"
);

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

let body = {
    "access_token": "quia",
    "expires_in": 10,
    "order_id": "unde",
    "amount": 80,
    "reference": "repellendus",
    "status": "cancelled",
    "message": "laboriosam",
    "pay_token": "accusamus",
    "payment_url": "http:\/\/www.sipes.com\/cumque-ducimus-perferendis-voluptatem-et",
    "notif_token": "quod",
    "tnxid": "amet",
    "payment_mode": "MOMO",
    "payment_date": "2026-04-15T13:44:15",
    "cash_in_id": 6,
    "hotel_id": 10
};

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

Request      

POST api/transactions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

access_token   string  optional  

Example: quia

expires_in   integer  optional  

Example: 10

order_id   string  optional  

Example: unde

amount   number   

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

reference   string  optional  

Example: repellendus

status   string  optional  

Example: cancelled

Must be one of:
  • pending
  • success
  • failed
  • cancelled
message   string  optional  

Example: laboriosam

pay_token   string  optional  

Example: accusamus

payment_url   string  optional  

Example: http://www.sipes.com/cumque-ducimus-perferendis-voluptatem-et

notif_token   string  optional  

Example: quod

tnxid   string  optional  

Example: amet

payment_mode   string   

Example: MOMO

Must be one of:
  • OM
  • MOMO
  • card
  • cash
payment_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

cash_in_id   integer  optional  

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

hotel_id   integer   

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

Mettre à jour une transaction

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/transactions/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"access_token\": \"asperiores\",
    \"expires_in\": 1,
    \"order_id\": \"aut\",
    \"amount\": 49,
    \"reference\": \"nihil\",
    \"status\": \"pending\",
    \"message\": \"veritatis\",
    \"pay_token\": \"incidunt\",
    \"payment_url\": \"http:\\/\\/little.org\\/blanditiis-nisi-accusamus-dolor-perspiciatis-labore-dolorem-libero-veritatis\",
    \"notif_token\": \"nemo\",
    \"tnxid\": \"id\",
    \"payment_mode\": \"cash\",
    \"payment_date\": \"2026-04-15T13:44:15\",
    \"cash_in_id\": 9,
    \"hotel_id\": 2
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/transactions/4"
);

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

let body = {
    "access_token": "asperiores",
    "expires_in": 1,
    "order_id": "aut",
    "amount": 49,
    "reference": "nihil",
    "status": "pending",
    "message": "veritatis",
    "pay_token": "incidunt",
    "payment_url": "http:\/\/little.org\/blanditiis-nisi-accusamus-dolor-perspiciatis-labore-dolorem-libero-veritatis",
    "notif_token": "nemo",
    "tnxid": "id",
    "payment_mode": "cash",
    "payment_date": "2026-04-15T13:44:15",
    "cash_in_id": 9,
    "hotel_id": 2
};

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

Request      

PUT api/transactions/{transaction_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

transaction_id   integer   

The ID of the transaction. Example: 4

Body Parameters

access_token   string  optional  

Example: asperiores

expires_in   integer  optional  

Example: 1

order_id   string  optional  

Example: aut

amount   number  optional  

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

reference   string  optional  

Example: nihil

status   string  optional  

Example: pending

Must be one of:
  • pending
  • success
  • failed
  • cancelled
message   string  optional  

Example: veritatis

pay_token   string  optional  

Example: incidunt

payment_url   string  optional  

Example: http://little.org/blanditiis-nisi-accusamus-dolor-perspiciatis-labore-dolorem-libero-veritatis

notif_token   string  optional  

Example: nemo

tnxid   string  optional  

Example: id

payment_mode   string  optional  

Example: cash

Must be one of:
  • OM
  • MOMO
  • card
  • cash
payment_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:15

cash_in_id   integer  optional  

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

hotel_id   integer  optional  

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

Valider une transaction et générer un CashIn

requires authentication

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

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/transactions/{transaction_id}/validate

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

transaction_id   integer   

The ID of the transaction. Example: 19

Archiver des transactions

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/transactions/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/transactions/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/transactions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Restaurer des transactions

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/transactions/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/transactions/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/transactions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Supprimer définitivement des transactions

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/transactions/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/transactions/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/transactions/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\": 63,
    \"nbre_items\": 2
}"
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": 63,
    "nbre_items": 2
};

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: 63

nbre_items   integer  optional  

Example: 2

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\": \"cum\",
    \"description\": \"Eveniet sint in velit voluptatem aspernatur nihil.\"
}"
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": "cum",
    "description": "Eveniet sint in velit voluptatem aspernatur nihil."
};

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: cum

description   string  optional  

Example: Eveniet sint in velit voluptatem aspernatur nihil.

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\": \"non\",
    \"description\": \"Quia delectus quia eligendi corporis praesentium officia vero sapiente.\"
}"
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": "non",
    "description": "Quia delectus quia eligendi corporis praesentium officia vero sapiente."
};

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: non

description   string  optional  

Example: Quia delectus quia eligendi corporis praesentium officia vero sapiente.

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

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

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

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\": 15,
    \"filter_value\": \"explicabo\",
    \"hotel_id\": 2,
    \"trashed\": false
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-types/all"
);

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

let body = {
    "page_items": 1,
    "nbre_items": 15,
    "filter_value": "explicabo",
    "hotel_id": 2,
    "trashed": false
};

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

Example response (200):


{
    "data": [
        {
            "id": 2,
            "name": "Chambre VIP",
            "description": null,
            "author": {
                "id": 1,
                "name": "Admin",
                "phone": null,
                "created_by": null,
                "updated_by": null,
                "deleted_by": null,
                "created_at": "2025-02-14 10:50:03",
                "updated_at": "2025-02-14 10:50:03",
                "deleted_at": null,
                "token": null
            },
            "created_at": "2025-02-14 11:42:24",
            "count_rooms": 0
        },
        {
            "id": 4,
            "name": "Salle de fëte",
            "description": null,
            "author": {
                "id": 1,
                "name": "Admin",
                "phone": null,
                "created_by": null,
                "updated_by": null,
                "deleted_by": null,
                "created_at": "2025-02-14 10:50:03",
                "updated_at": "2025-02-14 10:50:03",
                "deleted_at": null,
                "token": null
            },
            "created_at": "2025-02-14 11:56:06",
            "count_rooms": 0
        },
        {
            "id": 3,
            "name": "Suite Présidentielle",
            "description": null,
            "author": {
                "id": 1,
                "name": "Admin",
                "phone": null,
                "created_by": null,
                "updated_by": null,
                "deleted_by": null,
                "created_at": "2025-02-14 10:50:03",
                "updated_at": "2025-02-14 10:50:03",
                "deleted_at": null,
                "token": null
            },
            "created_at": "2025-02-14 11:44:16",
            "count_rooms": 0
        }
    ],
    "links": {
        "first": "http://127.0.0.1:8000/api/room-types/all?page=1",
        "last": "http://127.0.0.1:8000/api/room-types/all?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Précédent",
                "active": false
            },
            {
                "url": "http://127.0.0.1:8000/api/room-types/all?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Suivant »",
                "active": false
            }
        ],
        "path": "http://127.0.0.1:8000/api/room-types/all",
        "per_page": 1000000,
        "to": 3,
        "total": 3
    }
}
 

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: 15

filter_value   string  optional  

Example: explicabo

hotel_id   integer  optional  

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

trashed   boolean  optional  

Example: false

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\": \"cumque\",
            \"hotel_id\": 20,
            \"description\": \"Molestiae totam in odit neque inventore molestias provident.\"
        }
    ]
}"
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": "cumque",
            "hotel_id": 20,
            "description": "Molestiae totam in odit neque inventore molestias provident."
        }
    ]
};

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: cumque

hotel_id   integer   

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

description   string  optional  

Example: Molestiae totam in odit neque inventore molestias provident.

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\": \"rem\",
    \"hotel_id\": 3,
    \"description\": \"Error voluptate sit provident dolores tempora.\"
}"
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": "rem",
    "hotel_id": 3,
    "description": "Error voluptate sit provident dolores tempora."
};

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: rem

hotel_id   integer  optional  

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

description   string  optional  

Example: Error voluptate sit provident dolores tempora.

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

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

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

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\": 15,
    \"responsible_id\": 2,
    \"page_items\": 29,
    \"nbre_items\": 1,
    \"filter_value\": \"fbhblowkaymyueqxzgfbhay\",
    \"priority\": \"low\",
    \"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": 15,
    "responsible_id": 2,
    "page_items": 29,
    "nbre_items": 1,
    "filter_value": "fbhblowkaymyueqxzgfbhay",
    "priority": "low",
    "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: 15

responsible_id   integer  optional  

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

page_items   integer  optional  

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

nbre_items   integer  optional  

Example: 1

filter_value   string  optional  

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

priority   string  optional  

Example: low

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\": \"afaifhhqpmhocmp\",
    \"description\": \"Iusto recusandae necessitatibus occaecati.\",
    \"due_date\": \"2026-04-15\",
    \"estimation\": 38,
    \"priority\": \"high\",
    \"user_ids\": [
        15
    ],
    \"responsible_id\": 11
}"
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": "afaifhhqpmhocmp",
    "description": "Iusto recusandae necessitatibus occaecati.",
    "due_date": "2026-04-15",
    "estimation": 38,
    "priority": "high",
    "user_ids": [
        15
    ],
    "responsible_id": 11
};

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: afaifhhqpmhocmp

description   string   

Example: Iusto recusandae necessitatibus occaecati.

due_date   string   

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

estimation   integer   

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

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: 11

Modifier une tâche

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/tasks/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"nduugrbiawckyexrcaikfnlwo\",
    \"description\": \"Qui nulla veniam recusandae tenetur.\",
    \"due_date\": \"2026-04-15\",
    \"estimation\": 4,
    \"priority\": \"high\",
    \"status\": \"created\",
    \"user_ids\": [
        17
    ],
    \"responsible_id\": 15
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/2"
);

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

let body = {
    "name": "nduugrbiawckyexrcaikfnlwo",
    "description": "Qui nulla veniam recusandae tenetur.",
    "due_date": "2026-04-15",
    "estimation": 4,
    "priority": "high",
    "status": "created",
    "user_ids": [
        17
    ],
    "responsible_id": 15
};

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: 2

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 250 caractères. Example: nduugrbiawckyexrcaikfnlwo

description   string  optional  

Example: Qui nulla veniam recusandae tenetur.

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-04-15

estimation   integer  optional  

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

priority   string  optional  

Example: high

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

Example: created

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: 15

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

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

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

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

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: ikkzhivbubshpyoimzcf

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\": 3,
    \"role_types\": [
        \"earum\"
    ],
    \"page_items\": 44,
    \"nbre_items\": 3,
    \"filter_value\": \"quo\",
    \"order_by\": false,
    \"service_id\": 3,
    \"hotel_id\": 14,
    \"responsible_id\": 4,
    \"type\": \"voluptate\"
}"
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": 3,
    "role_types": [
        "earum"
    ],
    "page_items": 44,
    "nbre_items": 3,
    "filter_value": "quo",
    "order_by": false,
    "service_id": 3,
    "hotel_id": 14,
    "responsible_id": 4,
    "type": "voluptate"
};

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: 3

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: 44

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

Example: quo

order_by   boolean  optional  

Example: false

service_id   integer  optional  

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

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: 4

type   string  optional  

Example: voluptate

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\": \"dxssa\",
    \"lastname\": \"mzkayinvwqn\",
    \"gender\": \"male\",
    \"type\": \"quidem\",
    \"birthday\": \"2026-04-15T13:44:14\",
    \"nationality\": \"inwdste\",
    \"nui\": \"lkzmhxhswnkmzjjmwoulnmg\",
    \"cni\": \"lb\",
    \"cnps\": \"h\",
    \"passport_issue_date\": \"2026-04-15T13:44:14\",
    \"passport_issue_place\": \"prwbq\",
    \"profession\": \"kduqoydlmbjglgdsgsuxwmik\",
    \"birth_place\": \"ucdzvcdifmcirwquczhfstq\",
    \"connexion_type\": \"email\",
    \"email\": \"mayer.sydnie@example.com\",
    \"phone\": \"cpaeubjwt\",
    \"phone2\": \"yvauoqeqvleauio\",
    \"city\": \"odneusodvxfffzdj\",
    \"address\": \"ojfvxzgxghovbjjot\",
    \"country\": \"wilatzcpipygcattokpr\",
    \"hotel_id\": 19,
    \"service_id\": 16,
    \"responsible_id\": 4,
    \"password\": \"S#R:TZE\\\\gy|a\",
    \"photo\": \"itaque\",
    \"role_id\": 10,
    \"articles\": [
        3
    ]
}"
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": "dxssa",
    "lastname": "mzkayinvwqn",
    "gender": "male",
    "type": "quidem",
    "birthday": "2026-04-15T13:44:14",
    "nationality": "inwdste",
    "nui": "lkzmhxhswnkmzjjmwoulnmg",
    "cni": "lb",
    "cnps": "h",
    "passport_issue_date": "2026-04-15T13:44:14",
    "passport_issue_place": "prwbq",
    "profession": "kduqoydlmbjglgdsgsuxwmik",
    "birth_place": "ucdzvcdifmcirwquczhfstq",
    "connexion_type": "email",
    "email": "mayer.sydnie@example.com",
    "phone": "cpaeubjwt",
    "phone2": "yvauoqeqvleauio",
    "city": "odneusodvxfffzdj",
    "address": "ojfvxzgxghovbjjot",
    "country": "wilatzcpipygcattokpr",
    "hotel_id": 19,
    "service_id": 16,
    "responsible_id": 4,
    "password": "S#R:TZE\\gy|a",
    "photo": "itaque",
    "role_id": 10,
    "articles": [
        3
    ]
};

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: dxssa

lastname   string  optional  

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

gender   string   

Example: male

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

Example: quidem

birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

nationality   string  optional  

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

nui   string  optional  

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

cni   string  optional  

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

cnps   string  optional  

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

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

passport_issue_place   string  optional  

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

profession   string  optional  

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

birth_place   string  optional  

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

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. Le champ value ne peut contenir plus de 255 caractères. Example: mayer.sydnie@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: cpaeubjwt

phone2   string  optional  

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

city   string  optional  

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

address   string  optional  

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

country   string  optional  

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

hotel_id   integer  optional  

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

service_id   integer  optional  

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

responsible_id   integer  optional  

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

password   string   

Le champ value doit contenir au moins 6 caractères. Example: S#R:TZE\gy|a

photo   string  optional  

Example: itaque

role_id   integer  optional  

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

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\": \"imqtccefzrlludaqfubouxdmw\",
    \"lastname\": \"rwawvt\",
    \"gender\": \"female\",
    \"type\": \"at\",
    \"birthday\": \"2026-04-15T13:44:14\",
    \"nationality\": \"fmeqmzizargmqatbmpatvyjf\",
    \"nui\": \"rrmz\",
    \"cni\": \"zeeytewyhffgclfpclsljlj\",
    \"cnps\": \"zjcosqjdqvsbdpgegipeu\",
    \"passport_issue_date\": \"2026-04-15T13:44:14\",
    \"passport_issue_place\": \"f\",
    \"profession\": \"dyd\",
    \"birth_place\": \"k\",
    \"connexion_type\": \"email\",
    \"email\": \"diego18@example.com\",
    \"phone\": \"nfetihoibdm\",
    \"phone2\": \"erpvezrrqxxltzjpstj\",
    \"city\": \"rrhnephhzqdiywwx\",
    \"address\": \"dujhxwtutxh\",
    \"country\": \"ovqfozupwbukhvlz\",
    \"hotel_id\": 8,
    \"service_id\": 8,
    \"responsible_id\": 12,
    \"password\": \"t.G{_tBg?ru9\",
    \"photo\": \"in\",
    \"role_id\": 1
}"
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": "imqtccefzrlludaqfubouxdmw",
    "lastname": "rwawvt",
    "gender": "female",
    "type": "at",
    "birthday": "2026-04-15T13:44:14",
    "nationality": "fmeqmzizargmqatbmpatvyjf",
    "nui": "rrmz",
    "cni": "zeeytewyhffgclfpclsljlj",
    "cnps": "zjcosqjdqvsbdpgegipeu",
    "passport_issue_date": "2026-04-15T13:44:14",
    "passport_issue_place": "f",
    "profession": "dyd",
    "birth_place": "k",
    "connexion_type": "email",
    "email": "diego18@example.com",
    "phone": "nfetihoibdm",
    "phone2": "erpvezrrqxxltzjpstj",
    "city": "rrhnephhzqdiywwx",
    "address": "dujhxwtutxh",
    "country": "ovqfozupwbukhvlz",
    "hotel_id": 8,
    "service_id": 8,
    "responsible_id": 12,
    "password": "t.G{_tBg?ru9",
    "photo": "in",
    "role_id": 1
};

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: imqtccefzrlludaqfubouxdmw

lastname   string  optional  

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

gender   string  optional  

Example: female

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

Example: at

birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

nationality   string  optional  

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

nui   string  optional  

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

cni   string  optional  

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

cnps   string  optional  

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

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-04-15T13:44:14

passport_issue_place   string  optional  

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

profession   string  optional  

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

birth_place   string  optional  

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

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: diego18@example.com

phone   string  optional  

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

phone2   string  optional  

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

city   string  optional  

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

address   string  optional  

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

country   string  optional  

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

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

responsible_id   integer  optional  

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

password   string  optional  

Le champ value doit contenir au moins 6 caractères. Example: t.G{_tBg?ru9

photo   string  optional  

Example: in

role_id   integer  optional  

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

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

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

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

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