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

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

let body = {
    "hotel_id": 16
};

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

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

Articles

Gestion des articles

Afficher la liste des articles

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/articles/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 89,
    \"nbre_items\": 3,
    \"filter_value\": \"optio\",
    \"service_id\": 15,
    \"hotel_id\": 18,
    \"type\": \"consumable\",
    \"expired\": false
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/articles/all"
);

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

let body = {
    "page_items": 89,
    "nbre_items": 3,
    "filter_value": "optio",
    "service_id": 15,
    "hotel_id": 18,
    "type": "consumable",
    "expired": false
};

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

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

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

Example: optio

service_id   integer  optional  

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

hotel_id   integer  optional  

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

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\": \"dignissimos\",
            \"type\": \"consumable\",
            \"image\": \"corporis\",
            \"price\": 0,
            \"description\": \"Illum quia quo totam aut quibusdam ut.\",
            \"unit_of_measurement\": \"ducimus\",
            \"alert_quantity\": 4,
            \"expiry_date\": \"2026-02-06T09:06:13\",
            \"container\": \"veritatis\",
            \"container_unit\": \"kpnjhojoxvvlhvesmfomnuwb\",
            \"container_quantity\": 28,
            \"detail\": \"sed\",
            \"service_id\": 16,
            \"suppliers\": [
                2
            ]
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/articles"
);

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

let body = {
    "articles": [
        {
            "name": "dignissimos",
            "type": "consumable",
            "image": "corporis",
            "price": 0,
            "description": "Illum quia quo totam aut quibusdam ut.",
            "unit_of_measurement": "ducimus",
            "alert_quantity": 4,
            "expiry_date": "2026-02-06T09:06:13",
            "container": "veritatis",
            "container_unit": "kpnjhojoxvvlhvesmfomnuwb",
            "container_quantity": 28,
            "detail": "sed",
            "service_id": 16,
            "suppliers": [
                2
            ]
        }
    ]
};

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

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

type   string   

Example: consumable

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

Example: corporis

price   number   

Example: 0

description   string  optional  

Example: Illum quia quo totam aut quibusdam ut.

unit_of_measurement   string  optional  

Example: ducimus

alert_quantity   integer  optional  

Example: 4

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

container   string  optional  

Example: veritatis

container_unit   string  optional  

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

container_quantity   integer  optional  

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

detail   string  optional  

Example: sed

service_id   integer   

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

suppliers   integer[]   

Afficher un article spécifique

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Modifier un article spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/articles/26" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"odio\",
    \"type\": \"storable\",
    \"image\": \"sunt\",
    \"price\": 281156.38,
    \"description\": \"Aut facilis qui quam.\",
    \"unit_of_measurement\": \"est\",
    \"alert_quantity\": 5,
    \"expiry_date\": \"2026-02-06T09:06:14\",
    \"container\": \"natus\",
    \"container_unit\": \"lglkghnheobbxymsxzgjwp\",
    \"container_quantity\": 2,
    \"detail\": \"sunt\",
    \"service_id\": 6
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/articles/26"
);

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

let body = {
    "name": "odio",
    "type": "storable",
    "image": "sunt",
    "price": 281156.38,
    "description": "Aut facilis qui quam.",
    "unit_of_measurement": "est",
    "alert_quantity": 5,
    "expiry_date": "2026-02-06T09:06:14",
    "container": "natus",
    "container_unit": "lglkghnheobbxymsxzgjwp",
    "container_quantity": 2,
    "detail": "sunt",
    "service_id": 6
};

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

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

Body Parameters

name   string  optional  

Example: odio

type   string  optional  

Example: storable

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

Example: sunt

price   number  optional  

Example: 281156.38

description   string  optional  

Example: Aut facilis qui quam.

unit_of_measurement   string  optional  

Example: est

alert_quantity   integer  optional  

Example: 5

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

container   string  optional  

Example: natus

container_unit   string  optional  

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

container_quantity   integer  optional  

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

detail   string  optional  

Example: sunt

service_id   integer  optional  

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

Fonction pour le multiple archivage des articles

requires authentication

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

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

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

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

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

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

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

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

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

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

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

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

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

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

let body = {
    "page_items": 66,
    "nbre_items": 1,
    "article_id": 6,
    "supplier_id": 20
};

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

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

nbre_items   integer  optional  

Example: 1

article_id   integer  optional  

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

supplier_id   integer  optional  

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

Authentification

Gestion de l'authentification des utilisateurs

Fonction permettant à un utilisateur de s'inscrire

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/register" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "firstname=yhucdozqzhsokfxzzsypvgvhx"\
    --form "lastname=hzrmbxflrhsvbr"\
    --form "gender=male"\
    --form "birthday=2026-02-06T09:06:13"\
    --form "nationality=wniatbrxbkuxvmwgziys"\
    --form "nui=msbeboqcfljhlemnxryb"\
    --form "cni=ilijulotarappxuzpseqbsouw"\
    --form "cnps=inwcxurdgoow"\
    --form "passport_issue_date=2026-02-06T09:06:13"\
    --form "passport_issue_place=jukzfakcehnevqaon"\
    --form "profession=wpppwptjnrtlwjas"\
    --form "birth_place=rteqsgvhqfqrldry"\
    --form "connexion_type=email"\
    --form "email=miller.bette@example.com"\
    --form "phone=mubfbsvxtkepykmpkg"\
    --form "phone2=oqfdzyd"\
    --form "city=nvxvep"\
    --form "address=bkzas"\
    --form "country=xmaqu"\
    --form "hotel_id=20"\
    --form "service_id=20"\
    --form "responsible_id=7"\
    --form "password=W_|%:~1EqDw>34vG,}|~"\
    --form "photo=@/tmp/phpK33CKp" 
const url = new URL(
    "https://pessi.ms-hotel.net/api/register"
);

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

const body = new FormData();
body.append('firstname', 'yhucdozqzhsokfxzzsypvgvhx');
body.append('lastname', 'hzrmbxflrhsvbr');
body.append('gender', 'male');
body.append('birthday', '2026-02-06T09:06:13');
body.append('nationality', 'wniatbrxbkuxvmwgziys');
body.append('nui', 'msbeboqcfljhlemnxryb');
body.append('cni', 'ilijulotarappxuzpseqbsouw');
body.append('cnps', 'inwcxurdgoow');
body.append('passport_issue_date', '2026-02-06T09:06:13');
body.append('passport_issue_place', 'jukzfakcehnevqaon');
body.append('profession', 'wpppwptjnrtlwjas');
body.append('birth_place', 'rteqsgvhqfqrldry');
body.append('connexion_type', 'email');
body.append('email', 'miller.bette@example.com');
body.append('phone', 'mubfbsvxtkepykmpkg');
body.append('phone2', 'oqfdzyd');
body.append('city', 'nvxvep');
body.append('address', 'bkzas');
body.append('country', 'xmaqu');
body.append('hotel_id', '20');
body.append('service_id', '20');
body.append('responsible_id', '7');
body.append('password', 'W_|%:~1EqDw>34vG,}|~');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);

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

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

lastname   string  optional  

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

gender   string   

Example: male

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

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

nationality   string  optional  

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

nui   string  optional  

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

cni   string  optional  

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

cnps   string  optional  

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

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

passport_issue_place   string  optional  

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

profession   string  optional  

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

birth_place   string  optional  

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

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: miller.bette@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: mubfbsvxtkepykmpkg

phone2   string  optional  

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

city   string  optional  

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

address   string  optional  

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

country   string  optional  

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

hotel_id   integer  optional  

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

service_id   integer  optional  

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

responsible_id   integer  optional  

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

password   string   

Le champ value doit contenir au moins 6 caractères. Example: W_|%:~1EqDw>34vG,}|~

photo   file  optional  

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

On vérifie le code envoyé par email

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

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

let body = {
    "connexion_type": "phone",
    "email": "isatterfield@example.com",
    "phone": "tecvxc",
    "verification_code": "od"
};

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

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

phone   string  optional  

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

verification_code   string   

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

Fonction permettant à un utilisateur déjà inscrit de se connecter

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"wfeest@example.com\",
    \"phone\": \"cfqjztpsxvjhx\",
    \"password\": \"|4Y8`ms+vUB:=SV*\\/W\",
    \"device_key\": \"quo\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/login"
);

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

let body = {
    "email": "wfeest@example.com",
    "phone": "cfqjztpsxvjhx",
    "password": "|4Y8`ms+vUB:=SV*\/W",
    "device_key": "quo"
};

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

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

phone   string  optional  

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

password   string   

