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 KYC | Sangho (the merchant claims their account) | You, then you attest a level |
| Merchant email | Required | Optional — never contacted by Sangho |
claim_token, kyc-session | Yes | No — 409 not_applicable |
| Mode granted by | — | Sangho staff, when your request is approved (you cannot grant it to yourself) |
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
| Environment | Keys | Behavior |
|---|---|---|
| Sandbox | sk_test_… | All managed accounts are active by default, with no KYC and no limits. |
| Production | sk_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.
referenceis 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 level | Per charge | Payouts / 24 h |
|---|---|---|
| 0 | 50,000 XAF | 0 (blocked) |
| 1 | 2,000,000 XAF | 1,000,000 XAF |
| 2 | Unlimited | Unlimited |
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.
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
| Event | Trigger |
|---|---|
account.verified | The account can now accept payments. |
account.restricted | The account can no longer accept payments (freeze, suspended partner or company, lost verification). |
account.updated | Account state change (attested level, capabilities). |
kyc.updated | Hosted 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.