๐ช Orders & passages
{typeCompte} / {id}: account letter and id. Amounts are decimal numbers in the school currency.
Meal ordersโ
Packed meals / gate-pass orders.
POST /{typeCompte}/{id}/commandesPassage.awp?verbe=get&v=8.1.0
data={}
Accounts: Student (E), Family (1ยท2), Staff (A).
Response
{
"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โ
POST /{typeCompte}/{id}/commandesPassage.awp?verbe=post&v=8.1.0
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).
Response
{
"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โ
POST /{typeCompte}/{id}/commandesPassage/{idCommande}.awp?verbe=delete&v=8.1.0
data={}
Accounts: Student (E), Family (1ยท2), Staff (A).
Response
{
"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.
POST /{typeCompte}/{id}/commandesPassage/pointsDePassage/{idPDP}/{date}.awp?verbe=get&v=8.1.0
data={}
Accounts: Student (E), Family (1ยท2), Staff (A).
Response
{
"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
}
]
}
}