Example of Creator function adding a Subsciption

Example of Creator function adding a Subsciption

The Subscription documentation page has an example of adding a Subscription Customer from a Creator function. I have that working.
Are there examples of creating or updating an associated Subscription. What are the field names and which are required?

Here is the documentation page https://www.zoho.com/creator/help/script/subscriptions-create-record.html#Modules