๐ช Orders & passages
{typeCompte} / {id}: account letter and id. Amounts are decimal numbers in the school currency.
Meal ordersโ
Packed meals / gate-pass orders.
data={}
Accounts: Student (E), Family (1ยท2), Staff (A).
{
"code": 200,
"message": "",
"data": {
"historiqueCommandes": [], // optional; Past and upcoming orders; array of โ MealOrder
"joursFeries": [], // optional; Days with no service
"tabPointsDePassage": [], // optional; Points where an order can be collected; array of โ PassagePoint
"pointDePassageJourCourant": {}, // optional; Point available today; โ PassagePoint
"expired": "" // optional
}
}
Place an orderโ
data={
"idCommande": 0,
"numeroCommande": "",
"codePM": "",
"etat": "", // Slot state
"estHorsDelai": false,
"date": "",
"dateCreneau": "",
"creneau": "",
"idUser": 0, // Participant account id
"typeUser": "", // Participant account type
"articles": [], // optional; array of โ OrderItem
"pointDePassage": {}
}
Accounts: Student (E), Family (1ยท2), Staff (A).
{
"code": 200,
"message": "",
"data": {
"idCommande": 0,
"numeroCommande": "",
"codePM": "",
"etat": "", // Slot state
"estHorsDelai": false,
"date": "",
"dateCreneau": "",
"creneau": "",
"idUser": 0, // Participant account id
"typeUser": "", // Participant account type
"articles": [], // optional; array of โ OrderItem
"pointDePassage": {}
}
}
Cancel an orderโ
data={}
Accounts: Student (E), Family (1ยท2), Staff (A).
{
"code": 200,
"message": ""
}
Is ordering open that dayโ
Ordering conditions of a passage point on a given day (slots, caps, purse). Same fields as a point in the order list.
data={}
Accounts: Student (E), Family (1ยท2), Staff (A).
{
"code": 200,
"message": "",
"data": {
"id": 0,
"libelle": "", // Label
"nbHeureLimiteAvantCommande": "08:00", // optional
"plafond": "", // optional
"categoriesArticles": [ // optional
{
"id": 0,
"libelle": "", // Label
"ordre": 0, // Position
"articles": [] // optional; array of โ OrderItem
}
],
"libellePM": "", // optional
"codePM": "CODE", // optional
"detail": "", // optional; Description
"soldePM": "", // optional
"decouvertActif": "", // optional
"montantDecouvert": "", // optional
"panierMinimum": "", // optional
"montantJournalierAtteint": "", // optional
"montantSemaineAtteint": "", // optional
"nbPassageSemaineAtteint": 1, // optional
"montantJournalier": "", // optional
"montantSemaine": "", // optional
"montantActuelSemaineUser": "", // optional
"nbPassageSemaine": 1, // optional
"creneaux": [ // optional; Slots
{
"estComplet": false,
"libelle": "" // Label
}
]
}
}
Expected passagesโ
{idPDP} is the passage point (a gate, a canteen entrance). 0 for all. Passages announced for today.
data={}
Accounts: Staff (A). Host apip.
{
"code": 200,
"message": "",
"data": [
{
"idPassageWeb": 0, // Passage id
"idPassant": 0, // Person who passed
"typePassant": "", // Account type of that person
"date": "",
"heure": "",
"idPDP": 0, // Passage point id
"dateTransmission": "", // Date sent to the school system
"dateAcq": "", // Acknowledgement date
"nom": "",
"prenom": "",
"particule": "", // Name particle
"dateNaissance": "",
"sexe": "", // `M` or `F`
"photo": "", // Photo URL
"badge": "" // Badge number
}
]
}
Passages of a dayโ
{date} is yyyy-MM-dd.
data={}
Accounts: Staff (A). Host apip.
{
"code": 200,
"message": "",
"data": [
{
"idPassageWeb": 0, // Passage id
"idPassant": 0, // Person who passed
"typePassant": "", // Account type of that person
"date": "",
"heure": "",
"idPDP": 0, // Passage point id
"dateTransmission": "", // Date sent to the school system
"dateAcq": "", // Acknowledgement date
"nom": "",
"prenom": "",
"particule": "", // Name particle
"dateNaissance": "",
"sexe": "", // `M` or `F`
"photo": "", // Photo URL
"badge": "" // Badge number
}
]
}
Record a passageโ
data={
"passageWeb": {} // โ GatePassage
}
Accounts: Staff (A). Host apip.
{
"code": 200,
"message": "",
"data": {
"idPassageWeb": 1234 // Id of the passage
}
}
Delete a passageโ
data={}
Accounts: Staff (A). Host apip.
{
"code": 200,
"message": ""
}
Classes of a passage pointโ
data={}
Accounts: Teacher (P), Staff (A). Host apip.
{
"code": 200,
"message": "",
"data": [
{
"classeID": 1234,
"classeCode": "4A",
"classeLibelle": "4eA",
"etablissementID": 1,
"etablissementLibelle": ""
}
]
}
Restrictions of a passage pointโ
data={}
Accounts: Staff (A). Host apip.
{
"code": 200,
"message": "",
"data": {
"idPDP": 0, // Passage point id
"tabIDClassesNonAutorisees": [], // optional; Class ids not allowed
"tabIDRegimesNonAutorisees": [] // optional; Boarding statuses not allowed
}
}