Answers.Body: <p>For those who want to do this via the UI I believe this is as simple as going to civicrm/admin/financial/financialType?reset=1 and mousing over or clicking on Edit for each Financial Type and the ID will show in the url</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-03T19:03:54.863Z
Answers.LastActivityDate: 2020-11-03T19:03:54.863Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>For anyone else looking for this, you can use the getFields action on the Contribution entity to locate the options for the Financial Type ID.</p>
  <pre><code>$fields = \Civi\Api4\Contribution::getFields()
    -&gt;setLoadOptions([
      'id', 
      'name', 
      'label', 
      'abbr', 
      'description', 
      'color', 
      'icon',
    ])
    -&gt;addWhere('options', '!=', FALSE)
    -&gt;addWhere('name', '=', 'financial_type_id')
    -&gt;execute();
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-03T16:24:11.603Z
Answers.LastActivityDate: 2020-11-03T16:24:11.603Z
Answers.UserDisplayName: Richard
Answers.Body: <p>When importing contributions, you must specify the Financial Type in the form of the Financial Type ID.  Unfortunately going to Administer - CiviContribute - Financial Types does not display the Financial Type ID.  You must get the Financial Type ID from the API Explorer</p>
  
  <p>Go to Support - Developer - then one of the following:</p>
  
  <p><strong>API Explorer V3</strong></p>
  
  <ul>
  <li>Entity: Financial Type</li>
  <li>Action: getlist</li>
  <li>Parameters: Leave blank</li>
  <li>Execute</li>
  </ul>
  
  <p>You will revive a list of all the Financial Type labels and their ID numbers.</p>
  
  <p>For example:</p>
  
  <pre><code>  "id": "7",
          "label": "Money Donations",
          "description": [
              "For all monetary donations.  "
  </code></pre>
  
  <p>In this case <strong>7</strong> is the Financial Type ID for <strong>Money Donations</strong></p>
  
  <p><strong>API Explorer V4</strong></p>
  
  <ul>
  <li>Good luck and </li>
  <li>don't !@#$ it up.</li>
  </ul>
  
  <p>So pretty much use V3 as v4 does not use getlist. ;)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-12T18:27:14.227Z
Answers.Text: You should use get over getlist... Because not all entity is configured to use getlist
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-12T18:37:35.467Z
Answers.Text: Want to let us know how you would get the financial type ID via the API V4?
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-12T17:48:57.703Z
Answers.LastActivityDate: 2018-10-12T17:48:57.703Z
Answers.UserDisplayName: themak
Body: <p>I am trying to import hundreds of contribution records and it is requiring I include the Financial Type ID when importing. Simply having the word Donation is not enough! When I visit Administer - CiviContribute - Financial Types, it does not display the Financial Type ID. </p>
  
Tags: <civicontribute><import><financial-types>
Title: How do I locate the Financial Type ID?
ThreadText: # How do I locate the Financial Type ID?
  
  (Asked by: username_0 on 2018-10-12)
  
  I am trying to import hundreds of contribution records and it is requiring I include the Financial Type ID when importing. Simply having the word Donation is not enough! When I visit Administer - CiviContribute - Financial Types, it does not display the Financial Type ID.
  
  **Tags:** civicontribute, import, financial-types
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2018-10-12. Score: 5 | Accepted answer
  
  When importing contributions, you must specify the Financial Type in the form of the Financial Type ID. Unfortunately going to Administer - CiviContribute - Financial Types does not display the Financial Type ID. You must get the Financial Type ID from the API Explorer
  
  Go to Support - Developer - then one of the following:
  
  **API Explorer V3**
  
  * Entity: Financial Type
  * Action: getlist
  * Parameters: Leave blank
  * Execute
  
  You will revive a list of all the Financial Type labels and their ID numbers.
  
  For example:
  
  ```
    "id": "7",
          "label": "Money Donations",
          "description": [
              "For all monetary donations.  "
  
  ```
  
  In this case **7** is the Financial Type ID for **Money Donations**
  
  **API Explorer V4**
  
  * Good luck and
  * don't !@#$ it up.
  
  So pretty much use V3 as v4 does not use getlist. ;)
  
  > **Comments:**
  > **username_3**: You should use get over getlist... Because not all entity is configured to use getlist  
  > **username_0**: Want to let us know how you would get the financial type ID via the API V4?  
  
  ---
  
  ### Answer by username_1 on 2020-11-03. Score: 3
  
  For those who want to do this via the UI I believe this is as simple as going to civicrm/admin/financial/financialType?reset=1 and mousing over or clicking on Edit for each Financial Type and the ID will show in the url
  
  
  ---
  
  ### Answer by username_2 on 2020-11-03. Score: 1
  
  For anyone else looking for this, you can use the getFields action on the Contribution entity to locate the options for the Financial Type ID.
  
  ```
  $fields = \Civi\Api4\Contribution::getFields()
    ->setLoadOptions([
      'id', 
      'name', 
      'label', 
      'abbr', 
      'description', 
      'color', 
      'icon',
    ])
    ->addWhere('options', '!=', FALSE)
    ->addWhere('name', '=', 'financial_type_id')
    ->execute();
  
  ```
  
  
  ---
  
  