TMT Platform uses security PINs to authenticate QR code scans at event access control points and within the mobile app.
helpers_event_pin
Retrieves the QR PIN for a specific event from events/{event_id}/security/qr-pin in Firestore.
Endpoint
POST https://{region}-{project}.cloudfunctions.net/helpers_event_pin
Request
The Firestore event document ID.
{
"data": {
"event_id": "abc123"
}
}
Response
PIN found:
{
"message": "Evento Encontrado",
"status": 200,
"data": {
"qr_pin": "<pin value from security/qr-pin document>"
}
}
No PIN configured:
{
"message": "Evento sin Pin",
"status": 400,
"data": { "valido": false }
}
helpers_app_pin
Retrieves the global application PIN from data/tmt-crypto-app in Firestore. This PIN is used by the mobile app for an additional layer of verification.
Endpoint
POST https://{region}-{project}.cloudfunctions.net/helpers_app_pin
Request
No parameters required.
Response
PIN found:
{
"message": "Pin App Encontrado",
"status": 200,
"data": {
"valido": true,
"app_pin": "<pin value from data/tmt-crypto-app document>"
}
}
Not configured:
{
"message": "App sin Pin",
"status": 400,
"data": { "valido": false }
}