Is this a foreign entity? Are you based in NY? You need to apply for authority to do business in the State of New York by filing an Application for Authority in NY and get a tax ID number(EIN#) from the IRS by filing FORM SS4.
Link to application of authority info
Link to Form SS4
it is aforeien entity we are base outside us
But if you start working in NY (either by appointing employees, opening a branch office or employing an agent to solicit business in US) than you will have a nexus in NY and hence would have to register as foreign corp.
we are aforeign entity and we base outside us we have to collect rental fees on our machins
Are the machines in NY?
In that case, the business has assets in NY and is required to get the certificate of authority as discussed above.
Having assets in NY and getting rental income from the same is considered NY Source income and hence, US source income
so you are considered as having presence in NY.