Restaurant - Attendance Record
AttendanceRecordController_findAll
const url = 'https://api.inspow.tech/api/v1/restaurant/attendance-record?limit=10&offset=0&sortBy=createdAt&sortOrder=asc&sort=%7B%22lastName%22%3A%20-1%2C%20%22email%22%3A%201%7D';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.inspow.tech/api/v1/restaurant/attendance-record?limit=10&offset=0&sortBy=createdAt&sortOrder=asc&sort=%7B%22lastName%22%3A%20-1%2C%20%22email%22%3A%201%7D'Parameters
Sección titulada « Parameters »Query Parameters
Sección titulada «Query Parameters »Example
10Number of items to return
Example
0Number of items to skip
Example
createdAtField to sort the results (Deprecated, use sort instead)
Example
ascSort direction, either asc or desc (Deprecated, use sort instead)
Query search to filter items
Query to filter items in MongoDB query format
Example
{"lastName": -1, "email": 1}JSON string specifying sorting fields and order (e.g. { “lastName”: -1, “email”: 1 })
Responses
Sección titulada « Responses »object
The ID of the subscription this invoice covers.
Type of meal for this attendance record.
Date when the service was provided.
Method of entry registration.
Metadata specific to the entry method.
object
Unique request ID for idempotency.
The timestamp when the attendance record was created.
The timestamp when the attendance record was last updated.
The user who created the attendance record.
The user who last updated the attendance record.
Example
{ "subscription": "645cc3d3f8a9c9a2b88a22f1", "mealType": "BREAKFAST", "serviceDate": "2025-05-01T12:00:00.000Z", "entryMethod": "MANUAL", "methodMeta": { "qrPayload": "subscription_123_meal_lunch_date_2024-08-24", "deviceId": "scanner_001", "locationId": "cafeteria_main", "capturedAt": "2024-08-24T12:00:00.000Z" }, "requestId": "req_lunch_2024-08-24_abc123", "createdAt": "2024-08-24T12:00:00.000Z", "updatedAt": "2024-08-24T12:05:00.000Z", "createdBy": "645cc3d3f8a9c9a2b88a22c1", "updatedBy": "645cc3d3f8a9c9a2b88a22c2"}