Service check-in and children
Check a member into today's service with the service code, check children in and out of Sunday school with a checkout code, manage the trustees allowed to collect a child, and check in to a livestream.
Each scheduled service gets a 4-digit check-in code, shown in church (on screen or by the ushers). The member types it in the app, at a USSD prompt (USSD) or is checked in by a biometric device; all three land in the same attendance records. The routes with {church} in the path check that the token's member belongs to that church.
Check in to a service
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | The service's check-in code. |
curl -X POST https://uat-api.mychurch.co.ke/api/v2/checkin/00000000-0000-4000-8000-000000000001 \
-H "Authorization: Bearer 11111111-2222-4333-8444-555555555555" \
-H "Content-Type: application/json" \
-d '{"code": "4821"}'{"message": "You are being checked in to the service", "status": true}The code must belong to the church and the current time (Nairobi) must fall within the service's hours. Failures: You have entered a wrong code, The service has not started, The service has ended.
Online check-in
For a member watching a livestream (the streams list from events/public). Checks the member into today's schedule of the livestream's service.
{"message": "You have been checked in to the service", "status": true}No schedule today: The service has not been scheduled yet. Try again later.
Children
The active children the member may check in: their own, their spouse's, and children they are a trustee for.
{
"message": "Success",
"status": true,
"children": [
{ "uuid": "00000000-0000-4000-8000-0000000000c1", "first_name": "Brian", "other_names": "Wanjiku" }
]
}Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | The service's check-in code. |
| child | uuid | Yes | A child from children-for-checkin. |
{"message": "Your child is being checked in to the service", "status": true}The child is placed in the Sunday school class for their age, the teachers are alerted, and the parent receives an SMS with a checkout code needed to collect the child. Failures as for checkin.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | The checkout code sent at check-in. |
| child | uuid | Yes | The child. |
{"message": "Your child is being checked out. You will receive a confirmation sms", "status": true}The outcome arrives by SMS: a confirmation, or You have entered a wrong checkout code. The caller may be the parent, the spouse or a trustee. An unknown child answers You have entered a wrong checkout code directly.
Trustees
Trustees are people the parent allows to check a child in and out.
{
"message": "Success",
"status": true,
"trustees": [
{ "name": "Ann Njeri", "phone": "254733000222", "gender": 2, "id_passport_number": "12345678" }
]
}Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| pin | string | Yes | The member's PIN, encrypted by the app. |
| phone | string | Yes | The trustee's phone. |
| gender | integer | Yes | 1 male, 2 female. |
| id_number | string | Yes | National ID or passport number. |
| name | string | No | The trustee's name. |
{"message": "Your child trustee is being recorded. You will receive an sms confirmation.", "status": true}Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| pin | string | Yes | The member's PIN, encrypted by the app. |
| phone | string | Yes | The trustee to remove. |
{"message": "Your child trustee is being removed. You will receive an sms confirmation", "status": true}