Skip to main content

Cooperatives API

Access cooperative organization data.

The Cooperative Object

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"code": "COOP001",
"name": "Koperative y'Abahinzi",
"province": "Kigali",
"district": "Gasabo",
"sector": "Kimironko",
"cell": "Kibagabaga",
"activity": "Agriculture",
"programme": "NAEB",
"member_count": 150,
"created_at": "2024-01-15T10:30:00Z"
}

Attributes

FieldTypeDescription
idstringUnique identifier (UUID)
codestringCooperative code
namestringCooperative name
provincestringProvince location
districtstringDistrict location
sectorstringSector location
cellstringCell location
activitystringPrimary activity/sector
programmestringAssociated programme
member_countintegerNumber of active members
created_atdatetimeCreation timestamp

List Cooperatives

GET /cooperatives

Returns a list of all cooperatives.

Required Scope: cooperatives:read

Request

curl -X GET "https://api.copa.rw/api/v1/cooperatives" \
-H "Authorization: Bearer YOUR_API_KEY"

Query Parameters

ParameterTypeDescription
provincestringFilter by province
districtstringFilter by district
sectorstringFilter by sector
activitystringFilter by activity
pageintegerPage number
page_sizeintegerItems per page

Response

[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"code": "COOP001",
"name": "Koperative y'Abahinzi",
"province": "Kigali",
"district": "Gasabo",
"sector": "Kimironko",
"cell": "Kibagabaga",
"activity": "Agriculture",
"programme": "NAEB",
"member_count": 150,
"created_at": "2024-01-15T10:30:00Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"code": "COOP002",
"name": "Twungubumwe",
"province": "Eastern",
"district": "Rwamagana",
"sector": "Muhazi",
"cell": "Cyanya",
"activity": "Fishing",
"programme": null,
"member_count": 85,
"created_at": "2024-02-20T14:00:00Z"
}
]

Get Cooperative

GET /cooperatives/{id}

Returns a single cooperative by ID.

Required Scope: cooperatives:read

Request

curl -X GET "https://api.copa.rw/api/v1/cooperatives/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"

Path Parameters

ParameterTypeDescription
idstringCooperative UUID

Response

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"code": "COOP001",
"name": "Koperative y'Abahinzi",
"province": "Kigali",
"district": "Gasabo",
"sector": "Kimironko",
"cell": "Kibagabaga",
"activity": "Agriculture",
"programme": "NAEB",
"member_count": 150,
"created_at": "2024-01-15T10:30:00Z"
}

Errors

StatusDescription
404Cooperative not found

List Cooperative Members

GET /cooperatives/{id}/members

Returns all members of a specific cooperative.

Required Scope: members:read

Request

curl -X GET "https://api.copa.rw/api/v1/cooperatives/550e8400-e29b-41d4-a716-446655440000/members" \
-H "Authorization: Bearer YOUR_API_KEY"

Path Parameters

ParameterTypeDescription
idstringCooperative UUID

Response

[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"member_code": "MEM001",
"full_name": "Jean Uwimana",
"first_name": "Jean",
"last_name": "Uwimana",
"identity_card": "1199880012345678",
"mobile": "0788123456",
"gender": "Male",
"role": "Member",
"status": "Active",
"registration_date": "2024-01-20T08:00:00Z",
"created_at": "2024-01-20T08:00:00Z"
}
]