# Search affiliates

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

## Request parameters

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

## Response parameters

<table><thead><tr><th width="286.5333251953125">Parameter</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>Boolean. Value can be TRUE or FALSE.</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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
