Recurring Donations

Create a recurring donation

Changed on

Records an unmanaged recurring donation: an external processor bills the donor and NationBuilder only records the series.

signup_id, amount_in_cents, frequency and start_date are required. payment_type is always donation. merchant_account_id is read-only, so every recurring donation created here is unmanaged.

Membership — to record which membership the series pays for, send the membership as a relationship. See recurring_donation_membership_relationship.

post/api/v2/recurring_donations

Request

  • Base URL
    https://yournation.nationbuilder.com
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "type": "recurring_donations",
    "attributes": {
      "amount_in_cents": 1000,
      "description": "Monthly supporter",
      "donation_tracking_code_id": "1",
      "external_id": "sub_123",
      "frequency": "monthly",
      "page_id": "1",
      "recruiter_id": "1",
      "signup_id": "1",
      "start_date": "2019-10-26T10:00:00-04:00",
      "status": "active"
    },
    "relationships": {
      "membership": {
        "data": {
          "type": "memberships",
          "id": "5",
          "temp-id": "new-id",
          "method": "update"
        }
      }
    }
  }
}

Response

The newly created recurring donation.

metaobject

Non-standard information about the document. Empty unless the endpoint has metadata to convey.

Example response

{
  "data": {
    "id": "1",
    "type": "recurring_donations",
    "attributes": {
      "amount_in_cents": 1000,
      "description": "Monthly supporter",
      "donation_tracking_code_id": "1",
      "external_id": "sub_123",
      "frequency": "monthly",
      "page_id": "1",
      "recruiter_id": "1",
      "signup_id": "1",
      "start_date": "2019-10-26T10:00:00-04:00",
      "status": "active",
      "canceled_date": "2019-10-26T10:00:00-04:00",
      "created_at": "2019-10-26T10:00:00-04:00",
      "last_pay_date": "2019-10-26T10:00:00-04:00",
      "merchant_account_id": "1",
      "next_bill_date": "2019-10-26T10:00:00-04:00",
      "payment_type": "donation",
      "updated_at": "2019-10-26T10:00:00-04:00"
    }
  },
  "included": [
    {
      "id": "1"
    }
  ]
}

Changes