Answers.Body: <p>I don't think their is a separate API for creating Financial Item records - this gets created whenever an contribution and line_item is been created </p>
  
  <p>so, you can write an API for creating financial_item also make sure you make an entry in entity_financial_item </p>
  
  <p>or you can create these records manual using CRM_Financial_BAO_FinancialItem::add() which will create new financial item </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-22T08:16:01.993Z
Answers.LastActivityDate: 2015-09-22T08:16:01.993Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Answers.Body: <p>There is an API for Financial Items in this extension: <a href="https://civicrm.org/extensions/financial-item-api" rel="nofollow">https://civicrm.org/extensions/financial-item-api</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-13T06:22:19.557Z
Answers.LastActivityDate: 2016-04-13T06:22:19.557Z
Answers.UserDisplayName: ErikH - CiviCooP
Answers.Body: <p>Version 4.7.6 opens access through api for Financial Item as well as other Financial tables.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-12T19:28:34.390Z
Answers.LastActivityDate: 2016-04-12T19:28:34.390Z
Answers.UserDisplayName: Logan Bear
Body: <p>In my organization, we have local chapters who sometimes get part of the national membership dues.  The BOD doesn't want the breakdown to show up on the email receipt, and the calculation has to be done whether the dues are posted online or offline, so I do my breakdown during the posting of the line item for the membership dues.</p>
  
  <p>I access the chapter share and reduce the line item by the chapter's share and create a new line item for the chapters share, since it's a different financial type.  Everything works well, except the chapter's share doesn't show up on the bookkeeping report.  That's when I noticed that the Financial Item record isn't created for the chapter's share line item record.  </p>
  
  <p>So I looked at the API explorer and I can't figure out which API entity and which API call creates the Financial Item records.</p>
  
Tags: <api><developer>
Title: How to access Financial Items through API?
ThreadText: # How to access Financial Items through API?
  
  (Asked by: username_0 on 2015-09-21)
  
  In my organization, we have local chapters who sometimes get part of the national membership dues. The BOD doesn't want the breakdown to show up on the email receipt, and the calculation has to be done whether the dues are posted online or offline, so I do my breakdown during the posting of the line item for the membership dues.
  
  I access the chapter share and reduce the line item by the chapter's share and create a new line item for the chapters share, since it's a different financial type. Everything works well, except the chapter's share doesn't show up on the bookkeeping report. That's when I noticed that the Financial Item record isn't created for the chapter's share line item record.
  
  So I looked at the API explorer and I can't figure out which API entity and which API call creates the Financial Item records.
  
  **Tags:** api, developer
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-09-22. Score: 1
  
  I don't think their is a separate API for creating Financial Item records - this gets created whenever an contribution and line\_item is been created
  
  so, you can write an API for creating financial\_item also make sure you make an entry in entity\_financial\_item
  
  or you can create these records manual using CRM\_Financial\_BAO\_FinancialItem::add() which will create new financial item
  
  
  ---
  
  ### Answer by username_2 on 2016-04-13. Score: 1
  
  There is an API for Financial Items in this extension: <https://civicrm.org/extensions/financial-item-api>
  
  
  ---
  
  ### Answer by username_0 on 2016-04-12. Score: 1
  
  Version 4.7.6 opens access through api for Financial Item as well as other Financial tables.
  
  
  ---
  
  