> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/json-rpc-api-reference/json-rpc-api-6.0/api-requests/affiliates/search-affiliates.md).

# Search affiliates

Use the **searchAffiliates** method to find out details about one or more affiliates.

## Request parameters

<table><thead><tr><th width="175.599853515625">Parameters</th><th>Type / Description</th></tr></thead><tbody><tr><td><code>AffiliateCode</code></td><td><p><strong>Required (string)</strong></p><p>Unique, system-generated identifying code of the affiliate.</p></td></tr><tr><td><code>Status</code></td><td><p><strong>Optional (string)</strong></p><p>Merchant Affiliate relationship status. Can be ACTIVE or DISABLED.</p></td></tr><tr><td><code>RequestDateStart</code></td><td><p><strong>Optional (date)</strong></p><p>Format is YYYY-MM-DD. Affiliate Request start date.</p></td></tr><tr><td><code>RequestDateEnd</code></td><td><p><strong>Optional (date)</strong></p><p>Format is YYYY-MM-DD. Affiliate Request end date.</p></td></tr><tr><td><code>Page</code></td><td><p><strong>Optional (integer)</strong></p><p>Page number. Value = '1' to '9999'.</p></td></tr><tr><td><code>Limit</code></td><td><p><strong>Optional (integer)</strong></p><p>Number of results on a page. Value = '1' to '9999'.</p></td></tr><tr><td><code>Name</code></td><td><p><strong>Optional (string)</strong></p><p>Affiliate name.</p></td></tr><tr><td><code>Country</code></td><td><p><strong>Optional (array)</strong></p><p>Affiliate country.</p></td></tr><tr><td><code>TargetCountry</code></td><td><p><strong>Optional (array)</strong></p><p>Countries where the affiliate sells into.</p></td></tr><tr><td><code>CommissionList</code></td><td><p><strong>Optional (array)</strong></p><p>Value = default. Affiliate commission list.</p></td></tr><tr><td><code>Type</code></td><td><p><strong>Optional (array)</strong></p><p>Affiliate type.</p></td></tr></tbody></table>

## Response parameters

<table><thead><tr><th width="279.066650390625">Parameters</th><th>Description</th></tr></thead><tbody><tr><td><code>AffiliateCode</code></td><td>Unique, system-generated identifying code of the affiliate.</td></tr><tr><td><code>Status</code></td><td>Merchant Affiliate relationship status.</td></tr><tr><td><code>AffiliateName</code></td><td>Name of the affiliate.</td></tr><tr><td><code>Website</code></td><td>Website of the affiliate.</td></tr><tr><td><code>CommissionList</code></td><td>Affiliate commission list.</td></tr><tr><td><code>CommissionList.ListName</code></td><td>Name of the affiliate commission list.</td></tr><tr><td><code>CommissionList.CommissionRate</code></td><td>Value of the commission rate (in %).</td></tr><tr><td><code>RequestDate</code></td><td></td></tr><tr><td><code>Categories</code></td><td>Product category of the affiliate.</td></tr><tr><td><code>NotifyUpdates</code></td><td><p><strong>Boolean</strong></p><p>Value can be TRUE or FALSE.</p></td></tr><tr><td><code>TCSStatus</code></td><td></td></tr><tr><td><code>AffiliateContact</code></td><td>Affiliate contact details.</td></tr><tr><td><code>AffiliateContact.FirstName</code></td><td>Affiliate first name.</td></tr><tr><td><code>AffiliateContact.LastName</code></td><td>Affiliate last name.</td></tr><tr><td><code>AffiliateContact.Phone</code></td><td>Affiliate phone number.</td></tr><tr><td><code>AffiliateContact.Email</code></td><td>Affiliate email.</td></tr><tr><td><code>AffiliateContact.Country</code></td><td>Country of the affiliate.</td></tr></tbody></table>

### Response sample

```php
{  
   "AffiliateCode":"TFTF76455ee4YFCFCT6545465",
   "Status":"Active",
   "Affiliate Name":"Affiliate 1",
   "Website":"https://affiliate1.com",
   "CommissionLists":[  
      {  
         "ListName":"CommissionList1",
         "CommissionRate":"25%"
      }
   ],
   "RequestDate":"2018-10-05",
   "Categories":["PC security","Mobile security","Tablet security"],
   "NotifyUpdates":true,
   "TCStatus":"Accepted",
   "AffiliateContact":{  
      "FirstName":"FN",
      "LastName":"LN",
      "Phone":"0040723483987",
      "Email":"FN.LN@2AFFLT.COM",
      "Country":"Spain"
   }
},
{  
   "AffiliateCode":"TFTF76455ee4YFCFCT6545466",
   "Status":"Active",
   "Affiliate Name":"Affiliate2",
   "Website":"https://Affiliate2.com",
   "CommissionLists":[  
      {  
         "ListName":"CommissionList1",
         "CommissionRate":"25%"
      }
   ],
   "RequestDate":"2018-10-05",
   "Categories":["PC security","Mobile security","Tablet security"],
   "NotifyUpdates":true,
   "TCStatus":"Agreed",
   "AffiliateContact":{  
      "FirstName":"FN",
      "LastName":"LN",
      "Phone":"0040723483987",
      "Email":"FN.LN@2AFFLT.COM",
      "Country":"Spain"
   }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/json-rpc-api-reference/json-rpc-api-6.0/api-requests/affiliates/search-affiliates.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
