Your edit makes even less sense.
1) a foreign customer buying 2) a foreign company selling
Those two happen at the same time. If I’m in Australia and I’m buying something from the US I am a foreign customer (relative to the company) and the company is also a foreign company (relative to the customer)
If you want to export anything you have to follow the laws of the country you’re exporting to.