<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communitytest.tessitura.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Understanding Contributions endpoints in the REST Services</title><link>https://communitytest.tessitura.com/topical_groups/developers/w/community-developer-documentation/777/understanding-contributions-endpoints-in-the-rest-services</link><description>Wiki for creating community documentation.</description><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>Understanding Contributions endpoints in the REST Services</title><link>https://communitytest.tessitura.com/topical_groups/developers/w/community-developer-documentation/777/understanding-contributions-endpoints-in-the-rest-services</link><pubDate>Wed, 20 May 2020 06:22:55 GMT</pubDate><guid isPermaLink="false">fd08b0f2-65fa-4b2b-916a-cce3e88b61d0:030ee937-7651-478a-bc71-7700ce84ddf3</guid><dc:creator>Nick Reilingh</dc:creator><comments>https://communitytest.tessitura.com/topical_groups/developers/w/community-developer-documentation/777/understanding-contributions-endpoints-in-the-rest-services#comments</comments><description>Current Revision posted to Community Docs Wiki by Nick Reilingh on 5/20/2020 6:22:55 AM&lt;br /&gt;
&lt;p&gt;As of 15.1.10:&lt;/p&gt;
&lt;h2&gt;CRM - Constituent Contributions&lt;/h2&gt;
&lt;p&gt;API Method/Endpoint:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GetAll&lt;/strong&gt;: &lt;code&gt;GET CRM/Contributions?constituentId={constituentId}&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Useful for retrieving existing contributions for a constituent.&lt;/p&gt;
&lt;p&gt;Note: ReferenceNumber in the response object may be referred to as Id or LineItemId in other resources&amp;#39; responses.&lt;/p&gt;
&lt;h2&gt;Finance - Finance Contributions&lt;/h2&gt;
&lt;p&gt;API Methods/Endpoints:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Get&lt;/strong&gt;: &lt;code&gt;GET&amp;nbsp;Finance/Contributions/{contributionId}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GetAll&lt;/strong&gt;: &lt;code&gt;GET&amp;nbsp;Finance/Contributions?planId={planId}&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Useful for retrieving information about just a single contribution at a time, or all of the contributions for a particular plan.&lt;/p&gt;
&lt;p&gt;Note that the response type is slightly different between this and the Constituent Contributions resource.&lt;/p&gt;
&lt;h2&gt;TXN - Contributions&lt;/h2&gt;
&lt;p&gt;These endpoints CANNOT be used. They are present in order to be able to trigger interceptor plugins at certain times. (Interceptors must hook themselves into API methods).&lt;/p&gt;
&lt;h2&gt;Web - Cart&lt;/h2&gt;
&lt;p&gt;API Methods/Endpoints:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;AddContribution&lt;/strong&gt;: &lt;code&gt;POST Web/Cart/{sessionKey}/Contributions&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;UpdateContributionCustomData&lt;/strong&gt;: &lt;code&gt;PUT Web/Cart/{sessionKey}/Contributions/{lineItemId}/CustomData/{customId}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RemoveContribution&lt;/strong&gt;: &lt;code&gt;DELETE&amp;nbsp;&lt;span&gt;Web/Cart/{sessionKey}/Contributions/{lineItemId}&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;RemoveContributionCustomData&lt;/strong&gt;: &lt;code&gt;DELETE&amp;nbsp;Web/Cart/{sessionKey}/Contributions/{lineItemId}/CustomData/{customId}&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;These endpoints can be used to add/remove contribution to a cart and optionally modify custom data for that contribution. The LineItemId will be returned by the POST used to create the contribution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CustomData for contributions must be preconfigured before use; this is described in the documentation: &lt;a title="Contribution Custom Data Tab" href="https://www.tessituranetwork.com/Help_System_v151/Tessitura_CSH.htm#Contribution%20Processing/Custom%20Data%20Tab.htm"&gt;Contribution Custom Data Tab&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NOTE that a cart is equivalent to a ticket order in the client, so advanced contribution functionality found in the contributions module (like pledges) is not possible. Basic membership renewals and upgrades are supported,&amp;nbsp;but not much else is. The traditional workaround for this is to save contribution income as on-account monies and create a CSI for later manual processing by an agent. In the SOAP API, this was built-in functionality, but in REST you must create the CSI yourself (CRM/Issues) and apply the contribution amount as new on-account money using AddOnAccount (POST Web/Cart/{sessionKey}/OnAccount).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the event that you are adding a contribution for a cart that will be displayed by TNEW, please see &lt;a title="Custom Contributions in TNEW" href="/topical_groups/developers/w/community-developer-documentation/772/custom-contributions-in-tnew"&gt;Custom Contributions in TNEW&lt;/a&gt;&amp;nbsp;for additional requirements.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: contributions, REST API&lt;/div&gt;
</description></item></channel></rss>