This article walks through optional, advanced integration customization options.
Condensed Matching Gift Plugin
The following integration documentation is optional and typically reserved for versions 2 and higher of integrations. It is highly recommended to launch your 360MatchPro integration partnership with a standard V1 as described in this documentation for online donation forms and this documentation for CRMs.
Please discuss the following optional advanced integration development with the Double the Donation Partnerships Team before beginning work.
Condensed Matching Gift Plugin
Some donation form styles have less space on the confirmation page than the standard 360MatchPro matching gift plugin requires. In these cases, the partner may use a condensed version of the matching gift plugin to better fit their confirmation pages.
To use the condensed matching gift plugin, add the following code to line 5 the standard matching gift plugin code ( Step 3 here):
- var DDCONF = {API_KEY: "360MATCHPRO_PUBLIC_KEY", CONDENSED: true, COMPANY: dtd_selected_company};
The condensed matching gift plugin will appear as follows:
Contact the Partnerships Team for a full demo of the condensed plugin.
Promise Creation
Do not implement Promise Creation unless you have discussed creating matching gift records in your platform with the Double the Donation Partnerships Team.
Call the get_updated_donations endpoint. We recommend calling this endpoint at least every 24 hours, if not more frequently.
If a promise should be created, you will see the following (example):
- {
- ...
- "promise_amount": 100,
- "promise_created_at": "2021-09-15T17:37:42.09607Z",
- ...
- }
If a promise should NOT be created, you will see the following:
- {
- ...
- "promise_amount": null,
- "promise_created_at": null,
- ...
- }
Promise definitions:
-
promise_amount: The amount of the matching gift 360MatchPro anticipates the client will receive. This could be different from the original donation amount for several reasons, most commonly because the company program matches 2:1 (e.g., the original gift of $100 is matched by the company at $200).
-
promise_created_at: Timestamp of the event that triggered the promise creation. In 360MatchPro, this is the donation moving into one of the statuses indicated by the client in their settings.
Promise Creation notes:
-
Each individual 360MatchPro client determines in their own account the business logic surrounding promise creation. Specifically, they select which matching gift statuses trigger the creation of a promise.
-
It is highly likely that you will receive multiple promise updates for the same donation since the business logic that triggers a promise creation update is based upon statuses, which change multiple times over the course of the 360MatchPro timeline. Prioritize the promised amount in the update with the most recent timestamp.
-
Promise amounts are editable from the 360MatchPro user interface. If you receive a "promise_amount" of 0 instead of null, that means the promised amount was manually updated to 0 by the 360MatchPro client. Discuss what to do in this scenario with the Double the Donation Partnerships Team during your integration build. Our most frequent recommendation is to delete the promise record in your system in this scenario.
Custom Fields
Add the custom_fields value to the register_donation API call or JavaScript function ( Step 2 here for online donation forms; here for CRMs; schema here; Swagger here).
Use the following syntax:
- {
- ...
- "custom_fields": {
- "CustomField1Label": "custom field 1 value",
- "CustomField2Label": "custom field 2 value"
- }
- ...
- }
Note that in this documentation, we use "label" to refer to the name of the field being collected, which will be the same for all donations, and "value" to refer to the particular value passed in for that field for an individual donation. For instance, "donor_email" is the label and " test@test.com " is the value.
A sample request follows (custom fields in lines 12-14):
- {
- "360matchpro_public_key": "xxxxxxxx",
- "campaign": campaign,
- "donation_identifier": donation_uuid,
- "donation_amount": "$123.30",
- "donor_first_name": "test1",
- "donor_last_name": "test2",
- "donor_email": "test@doublethedonation.com",
- "donor_phone": "404-1231234",
- "doublethedonation_company_name_input": null,
- "doublethedonation_company_id": 245,
- "custom_fields": {
- "Salutation": "Mr",
- "Division": "Advancement"
- }
- }
In the above sample request, the custom fields are Salutation (line 13) and Division (line 14), and the values captured for those fields are "Mr" for "Salutation" and "Advancement" for "Division".
Notes about custom fields:
-
There is no character limit or restriction to the values that can be collected in a custom field.
-
Only one level of custom fields can be entered - values cannot be nested into more levels. For example, "custom_fields": {"level1": {"level2": "level2value"}} would not work.
Custom fields in the 360MatchPro client portal:
-
Custom fields can be displayed as columns within the "Donations" tab of the 360MatchPro client portal. Custom fields cannot be filtered for, searched, or sorted in the "Donations" tab of the 360MatchPro portal as of now.
-
Custom fields can be used as variables within 360MatchPro automated emails. They will appear in the list with other default variables with the label provided when the value is passed into 360MatchPro via the register_donation endpoint. For instance, in the above sample request, "Salutation" and "Division" would appear as variables available for use in automated emails, and an automated email to the sample donor would populate "Mr" and "Advancement" for those variables. More about email variables here.
-
Custom fields will appear in CSV exports from 360MatchPro and in the API endpoints when fetching donation data.
-
Custom fields can be used for inclusions and exclusions. More about inclusions/exclusions here.
Company ID from Donor Email
Do not implement Company ID from Donor Email unless you have discussed this approach with the Double the Donation Partnerships Team. This endpoint is not applicable to almost all partners.
In rare cases, integration partners do not have access to the original unique transaction ID of a donation. In these cases, these partners can provide a donor's email address and receive 360MatchPro's best guess at that donor's company.
Call the donor-info-by-donor-email endpoint. Provide the donor's email address, the nonprofit client's private 360MatchPro API key, and a timeframe you would like 360MatchPro to check for employment information. Based on industry standards, we recommend defaulting to a timeframe of the previous 6 months.
Responses from the endpoint include:
-
Company ID: If 360MatchPro discovers a company associated with the email address within the timeframe, the endpoint will return a company ID. You may use this company ID to call other endpoints, including the companies/{company_ID} endpoint, for more information about the company's matching gift program.
-
Error: Email blacklisted in 360MatchPro: The donor's email is on the nonprofit client's blacklist.
-
Error: Unknown company: The donor's employer is unknown.
-
Error: Ineligible for matching gifts: The donor is ineligible for matching gifts.
-
Error: Email not found in 360MatchPro: The email address provided isn't found in the client's 360MatchPro account in the timeframe.
Workflow notes:
-
If there is more than one match-eligible donation associated with the email address in the time window, 360MatchPro will return the most recently associated company name.
-
If the most recent donation does not have a company name, 360MatchPro will continue searching backward within the timeframe until it finds a company name.
-
If any of the donations in the time window are ineligible, the ineligible error message will be returned, unless there's a more recent donation with a company name. If there's a more recent donation with an unknown company status, the ineligible status will take priority.