Palbase Payments · API
POST
/payments/sub-merchants/{sub_merchant_id}/onboarding-linkCreate sub-merchant onboarding link
Creates a short-lived hosted provider KYC onboarding link (Stripe Connect AccountLink). Not an environment token's: where a seller is paid outlives the token.
Called by your server, with the project's secret key.
Path
sub_merchant_idstring · requiredSub-merchant UUID.Request body
refresh_urlstring · optionalURL redirected to if the onboarding link expires.return_urlstring · requiredAllowed app URL redirected to after onboarding.curl
curl -X POST "https://<your-ref>.palbase.studio/payments/sub-merchants/<sub_merchant_id>/onboarding-link" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"return_url":"string"}'Responses
201Onboarding link created
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation CreateSubMerchantOnboardingLink of payments's contract.