Skip to content
Aller au contenu
Charitips

API reference · Campaigns

Get a campaign

GET/v1/campaigns/{campaignId}

Retrieve information about one of your campaigns

Requires a Bearer access token.

Parameters

4 of 12 fields have no description in the spec.

  • campaignId#stringin pathrequired

  • includeMetrics#booleanin query

    Include metrics

  • includeMatchedDonationsInMetrics#booleanin query

    Include matched donations made by and charged to the beneficiary in the metrics

  • includeSiteUrl#booleanin query

    Include site url

  • includeReminders#booleanin query

    Include the reminders of an EMAIL or SLACK campaign, as set with update-campaign-reminders.

  • includeAssets#booleanin query

    Include assets such as the QR code linking to the campaign page for a public campaign.

  • includeTranslations#booleanin query

    Include available translations if any for every localized fields.

  • includeCampaignTemplate#booleanin query

    Include campaign template

    Required in the spec, optional for the API.

  • includeDonationMatching#booleanin query

    Include donation matching

    Required in the spec, optional for the API.

  • includeCharitiesSelection#booleanin query

  • includeRecurringDonationsInfo#booleanin query

  • includeMatchedDonationsInfo#booleanin query

Response

200 · Campaign

No field is described in the spec.

  • campaignId#stringalways returned

  • name#stringalways returned

  • type#CampaignType

    TIME_BASEDPERMANENT

  • amountType#CampaignAmountType

    FIXED_AMOUNTFREE_AMOUNT

  • audienceType#CampaignAudienceType

    PRIVATEPUBLIC

  • donationType#CampaignDonationType

    FACE_VALUEDISTRIBUTION

  • givingType#GivingTypealways returned

    FINANCIALPAYROLLPAID_TIME_OFF

  • recurringType#RecurringTypealways returned

    NONEFREQUENCYMANUAL

  • startDate#string (date-time)always returned

  • endDate#string (date-time)

  • budget#integer (int64)

  • sendingMode#CampaignSendingMode

    MANUALEMAILPHYSICALSLACKPOSTAL

  • status#CampaignStatus

    DRAFTPENDINGACTIVECOMPLETECANCELED

  • slug#string

  • publicKey#stringalways returned

  • withFiscalReceipts#booleanalways returned

  • language#Language

    fren

  • frequency#string

  • budgetFrequency#string

  • billingStatus#BillingStatusalways returned

    PENDINGBILLEDPAID

  • defaultHideAmount#boolean

  • withHideAmountCustomization#boolean

  • withGiftCards#boolean

  • withLeadCollection#boolean

  • withoutCustomization#booleanalways returned

  • momentType#MomentType

    OCCASIONKEY_MOMENTEDITION

  • momentSlug#string

  • leadCollectionOptions#object

  • donationsBilledOn#DonationBilledOnalways returned

    CREATIONCLAIM

  • withDonationsValidation#booleanalways returned

  • fiscalReceiptType#FiscalReceiptTypealways returned

    YEARLYSINGLE_DONATION

  • fiscalReceiptSendingMode#FiscalReceiptSendingModealways returned

    MANUALEMAIL

  • defaultHasBeenCharged#booleanalways returned

  • defaultFeeType#FeeTypealways returned

    EXCLUDEDINCLUDED

  • donationValidityPeriod#stringalways returned

  • template#string

  • physicalFormat#PhysicalFormat

    CUSTOMPRINTPARCEL

  • withEmailWall#boolean

  • postDonationWidgets#PostDonationWidget[]always returned

  • title#string

  • description#string

  • logoUrl#string

  • faviconUrl#string

  • titleColor#string

  • accentColor#string

  • givingTarget#integer (int64)

  • message#string

  • reminderMessage#string

  • emailSenderName#string

  • emailSenderPictureUrl#string

  • emailSubject#string

  • emailTemplate#string

  • emailReplyTo#string

  • emailDisplayCard#boolean

  • lastCustomerReminderId#string

  • charitiesSelectionId#string

  • accountId#stringalways returned

  • campaignTemplateId#string

  • donorPlatformId#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"
    }
  • 404Not Found
    {
      "statusCode": 404,
      "message": "Not Found"
    }
GET /v1/campaigns/<campaignId>
curl -X GET https://api.sandbox.charitips.com/v1/campaigns/<campaignId> \  -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.