MyChurchDocs

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

POSThttps://uat-api.mychurch.co.ke/api/v2/checkin/{church}Member token

Parameters

FieldTypeRequiredDescription
codestringYesThe service's check-in code.
bash
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"}'
Response
{"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

POSThttps://uat-api.mychurch.co.ke/api/v2/online-checkin/{livestream}Member token

For a member watching a livestream (the streams list from events/public). Checks the member into today's schedule of the livestream's service.

Response
{"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

POSThttps://uat-api.mychurch.co.ke/api/v2/children-for-checkinMember token

The active children the member may check in: their own, their spouse's, and children they are a trustee for.

Response
{
  "message": "Success",
  "status": true,
  "children": [
    { "uuid": "00000000-0000-4000-8000-0000000000c1", "first_name": "Brian", "other_names": "Wanjiku" }
  ]
}
POSThttps://uat-api.mychurch.co.ke/api/v2/checkin-child/{church}Member token

Parameters

FieldTypeRequiredDescription
codestringYesThe service's check-in code.
childuuidYesA child from children-for-checkin.
Response
{"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.

POSThttps://uat-api.mychurch.co.ke/api/v2/checkout-child/{church}Member token

Parameters

FieldTypeRequiredDescription
codestringYesThe checkout code sent at check-in.
childuuidYesThe child.
Response
{"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.

GEThttps://uat-api.mychurch.co.ke/api/v2/trustees/{church}Member token
Response
{
  "message": "Success",
  "status": true,
  "trustees": [
    { "name": "Ann Njeri", "phone": "254733000222", "gender": 2, "id_passport_number": "12345678" }
  ]
}
POSThttps://uat-api.mychurch.co.ke/api/v2/add-child-trustee/{church}Member token + PIN

Parameters

FieldTypeRequiredDescription
pinstringYesThe member's PIN, encrypted by the app.
phonestringYesThe trustee's phone.
genderintegerYes1 male, 2 female.
id_numberstringYesNational ID or passport number.
namestringNoThe trustee's name.
Response
{"message": "Your child trustee is being recorded. You will receive an sms confirmation.", "status": true}
POSThttps://uat-api.mychurch.co.ke/api/v2/remove-child-trustee/{church}Member token + PIN

Parameters

FieldTypeRequiredDescription
pinstringYesThe member's PIN, encrypted by the app.
phonestringYesThe trustee to remove.
Response
{"message": "Your child trustee is being removed. You will receive an sms confirmation", "status": true}