Go to your Shopee Affiliate homepage and click "Open API" section.
How to get Affiliate ID (deprecated)
Go to your affiliate account settings and find your Affiliate ID:
You can also send your traffic through one of the affiliate networks with Shopee support (Accesstrade). To do this, set your Deeplink in the module setting to generate affiliate links.