> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sellauth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Affiliate Code

> Sets the customer's affiliate referral code. Requires the shop to have affiliates enabled with editable codes. On shops with open enrollment this also enrolls a customer who is not an affiliate yet; on manual-enrollment shops the seller does the enrolling.



## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.sellauth.com/llms.txt).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.