API reference · Communities & institutions

Credit union member communications

POST Broadcast to members or officers

POST /credit-union/{reference}/broadcast

A parent may write to its affiliates' officers and never to their members: a parent messages the society and the society decides what to pass on. Broadcasts are capped per society per window, barred outside daytime hours where they are promotional, and recorded with their sender and their cost estimate.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
reference

Example

Request body: SendBroadcastRequest · Response: GenericResponseBroadcastResponse

curl -X POST "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/broadcast" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "audience": "OWN_MEMBERS",
  "channel": "SMS",
  "classification": "TRANSACTIONAL",
  "subject": "string",
  "body": "string",
  "language": "string"
}'

Responses

StatusWhen
200Broadcast accepted successfully

GET List recent broadcasts

GET /credit-union/{reference}/broadcasts

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: GenericResponseListBroadcastResponse

curl -X GET "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/broadcasts" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Broadcasts read successfully

PUT Set a communication preference

PUT /credit-union/{reference}/communication-preference

A member may opt out of communications and never out of notices. An opt-out that suppressed a guarantee call notice would let a member defeat a recovery by unsubscribing, and one that suppressed a tariff change would leave them bound by terms they were never shown, so the preference is stored against communications explicitly rather than as blanket consent withdrawal.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
reference

Example

Request body: UpdateCommunicationPreferenceRequest · Response: GenericResponseCommunicationPreferenceResponse

curl -X PUT "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/communication-preference" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "userReference": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
  "scope": "ALL",
  "optedOut": true,
  "source": "MEMBER",
  "keywordReceived": "string"
}'

Responses

StatusWhen
200Communication preference set successfully

GET Read communication preferences

GET /credit-union/{reference}/communication-preferences

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Query parameters

NameDefault
userReferenceOptional

Example

Response: GenericResponseListCommunicationPreferenceResponse

curl -X GET "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/communication-preferences" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Communication preferences read successfully

GET Read the language a member is written to in

GET /credit-union/{reference}/language-preference

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Query parameters

NameDefault
userReferenceOptional

Example

Response: GenericResponseLanguagePreferenceResponse

curl -X GET "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/language-preference" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Language preference read successfully

PUT Set the language a member is written to in

PUT /credit-union/{reference}/language-preference

Cooperative membership spans literacy levels, and a total-cost-of-credit disclosure that cannot be read has not been made. Where no variant of a template exists in the member's language the notice goes out in the society's default and records that it did, because a silently English notice in a Hausa-speaking society is a real failure and an invisible one.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
reference

Example

Request body: UpdateLanguagePreferenceRequest · Response: GenericResponseLanguagePreferenceResponse

curl -X PUT "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/language-preference" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "userReference": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
  "language": "string"
}'

Responses

StatusWhen
200Language preference set successfully

GET What the society spent telling people things

GET /credit-union/{reference}/notification-spend

Counted from the notices and broadcasts themselves rather than a running total, and split between what was spent discharging obligations and what the society chose to send. A union that cannot see what it spends will either over-spend or stop telling people things.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Query parameters

NameDefault
fromDateOptional
toDateOptional

Example

Response: GenericResponseNotificationSpendResponse

curl -X GET "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/notification-spend?fromDate=value&toDate=value" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Notification spend read successfully

PUT Set what a message costs the society on a channel

PUT /credit-union/{reference}/notification-unit-cost

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
reference

Example

Request body: UpdateNotificationUnitCostRequest · Response: GenericResponseNotificationUnitCostResponse

curl -X PUT "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/notification-unit-cost" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "channel": "SMS",
  "unitCostAmount": 0
}'

Responses

StatusWhen
200Notification unit cost set successfully

GET Read what a message costs the society on each channel

GET /credit-union/{reference}/notification-unit-costs

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: GenericResponseListNotificationUnitCostResponse

curl -X GET "https://api.bridgemoni.com/credit-union/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/notification-unit-costs" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Notification unit costs read successfully

Generated from the OpenAPI document. Branch on the HTTP status: there is no machine-readable error code on the wire. Errors