Skip to content
Aller au contenu
Charitips

API reference · Campaigns

Delete a campaign

DELETE/v1/campaigns/{campaignId}

Delete a draft campaign, or a pending campaign which has not been billed yet.

Requires a Bearer access token.

Parameters

This field has no description in the spec.

  • campaignId#stringin pathrequired

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

  • 401Unauthorized

    Missing, expired or invalid access token.

    {
      "statusCode": 401,
      "message": "Unauthorized"
    }
  • 403Only draft or not billed pending campaigns can be deleted
    {
      "statusCode": 403,
      "message": "Only draft or not billed pending campaigns can be deleted",
      "error": "Forbidden"
    }
  • 403Account closed
    {
      "message": "Account closed",
      "code": "ACCOUNT_CLOSED"
    }
  • 403Forbidden

    Your credentials cannot perform this action on this resource. An id from another account answers 404 in the path, 400 in the body or the query.

    {
      "statusCode": 403,
      "message": "Forbidden"
    }
  • 404Not Found

    No resource with this id on your account: the API answers as if it did not exist.

    {
      "statusCode": 404,
      "message": "Not Found"
    }
DELETE /v1/campaigns/<campaignId>
curl -X DELETE 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.