Quickstart
Quickstart
From a sandbox application to a simulated investment and redemption.
This is one path. Stay on this page.
1. Create a sandbox application
Sign in to the developer console, open Applications, and create an application in sandbox. Copy the secret immediately.
If you are using the seeded network: manufacturer fund-manager-a, distributor fintech-b, offering code MMF-SANDBOX, password SandboxPassw0rd!. The machine credential is stored on the manufacturer as sandbox.fintech_b.api_credential for internal tests — partners always copy a secret from the console instead.
2. Authenticate
Authorization: Bearer $FUNDOS_SECRET_KEY
Idempotency-Key: <unique>
x-fundos-correlation-id: qs-13. Create a customer
POST /customers with kind, legalName, optional email. The response includes id, investorNo, partyId and accountId. An investment account is created with the customer.
4. Complete KYC
POST /customers/{id}/kyc with kind: "identity" and a payload. Use legal name Ada Okafor or payload scenario: "KYC_PASS" for an approved sandbox check. KYC_REVIEW, KYC_REJECT and KYC_EXPIRED force those outcomes.
5. Consent
POST /customers/{id}/consents with kind: "product_agreement".
6. Discover products
GET /offerings returns the entitled catalogue only — live offerings on an active agreement this application may sell. Look for MMF-SANDBOX.
7. Quote
POST /quotes with offeringId, investorId, amountMinor (use 55000, not a multiple of 10_000), optional side: "subscribe".
8. Invest
POST /orders with quoteId (or offering + investor + amount). Sandbox confirms mock payment and allocates when NAV is published. Status should reach a completed subscription.
9. Webhook
GET /webhooks lists the application outbox. Events include customer.created, quote.created, order.created. Replay with POST /webhooks/{id}/replay.
10. Portfolio
GET /customers/{id}/portfolio returns positions and units. Cash is a derived ledger view at GET /accounts/{accountId}/cash.
11. Redeem
Open a redeem quote (side: "redeem") and POST /orders again. Sandbox auto-approves the partner redemption path. Portfolio cash and units update; a webhook is enqueued.
No database edits are required. If allocation waits on NAV, Operations publishes NAV or the seed already has a published price.