New New: idempotent repayments with client_ref — safe retries for branches on patchy connections Read →
74 Sign in Start free trial

Member sign-in

Exchanges a member's login and password for a bearer token.

POST https://app.zung.ai/api/mobile/login

Member Mobile API — authenticate with a member token from POST /login.

Members sign in with the login created by staff via POST /members/{id}/login on the Banking API. The institution's plan must include the member portal. Send the returned token as Authorization: Bearer … on every other Mobile API call.

Parameters

ParameterTypeRequiredDescription
loginstring requiredUsername, email or mobile number
passwordstring requiredMember password

Request

bash
curl -X POST "https://app.zung.ai/api/mobile/login" \
  -H "Accept: application/json" \
  -d login=0712345678 \
  -d password=********

Response

JSON
{
  "token": "12|Xk2pQ…",
  "contact": { "id": 8821, "name": "Fatuma Njeri", … }
}

// 401 Invalid credentials.
// 403 The member portal (CRM module) is not enabled, or the login is inactive.
// 409 Email used at more than one SACCO — sign in with username instead.

Something unclear or out of date? Tell us and we'll fix it.