List codes

The codes your organization uses for gifts, thank-you letters and contacts.

GET https://cotlet.dev/api/v1/donorperfect/codes

read

Returns the code and its description for one code list from Settings > Code Maintenance. field picks the list. The codes belong to your organization, so the answer differs from one DonorPerfect account to the next. add_gift, create_pledge and add_contact take the code, not the description.

Parameters

Parameters: list_codes
NameTypeDescription
field enum required enum solicitation, general_ledger, gift_type, thank_you_letter, activity_code or by_whom.

Request

cURL
curl "https://cotlet.dev/api/v1/donorperfect/codes?field=solicitation" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("donorperfect", "list_codes", {"field":"solicitation"})
Node.js
const result = await cotlet.call('donorperfect', 'list_codes', {"field":"solicitation"});
CLI
cotlet call donorperfect list_codes --data '{"field":"solicitation"}'

Example response

JSON

{
  "field": "thank_you_letter",
  "codes": [
    {
      "code": "STANDARD",
      "description": "Standard thank you"
    },
    {
      "code": "MAJOR",
      "description": "Major donor thank you"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.