End-to-end implementation guide
The full Onboarding-as-a-Service path, from creating an account to processing, adding capabilities, and handling rejections.
Who this section is for
Engineering and product teams in platform building businesses, who need the whole Onboarding-as-a-Service integration in one view before building it stage by stage.
Overview
Onboarding-as-a-Service takes a platform from creating a linked account to processing payments or wallet transactions on it, all through API with the platform's own secret key. This page shows the four stages in order and links to the page that owns each one.
Replaces the legacy Onboarding APIThis flow fully replaces the legacy Onboarding API. The legacy API receives no new features and will be removed on January 1, 2027. Platforms still on it should move to the flow below before then.
Child API keys go only to managing parentsAccounts created with the Accounts API do not return child API keys in the API response. The activation webhook includes them only for the managing parent of a fully managed account; a parent never receives the keys of an account it does not manage. To act on a linked account, use your own secret key with the
Account-IDheader (Linked Transactions). The legacy Onboarding API still sends child API keys in its activation webhooks until it is removed on January 1, 2027. If your integration stores or uses child keys, move it to Linked Transactions before then.
The four stages
| Stage | What it does | Applies to |
|---|---|---|
| Create, verify, and activate a linked account | Merchants and consumers |
| Process payments or wallet transactions on the account with your own key, and optionally route settled funds to the parent | Merchants and consumers |
| Only if the account needs payment methods or products beyond its defaults: update the business profile and request them | Mostly merchants |
| Recover from failed verification, clarification requests, and declines | Merchants and consumers |
Every call uses your parent secret key. Calls that act on a linked account add Account-ID: org_{child_id}.
1. Account creation
Create the account, register its webhook, verify the account holder, complete the details, and activate.
- Create the account.
POST /v2/accountswithtypeset tomerchantorconsumer. Store the returnedorg_…ID. To own and operate the account fully, including all notifications, sendfully_managed: true(an opt-in; see Fully managed accounts). - Register the child webhook.
POST /v1/webhookswithAccount-ID, right after creation. Capability request and transaction events are delivered only to the linked account, so this webhook is how you receive them. - Verify identity. Use the hosted flow or submit images by API. Verification you trigger is reported on your own (parent) webhook.
- Update details.
PATCH /v2/accounts/{id}with the remaining person details, and business details for merchants. - Activate.
POST /v2/accounts/{id}/activate. The outcome arrives asmerchant.activated/merchant.declinedorconsumer.activated/consumer.declined.
At activation, merchants receive a wallet and QR Ph (P2M); consumers receive a wallet.
Read next: Quick start · Key concepts · Onboarding webhooks · Best practices · Testing
2. Linked Transactions
Once the account is active, process on it with your own secret key and the Account-ID header. Records are created on the linked account, funds settle to it, and its events go to the child webhook from stage 1.
- Merchants: accept payments with Checkout Sessions or Payment Intents, refund, and reconcile.
- Consumers: operate the wallet, such as transfers and QR Ph (P2P).
Only capabilities enabled on the account work. A method that is not enabled returns payment_method_not_allowed; add it in stage 3.
Read next: Linked Transactions (supported resources and errors) · Linked accounts
Optional: route settled funds to the parent
Payments settle to the linked account's wallet. If your model needs those funds in your own (parent) wallet, for example to pay out on the merchant's behalf or to collect your share, set up a workflow on the linked account that moves the settled balance to the parent on a schedule. You create and manage it with Linked Transactions, so no action is needed from the account holder.
flowchart LR B[Customer pays] --> C[Linked account wallet<br/>funds settle here] T[Schedule trigger<br/>for example, daily] --> W[Workflow on the linked account] C --> W W -->|transfer settled balance| P[Parent wallet]
- Create the workflow on the linked account. Workflows API with
Account-ID, with asend_moneystep whose destination is your parent wallet (destination.type: "wallet"). - Validate it before going live.
- Attach a schedule-based trigger (Triggers API with
Account-ID) that runs the workflow, for example once a day after settlement. - Monitor runs through workflow instances and trigger executions, and alert on failures.
Create one workflow per linked account, ideally right after activation. The workflow only moves what has settled, so it pairs with your settlement setting (for example Instant Settlement for faster availability).
Read next: Workflows · Validation and errors · Sweeps wallet on a schedule · Schedule-based triggers · Observing workflow runs · Linked Transactions (Workflows, Workflow Instances, Triggers, and Trigger Executions are supported resources)
3. Capability requests (optional)
Skip this stage if the defaults from activation are enough. Use it only when the account needs other payment methods or products, such as cards and e-wallets, or a business profile update to qualify for them. Send capability requests for the linked account through the Capability Requests API.
A parent can send them only for an account it fully manages. For any other linked account, the call returns 403 with accountid_operation_not_granted, and the account requests its own capabilities.
- Update the business profile first if needed. An account update request (
prd_svc_paymongo_account_update) changes business details after activation, including upgradingbusiness_typefromindividual. Registered business documents are attached to the request. - Check eligibility.
GET /v1/requests/eligibility/{product_code}lists anything missing. - Request each capability. One request per product code.
- Wait for the outcome. Each request is reviewed by PayMongo. Its
capability_request.*events arrive on the child webhook; act oncapability_request.completedand handle clarification and decline (stage 4).
Consumers rarely need this stage. Their wallet request is created and handled by PayMongo at activation.
Read next: Capability requests (account update, attaching documents) · Capability request webhooks · Account capabilities (catalog) (eligibility by business type)
4. Negative paths
Most rejections are recoverable, and each arrives as a webhook. Design for them before launch, since they are the paths that run at scale.
| Situation | Signal | What to do |
|---|---|---|
| Verification fails or is invalid | account.identity_verification.failed | Show failure_reason, start a new verification session |
| Verification session expired | Session older than 72 hours | Start a new session |
| Account activated after failed verification | Wallet in closed-loop mode, wallet request under review | Wait for the review, or a clarification request |
| Reviewer needs more information | capability_request.pending_clarification with merchant_note | Show the note, collect what is asked, and respond as described in Troubleshooting |
| Capability request declined | capability_request.declined | Show the reason; resolve before opening a new request |
| Account declined | merchant.declined, consumer.declined | The decline is final for that account; see Troubleshooting for next steps |
Rules that apply to every handler: verify signatures, show reviewer notes but never branch on their wording, and be idempotent on the event id, since clarification can repeat with the same event type.
Read next: Troubleshooting · Best practices: Identity verification
Updated about 1 month ago
