Skip to content

Connect — managed accounts

In managed account mode, you (the platform) verify your merchants’ identity and attest a verification level to Sangho. Sangho never contacts these merchants and never receives their documents: you only send a level (0 to 2), a date and an opaque reference. Funds stay held by Sangho; you only give instructions.

Claim mode (<code>claim</code>)Managed mode (<code>managed</code>)
Merchant KYCSangho (the merchant claims their account)You, then you attest a level
Merchant emailRequiredOptional — never contacted by Sangho
claim_token, kyc-sessionYesNo — 409 not_applicable
Mode granted by—Sangho staff, when your request is approved (you cannot grant it to yourself)
Note

The Marketplace & Connect guide covers split payments (escrow, release, refund, payouts), common to both modes.

1. Become a Platform Partner

  • Dashboard → Sangho Connect: a four-step form (platform type, revenue model, expected monthly volume, country, escrow needed, requested mode, the KYC policy you apply to your merchants).
  • Sangho review: approval with the granted mode, type, account quota and limits. Nothing is automatic.
  • For production: KYC level 1 of your company (like any Sangho merchant) and acceptance of the “KYC responsibility for sub-accounts” annex.
  • Test keys work as soon as you are approved; production (sk_prod_) keys require the prerequisites above.

2. Test and production environments

EnvironmentKeysBehavior
Sandboxsk_test_…All managed accounts are active by default, with no KYC and no limits.
Productionsk_prod_…Requires an approved partner, a verified company and an accepted contract; otherwise 403 PLATFORM_PARTNER_NOT_LIVE_READY. Per-level limits apply.

The PLATFORM_PARTNER_NOT_LIVE_READY error lists the missing prerequisites in missing: partner_not_approved, company_not_verified or contract_not_accepted.

3. Create a managed account

POST /v1/connect/accounts/ — idempotent on external_id (201 on creation, 200 if it already exists). Send managed: true: the value must match the mode granted to your App, otherwise 422 managed_not_enabled. No claim_token is issued. If your account quota is reached: 422 account_quota_reached.

4. Attest the KYC level

POST /v1/connect/accounts/{id}/kyc-attestation/ with level (0, 1 or 2), reference and attested_at.

  • Level 0: not attested; level 1: identity, address and activity verified; level 2: complete file.
  • reference is opaque ([A-Za-z0-9_.:-], 100 characters max) and acts as an idempotency key: replaying the same reference changes nothing. Never put a name, a document number or an email in it.
  • An attestation older than the current one is logged without overwriting the state (out-of-order replay). A future date is rejected: 422 invalid_attested_at.
  • On request, Sangho may ask you for proof of a verification from its reference (audit provided for in the contractual annex). Attesting an unverified level is your responsibility.
  • Account in claim mode: 409 not_applicable.

5. Limits per level (production)

A non-attested account can receive payments and register its payout destination, but stays capped until you attest. The defaults below are those proposed by Sangho; they can be adjusted partner by partner (level 0 in particular) and will be confirmed in your contract.

Attested levelPer chargePayouts / 24 h
050,000 XAF0 (blocked)
12,000,000 XAF1,000,000 XAF
2UnlimitedUnlimited

Exceeding a limit returns 422 limit_exceeded: attest a higher level or lower the amount. Escrow (mode: escrow) is only available to marketplace-type platforms; otherwise 422 feature_not_available (use instant).

6. Freeze and reopen a merchant

POST …/suspend/ (optional reason) blocks charges and payouts; POST …/resume/ restores them. Both are idempotent. A frozen account becomes restricted and suspended is true.

Attention

If Sangho suspends your App, or your company loses its verification, all your managed accounts are frozen in cascade (account.restricted); they are restored when the suspension is lifted, with nothing deleted.

7. Aggregate statistics

GET /v1/connect/accounts/{id}/stats/ for one account and GET /v1/connect/stats/ for the whole platform (with the number of accounts per status), filterable with ?from=YYYY-MM-DD&to=YYYY-MM-DD (inclusive; otherwise 400 invalid_period). Amounts are decimal strings in XAF: collected, refunded, commissions, held, available, frozen, reserve, payouts. No payer data. The Sangho Connect dashboard shows the same figures with a CSV export.

8. Events

EventTrigger
account.verifiedThe account can now accept payments.
account.restrictedThe account can no longer accept payments (freeze, suspended partner or company, lost verification).
account.updatedAccount state change (attested level, capabilities).
kyc.updatedHosted KYC progress (claim mode only).

After an outage, re-read GET /v1/events/?since=<cursor>: see Marketplace & Connect.

9. Your keys: two ways to configure them

Your choice: copy your pk_/sk_ keys and the webhook secret into your .env file (recommended to get started), or manage them in your own back-office (encrypted storage on your side). Sangho requires neither; never log them.

For a rotation without downtime, regenerate with overlap_hours (0 to 168 h): the old key (or the old webhook secret, signed with a double v1) stays valid for that period. See Authentication and Signature verification.

Connect errors

Connect routes return { “error”: { “code”, “message” } } with a lowercase code: managed_not_enabled, email_required, account_quota_reached, not_applicable, invalid_attested_at, invalid_period, limit_exceeded, feature_not_available, resource_missing. Authorization errors (PLATFORM_PARTNER_REQUIRED, PLATFORM_PARTNER_NOT_LIVE_READY) follow the standard envelope described in Error codes.

Managed account flow

bash
# 1. Create the account (no claim_token, email optional)
curl -X POST https://api.sangho.ga/v1/connect/accounts/ \
  -H "Authorization: Bearer $SANGHO_SECRET_KEY" \
  -H "Idempotency-Key: connect-account-seller-42" \
  -H "Content-Type: application/json" \
  -d '{"external_id": "seller-42", "business_name": "Boutique Ada", "managed": true}'


# 2. Attest the KYC level (opaque reference)
curl -X POST https://api.sangho.ga/v1/connect/accounts/acct_xxxx/kyc-attestation/ \
  -H "Authorization: Bearer $SANGHO_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"level": 1, "reference": "kyc-2026-000123", "attested_at": "2026-10-13T09:30:00Z"}'


# 3. Freeze the merchant if needed
curl -X POST https://api.sangho.ga/v1/connect/accounts/acct_xxxx/suspend/ \
  -H "Authorization: Bearer $SANGHO_SECRET_KEY" \
  -d '{"reason": "doubt about the merchant"}'


# 4. Platform-wide aggregate statistics
curl "https://api.sangho.ga/v1/connect/stats/?from=2026-10-01&to=2026-10-31" \
  -H "Authorization: Bearer $SANGHO_SECRET_KEY"