onboard_payout_account
Create (or reuse) a Stripe Express connected account for an end user and return an onboarding URL for them to complete. The resulting stripe_account_id (acct_…) is stored on the user; pass it as destination to redeem_credits. return_url and refresh_url must be https on a Cred host or a domain listed under Dashboard → Payments → Allowed redirect domains, else 400 REDIRECT_NOT_ALLOWED. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Cred API key (optional if set via the x-api-key header) | |
| country | No | ISO country code for the account (default US) | |
| user_id | No | External user ID | |
| project_id | No | Cred project ID (optional; the API key already identifies the project) | |
| return_url | Yes | Where Stripe sends the user after onboarding | |
| user_email | No | User email (alternative) | |
| refresh_url | Yes | Where Stripe sends the user if the link expired | |
| x402_payment | No | Base64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD |