One can gift subscriptions to a friend or family member.
To create subscription for someone other than the logged in user,
receipent_susbcriber needs to be passed in subscriptionParams
If you not using AccesstypeJS(not recommended), you could use APIs.
You need to configure atleast one payment gateway and a plan in Accesstype as a pre-requisite.