TeamRaiser API custom fields

Options

Hi, I have a custom field on my form that I want to push through using the LO TR addGift API. I was able to do this on the LO addOfflineDonation API, where I could include arbitrary custom fields in the API request, but it doesn't seem to work for the addGift API.

Is there any way to pass through custom fields in the addGift API?

I assume the reason for this is because the addGift API does not create a gift for a specific the formId, and therefore custom fields don't really work there.

Should I be using the addGift API to create TeamRaiser gifts at all? Or should I be using the addOfflineDonation API with some TeamRaiser-related parameters

Tagged:

Comments

  • @Neil Shweky

    Take a look at the API description file (it's at https://yoursubdomain.yourdomain.com/site/CRDonationAPI/application.wadl ) on your/your clients' Luminate instance.

    I notice there's an include_custom_elements parameter, might be worth starting there. Other than that, you'd need to have the custom element created on the donation form ahead of time as well.

  • Hi @Jeremy Reynolds!

    Thanks for the reply, the include_custom_elements parameter is used on the getDonationFormInfo method, I don't think that will be helpful.

    The problem with adding a custom element to the form is that the addGift TR Api does not associate a gift with that form, so there's nowhere to add the custom element

Categories