Membership shortcodes

I am interested to place buttons to sell "subscription" on individual post or page.

The current project is selling seats for events (workshops, trainings session).

To leverage the community, I'm interested to use the affiliate plugin to encourage them to spread the word out and be rewarded for the efforts.

As I would have many events, I'm not interested to sell them through a single page (like the one we would offer for a subscription to membership site).

So would it be possible to create a shortcode that would display a bloc with the information.

[membership subscription-name]

If you've got other ideas on the way to handle this process, don't hesitate !!!