Example: |4Y8ms+vUB:=SV*/W`

device_key   string  optional  

Example: quo

Fonction permettant de demander un lien pour réinitialiser le mot de passe

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/reset-password" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"connexion_type\": \"phone\",
    \"email\": \"lelia.abernathy@example.org\",
    \"phone\": \"tnduv\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/reset-password"
);

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

let body = {
    "connexion_type": "phone",
    "email": "lelia.abernathy@example.org",
    "phone": "tnduv"
};

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

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

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

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

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/confirm-reset-password" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"connexion_type\": \"phone\",
    \"email\": \"kiehn.maria@example.org\",
    \"phone\": \"jrbkdkxwu\",
    \"verification_code\": \"fmxuybjnbqjbaayunyocxhayenaheylfxcnfddcattfjsmaianfuecirn\",
    \"password\": \"M_CIr0&tRSyvmci\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/confirm-reset-password"
);

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

let body = {
    "connexion_type": "phone",
    "email": "kiehn.maria@example.org",
    "phone": "jrbkdkxwu",
    "verification_code": "fmxuybjnbqjbaayunyocxhayenaheylfxcnfddcattfjsmaianfuecirn",
    "password": "M_CIr0&tRSyvmci"
};

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

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: kiehn.maria@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: jrbkdkxwu

verification_code   string   

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

password   string   

Le champ value doit contenir au moins 6 caractères. Example: M_CIr0&tRSyvmci

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\": 12,
    \"nbre_items\": 3,
    \"filter_value\": \"consequatur\",
    \"trashed\": false,
    \"user_id\": 16,
    \"user_approve_id\": 8,
    \"date\": \"2026-02-06\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-advances/all"
);

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

let body = {
    "page_items": 12,
    "nbre_items": 3,
    "filter_value": "consequatur",
    "trashed": false,
    "user_id": 16,
    "user_approve_id": 8,
    "date": "2026-02-06"
};

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

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

nbre_items   integer  optional  

Example: 3

filter_value   string  optional  

Example: consequatur

trashed   boolean  optional  

Example: false

user_id   integer  optional  

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

user_approve_id   integer  optional  

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

date   string  optional  

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

Afficher une retenue sur salaire spécifique

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Show the form for creating a new resource.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/salaries-advances" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"salary_advances\": [
        {
            \"user_approve_id\": 13,
            \"amount\": \"non\",
            \"reason\": \"quis\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-advances"
);

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

let body = {
    "salary_advances": [
        {
            "user_approve_id": 13,
            "amount": "non",
            "reason": "quis"
        }
    ]
};

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

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

amount   string   

Example: non

reason   string   

Example: quis

Mettre à jour une retenue sur salaire spécifique

requires authentication

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

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

let body = {
    "user_approve_id": 20,
    "status": "rejected",
    "reason": "quam",
    "comments": "cupiditate"
};

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

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

Body Parameters

user_approve_id   integer  optional  

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

amount   string  optional  
status   string  optional  

Example: rejected

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

Example: quam

comments   string  optional  

Example: cupiditate

Archiver (soft delete) les avances sur salaire spécifiées.

requires authentication

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

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

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

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

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

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

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

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

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

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

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

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

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\": 16,
    \"archive\": \"only_trashed\",
    \"date\": \"2026-02-06\",
    \"page_items\": 7,
    \"nbre_items\": 13,
    \"filter_value\": \"et\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/warnings/all"
);

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

let body = {
    "user_id": 16,
    "archive": "only_trashed",
    "date": "2026-02-06",
    "page_items": 7,
    "nbre_items": 13,
    "filter_value": "et"
};

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

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

archive   string  optional  

Example: only_trashed

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

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

page_items   integer  optional  

Example: 7

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Example: et

Afficher les détails d'un avertissement

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Ajouter un ou plusieurs avertissements

requires authentication

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

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

let body = {
    "warnings": [
        {
            "user_id": 13,
            "reason": "saepe",
            "date": "2026-02-06"
        }
    ]
};

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

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

reason   string   

Example: saepe

date   string   

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

Modifier les détails d'un avertissement

requires authentication

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

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

let body = {
    "user_id": 12,
    "reason": "ut",
    "date": "2026-02-06"
};

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

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

Body Parameters

user_id   integer  optional  

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

reason   string  optional  

Example: ut

date   string  optional  

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

Mettre un ou plusieurs avertissements en corbeille (soft delete)

requires authentication

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

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

let body = {
    "warning_ids": [
        17
    ]
};

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

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

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

let body = {
    "warning_ids": [
        13
    ]
};

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

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

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

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

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

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\": 65,
    \"nbre_items\": 18,
    \"filter_value\": \"magni\",
    \"status\": \"paid\",
    \"priority\": \"low\",
    \"article_ids\": [
        7
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/purchase-vouchers/all"
);

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

let body = {
    "page_items": 65,
    "nbre_items": 18,
    "filter_value": "magni",
    "status": "paid",
    "priority": "low",
    "article_ids": [
        7
    ]
};

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

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

nbre_items   integer  optional  

Example: 18

filter_value   string  optional  

Example: magni

status   string  optional  

Example: paid

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

Example: low

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\": 3,
    \"responsible_id\": 8,
    \"description\": \"Facere molestiae optio dolorem assumenda perferendis tempora.\",
    \"status\": \"delivered\",
    \"priority\": \"high\",
    \"quotation_file\": \"velit\",
    \"articles\": [
        {
            \"id\": 20,
            \"unit_price\": 20,
            \"quantity\": 54
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/purchase-vouchers"
);

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

let body = {
    "supplier_id": 3,
    "responsible_id": 8,
    "description": "Facere molestiae optio dolorem assumenda perferendis tempora.",
    "status": "delivered",
    "priority": "high",
    "quotation_file": "velit",
    "articles": [
        {
            "id": 20,
            "unit_price": 20,
            "quantity": 54
        }
    ]
};

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

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

responsible_id   integer   

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

description   string  optional  

Example: Facere molestiae optio dolorem assumenda perferendis tempora.

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

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

unit_price   integer  optional  

Example: 20

quantity   integer   

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

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\": 2,
    \"responsible_id\": 19,
    \"description\": \"Facere dolor nisi molestias voluptas.\",
    \"status\": \"requesting_price\",
    \"priority\": \"medium\",
    \"quotation_file\": \"non\",
    \"payment_method\": \"Cash\",
    \"articles\": [
        {
            \"id\": 8,
            \"unit_price\": 10,
            \"quantity\": 71
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/purchase-vouchers/1"
);

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

let body = {
    "supplier_id": 2,
    "responsible_id": 19,
    "description": "Facere dolor nisi molestias voluptas.",
    "status": "requesting_price",
    "priority": "medium",
    "quotation_file": "non",
    "payment_method": "Cash",
    "articles": [
        {
            "id": 8,
            "unit_price": 10,
            "quantity": 71
        }
    ]
};

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

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

responsible_id   integer  optional  

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

description   string  optional  

Example: Facere dolor nisi molestias voluptas.

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

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

unit_price   integer  optional  

Example: 10

quantity   integer  optional  

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

payment_method   string  optional  

Example: Cash

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

Fonction pour le multiple archivage des bonds d'achat

requires authentication

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

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

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

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

Request      

POST api/purchase-vouchers/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de restauration multiples des bonds d'achat

requires authentication

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

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

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

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

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

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

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

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

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

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

let body = {
    "page_items": 1,
    "nbre_items": 3,
    "filter_value": "perferendis",
    "hotel_id": 10,
    "trashed": false
};

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

Example response (200):


{
    "data": [
        {
            "id": 5,
            "name": "Famimial",
            "description": "La meilleure",
            "author": {
                "id": 1,
                "name": "Admin",
                "phone": null,
                "created_by": null,
                "updated_by": null,
                "deleted_by": null,
                "created_at": "2025-02-14 10:50:03",
                "updated_at": "2025-02-14 10:50:03",
                "deleted_at": null,
                "token": null
            },
            "created_at": "2025-02-14 14:51:35",
            "deleted_at": null,
            "count_rooms": 0
        },
        {
            "id": 2,
            "name": "VIP",
            "description": null,
            "author": null,
            "created_at": "2025-02-14 14:39:45",
            "deleted_at": null,
            "count_rooms": 0
        }
    ],
    "links": {
        "first": "http://127.0.0.1:8000/api/room-categories/all?page=1",
        "last": "http://127.0.0.1:8000/api/room-categories/all?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Précédent",
                "active": false
            },
            {
                "url": "http://127.0.0.1:8000/api/room-categories/all?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Suivant »",
                "active": false
            }
        ],
        "path": "http://127.0.0.1:8000/api/room-categories/all",
        "per_page": 1000000,
        "to": 2,
        "total": 2
    }
}
 

Example response (403):


{
"message": "User does not have the right permissions."
"..."
}
 

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

filter_value   string  optional  

Example: perferendis

hotel_id   integer  optional  

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

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\": 3,
            \"name\": \"voluptates\",
            \"description\": \"Est sint neque dolorum laboriosam dolor.\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-categories"
);

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

let body = {
    "room_categories": [
        {
            "hotel_id": 3,
            "name": "voluptates",
            "description": "Est sint neque dolorum laboriosam dolor."
        }
    ]
};

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

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

name   string   

Example: voluptates

description   string  optional  

Example: Est sint neque dolorum laboriosam dolor.

Modifier une catégorie de chambre

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/room-categories/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"eaque\",
    \"hotel_id\": 4,
    \"description\": \"Quidem dolorem repellat molestiae deserunt voluptatibus ut similique.\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-categories/9"
);

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

let body = {
    "name": "eaque",
    "hotel_id": 4,
    "description": "Quidem dolorem repellat molestiae deserunt voluptatibus ut similique."
};

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

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

hotel_id   integer  optional  

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

description   string  optional  

Example: Quidem dolorem repellat molestiae deserunt voluptatibus ut similique.

Archiver une ou plusieurs catégories de chambre NB: Un type de chambre ne peut pas être supprimé si il est lié à quelque chose d'autre dans le système

requires authentication

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

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

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

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

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

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

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

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

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\": 32,
    \"nbre_items\": 13,
    \"filter_value\": \"illum\",
    \"hotel_id\": 4,
    \"room_type_id\": 14,
    \"room_category_id\": 13,
    \"service_id\": 12,
    \"status\": \"busy\",
    \"floor\": 5,
    \"number_of_room\": 18
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/rooms/all"
);

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

let body = {
    "page_items": 32,
    "nbre_items": 13,
    "filter_value": "illum",
    "hotel_id": 4,
    "room_type_id": 14,
    "room_category_id": 13,
    "service_id": 12,
    "status": "busy",
    "floor": 5,
    "number_of_room": 18
};

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

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

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Example: illum

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

room_category_id   integer  optional  

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

service_id   integer  optional  

Example: 12

status   string  optional  

Example: busy

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

Example: 5

number_of_room   integer  optional  

Example: 18

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\": 4,
            \"room_type_id\": 1,
            \"room_category_id\": 3,
            \"service_id\": 4,
            \"floor\": 16,
            \"number\": 18,
            \"price\": 6,
            \"number_of_room\": 5,
            \"capacity\": 10,
            \"status\": \"busy\",
            \"name\": \"eos\",
            \"description\": \"Enim ducimus exercitationem aliquid fugit consequatur nostrum.\",
            \"image\": \"rerum\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/rooms"
);

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

let body = {
    "rooms": [
        {
            "hotel_id": 4,
            "room_type_id": 1,
            "room_category_id": 3,
            "service_id": 4,
            "floor": 16,
            "number": 18,
            "price": 6,
            "number_of_room": 5,
            "capacity": 10,
            "status": "busy",
            "name": "eos",
            "description": "Enim ducimus exercitationem aliquid fugit consequatur nostrum.",
            "image": "rerum"
        }
    ]
};

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

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

room_type_id   integer   

Example: 1

room_category_id   integer   

Example: 3

service_id   integer   

Example: 4

floor   integer  optional  

Example: 16

number   integer  optional  

Example: 18

price   integer   

Example: 6

number_of_room   integer  optional  

Example: 5

capacity   integer   

Example: 10

status   string   

Example: busy

Must be one of:
  • free
  • busy
name   string   

Example: eos

description   string  optional  

Example: Enim ducimus exercitationem aliquid fugit consequatur nostrum.

image   string  optional  

Example: rerum

Mettre à jour les informations d'une chambre d'hotel

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/rooms/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hotel_id\": 19,
    \"room_type_id\": 4,
    \"room_category_id\": 3,
    \"service_id\": 15,
    \"floor\": 19,
    \"number\": 13,
    \"price\": 20,
    \"number_of_room\": 18,
    \"image\": \"nam\",
    \"capacity\": 6,
    \"status\": \"free\",
    \"description\": \"Odio quo earum officia et provident quaerat.\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/rooms/1"
);

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

let body = {
    "hotel_id": 19,
    "room_type_id": 4,
    "room_category_id": 3,
    "service_id": 15,
    "floor": 19,
    "number": 13,
    "price": 20,
    "number_of_room": 18,
    "image": "nam",
    "capacity": 6,
    "status": "free",
    "description": "Odio quo earum officia et provident quaerat."
};

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

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

room_type_id   integer  optional  

Example: 4

room_category_id   integer  optional  

Example: 3

service_id   integer  optional  

Example: 15

floor   integer  optional  

Example: 19

number   integer   

Example: 13

price   integer  optional  

Example: 20

number_of_room   integer  optional  

Example: 18

image   string  optional  

Example: nam

capacity   integer  optional  

Example: 6

status   string  optional  

Example: free

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

Example: Odio quo earum officia et provident quaerat.

Archiver une ou plusieurs chambres d'hotel

requires authentication

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

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

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

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

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

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

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

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

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

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

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

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

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\": \"et\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/find-licence"
);

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

let body = {
    "cle": "et"
};

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

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

Récuperer les clés d'applications

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Commandes

Gestion des commandes

Lister les commandes

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/orders/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 63,
    \"nbre_items\": 17,
    \"filter_value\": \"aut\",
    \"customer_id\": 1,
    \"payment_mode\": \"nisi\",
    \"status\": \"cancelled\",
    \"payment_status\": \"advance\",
    \"product_id\": 14,
    \"service_id\": 5,
    \"hotel_id\": 5
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/orders/all"
);

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

let body = {
    "page_items": 63,
    "nbre_items": 17,
    "filter_value": "aut",
    "customer_id": 1,
    "payment_mode": "nisi",
    "status": "cancelled",
    "payment_status": "advance",
    "product_id": 14,
    "service_id": 5,
    "hotel_id": 5
};

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

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

nbre_items   integer  optional  

Example: 17

filter_value   string  optional  

Example: aut

customer_id   integer  optional  

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

payment_mode   string  optional  

Example: nisi

status   string  optional  

Example: cancelled

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

Example: advance

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

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

service_id   integer  optional  

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

hotel_id   integer  optional  

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

Afficher les détails d'une commande

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Ajouter une commande

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/orders" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"customer_id\": 16,
    \"payment_mode\": \"voluptas\",
    \"room_id\": 16,
    \"room_service_id\": 5,
    \"status\": \"paid\",
    \"delivery_date\": \"2026-02-06T09:06:14\",
    \"products\": [
        {
            \"id\": 20,
            \"quantity\": 62
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/orders"
);

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

let body = {
    "customer_id": 16,
    "payment_mode": "voluptas",
    "room_id": 16,
    "room_service_id": 5,
    "status": "paid",
    "delivery_date": "2026-02-06T09:06:14",
    "products": [
        {
            "id": 20,
            "quantity": 62
        }
    ]
};

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

Request      

POST api/orders

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

customer_id   integer  optional  

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

payment_mode   string   

Example: voluptas

room_id   integer  optional  

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

room_service_id   integer  optional  

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

status   string  optional  

Example: paid

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

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

products   object[]   
id   integer   

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

quantity   integer   

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

Modifier une commande

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/orders/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"customer_id\": 2,
    \"payment_mode\": \"pariatur\",
    \"room_id\": 7,
    \"room_service_id\": 6,
    \"status\": \"paid\",
    \"delivery_date\": \"2026-02-06T09:06:14\",
    \"products\": [
        {
            \"id\": 9,
            \"quantity\": 22
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/orders/1"
);

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

let body = {
    "customer_id": 2,
    "payment_mode": "pariatur",
    "room_id": 7,
    "room_service_id": 6,
    "status": "paid",
    "delivery_date": "2026-02-06T09:06:14",
    "products": [
        {
            "id": 9,
            "quantity": 22
        }
    ]
};

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

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

Body Parameters

customer_id   integer  optional  

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

payment_mode   string  optional  

Example: pariatur

room_id   integer  optional  

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

room_service_id   integer  optional  

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

status   string  optional  

Example: paid

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

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

products   object[]  optional  
id   integer   

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

quantity   integer   

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

Archiver (soft delete) les presences spécifiées.

requires authentication

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

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

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

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

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

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

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

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

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\": 14,
    \"nbre_items\": 18,
    \"filter_value\": \"reiciendis\",
    \"position\": \"pariatur\",
    \"status\": \"Pending\",
    \"trashed\": true
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/contracts/all"
);

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

let body = {
    "page_items": 14,
    "nbre_items": 18,
    "filter_value": "reiciendis",
    "position": "pariatur",
    "status": "Pending",
    "trashed": true
};

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

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

nbre_items   integer  optional  

Example: 18

filter_value   string  optional  

Example: reiciendis

position   string  optional  

Example: pariatur

status   string  optional  

Example: Pending

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

Example: true

Affiche les détails d’un contrat spécifique à partir de son identifiant.

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Crée un nouveau contrat pour un utilisateur, après vérification d'absence de contrat actif.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/contracts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 7,
    \"user_approve_id\": 6,
    \"type\": \"ratione\",
    \"description\": \"Reiciendis dolorem nihil similique qui et saepe dignissimos.\",
    \"start_date\": \"2026-02-06T09:06:14\",
    \"duration\": 6,
    \"working_hours\": \"explicabo\",
    \"position\": \"praesentium\",
    \"gross_salary\": 70,
    \"status\": \"Pending\",
    \"service_benefits\": \"quia\",
    \"bonus\": \"autem\",
    \"number_days_off\": 16
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/contracts"
);

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

let body = {
    "user_id": 7,
    "user_approve_id": 6,
    "type": "ratione",
    "description": "Reiciendis dolorem nihil similique qui et saepe dignissimos.",
    "start_date": "2026-02-06T09:06:14",
    "duration": 6,
    "working_hours": "explicabo",
    "position": "praesentium",
    "gross_salary": 70,
    "status": "Pending",
    "service_benefits": "quia",
    "bonus": "autem",
    "number_days_off": 16
};

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

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

user_approve_id   integer   

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

type   string   

Example: ratione

description   string  optional  

Example: Reiciendis dolorem nihil similique qui et saepe dignissimos.

start_date   string   

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

duration   integer  optional  

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

working_hours   string   

Example: explicabo

position   string   

Example: praesentium

gross_salary   number   

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

status   string  optional  

Example: Pending

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

Example: quia

bonus   string  optional  

Example: autem

number_days_off   integer  optional  

Example: 16

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

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/contracts/odit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 3,
    \"user_approve_id\": 20,
    \"type\": \"CDI\",
    \"description\": \"Asperiores velit excepturi iusto fugit vitae consequuntur cum.\",
    \"start_date\": \"2026-02-06T09:06:14\",
    \"duration\": 84,
    \"working_hours\": \"molestias\",
    \"position\": \"exercitationem\",
    \"gross_salary\": 77,
    \"status\": \"Pending\",
    \"service_benefits\": \"et\",
    \"bonus\": \"eligendi\",
    \"number_days_off\": 1
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/contracts/odit"
);

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

let body = {
    "user_id": 3,
    "user_approve_id": 20,
    "type": "CDI",
    "description": "Asperiores velit excepturi iusto fugit vitae consequuntur cum.",
    "start_date": "2026-02-06T09:06:14",
    "duration": 84,
    "working_hours": "molestias",
    "position": "exercitationem",
    "gross_salary": 77,
    "status": "Pending",
    "service_benefits": "et",
    "bonus": "eligendi",
    "number_days_off": 1
};

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

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

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

type   string  optional  

Example: CDI

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

Example: Asperiores velit excepturi iusto fugit vitae consequuntur cum.

start_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

duration   integer  optional  

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

working_hours   string  optional  

Example: molestias

position   string  optional  

Example: exercitationem

gross_salary   number  optional  

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

status   string  optional  

Example: Pending

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

Example: et

bonus   string  optional  

Example: eligendi

number_days_off   integer  optional  

Example: 1

Archiver (soft delete) les contrats spécifiées.

requires authentication

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

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

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

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

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

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

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

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

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

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

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

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

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\": 52,
    \"nbre_items\": 86,
    \"filter_value\": \"delectus\",
    \"supplier_id\": 16,
    \"hotel_id\": 12,
    \"purchase_order_id\": 4,
    \"user_id\": 14,
    \"responsible_id\": 3,
    \"payment_method\": \"Bank\",
    \"status\": \"pending\",
    \"reference\": \"et\",
    \"date_start\": \"2026-02-06T09:06:14\",
    \"date_end\": \"2026-02-06T09:06:14\",
    \"service_ids\": [
        5
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/disbursements/all"
);

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

let body = {
    "page_items": 52,
    "nbre_items": 86,
    "filter_value": "delectus",
    "supplier_id": 16,
    "hotel_id": 12,
    "purchase_order_id": 4,
    "user_id": 14,
    "responsible_id": 3,
    "payment_method": "Bank",
    "status": "pending",
    "reference": "et",
    "date_start": "2026-02-06T09:06:14",
    "date_end": "2026-02-06T09:06:14",
    "service_ids": [
        5
    ]
};

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

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

nbre_items   integer  optional  

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

filter_value   string  optional  

Example: delectus

supplier_id   integer  optional  

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

hotel_id   integer  optional  

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

purchase_order_id   integer  optional  

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

user_id   integer  optional  

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

responsible_id   integer  optional  

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

payment_method   string  optional  

Example: Bank

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

Example: pending

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

Example: et

date_start   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

service_ids   integer[]  optional  

The id of an existing record in the services table.

Enregistrer un nouveau décaissement

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/disbursements" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_method\": \"Bank\",
    \"status\": \"rejected\",
    \"invoice_image\": \"sapiente\",
    \"reasons\": \"omnis\",
    \"total_amount\": 27,
    \"disbursement_date\": \"2026-02-06T09:06:14\",
    \"responsible_id\": \"quibusdam\",
    \"validation_date\": \"2026-02-06T09:06:14\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/disbursements"
);

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

let body = {
    "payment_method": "Bank",
    "status": "rejected",
    "invoice_image": "sapiente",
    "reasons": "omnis",
    "total_amount": 27,
    "disbursement_date": "2026-02-06T09:06:14",
    "responsible_id": "quibusdam",
    "validation_date": "2026-02-06T09:06:14"
};

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

Request      

POST api/disbursements

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

payment_method   string   

Example: Bank

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

Example: rejected

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

The id of an existing record in the expense_types table.

invoice_image   string  optional  

Example: sapiente

reasons   string  optional  

Example: omnis

total_amount   number  optional  

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

disbursement_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

responsible_id   string   

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

purchase_order_id   string  optional  

The id of an existing record in the purchase_orders table.

validation_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

Afficher un décaissement spécifique

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/disbursements/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_method\": \"Cash\",
    \"status\": \"approved\",
    \"invoice_image\": \"soluta\",
    \"reasons\": \"et\",
    \"total_amount\": 82,
    \"disbursement_date\": \"2026-02-06T09:06:14\",
    \"validation_date\": \"2026-02-06T09:06:14\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/disbursements/1"
);

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

let body = {
    "payment_method": "Cash",
    "status": "approved",
    "invoice_image": "soluta",
    "reasons": "et",
    "total_amount": 82,
    "disbursement_date": "2026-02-06T09:06:14",
    "validation_date": "2026-02-06T09:06:14"
};

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

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

Body Parameters

payment_method   string  optional  

Example: Cash

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

Example: approved

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

reasons   string  optional  

Example: et

total_amount   number  optional  

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

disbursement_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

responsible_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.

validation_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

Archiver (soft delete) les décaissements.

requires authentication

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

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

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

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

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

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

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

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

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

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

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

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

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

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

let body = {
    "filter_value": "accusamus",
    "responsible_id": 11,
    "hotel_id": 3,
    "priority": "low",
    "status": "pending",
    "article_ids": [
        1
    ]
};

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

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

responsible_id   integer  optional  

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

hotel_id   integer  optional  

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

priority   string  optional  

Example: low

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

Example: pending

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\": \"uswwwehiupctrxuenox\",
    \"description\": \"Saepe consequatur ea voluptatem accusantium maiores sit.\",
    \"responsible_id\": 8,
    \"status\": \"pending\",
    \"priority\": \"high\",
    \"articles\": [
        {
            \"id\": 10,
            \"unit_price\": 3,
            \"quantity\": 23,
            \"supplier_id\": 15
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/supply-demands"
);

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

let body = {
    "name": "uswwwehiupctrxuenox",
    "description": "Saepe consequatur ea voluptatem accusantium maiores sit.",
    "responsible_id": 8,
    "status": "pending",
    "priority": "high",
    "articles": [
        {
            "id": 10,
            "unit_price": 3,
            "quantity": 23,
            "supplier_id": 15
        }
    ]
};

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

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

description   string  optional  

Example: Saepe consequatur ea voluptatem accusantium maiores sit.

responsible_id   integer   

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

status   string  optional  

Example: pending

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

Example: high

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

unit_price   integer  optional  

Example: 3

quantity   integer   

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

supplier_id   integer   

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

Met à jour les informations d'une demande d'approvisionnement existante.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/supply-demands/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"zvtbknshzoua\",
    \"description\": \"Voluptate est fugit ad sunt et est voluptatibus.\",
    \"responsible_id\": 1,
    \"status\": \"accepted\",
    \"priority\": \"medium\",
    \"articles\": [
        {
            \"id\": 18,
            \"unit_price\": 1,
            \"quantity\": 14,
            \"supplier_id\": 2
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/supply-demands/1"
);

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

let body = {
    "name": "zvtbknshzoua",
    "description": "Voluptate est fugit ad sunt et est voluptatibus.",
    "responsible_id": 1,
    "status": "accepted",
    "priority": "medium",
    "articles": [
        {
            "id": 18,
            "unit_price": 1,
            "quantity": 14,
            "supplier_id": 2
        }
    ]
};

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

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

description   string  optional  

Example: Voluptate est fugit ad sunt et est voluptatibus.

responsible_id   integer  optional  

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

status   string  optional  

Example: accepted

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

Example: medium

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

unit_price   integer  optional  

Example: 1

quantity   integer   

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

supplier_id   integer   

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

Met en corbeille (suppression logique) une ou plusieurs demandes d'approvisionnement.

requires authentication

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

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

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

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

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

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

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

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

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 de congé

Gestion des demandes de congé employé

Lister les congés enregistrés

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/holidays/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 14,
    \"user_approve_id\": 8,
    \"status\": \"approved\",
    \"archive\": \"only_trashed\",
    \"date\": \"2026-02-06T09:06:14\",
    \"page_items\": 4,
    \"nbre_items\": 13,
    \"filter_value\": \"illo\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/holidays/all"
);

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

let body = {
    "user_id": 14,
    "user_approve_id": 8,
    "status": "approved",
    "archive": "only_trashed",
    "date": "2026-02-06T09:06:14",
    "page_items": 4,
    "nbre_items": 13,
    "filter_value": "illo"
};

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

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

user_approve_id   integer  optional  

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

status   string  optional  

Example: approved

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

Example: only_trashed

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

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

page_items   integer  optional  

Example: 4

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Example: illo

Afficher les détails d'une retenue sur salaire

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Enregistrer une demande de congé

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/holidays" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"molestias\",
    \"start_date\": \"2052-05-17\",
    \"end_date\": \"2034-05-17\",
    \"days_taken\": 12,
    \"reason\": \"dimwgsxbzuvzhcdhrdxaxba\",
    \"user_approve_id\": 2
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/holidays"
);

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

let body = {
    "type": "molestias",
    "start_date": "2052-05-17",
    "end_date": "2034-05-17",
    "days_taken": 12,
    "reason": "dimwgsxbzuvzhcdhrdxaxba",
    "user_approve_id": 2
};

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

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

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

end_date   string   

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

days_taken   integer   

Example: 12

reason   string   

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

user_approve_id   integer   

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

Modifier une demande de congé

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/holidays/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"quisquam\",
    \"start_date\": \"2118-05-05\",
    \"end_date\": \"2120-10-14\",
    \"days_taken\": 10,
    \"reason\": \"sfkzfppujpfgxtmhwunq\",
    \"status\": \"rejected\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/holidays/10"
);

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

let body = {
    "type": "quisquam",
    "start_date": "2118-05-05",
    "end_date": "2120-10-14",
    "days_taken": 10,
    "reason": "sfkzfppujpfgxtmhwunq",
    "status": "rejected"
};

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

Request      

PUT api/holidays/{holiday_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

holiday_id   integer   

The ID of the holiday. Example: 10

Body Parameters

type   string  optional  

Example: quisquam

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

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

days_taken   integer  optional  

Example: 10

reason   string  optional  

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

status   string  optional  

Example: rejected

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

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

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

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

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

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

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

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

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

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

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

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

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\": 26,
    \"nbre_items\": 9,
    \"filterValue\": \"xrcydk\",
    \"departure\": \"2026-02-06T09:06:14\",
    \"return\": \"2061-04-23\",
    \"duration\": 61,
    \"archive\": \"with_trashed\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permission-requests/all"
);

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

let body = {
    "page_items": 26,
    "nbre_items": 9,
    "filterValue": "xrcydk",
    "departure": "2026-02-06T09:06:14",
    "return": "2061-04-23",
    "duration": 61,
    "archive": "with_trashed"
};

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

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

nbre_items   integer  optional  

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

filterValue   string  optional  

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

departure   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

return   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après datedeparture. Example: 2061-04-23

duration   integer  optional  

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

status   string  optional  
archive   string  optional  

Example: with_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/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permission-requests/et"
);

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Crée une nouvelle demande de permission.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/permission-requests" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"hs\",
    \"departure\": \"2042-03-06\",
    \"return\": \"2086-03-28\",
    \"duration\": 80,
    \"user_approve_id\": 18,
    \"status\": \"pending\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permission-requests"
);

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

let body = {
    "reason": "hs",
    "departure": "2042-03-06",
    "return": "2086-03-28",
    "duration": 80,
    "user_approve_id": 18,
    "status": "pending"
};

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

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

departure   string   

Le champ value doit être une date valide. Le champ value doit être une date après ou égale à today. Example: 2042-03-06

return   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après departure. Example: 2086-03-28

duration   integer  optional  

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

user_approve_id   integer   

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

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/eveniet" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"ppym\",
    \"datedeparture\": \"2057-02-13\",
    \"dateRetour\": \"2047-04-28\",
    \"duration\": 27,
    \"status\": \"rejected\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permission-requests/eveniet"
);

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

let body = {
    "reason": "ppym",
    "datedeparture": "2057-02-13",
    "dateRetour": "2047-04-28",
    "duration": 27,
    "status": "rejected"
};

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

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

Body Parameters

reason   string  optional  

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

datedeparture   string  optional  

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

dateRetour   string  optional  

Le champ value doit être une date valide. Le champ value doit être une date après datedeparture. Example: 2047-04-28

duration   integer  optional  

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

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

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

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

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

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

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

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

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

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

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

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

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

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\": 45,
    \"nbre_items\": 13,
    \"filter_value\": \"hic\",
    \"seller_id\": 1,
    \"hotel_id\": 4,
    \"order_id\": 7,
    \"client_id\": 1,
    \"date_start\": \"2026-02-06T09:06:14\",
    \"date_end\": \"2026-02-06T09:06:14\",
    \"cashin_type\": \"booking\",
    \"payment_method\": \"suscipit\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/cash-ins/all"
);

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

let body = {
    "page_items": 45,
    "nbre_items": 13,
    "filter_value": "hic",
    "seller_id": 1,
    "hotel_id": 4,
    "order_id": 7,
    "client_id": 1,
    "date_start": "2026-02-06T09:06:14",
    "date_end": "2026-02-06T09:06:14",
    "cashin_type": "booking",
    "payment_method": "suscipit"
};

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

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

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Example: hic

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

order_id   integer  optional  

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

client_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-02-06T09:06:14

date_end   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

cashin_type   integer  optional  

Example: booking

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

Example: suscipit

Afficher les détails d'un encaissement

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Ajouter un encaissment

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/cash-ins" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_id\": 18,
    \"service_id\": 10,
    \"booking_id\": 19,
    \"payment_method\": \"voluptas\",
    \"type\": \"aliquam\",
    \"amount\": 272.6513,
    \"date\": \"2026-02-06\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/cash-ins"
);

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

let body = {
    "order_id": 18,
    "service_id": 10,
    "booking_id": 19,
    "payment_method": "voluptas",
    "type": "aliquam",
    "amount": 272.6513,
    "date": "2026-02-06"
};

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

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

service_id   integer   

Example: 10

booking_id   integer  optional  

Example: 19

payment_method   string   

Example: voluptas

type   string  optional  

Example: aliquam

amount   number   

Example: 272.6513

date   string  optional  

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

Modifier un encaissement

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/cash-ins/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_id\": 2,
    \"service_id\": 16,
    \"booking_id\": 18,
    \"payment_method\": \"et\",
    \"amount\": 103.70317
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/cash-ins/1"
);

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

let body = {
    "order_id": 2,
    "service_id": 16,
    "booking_id": 18,
    "payment_method": "et",
    "amount": 103.70317
};

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

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

Body Parameters

order_id   integer  optional  

Example: 2

service_id   integer  optional  

Example: 16

booking_id   integer  optional  

Example: 18

payment_method   string  optional  

Example: et

amount   number  optional  

Example: 103.70317

Archiver (soft delete) les entrées spécifiées.

requires authentication

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

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

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

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

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

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

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

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

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

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

let body = {
    "page_items": 74,
    "nbre_items": 9,
    "filter_value": "dolorem",
    "service_id": 5,
    "hotel_id": 6,
    "type": "internal",
    "archive": "only_trashed"
};

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

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

nbre_items   integer  optional  

Example: 9

filter_value   string  optional  

Example: dolorem

service_id   integer  optional  

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

hotel_id   integer  optional  

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

type   string  optional  

Example: internal

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

Example: only_trashed

Must be one of:
  • with_trashed
  • only_trashed

Afficher un évènement

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Ajouter un évènement

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/events" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"lyfrlnvbwwzrymksoz\",
    \"description\": \"Eligendi sit omnis ducimus vel repudiandae mollitia laboriosam.\",
    \"start_date\": \"2026-02-06\",
    \"end_date\": \"2111-06-06\",
    \"type\": \"internal\",
    \"budget\": \"nostrum\",
    \"hotel_id\": 5,
    \"service_id\": 3
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/events"
);

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

let body = {
    "name": "lyfrlnvbwwzrymksoz",
    "description": "Eligendi sit omnis ducimus vel repudiandae mollitia laboriosam.",
    "start_date": "2026-02-06",
    "end_date": "2111-06-06",
    "type": "internal",
    "budget": "nostrum",
    "hotel_id": 5,
    "service_id": 3
};

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

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

description   string   

Example: Eligendi sit omnis ducimus vel repudiandae mollitia laboriosam.

start_date   string   

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

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

type   string   

Example: internal

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

Example: nostrum

hotel_id   integer   

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

Modifier un évènement

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/events/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"xzxvbx\",
    \"description\": \"Aut odit harum laudantium quo qui aspernatur distinctio.\",
    \"start_date\": \"2026-02-06\",
    \"end_date\": \"2113-02-04\",
    \"type\": \"external\",
    \"budget\": \"at\",
    \"hotel_id\": 17,
    \"service_id\": 9
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/events/1"
);

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

let body = {
    "name": "xzxvbx",
    "description": "Aut odit harum laudantium quo qui aspernatur distinctio.",
    "start_date": "2026-02-06",
    "end_date": "2113-02-04",
    "type": "external",
    "budget": "at",
    "hotel_id": 17,
    "service_id": 9
};

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

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

Body Parameters

name   string  optional  

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

description   string  optional  

Example: Aut odit harum laudantium quo qui aspernatur distinctio.

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-02-06

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: 2113-02-04

type   string  optional  

Example: external

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

Example: at

hotel_id   integer  optional  

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

service_id   integer  optional  

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

Archiver un ou plusieurs events

requires authentication

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

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

let body = {
    "event_ids": [
        20
    ]
};

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

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

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

let body = {
    "event_ids": [
        18
    ]
};

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

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\": 12,
    \"filter_value\": \"provident\",
    \"founder_id\": 7,
    \"manager_id\": 2,
    \"assistant_id\": 9,
    \"package_id\": 12
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/hotels/all"
);

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

let body = {
    "page_items": 1,
    "nbre_items": 12,
    "filter_value": "provident",
    "founder_id": 7,
    "manager_id": 2,
    "assistant_id": 9,
    "package_id": 12
};

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

Example response (200):


{
    "data": [
        {
            "id": 3,
            "name": "Pessi Hotel",
            "phone": "+1-206-252-5925",
            "description": "Sit quibusdam.",
            "stars": 4,
            "email": "isauer@example.net",
            "address": "5733 Payton Union\nLake Godfreymouth, LA 34761-3059",
            "website": null,
            "author": null,
            "created_at": "2025-02-14 10:50:03"
        }
    ],
    "links": {
        "first": "http://127.0.0.1:8000/api/hotels/all?page=1",
        "last": "http://127.0.0.1:8000/api/hotels/all?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Précédent",
                "active": false
            },
            {
                "url": "http://127.0.0.1:8000/api/hotels/all?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Suivant »",
                "active": false
            }
        ],
        "path": "http://127.0.0.1:8000/api/hotels/all",
        "per_page": 1000000,
        "to": 3,
        "total": 3
    }
}
 

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

filter_value   string  optional  

Example: provident

founder_id   integer  optional  

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

manager_id   integer  optional  

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

assistant_id   integer  optional  

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

package_id   integer  optional  

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

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\": \"temporibus\",
    \"phone\": \"in\",
    \"description\": \"Veritatis sit autem quia.\",
    \"stars\": 5,
    \"email\": \"zieme.amiya@example.com\",
    \"address\": \"libero\",
    \"website\": \"totam\",
    \"logo\": \"totam\",
    \"creation_date\": \"2026-02-06\",
    \"city\": \"ksortuloblrsir\",
    \"country\": \"rwttsnaqaqsaeu\",
    \"type\": \"quia\",
    \"category\": \"perspiciatis\",
    \"founder_id\": 7,
    \"manager_id\": 11,
    \"assistant_id\": 13,
    \"package_id\": 11
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/hotels"
);

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

let body = {
    "name": "temporibus",
    "phone": "in",
    "description": "Veritatis sit autem quia.",
    "stars": 5,
    "email": "zieme.amiya@example.com",
    "address": "libero",
    "website": "totam",
    "logo": "totam",
    "creation_date": "2026-02-06",
    "city": "ksortuloblrsir",
    "country": "rwttsnaqaqsaeu",
    "type": "quia",
    "category": "perspiciatis",
    "founder_id": 7,
    "manager_id": 11,
    "assistant_id": 13,
    "package_id": 11
};

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

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

phone   string   

Example: in

description   string   

Example: Veritatis sit autem quia.

stars   integer   

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

email   string   

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

address   string   

Example: libero

website   string  optional  

Example: totam

logo   string  optional  

Example: totam

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-02-06

city   string   

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

country   string   

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

type   string  optional  

Example: quia

category   string  optional  

Example: perspiciatis

founder_id   integer   

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

manager_id   integer   

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

assistant_id   integer  optional  

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

package_id   integer   

Example: 11

Modifier les informations d'un hotel

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/hotels/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"provident\",
    \"phone\": \"ullam\",
    \"description\": \"Accusantium est et amet aliquid maiores minima.\",
    \"stars\": 3,
    \"email\": \"rossie01@example.com\",
    \"address\": \"culpa\",
    \"website\": \"assumenda\",
    \"logo\": \"dolorem\",
    \"rib\": \"enim\",
    \"niu\": \"molestiae\",
    \"rc\": \"qui\",
    \"creation_date\": \"2026-02-06\",
    \"city\": \"rerum\",
    \"country\": \"aspernatur\",
    \"type\": \"molestias\",
    \"category\": \"nemo\",
    \"founder_id\": 18,
    \"manager_id\": 3,
    \"assistant_id\": 10,
    \"package_id\": 17
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/hotels/3"
);

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

let body = {
    "name": "provident",
    "phone": "ullam",
    "description": "Accusantium est et amet aliquid maiores minima.",
    "stars": 3,
    "email": "rossie01@example.com",
    "address": "culpa",
    "website": "assumenda",
    "logo": "dolorem",
    "rib": "enim",
    "niu": "molestiae",
    "rc": "qui",
    "creation_date": "2026-02-06",
    "city": "rerum",
    "country": "aspernatur",
    "type": "molestias",
    "category": "nemo",
    "founder_id": 18,
    "manager_id": 3,
    "assistant_id": 10,
    "package_id": 17
};

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

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

phone   string  optional  

Example: ullam

description   string  optional  

Example: Accusantium est et amet aliquid maiores minima.

stars   integer  optional  

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

email   string  optional  

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

address   string  optional  

Example: culpa

website   string  optional  

Example: assumenda

logo   string  optional  

Example: dolorem

rib   string  optional  

Example: enim

niu   string  optional  

Example: molestiae

rc   string  optional  

Example: qui

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-02-06

city   string  optional  

Example: rerum

country   string  optional  

Example: aspernatur

type   string  optional  

Example: molestias

category   string  optional  

Example: nemo

founder_id   integer  optional  

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

manager_id   integer  optional  

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

package_id   integer  optional  

Example: 17

Archiver un ou plusieurs hotel(s) NB: Un hotel ne peut pas être supprimé si il est lié à quelque chose d'autre dans le système

requires authentication

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

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

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

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

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

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

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

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

Request      

POST api/hotels/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

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

requires authentication

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

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

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

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

Request      

DELETE api/hotels/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Mouvements d'articles

Gestion des mouvements d'articles

Lister les mouvements d'article en fonction du filtre

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/article-movements/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 31,
    \"nbre_items\": 2,
    \"filter_value\": \"beatae\",
    \"article_id\": 14,
    \"operation_type\": \"exit\",
    \"product_id\": 14,
    \"from_date\": \"2026-02-06T09:06:14\",
    \"to_date\": \"2122-09-23\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/article-movements/all"
);

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

let body = {
    "page_items": 31,
    "nbre_items": 2,
    "filter_value": "beatae",
    "article_id": 14,
    "operation_type": "exit",
    "product_id": 14,
    "from_date": "2026-02-06T09:06:14",
    "to_date": "2122-09-23"
};

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

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

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Example: beatae

article_id   integer  optional  

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

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

from_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

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: 2122-09-23

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\": 28,
    \"nbre_items\": 5,
    \"filter_value\": \"rerum\",
    \"product_id\": 13,
    \"service_id\": 4,
    \"operation_type\": \"exit\",
    \"from_date\": \"2026-02-06T09:06:14\",
    \"to_date\": \"2054-08-29\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/product-movements/all"
);

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

let body = {
    "page_items": 28,
    "nbre_items": 5,
    "filter_value": "rerum",
    "product_id": 13,
    "service_id": 4,
    "operation_type": "exit",
    "from_date": "2026-02-06T09:06:14",
    "to_date": "2054-08-29"
};

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

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

nbre_items   integer  optional  

Example: 5

filter_value   string  optional  

Example: rerum

product_id   integer  optional  

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

service_id   integer  optional  

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

operation_type   string  optional  

Example: exit

Must be one of:
  • entry
  • exit
from_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

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: 2054-08-29

Effectuer un mouvement de produit (possibilité d'en créer)

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/product-movements" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"quantity\": 2,
    \"description\": \"Velit dolores quidem modi vel quisquam.\",
    \"operation_type\": \"exit\",
    \"product_id\": 18
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/product-movements"
);

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

let body = {
    "quantity": 2,
    "description": "Velit dolores quidem modi vel quisquam.",
    "operation_type": "exit",
    "product_id": 18
};

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

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

description   string  optional  

Example: Velit dolores quidem modi vel quisquam.

operation_type   string   

Example: exit

Must be one of:
  • entry
  • exit
product_id   integer   

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

Afficher un mouvement de produit spécifique

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Packages / Forfaits

Gestion des packages / forfaits

Lister les packages / forfaits disponibles

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/packages/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 54,
    \"nbre_items\": 10,
    \"filter_value\": \"vitae\",
    \"website\": false,
    \"support_type\": \"premium\",
    \"electronic_payment\": true,
    \"mail_pro\": true
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/packages/all"
);

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

let body = {
    "page_items": 54,
    "nbre_items": 10,
    "filter_value": "vitae",
    "website": false,
    "support_type": "premium",
    "electronic_payment": true,
    "mail_pro": true
};

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

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

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

Example: vitae

website   boolean  optional  

Example: false

support_type   string  optional  

Example: premium

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

Example: true

mail_pro   boolean  optional  

Example: true

Afficher les informations sur un package

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

Request      

GET api/packages/{package_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

package_id   integer   

The ID of the package. Example: 1

Créer un package / forfait

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/packages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"nobis\",
    \"amount\": \"accusamus\",
    \"website\": false,
    \"support_type\": \"classic\",
    \"electronic_payment\": true,
    \"mail_pro\": false
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/packages"
);

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

let body = {
    "name": "nobis",
    "amount": "accusamus",
    "website": false,
    "support_type": "classic",
    "electronic_payment": true,
    "mail_pro": false
};

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

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

amount   string   

Example: accusamus

website   boolean   

Example: false

support_type   string   

Example: classic

Must be one of:
  • classic
  • premium
electronic_payment   boolean   

Example: true

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

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

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

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

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

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

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

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

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

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

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

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

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

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\": 75,
    \"nbre_items\": 12,
    \"filter_value\": \"eum\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/settings/all"
);

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

let body = {
    "page_items": 75,
    "nbre_items": 12,
    "filter_value": "eum"
};

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

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

nbre_items   integer  optional  

Example: 12

filter_value   string  optional  

Example: eum

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\": \"aperiam\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/settings/1"
);

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

let body = {
    "value": "aperiam"
};

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

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

Permissions

Gestion des permissions

Afficher la liste des permissions

requires authentication

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

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

let body = {
    "page_items": 82,
    "nbre_items": 6,
    "filter_value": "omnis"
};

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

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

nbre_items   integer  optional  

Example: 6

filter_value   string  optional  

Example: omnis

Ajouter une liste de permission

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/permissions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"permissions\": [
        {
            \"name\": \"soluta\",
            \"description\": \"Aut quia voluptatem cumque dolore eos omnis aperiam.\",
            \"ressource\": \"quia\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permissions"
);

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

let body = {
    "permissions": [
        {
            "name": "soluta",
            "description": "Aut quia voluptatem cumque dolore eos omnis aperiam.",
            "ressource": "quia"
        }
    ]
};

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

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

description   string  optional  

Example: Aut quia voluptatem cumque dolore eos omnis aperiam.

ressource   string   

Example: quia

Afficher une permission spécifique

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Mettre a jour une permission spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/permissions/perspiciatis" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"et\",
    \"permissions\": [
        {
            \"description\": \"Cum aut cupiditate accusamus nesciunt perspiciatis.\",
            \"ressource\": \"reiciendis\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/permissions/perspiciatis"
);

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

let body = {
    "name": "et",
    "permissions": [
        {
            "description": "Cum aut cupiditate accusamus nesciunt perspiciatis.",
            "ressource": "reiciendis"
        }
    ]
};

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

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

Body Parameters

name   string   

Example: et

permissions   object[]  optional  
description   string  optional  

Example: Cum aut cupiditate accusamus nesciunt perspiciatis.

ressource   string  optional  

Example: reiciendis

Fonction pour le multiple archivage des permissions

requires authentication

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

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

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

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

Request      

POST api/permissions/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de restauration multiples des permissions

requires authentication

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

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

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

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

Request      

POST api/permissions/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de suppression définitive multiple des permissions

requires authentication

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

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

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

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

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\": 79,
    \"nbre_items\": 20,
    \"filter_value\": \"perspiciatis\",
    \"type\": \"staff\",
    \"scan_per_course\": false,
    \"saving_type\": \"qr_code\",
    \"user_id\": 5,
    \"date\": \"2026-02-06T09:06:14\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/staff-presences/all"
);

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

let body = {
    "page_items": 79,
    "nbre_items": 20,
    "filter_value": "perspiciatis",
    "type": "staff",
    "scan_per_course": false,
    "saving_type": "qr_code",
    "user_id": 5,
    "date": "2026-02-06T09:06:14"
};

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

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

nbre_items   integer  optional  

Example: 20

filter_value   string  optional  

Example: perspiciatis

type   string  optional  

Example: staff

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

Example: false

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

date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

Display the specified resource.

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Enregistrer une nouvelle présence de personnel.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/staff-presences" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 14,
    \"scan_per_course\": false,
    \"type\": \"staff\",
    \"date\": \"2026-02-06T09:06:14\",
    \"arrival_time\": \"09:06:14\",
    \"departure_time\": \"09:06:14\",
    \"reason\": \"ad\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/staff-presences"
);

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

let body = {
    "user_id": 14,
    "scan_per_course": false,
    "type": "staff",
    "date": "2026-02-06T09:06:14",
    "arrival_time": "09:06:14",
    "departure_time": "09:06:14",
    "reason": "ad"
};

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

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

scan_per_course   boolean   

Example: false

type   string   

Example: staff

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

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

arrival_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:06:14

departure_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:06:14

reason   string  optional  

Example: ad

Modifier une présence du personnel

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/staff-presences/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 17,
    \"scan_per_course\": true,
    \"type\": \"staff\",
    \"date\": \"2026-02-06T09:06:14\",
    \"time\": \"09:06:14\",
    \"arrival_time\": \"09:06:14\",
    \"departure_time\": \"09:06:14\",
    \"reason\": \"eum\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/staff-presences/17"
);

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

let body = {
    "user_id": 17,
    "scan_per_course": true,
    "type": "staff",
    "date": "2026-02-06T09:06:14",
    "time": "09:06:14",
    "arrival_time": "09:06:14",
    "departure_time": "09:06:14",
    "reason": "eum"
};

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

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

Body Parameters

user_id   integer  optional  

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

scan_per_course   boolean  optional  

Example: true

type   string  optional  

Example: staff

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

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:06:14

arrival_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:06:14

departure_time   string  optional  

Must be a valid date in the format H:i:s. Example: 09:06:14

reason   string  optional  

Example: eum

Archiver (soft delete) les presences spécifiées.

requires authentication

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

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

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

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

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

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

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

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

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\": 61,
    \"nbre_items\": 11,
    \"filter_value\": \"harum\",
    \"article_ids\": [
        16
    ],
    \"type\": \"storable\",
    \"expired\": false,
    \"service_id\": 4,
    \"hotel_id\": 15
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/products/all"
);

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

let body = {
    "page_items": 61,
    "nbre_items": 11,
    "filter_value": "harum",
    "article_ids": [
        16
    ],
    "type": "storable",
    "expired": false,
    "service_id": 4,
    "hotel_id": 15
};

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

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

nbre_items   integer  optional  

Example: 11

filter_value   string  optional  

Example: harum

article_ids   integer[]  optional  

The id of an existing record in the articles table.

type   string  optional  

Example: storable

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

Example: false

service_id   integer  optional  

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

hotel_id   integer  optional  

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

Ajouter de nouveaux produits

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/products" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"maiores\",
    \"type\": \"storable\",
    \"image\": \"veritatis\",
    \"price\": 32045.808,
    \"description\": \"Deleniti consectetur cupiditate exercitationem in.\",
    \"alert_quantity\": 5,
    \"status\": \"validated\",
    \"quantity\": 60,
    \"expiry_date\": \"2026-02-06T09:06:14\",
    \"service_id\": 5,
    \"articles\": [
        {
            \"id\": 20,
            \"quantity\": 70
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/products"
);

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

let body = {
    "name": "maiores",
    "type": "storable",
    "image": "veritatis",
    "price": 32045.808,
    "description": "Deleniti consectetur cupiditate exercitationem in.",
    "alert_quantity": 5,
    "status": "validated",
    "quantity": 60,
    "expiry_date": "2026-02-06T09:06:14",
    "service_id": 5,
    "articles": [
        {
            "id": 20,
            "quantity": 70
        }
    ]
};

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

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

type   string   

Example: storable

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

Example: veritatis

price   number   

Example: 32045.808

description   string  optional  

Example: Deleniti consectetur cupiditate exercitationem in.

alert_quantity   integer  optional  

Example: 5

status   string  optional  

Example: validated

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

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

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

service_id   integer  optional  

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

articles   object[]   

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

id   integer   

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

quantity   number   

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

Afficher un produit spécifique

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Modifier un produit spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/products/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"praesentium\",
    \"type\": \"storable\",
    \"image\": \"sit\",
    \"price\": 1.9149331,
    \"description\": \"Qui qui explicabo assumenda nemo nihil quaerat.\",
    \"alert_quantity\": 9,
    \"status\": \"pending\",
    \"quantity\": 21,
    \"expiry_date\": \"2026-02-06T09:06:14\",
    \"service_id\": 15,
    \"articles\": [
        {
            \"id\": 16,
            \"quantity\": 21
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/products/10"
);

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

let body = {
    "name": "praesentium",
    "type": "storable",
    "image": "sit",
    "price": 1.9149331,
    "description": "Qui qui explicabo assumenda nemo nihil quaerat.",
    "alert_quantity": 9,
    "status": "pending",
    "quantity": 21,
    "expiry_date": "2026-02-06T09:06:14",
    "service_id": 15,
    "articles": [
        {
            "id": 16,
            "quantity": 21
        }
    ]
};

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

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

Body Parameters

name   string  optional  

Example: praesentium

type   string  optional  

Example: storable

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

Example: sit

price   number  optional  

Example: 1.9149331

description   string  optional  

Example: Qui qui explicabo assumenda nemo nihil quaerat.

alert_quantity   integer  optional  

Example: 9

status   string  optional  

Example: pending

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

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

expiry_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

service_id   integer  optional  

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

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

quantity   integer  optional  

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

Fonction pour le multiple archivage des products

requires authentication

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

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

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

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

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

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

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

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

Request      

POST api/products/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de suppression définitive multiple des products

requires authentication

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

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

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

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

Request      

DELETE api/products/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Punitions

Gestion des punitions

Liste les sanctions avec filtrage par utilisateur, type ou valeur de recherche.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/punishments/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 23,
    \"nbre_items\": 9,
    \"filter_value\": \"ipsam\",
    \"hotel_id\": 14,
    \"service_id\": 3,
    \"user_id\": 12,
    \"type\": 2
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/punishments/all"
);

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

let body = {
    "page_items": 23,
    "nbre_items": 9,
    "filter_value": "ipsam",
    "hotel_id": 14,
    "service_id": 3,
    "user_id": 12,
    "type": 2
};

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

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

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

service_id   integer  optional  

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

user_id   integer  optional  

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

type   integer  optional  

Example: 2

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

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Crée une ou plusieurs sanctions à partir des données fournies.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/punishments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"punishments\": [
        {
            \"description\": \"Reiciendis hic est debitis ratione eos voluptas natus.\",
            \"user_id\": 12,
            \"type\": \"delectus\",
            \"reasons\": \"in\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/punishments"
);

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

let body = {
    "punishments": [
        {
            "description": "Reiciendis hic est debitis ratione eos voluptas natus.",
            "user_id": 12,
            "type": "delectus",
            "reasons": "in"
        }
    ]
};

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

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: Reiciendis hic est debitis ratione eos voluptas natus.

user_id   integer   

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

type   string   

Example: delectus

reasons   string   

Example: in

Met à jour les informations d'une sanction existante.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/punishments/14" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Et quis optio est explicabo officia hic et.\",
    \"user_id\": 14,
    \"type\": \"error\",
    \"reasons\": \"voluptatem\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/punishments/14"
);

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

let body = {
    "description": "Et quis optio est explicabo officia hic et.",
    "user_id": 14,
    "type": "error",
    "reasons": "voluptatem"
};

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

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

Body Parameters

description   string  optional  

Example: Et quis optio est explicabo officia hic et.

user_id   integer  optional  

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

type   string  optional  

Example: error

reasons   string  optional  

Example: voluptatem

Met en corbeille (soft delete) une ou plusieurs sanctions.

requires authentication

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

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

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

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

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

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

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

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

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\": 59,
    \"nbre_items\": 13,
    \"filter_value\": \"delectus\",
    \"user_id\": 1,
    \"user_approve_id\": 16,
    \"trashed\": true,
    \"date\": \"2026-02-06\",
    \"status\": \"pending_approval\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-deductions/all"
);

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

let body = {
    "page_items": 59,
    "nbre_items": 13,
    "filter_value": "delectus",
    "user_id": 1,
    "user_approve_id": 16,
    "trashed": true,
    "date": "2026-02-06",
    "status": "pending_approval"
};

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

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

nbre_items   integer  optional  

Example: 13

filter_value   string  optional  

Example: delectus

user_id   integer  optional  

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

user_approve_id   integer  optional  

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

trashed   boolean  optional  

Example: true

date   string  optional  

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

status   string  optional  

Example: pending_approval

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/8" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-deductions/8"
);

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Show the form for creating a new resource.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/salaries-deductions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"salary_deductions\": [
        {
            \"user_id\": \"similique\",
            \"user_approve_id\": 9,
            \"amount\": 9,
            \"date\": \"2026-02-06T09:06:14\",
            \"status\": \"approved\",
            \"reason\": \"sed\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-deductions"
);

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

let body = {
    "salary_deductions": [
        {
            "user_id": "similique",
            "user_approve_id": 9,
            "amount": 9,
            "date": "2026-02-06T09:06:14",
            "status": "approved",
            "reason": "sed"
        }
    ]
};

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

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

user_approve_id   integer   

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

amount   number   

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

date   string   

Le champ value doit être une date valide. Example: 2026-02-06T09:06:14

status   string  optional  

Example: approved

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

Example: sed

Mettre à jour une retenue sur salaire spécifique

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/salaries-deductions/20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 20,
    \"user_approve_id\": 14,
    \"reason\": \"suscipit\",
    \"date\": \"2026-02-06\",
    \"status\": \"pending_approval\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/salaries-deductions/20"
);

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

let body = {
    "user_id": 20,
    "user_approve_id": 14,
    "reason": "suscipit",
    "date": "2026-02-06",
    "status": "pending_approval"
};

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

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

Body Parameters

user_id   integer  optional  

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

user_approve_id   integer  optional  

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

amount   string  optional  
reason   string  optional  

Example: suscipit

date   string  optional  

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

status   string  optional  

Example: pending_approval

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

Archiver (soft delete) les retenues sur salaire spécifiées.

requires authentication

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

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

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

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

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

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

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

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

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

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

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

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

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\": 6,
    \"nbre_items\": 73,
    \"filter_value\": \"aukaafpbtsvknikrdpsslrpzv\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/reductions/all"
);

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

let body = {
    "page_items": 6,
    "nbre_items": 73,
    "filter_value": "aukaafpbtsvknikrdpsslrpzv"
};

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

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

nbre_items   integer  optional  

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

filter_value   string  optional  

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

Enregistrer une nouvelle réduction

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/reductions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"cocpeajhkoahfmqgzq\",
    \"description\": \"Cumque accusantium ut ipsum et.\",
    \"amount\": 78
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/reductions"
);

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

let body = {
    "name": "cocpeajhkoahfmqgzq",
    "description": "Cumque accusantium ut ipsum et.",
    "amount": 78
};

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

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

description   string  optional  

Example: Cumque accusantium ut ipsum et.

amount   number   

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

Afficher les détails d'une réduction

requires authentication

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

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

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

Example response (401):

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

{
    "message": "Unauthenticated."
}
 

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

Mettre à jour une réduction

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/reductions/tempore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"hbbtlzpmxibtozbqf\",
    \"description\": \"Ipsa blanditiis et cumque qui velit ipsum dolor et.\",
    \"amount\": 33
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/reductions/tempore"
);

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

let body = {
    "name": "hbbtlzpmxibtozbqf",
    "description": "Ipsa blanditiis et cumque qui velit ipsum dolor et.",
    "amount": 33
};

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

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

Body Parameters

name   string  optional  

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

description   string  optional  

Example: Ipsa blanditiis et cumque qui velit ipsum dolor et.

amount   number  optional  

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

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\": 89,
    \"nbre_items\": 16,
    \"filter_value\": \"numquam\",
    \"hotel_id\": 8,
    \"room_type_id\": 5,
    \"room_category_id\": 17,
    \"room_id\": 13,
    \"user_id\": 18,
    \"status\": \"pending\",
    \"payment_status\": \"advance\",
    \"room_service_id\": 20,
    \"date\": \"2026-02-06\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/bookings/all"
);

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

let body = {
    "page_items": 89,
    "nbre_items": 16,
    "filter_value": "numquam",
    "hotel_id": 8,
    "room_type_id": 5,
    "room_category_id": 17,
    "room_id": 13,
    "user_id": 18,
    "status": "pending",
    "payment_status": "advance",
    "room_service_id": 20,
    "date": "2026-02-06"
};

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

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

nbre_items   integer  optional  

Example: 16

filter_value   string  optional  

Example: numquam

hotel_id   integer  optional  

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

room_type_id   integer  optional  

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

room_category_id   integer  optional  

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

room_id   integer  optional  

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

user_id   integer  optional  

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

status   string  optional  

Example: pending

Must be one of:
  • pending
  • confirmed
  • canceled
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: 20

date   string  optional  

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

Enregistrer une nouvelle réservation

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/bookings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-02-06\",
    \"end_date\": \"2106-07-25\",
    \"user_id\": 19,
    \"transport_mode\": \"dodrfrnjlhrofscmmvurgall\",
    \"vehicle_number\": \"jdo\",
    \"arrival_time\": \"2026-02-06T09:06:13\",
    \"departure_time\": \"2026-02-06T09:06:13\",
    \"arrivals\": \"zhkurtuejufbxvxhfdntgznc\",
    \"is_free\": true,
    \"rooms\": [
        \"voluptatem\"
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/bookings"
);

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

let body = {
    "start_date": "2026-02-06",
    "end_date": "2106-07-25",
    "user_id": 19,
    "transport_mode": "dodrfrnjlhrofscmmvurgall",
    "vehicle_number": "jdo",
    "arrival_time": "2026-02-06T09:06:13",
    "departure_time": "2026-02-06T09:06:13",
    "arrivals": "zhkurtuejufbxvxhfdntgznc",
    "is_free": true,
    "rooms": [
        "voluptatem"
    ]
};

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

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-02-06

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 start_date. Example: 2106-07-25

user_id   integer   

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

transport_mode   string  optional  

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

vehicle_number   string  optional  

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

arrival_time   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

departure_time   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

arrivals   string  optional  

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

is_free   boolean  optional  

Example: true

rooms   string[]   

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/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-02-06T09:06:13\",
    \"end_date\": \"2037-03-04\",
    \"user_id\": 3,
    \"room_service_id\": 9,
    \"transport_mode\": \"rhfwl\",
    \"vehicle_number\": \"uwymsfpt\",
    \"arrival_time\": \"2026-02-06T09:06:13\",
    \"departure_time\": \"2026-02-06T09:06:13\",
    \"arrivals\": \"nk\",
    \"is_free\": false,
    \"rooms\": [
        \"aut\"
    ],
    \"status\": \"checked_in\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/bookings/1"
);

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

let body = {
    "start_date": "2026-02-06T09:06:13",
    "end_date": "2037-03-04",
    "user_id": 3,
    "room_service_id": 9,
    "transport_mode": "rhfwl",
    "vehicle_number": "uwymsfpt",
    "arrival_time": "2026-02-06T09:06:13",
    "departure_time": "2026-02-06T09:06:13",
    "arrivals": "nk",
    "is_free": false,
    "rooms": [
        "aut"
    ],
    "status": "checked_in"
};

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

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

Body Parameters

start_date   string   

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

end_date   string   

Le champ value doit être une date valide. Le champ value doit être une date après start_date. Example: 2037-03-04

user_id   integer   

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

room_service_id   integer  optional  

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

transport_mode   string  optional  

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

vehicle_number   string  optional  

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

arrival_time   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

departure_time   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

arrivals   string  optional  

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

is_free   boolean  optional  

Example: false

rooms   string[]   

The id of an existing record in the rooms table.

status   string  optional  

Example: checked_in

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

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

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

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

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

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

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

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

Request      

POST api/bookings/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Fonction de suppression définitive multiple des Reservations

requires authentication

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

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

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/bookings/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Rôles

Gestion des rôles

Lister les roles

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/roles/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 50,
    \"nbre_items\": 8,
    \"filter_value\": \"ipsam\",
    \"types\": [
        \"est\"
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/roles/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 50,
    "nbre_items": 8,
    "filter_value": "ipsam",
    "types": [
        "est"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 50

nbre_items   integer  optional  

Example: 8

filter_value   string  optional  

Example: ipsam

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\": \"rerum\",
    \"permissions\": [
        17
    ],
    \"description\": \"Eveniet dolores laboriosam qui qui numquam qui culpa.\",
    \"type\": \"iste\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/roles"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "rerum",
    "permissions": [
        17
    ],
    "description": "Eveniet dolores laboriosam qui qui numquam qui culpa.",
    "type": "iste"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: rerum

permissions   integer[]   

The id of an existing record in the permissions table.

description   string  optional  

Example: Eveniet dolores laboriosam qui qui numquam qui culpa.

type   string  optional  

Example: iste

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\": \"rerum\",
    \"permissions\": [
        5
    ],
    \"description\": \"Nisi earum vel rerum magnam nobis id sed.\",
    \"type\": \"et\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/roles/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "rerum",
    "permissions": [
        5
    ],
    "description": "Nisi earum vel rerum magnam nobis id sed.",
    "type": "et"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: rerum

permissions   integer[]  optional  

The id of an existing record in the permissions table.

description   string  optional  

Example: Nisi earum vel rerum magnam nobis id sed.

type   string  optional  

Example: et

Fonction pour le multiple archivage des roles

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/roles/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/roles/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        17
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/roles/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": 84,
    \"nbre_items\": 10,
    \"filter_value\": \"voluptas\",
    \"service_id\": 19,
    \"archive\": \"with_trashed\",
    \"order_by\": \"service_id\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 84,
    "nbre_items": 10,
    "filter_value": "voluptas",
    "service_id": 19,
    "archive": "with_trashed",
    "order_by": "service_id"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 84

nbre_items   integer  optional  

Example: 10

filter_value   string  optional  

Example: voluptas

service_id   integer  optional  

The id of an existing record in the services table. Example: 19

archive   string  optional  

Example: with_trashed

Must be one of:
  • with_trashed
  • only_trashed
order_by   string  optional  

Example: service_id

Must be one of:
  • id
  • name
  • service_id

Afficher les détails d'un service de chambre spécifique.

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/room-services/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

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: 1

Créer un ou plusieurs services de chambre.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/room-services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"room_services\": [
        {
            \"name\": \"mebuvp\",
            \"description\": \"Impedit itaque est commodi.\",
            \"service_id\": 18
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "room_services": [
        {
            "name": "mebuvp",
            "description": "Impedit itaque est commodi.",
            "service_id": 18
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: mebuvp

description   string  optional  

Le champ value ne peut contenir plus de 5000 caractères. Example: Impedit itaque est commodi.

price   string  optional  
service_id   integer  optional  

The id of an existing record in the services table. Example: 18

Mettre à jour un service de chambre existant.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/room-services/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"wfzndbwiphzalkujxa\",
    \"description\": \"Ea labore qui ullam quia.\",
    \"service_id\": 9
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "wfzndbwiphzalkujxa",
    "description": "Ea labore qui ullam quia.",
    "service_id": 9
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 200 caractères. Example: wfzndbwiphzalkujxa

description   string  optional  

Le champ value ne peut contenir plus de 5000 caractères. Example: Ea labore qui ullam quia.

price   string  optional  
service_id   integer  optional  

The id of an existing record in the services table. Example: 9

Archiver un ou plusieurs services de chambre.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/room-services/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        11
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        11
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-services/trash

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the room_services table.

Restaurer un ou plusieurs services de chambre archivés.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/room-services/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        13
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-services/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        13
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/room-services/restore

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The id of an existing record in the room_services table.

Services

Contrôleur responsable de la gestion des services.

Récupérer la liste des services avec filtres et pagination.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/services/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 5,
    \"nbre_items\": 7,
    \"filter_value\": \"error\",
    \"hotel_id\": 12,
    \"responsible_id\": 4
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/services/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 5,
    "nbre_items": 7,
    "filter_value": "error",
    "hotel_id": 12,
    "responsible_id": 4
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 5

nbre_items   integer  optional  

Example: 7

filter_value   string  optional  

Example: error

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 12

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 4

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\": \"eos\",
            \"image\": \"nihil\",
            \"description\": \"Quibusdam nisi commodi quidem ducimus et nesciunt.\",
            \"hotel_id\": 8,
            \"responsible_id\": 12
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "services": [
        {
            "name": "eos",
            "image": "nihil",
            "description": "Quibusdam nisi commodi quidem ducimus et nesciunt.",
            "hotel_id": 8,
            "responsible_id": 12
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: eos

image   string  optional  

Example: nihil

description   string  optional  

Example: Quibusdam nisi commodi quidem ducimus et nesciunt.

hotel_id   integer   

The id of an existing record in the hotels table. Example: 8

responsible_id   integer   

The id of an existing record in the users table. Example: 12

Mettre à jour un service existant.

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/services/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"necessitatibus\",
    \"image\": \"ut\",
    \"description\": \"Molestiae nobis hic veniam.\",
    \"hotel_id\": 9,
    \"responsible_id\": 6
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/services/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "necessitatibus",
    "image": "ut",
    "description": "Molestiae nobis hic veniam.",
    "hotel_id": 9,
    "responsible_id": 6
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: necessitatibus

image   string  optional  

Example: ut

description   string  optional  

Example: Molestiae nobis hic veniam.

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: 6

Archiver un ou plusieurs services.

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/services/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        2
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/services/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        7
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/services/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        16
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/services/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        16
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": 29,
    \"nbre_items\": 4,
    \"filter_value\": \"omnis\",
    \"is_anonymous\": false,
    \"user_id\": 3,
    \"service_id\": 4,
    \"status\": \"received\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 29,
    "nbre_items": 4,
    "filter_value": "omnis",
    "is_anonymous": false,
    "user_id": 3,
    "service_id": 4,
    "status": "received"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 29

nbre_items   integer  optional  

Example: 4

filter_value   string  optional  

Example: omnis

is_anonymous   boolean  optional  

Example: false

user_id   integer  optional  

The id of an existing record in the users table. Example: 3

service_id   integer  optional  

The id of an existing record in the services table. Example: 4

status   string  optional  

Example: received

Must be one of:
  • pending
  • received
  • in_progress
  • resolved

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\": 1,
    \"message\": \"mxlsxwnlcx\",
    \"is_anonyme\": true
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "service_id": 1,
    "message": "mxlsxwnlcx",
    "is_anonyme": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

message   string   

Le champ value ne peut contenir plus de 1000 caractères. Example: mxlsxwnlcx

is_anonyme   boolean  optional  

Example: true

Mettre à jour une suggestion / feedback

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/feedbacks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"service_id\": 3,
    \"status\": \"pending\",
    \"message\": \"fhenzl\",
    \"is_anonymous\": true
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "service_id": 3,
    "status": "pending",
    "message": "fhenzl",
    "is_anonymous": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: fhenzl

is_anonymous   boolean  optional  

Example: true

Archiver (soft delete) les feedbacks spécifiés.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/feedbacks/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        7
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        7
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        9
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        2
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/feedbacks/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        2
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/feedbacks/destroy

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

Type de dépense / Expense Type

Gestion des présences du personnel

Afficher les types de dépense

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/expense-types/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_items\": 82,
    \"nbre_items\": 10
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/expense-types/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 82,
    "nbre_items": 10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 82

nbre_items   integer  optional  

Example: 10

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\": \"ut\",
    \"description\": \"Magnam illo iste voluptatem quo quisquam.\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/expense-types"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ut",
    "description": "Magnam illo iste voluptatem quo quisquam."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: ut

description   string  optional  

Example: Magnam illo iste voluptatem quo quisquam.

Mettre a jour les types de dépense

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/expense-types/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"inventore\",
    \"description\": \"Vero eveniet iure cupiditate voluptate optio itaque reprehenderit.\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/expense-types/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "inventore",
    "description": "Vero eveniet iure cupiditate voluptate optio itaque reprehenderit."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: inventore

description   string  optional  

Example: Vero eveniet iure cupiditate voluptate optio itaque reprehenderit.

Archiver (soft delete) les types de dépense.

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/expense-types/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        3
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/expense-types/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        17
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/expense-types/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        17
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        9
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/expense-types/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        9
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": 13,
    \"filter_value\": \"laudantium\",
    \"hotel_id\": 20,
    \"trashed\": false
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-types/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_items": 1,
    "nbre_items": 13,
    "filter_value": "laudantium",
    "hotel_id": 20,
    "trashed": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 2,
            "name": "Chambre VIP",
            "description": null,
            "author": {
                "id": 1,
                "name": "Admin",
                "phone": null,
                "created_by": null,
                "updated_by": null,
                "deleted_by": null,
                "created_at": "2025-02-14 10:50:03",
                "updated_at": "2025-02-14 10:50:03",
                "deleted_at": null,
                "token": null
            },
            "created_at": "2025-02-14 11:42:24",
            "count_rooms": 0
        },
        {
            "id": 4,
            "name": "Salle de fëte",
            "description": null,
            "author": {
                "id": 1,
                "name": "Admin",
                "phone": null,
                "created_by": null,
                "updated_by": null,
                "deleted_by": null,
                "created_at": "2025-02-14 10:50:03",
                "updated_at": "2025-02-14 10:50:03",
                "deleted_at": null,
                "token": null
            },
            "created_at": "2025-02-14 11:56:06",
            "count_rooms": 0
        },
        {
            "id": 3,
            "name": "Suite Présidentielle",
            "description": null,
            "author": {
                "id": 1,
                "name": "Admin",
                "phone": null,
                "created_by": null,
                "updated_by": null,
                "deleted_by": null,
                "created_at": "2025-02-14 10:50:03",
                "updated_at": "2025-02-14 10:50:03",
                "deleted_at": null,
                "token": null
            },
            "created_at": "2025-02-14 11:44:16",
            "count_rooms": 0
        }
    ],
    "links": {
        "first": "http://127.0.0.1:8000/api/room-types/all?page=1",
        "last": "http://127.0.0.1:8000/api/room-types/all?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Précédent",
                "active": false
            },
            {
                "url": "http://127.0.0.1:8000/api/room-types/all?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Suivant »",
                "active": false
            }
        ],
        "path": "http://127.0.0.1:8000/api/room-types/all",
        "per_page": 1000000,
        "to": 3,
        "total": 3
    }
}
 

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: 13

filter_value   string  optional  

Example: laudantium

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 20

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\": \"aliquid\",
            \"hotel_id\": 12,
            \"description\": \"Id omnis qui molestiae culpa.\"
        }
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-types"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "room_types": [
        {
            "name": "aliquid",
            "hotel_id": 12,
            "description": "Id omnis qui molestiae culpa."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: aliquid

hotel_id   integer   

The id of an existing record in the hotels table. Example: 12

description   string  optional  

Example: Id omnis qui molestiae culpa.

Ajouter un type de chambre

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/room-types/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"est\",
    \"hotel_id\": 5,
    \"description\": \"Aut assumenda molestiae qui expedita minus molestiae eligendi natus.\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-types/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "est",
    "hotel_id": 5,
    "description": "Aut assumenda molestiae qui expedita minus molestiae eligendi natus."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: est

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 5

description   string  optional  

Example: Aut assumenda molestiae qui expedita minus molestiae eligendi natus.

Archiver un ou plusieurs type de chambre NB: Un type de chambre ne peut pas être supprimé si il est lié à quelque chose d'autre dans le système

requires authentication

Example request:
curl --request DELETE \
    "https://pessi.ms-hotel.net/api/room-types/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        11
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-types/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        11
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        18
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-types/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        18
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        3
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/room-types/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        3
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": 12,
    \"responsible_id\": 8,
    \"page_items\": 43,
    \"nbre_items\": 7,
    \"filter_value\": \"cknukxwshlskpaqbkjtvsduet\",
    \"priority\": \"medium\",
    \"status\": \"started\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 12,
    "responsible_id": 8,
    "page_items": 43,
    "nbre_items": 7,
    "filter_value": "cknukxwshlskpaqbkjtvsduet",
    "priority": "medium",
    "status": "started"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 12

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 8

page_items   integer  optional  

Le champ value doit être au moins 1. Example: 43

nbre_items   integer  optional  

Example: 7

filter_value   string  optional  

Le champ value ne peut contenir plus de 100 caractères. Example: cknukxwshlskpaqbkjtvsduet

priority   string  optional  

Example: medium

Must be one of:
  • low
  • medium
  • high
status   string  optional  

Example: started

Must be one of:
  • created
  • started
  • finished

Afficher les détails d'une tâche

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/tasks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

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: 1

Ajouter une tâche

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/tasks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"jqdkykskfdq\",
    \"description\": \"Aliquam aut labore debitis iusto quas ut fugiat.\",
    \"due_date\": \"2026-02-06\",
    \"estimation\": 58,
    \"priority\": \"low\",
    \"user_ids\": [
        10
    ],
    \"responsible_id\": 13
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "jqdkykskfdq",
    "description": "Aliquam aut labore debitis iusto quas ut fugiat.",
    "due_date": "2026-02-06",
    "estimation": 58,
    "priority": "low",
    "user_ids": [
        10
    ],
    "responsible_id": 13
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: jqdkykskfdq

description   string   

Example: Aliquam aut labore debitis iusto quas ut fugiat.

due_date   string   

Le champ value doit être une date valide. Must be a valid date in the format Y-m-d. Example: 2026-02-06

estimation   integer   

Le champ value doit être au moins 0. Example: 58

priority   string   

Example: low

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: 13

Modifier une tâche

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/tasks/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"dysfiaruxeq\",
    \"description\": \"Facilis modi vel esse consequatur ut beatae.\",
    \"due_date\": \"2026-02-06\",
    \"estimation\": 57,
    \"priority\": \"high\",
    \"status\": \"created\",
    \"user_ids\": [
        18
    ],
    \"responsible_id\": 6
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "dysfiaruxeq",
    "description": "Facilis modi vel esse consequatur ut beatae.",
    "due_date": "2026-02-06",
    "estimation": 57,
    "priority": "high",
    "status": "created",
    "user_ids": [
        18
    ],
    "responsible_id": 6
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 1

Body Parameters

name   string  optional  

Le champ value ne peut contenir plus de 250 caractères. Example: dysfiaruxeq

description   string  optional  

Example: Facilis modi vel esse consequatur ut beatae.

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-02-06

estimation   integer  optional  

Le champ value doit être au moins 0. Example: 57

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: 6

Fonction pour le multiple archivage des taches

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/tasks/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        4
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        4
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        19
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        8
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/tasks/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ids": [
        8
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": \"ekbochobaawqzaxoufvndjjy\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/upload-photo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "photo": "ekbochobaawqzaxoufvndjjy"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: ekbochobaawqzaxoufvndjjy

Utilisateurs

Gestion des utilisateurs

Fonction qui permet de recuperer la liste des utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/users/all" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"role_id\": 5,
    \"role_types\": [
        \"impedit\"
    ],
    \"page_items\": 35,
    \"nbre_items\": 2,
    \"filter_value\": \"laboriosam\",
    \"order_by\": true,
    \"service_id\": 7,
    \"hotel_id\": 11,
    \"responsible_id\": 10,
    \"type\": \"sit\"
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/users/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "role_id": 5,
    "role_types": [
        "impedit"
    ],
    "page_items": 35,
    "nbre_items": 2,
    "filter_value": "laboriosam",
    "order_by": true,
    "service_id": 7,
    "hotel_id": 11,
    "responsible_id": 10,
    "type": "sit"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: 5

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: 35

nbre_items   integer  optional  

Example: 2

filter_value   string  optional  

Example: laboriosam

order_by   boolean  optional  

Example: true

service_id   integer  optional  

The id of an existing record in the services table. Example: 7

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 11

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 10

type   string  optional  

Example: sit

Fonction qui permet d'ajouter un utilisateur sans passer par la verification

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"firstname\": \"od\",
    \"lastname\": \"f\",
    \"gender\": \"male\",
    \"type\": \"fugiat\",
    \"birthday\": \"2026-02-06T09:06:13\",
    \"nationality\": \"yinc\",
    \"nui\": \"sveypvgohiki\",
    \"cni\": \"jmnvzdexsarzl\",
    \"cnps\": \"jrsntucrmhlf\",
    \"passport_issue_date\": \"2026-02-06T09:06:13\",
    \"passport_issue_place\": \"zkorci\",
    \"profession\": \"kojfouklpbgdnqyi\",
    \"birth_place\": \"srsm\",
    \"connexion_type\": \"email\",
    \"email\": \"lorenza55@example.org\",
    \"phone\": \"ck\",
    \"phone2\": \"mciiebznwk\",
    \"city\": \"rtqwzzlawzyvdosywwf\",
    \"address\": \"x\",
    \"country\": \"wtbeaktlkbtkfvfhxkcberz\",
    \"hotel_id\": 11,
    \"service_id\": 1,
    \"responsible_id\": 13,
    \"password\": \"\\\\7IN.VA#$WQQKv!D6\",
    \"photo\": \"magni\",
    \"role_id\": 9,
    \"articles\": [
        19
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "firstname": "od",
    "lastname": "f",
    "gender": "male",
    "type": "fugiat",
    "birthday": "2026-02-06T09:06:13",
    "nationality": "yinc",
    "nui": "sveypvgohiki",
    "cni": "jmnvzdexsarzl",
    "cnps": "jrsntucrmhlf",
    "passport_issue_date": "2026-02-06T09:06:13",
    "passport_issue_place": "zkorci",
    "profession": "kojfouklpbgdnqyi",
    "birth_place": "srsm",
    "connexion_type": "email",
    "email": "lorenza55@example.org",
    "phone": "ck",
    "phone2": "mciiebznwk",
    "city": "rtqwzzlawzyvdosywwf",
    "address": "x",
    "country": "wtbeaktlkbtkfvfhxkcberz",
    "hotel_id": 11,
    "service_id": 1,
    "responsible_id": 13,
    "password": "\\7IN.VA#$WQQKv!D6",
    "photo": "magni",
    "role_id": 9,
    "articles": [
        19
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: od

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: f

gender   string   

Example: male

Must be one of:
  • male
  • female
type   string  optional  

Example: fugiat

birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: yinc

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: sveypvgohiki

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jmnvzdexsarzl

cnps   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jrsntucrmhlf

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

passport_issue_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: zkorci

profession   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: kojfouklpbgdnqyi

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: srsm

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: lorenza55@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: ck

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: mciiebznwk

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rtqwzzlawzyvdosywwf

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: x

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wtbeaktlkbtkfvfhxkcberz

hotel_id   integer  optional  

The id of an existing record in the hotels table. Example: 11

service_id   integer  optional  

The id of an existing record in the services table. Example: 1

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 13

password   string   

Le champ value doit contenir au moins 6 caractères. Example: \7IN.VA#$WQQKv!D6

photo   string  optional  

Example: magni

role_id   integer  optional  

The id of an existing record in the roles table. Example: 9

articles   integer[]  optional  

The id of an existing record in the articles table.

Cette route permet d'afficher les informations d'un utilisateur

requires authentication

Example request:
curl --request GET \
    --get "https://pessi.ms-hotel.net/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://pessi.ms-hotel.net/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/users/{user_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   integer   

The ID of the user. Example: 1

Fonction permettant de mettre à jour les informations d'un utilisateur

requires authentication

Example request:
curl --request PUT \
    "https://pessi.ms-hotel.net/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"firstname\": \"h\",
    \"lastname\": \"rlceddshyb\",
    \"gender\": \"male\",
    \"type\": \"commodi\",
    \"birthday\": \"2026-02-06T09:06:13\",
    \"nationality\": \"fd\",
    \"nui\": \"jrclpytllfdms\",
    \"cni\": \"dksezghgmwlvmwz\",
    \"cnps\": \"cins\",
    \"passport_issue_date\": \"2026-02-06T09:06:13\",
    \"passport_issue_place\": \"ggb\",
    \"profession\": \"qpaoserpgvigccmsheaddrb\",
    \"birth_place\": \"opgjczmzz\",
    \"connexion_type\": \"phone\",
    \"email\": \"yeichmann@example.net\",
    \"phone\": \"mzgelsmhzgmcoh\",
    \"phone2\": \"fppho\",
    \"city\": \"pftvgkhpztdyapcxaylotpb\",
    \"address\": \"wzftynlgjoacevrneqplbld\",
    \"country\": \"auuo\",
    \"hotel_id\": 5,
    \"service_id\": 19,
    \"responsible_id\": 13,
    \"password\": \"U_%0yt%#\",
    \"photo\": \"vero\",
    \"role_id\": 10
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "firstname": "h",
    "lastname": "rlceddshyb",
    "gender": "male",
    "type": "commodi",
    "birthday": "2026-02-06T09:06:13",
    "nationality": "fd",
    "nui": "jrclpytllfdms",
    "cni": "dksezghgmwlvmwz",
    "cnps": "cins",
    "passport_issue_date": "2026-02-06T09:06:13",
    "passport_issue_place": "ggb",
    "profession": "qpaoserpgvigccmsheaddrb",
    "birth_place": "opgjczmzz",
    "connexion_type": "phone",
    "email": "yeichmann@example.net",
    "phone": "mzgelsmhzgmcoh",
    "phone2": "fppho",
    "city": "pftvgkhpztdyapcxaylotpb",
    "address": "wzftynlgjoacevrneqplbld",
    "country": "auuo",
    "hotel_id": 5,
    "service_id": 19,
    "responsible_id": 13,
    "password": "U_%0yt%#",
    "photo": "vero",
    "role_id": 10
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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: h

lastname   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: rlceddshyb

gender   string  optional  

Example: male

Must be one of:
  • male
  • female
type   string  optional  

Example: commodi

birthday   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

nationality   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: fd

nui   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: jrclpytllfdms

cni   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: dksezghgmwlvmwz

cnps   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: cins

passport_issue_date   string  optional  

Le champ value doit être une date valide. Example: 2026-02-06T09:06:13

passport_issue_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: ggb

profession   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: qpaoserpgvigccmsheaddrb

birth_place   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: opgjczmzz

connexion_type   string  optional  

Example: phone

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: yeichmann@example.net

phone   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: mzgelsmhzgmcoh

phone2   string  optional  

Le champ value ne peut contenir plus de 20 caractères. Example: fppho

city   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: pftvgkhpztdyapcxaylotpb

address   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: wzftynlgjoacevrneqplbld

country   string  optional  

Le champ value ne peut contenir plus de 255 caractères. Example: auuo

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: 19

responsible_id   integer  optional  

The id of an existing record in the users table. Example: 13

password   string  optional  

Le champ value doit contenir au moins 6 caractères. Example: U_%0yt%#

photo   string  optional  

Example: vero

role_id   integer  optional  

The id of an existing record in the roles table. Example: 10

Fonction pour le multiple archivage des utilisateurs

requires authentication

Example request:
curl --request POST \
    "https://pessi.ms-hotel.net/api/users/trash" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        10
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/users/trash"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        10
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/users/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        10
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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\": [
        5
    ]
}"
const url = new URL(
    "https://pessi.ms-hotel.net/api/users/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_ids": [
        5
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

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