Actually in my application i want the functionality in which user can create their paypal's account on API calling or any SDk function invoking I want this implementation in node js I integrated the package
because it has a function of
paypalSdk.createAccount(payload, callback);
but error occurs besides this i dont know is it a perfect approach or not and please tell me Is it possible if my application can create paypal account using API from my App?
Adaptive Accounts and Adaptive Payments were deprecated years ago, and cannot be used.
In a regular PayPal Checkout flow, an account can always be created when making a payment, so it's unclear why your app needs something additional for this.
The closest thing to something for account creation would be seller onboarding with the partner referrals API. You must be an approved partner to use that integration.