Answers.Body: <p>On multisite you tie each membership type to a domain id. You can find what the domain ID's by looking at the civicrm_domain id table (or in the civicrm.setting.php file).</p>
  
  <p>If you create the memberships on the correct domain they will be correct I believe, but if you don't then just adjust the domain_id in the civicrm_membership_type table.</p>
  
  <p>Then only the memberships tied to a certain domain will be available for selection on a given domain. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-31T16:10:38.610Z
Answers.LastActivityDate: 2018-10-31T16:19:23.687Z
Answers.LastEditDate: 2018-10-31T16:19:23.687Z
Answers.UserDisplayName: Andy Burns
Body: <p>The API explorer shows something promising:
  <a href="https://i.sstatic.net/CB8sG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CB8sG.png" alt="api screenshot"></a></p>
  
  <p>Apparently, each membership type can be connected to a 'domain' which is a contact ? </p>
  
  <p>What exactly is it, and how could I assign these domains to a membership type ? The backend interface does not seem to mention it.</p>
  
  <p>[EDIT] anything to do with <a href="https://docs.civicrm.org/sysadmin/en/latest/install/multi-site/" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/install/multi-site/</a> ?</p>
  
Tags: <civimember><api><sub-types><domain>
Title: What is the Membership type 'domain' in the api?
ThreadText: # What is the Membership type 'domain' in the api?
  
  (Asked by: username_0 on 2018-10-31)
  
  The API explorer shows something promising:
  [![api screenshot](https://i.sstatic.net/CB8sG.png)](https://i.sstatic.net/CB8sG.png)
  
  Apparently, each membership type can be connected to a 'domain' which is a contact ?
  
  What exactly is it, and how could I assign these domains to a membership type ? The backend interface does not seem to mention it.
  
  [EDIT] anything to do with <https://docs.civicrm.org/sysadmin/en/latest/install/multi-site/> ?
  
  **Tags:** civimember, api, sub-types, domain
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-10-31. Score: 3 | Accepted answer
  
  On multisite you tie each membership type to a domain id. You can find what the domain ID's by looking at the civicrm\_domain id table (or in the civicrm.setting.php file).
  
  If you create the memberships on the correct domain they will be correct I believe, but if you don't then just adjust the domain\_id in the civicrm\_membership\_type table.
  
  Then only the memberships tied to a certain domain will be available for selection on a given domain.
  
  
  ---
  
  