Partner API
Family Vault Inquiry
Returns the joint family pot summary for companies running in family vault mode (FamilyPot addon): pot balance, lifetime money in/out, and the savings goal and progress. This is a balance-inquiry endpoint — it does not return a per-member breakdown or any individual member's name, member number, or contribution history.
Family pot contributions and payouts move through the same rails as every other partner operation — a disbursement into a member's savings account counts as a pot contribution, and a collection counts as money out of the pot. This endpoint is the read-side aggregate of all of that.
GET /potRequired scope: balance:read
Availability
| Condition | Result |
|---|---|
| Company is in family pot mode | 200 with the pot summary |
| Company runs as a standard SACCO | 403 POT_NOT_ENABLED |
| Sandbox-mode partner | 422 SANDBOX_NOT_SUPPORTED — the pot is a live view over real savings; there is no sandbox equivalent |
Example request
Full signing steps are in Authentication.
TIMESTAMP=$(date +%s)
REQUEST_URI="/api/partner/v1/pot"
BODY_HASH=$(printf '%s' '' | openssl dgst -sha256 | sed 's/^.* //')
SIGNATURE=$(printf '%s' "${TIMESTAMP}|GET|${REQUEST_URI}||${BODY_HASH}" | openssl dgst -sha256 -hmac "$API_SECRET" | sed 's/^.* //')
curl "https://prodsacco.officeug.com${REQUEST_URI}" \
-H "X-Api-Key: $API_KEY" \
-H "X-Timestamp: $TIMESTAMP" \
-H "X-Signature: $SIGNATURE"Example response
{
"success": true,
"message": "OK",
"data": {
"pot_name": "Sample Family Pot",
"pot_balance": 4250000.00,
"total_in": 5000000.00,
"total_out": 750000.00,
"goal_amount": 10000000.00,
"goal_purpose": "School fees 2027",
"goal_percent": 42.5,
"currency": "UGX"
},
"request_id": "b4f1c9c2-..."
}Notes
- The pot is scoped to your own company — the partner key identifies the company; there is no way to query another tenant's pot.
pot_balanceis the live net balance (sum of all member savings accounts).total_in/total_outare lifetime completed inflows (deposit,partner_disbursement) and outflows (withdrawal,partner_collection).- No individual member data (names, member numbers, contribution history) is returned by this endpoint — only the pot-level aggregate.
- Every call is audit-logged like all other partner operations and appears in the Partner API audit log.