Create custom post in main site from sub site

I have a custom post type that I use for members to add details of products that they hold. I wish to be able to add a further custom post type that is available on the main site that holds information regarding the products to be used as adverts for the members products. All I need is some sample code that I can use to do this.