Skip to content
Aller au contenu
Charitips

API reference · Donors

List donors

GET/v1/donors

List all your donors.

Requires a Bearer access token.

Parameters

  • limit#numberin queryintegerminimum 1maximum 100

    The max number of items to return.

  • cursor#stringin queryUUID

    The id of the last item from the previous page. Used to fetch the next page.

  • externalId#stringin query

    An optional internal id of your system e.g orderId or customerId. Can be used to link a donor to an entity in your system.

  • uniqueExternalId#stringin query

    Similar to externalId but should be unique across all donors. Can be used to prevent duplicate donors.

  • accountId#stringin queryUUID

    Id of the account. Only useful for Platform customers to filter donors by child accounts

  • sort#stringin query

    Sorting field and order

    createdAt:asccreatedAt:descfirstName:ascfirstName:desc

Response

200 · Donor[]

No field is described in the spec.

  • donorId#stringalways returned

  • scopeType#DonorScopeTypealways returned

    CAMPAIGNACCOUNT

  • platformAccessStatus#DonorPlatformAccessStatusalways returned

    ENABLEDDISABLEDRESTRICTED

  • firstName#stringalways returned

  • lastName#stringalways returned

  • email#string

  • companyName#string

  • phone#string

  • extraInfo#string

  • birthdate#string (date-time)

  • street#string

  • streetAddition#string

  • city#string

  • country#string

  • zip#string

  • externalId#string

  • uniqueExternalId#string

  • slackId#string

  • pictureUrl#string

  • title#string

  • personalEmail#string

  • persona#Persona

    CSRMARKETINGHRSALESCOMMUNICATIONPRODUCTSMBOTHER

  • language#Language

    fren

  • hasAcceptedTerms#booleanalways returned

  • accountId#stringalways returned

  • campaignId#string

  • individualAccountId#string

  • createdAt#string (date-time)always returned

  • updatedAt#string (date-time)always returned

Errors

  • 400A field is missing, has the wrong type, or is not part of the request schema.

    Every request with a body or query is validated.

    {
      "statusCode": 400,
      "message": [
        "amount must not be less than 1",
        "property foo should not exist"
      ],
      "error": "Bad Request"
    }
  • 401Unauthorized

    Missing, expired or invalid access token.

    {
      "statusCode": 401,
      "message": "Unauthorized"
    }
  • 403Account closed
    {
      "message": "Account closed",
      "code": "ACCOUNT_CLOSED"
    }
GET /v1/donors
curl -X GET https://api.sandbox.charitips.com/v1/donors \  -H "Authorization: Bearer $CHARITIPS_TOKEN"
Built from the spec and the API code

Request bodies are written for this docs and checked against the API's validation; ids in angle brackets are placeholders. Response values are placeholders built from the schema.