- Previous: Private Consigned Child Keys
- Up: Private USA APIs
- Next: Private Letter Tracking Detail
Private Constituent Lookup
The Constituent Lookup API is a RESTful API.
This service provides external Compassion clients the ability to retrieve constituent information based on the constituent's email address.
The service returns JSON as default. The service will also return XML. This is controlled by the Accept parameter in the Message Header (i.e., for XML, it should be "Accept: application/xml" and for JSON, it should be "Accept: application/json").
Sample Request
Request Parameters
Response Parameters
Sample Successful Response
Sample Unsuccessful Response
Error Response Codes
Sample Request
This is an example only.
PROD: https://api2.compassion.com/us/v1/constituents/lookup?emailAddress=[string]&ClientReferenceId=[string]&api_key=[string]
IPTEST: https://api2.compassion.com/iptest/us/v1/constituents/lookup?emailAddress=[string]&ClientReferenceId=[string]&api_key=[string]
Request Parameters
Name | Description | Required | Data Type | Constraints |
---|---|---|---|---|
emailAddress | emailAddress (email address) is assigned by Compassion International to an individual or group. | Yes | String | Max 60 |
ClientReferenceId | Uniquely represents the transaction in the client's system. | Optional | String | Max 100 |
api_key | Your Mashery supplied key for an application running Compassion International services. | Yes | String |
Response Parameters
Name | Description |
---|---|
ConstituentId |
ConstituentId (Constituent Id) is assigned by Compassion International to an individual or group. |
EmailAddress |
Constituent’s preferred email address on file at Compassion International. |
ConstituentName |
Full name of the constituent. |
ParticipationSalutation |
Salutation used by the CDSP child or LDP student to communicate with the constituent. |
ISOCountryCode |
Two-character code assigned to a country by the International Organization for Standardization (ISO) as defined in the ISO 3166-1 standard. |
Sample Successful Response (an example run in 2021)
<Constituent xmlns="http://schemas.ci.org/ci/common/eim/2011/04/">
<ConstituentID>1234567</ConstituentID>
<EmailAddress>sponsor@gmail.com</EmailAddress>
<ConstituentName>Johnny B. Goode</ConstituentName>
<ParticipationSalutation>Johnny</ParticipationSalutation>
<ISOCountryCode>US</ISOCountryCode>
<Constituent>
Sample Unsuccessful Response
The service operation will provide the following response when there is no constituent for the email adress supplied.
Exception Returned: (HTTP Status Code ="404")
<Error xmlns="xmlns="http://schemas.ci.org/ci/services/common/2011/04/">
ID> <48f0bb45-fd9c-4d81-b21f-b2f70e5e47c6</ID>
ExceptionMessage> <The data does not exist.</ExceptionMessage>
</Error>
Error Response Codes
For ResponseCode = 1, the table below indicates the HTTP error response and HTTP Error message.
HTTP Error Response | HTTP Error Message |
---|---|
HTTP 400 | Service Parameter Failure |
HTTP 401 | Not Authenticated / Authorized for Service Data |
HTTP 403 | Not Authorized |
HTTP 403 | Account Inactive |
HTTP 403 | Over Queries Per Second Limit |
HTTP 403 | Over Rate Limit |
HTTP 403 | Unknown Referrer |
HTTP 404 | Requested Resource Not Found |
HTTP 408 | Request Timeout |
HTTP 414 | Request URI Too Long |
HTTP 500 | Internal Server Error |
HTTP 502 | Bad Gateway |
HTTP 503 | API Maintenance / Service Unavailable |
HTTP 504 | Gateway Timeout |
- Previous: Private Consigned Child Keys
- Up: Private USA APIs
- Next: Private Letter Tracking Detail
Docs Navigation
- Compassion API Library
- Standards Documents
- Legacy APIs (Deprecating)
- Web Services Handshake (Legacy) - Notification and Command Messages
- Public API
- Private IPG APIs
- Private REST Services
- REST Get CDSP Implementor V1
- REST Get Child Case Study V1
- REST Get Child Exit Details V1
- REST Get Child Image V1
- REST Get Child Information V1
- REST Get Community V1
- REST Get Country V1
- REST Get CSP Implementor V1
- REST Get Local Church Partner V1
- REST Get Program Implementor V1
- REST Get Project Age Groups V1
- REST Get Child Image V1 - 2015/03
- Private Messaging APIs
- Quick Start Guide
- OffRamp Prerequisites and Setup
- IP OnRamp Service Configuration
- Available Message Types
- Message and Service Relationships
- Troubleshooting
- General Error Messages from Compass Party Host
- EsdMessageErrorMOE Sample
- Sample REST End-To-End Test Plan
- SOAP Wrapper Sample for Messages to GMC
- Allocate Child Message
- Cancel Commitment Message
- Commitment Canceled Message
- Commitment Created Message
- Constituent Created Message
- Constituent Updated Message
- Constituent Upserted Message
- Create Commitment Message
- Create Constituent Message
- Create Email Message
- Create Gift Message
- Deallocate Child Message
- Depart Child Message
- Email Created Message
- Email Updated Message
- Gift Created Message
- Update Child Message
- Update Constituent Message
- Update Email Message
- Upsert Constituent Message
- Update Project Message
- Private SOAP Services
- SOAP Get Child Exit Detail 201211
- SOAP Get Child Exit Detail 201310
- SOAP Get CDSP Implementor 201309
- SOAP Get Child Image 201211
- SOAP Get Child Case Study 201310
- SOAP Get Child Case Study 201412
- SOAP Get Child Information 201211
- SOAP Get Child Information 201310
- SOAP Get Community 201309
- SOAP Get Country Information 201104
- SOAP Get Local Church Partner 201309
- SOAP Get Program Implementor 201303
- SOAP Get Program Implementor 201309
- SOAP Get Project Age Group 201309
- Service Overview
- SOAP Get CSP Implementor 201309
- SOAP Get Child Image 201503
- Private USA APIs
- Private USA Web APIs
- private cornerstone connect messaging
- private cornerstone test
- public api
0 Comments
New comments are not being accepted at this time.