Zeffy Payments API

Read-only access to an organization's transactions. List all payments or look up a specific payment, filtering by currency, status, type (online, manual, or imported), contact, campaign, or date range. Each payment includes line items, refund details, buyer info, and a link to the tax receipt.

OpenAPI Specification

zeffy-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Zeffy Public API
  description: >-
    The Zeffy Public API gives nonprofit organization admins free, read-only
    access to their Zeffy data: Payments (transactions/donations), Contacts
    (donors and supporters), and Campaigns (donation forms, events, and other
    campaign types). The API is REST over HTTPS, authenticated with a
    per-organization API key sent as a Bearer token in the Authorization header.
    It is read-only - records can be pulled but not created or modified. Results
    use cursor-based pagination and support filtering (payments by currency,
    status, type, contact, campaign, and date range; contacts by ID or email).
    The rate limit is 100 requests per minute per API key.

    NOTE: The list endpoints (GET /payments, GET /contacts, GET /campaigns), the
    base URL, Bearer auth, cursor pagination, and the rate limit are confirmed
    from Zeffy's public documentation. The get-by-id paths and individual query
    parameters below are honestly modeled from the documented capabilities
    ("look up a specific payment", "look up a specific person by ID or email",
    filter by currency/status/type/contact/campaign/date) rather than copied
    field-by-field from the interactive reference, which requires an account.
  version: '1.0'
  contact:
    name: Zeffy
    url: https://www.zeffy.com/integration/api
servers:
  - url: https://api.zeffy.com/api/v1
    description: Zeffy Public API
security:
  - bearerAuth: []
tags:
  - name: Payments
    description: An organization's transactions and donations.
  - name: Contacts
    description: An organization's donors and supporters.
  - name: Campaigns
    description: Donation forms, events, and other campaign types.
paths:
  /payments:
    get:
      operationId: listPayments
      tags:
        - Payments
      summary: List payments
      description: >-
        Lists an organization's payments. Filterable by currency, status, type,
        contact, campaign, and date range. Confirmed endpoint.
      parameters:
        - name: currency
          in: query
          required: false
          schema:
            type: string
          description: Filter by currency (e.g. USD, CAD).
        - name: status
          in: query
          required: false
          schema:
            type: string
          description: Filter by payment status.
        - name: type
          in: query
          required: false
          schema:
            type: string
            enum: [online, manual, imported]
          description: Filter by payment type.
        - name: contactId
          in: query
          required: false
          schema:
            type: string
          description: Filter by contact.
        - name: campaignId
          in: query
          required: false
          schema:
            type: string
          description: Filter by campaign.
        - name: startDate
          in: query
          required: false
          schema:
            type: string
            format: date
          description: Start of the date range.
        - name: endDate
          in: query
          required: false
          schema:
            type: string
            format: date
          description: End of the date range.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: Cursor for the next page (next_cursor from a prior response).
      responses:
        '200':
          description: A page of payments.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /payments/{id}:
    get:
      operationId: getPayment
      tags:
        - Payments
      summary: Get a payment
      description: >-
        Retrieves a single payment, including line items, refund details, buyer
        info, and a link to the tax receipt. Modeled from the documented ability
        to look up a specific payment.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A single payment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Payment'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /contacts:
    get:
      operationId: listContacts
      tags:
        - Contacts
      summary: List contacts
      description: >-
        Retrieves an organization's full donor and supporter list. Confirmed
        endpoint.
      parameters:
        - name: email
          in: query
          required: false
          schema:
            type: string
            format: email
          description: Look up a specific contact by email.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: Cursor for the next page.
      responses:
        '200':
          description: A page of contacts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /contacts/{id}:
    get:
      operationId: getContact
      tags:
        - Contacts
      summary: Get a contact
      description: >-
        Retrieves a single contact, including giving history, total
        contributions, address, and communication preferences. Modeled from the
        documented ability to look up a specific person by ID or email.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A single contact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contact'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /campaigns:
    get:
      operationId: listCampaigns
      tags:
        - Campaigns
      summary: List campaigns
      description: >-
        Lists an organization's donation forms, events, and other campaign
        types. Confirmed endpoint.
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: Cursor for the next page.
      responses:
        '200':
          description: A page of campaigns.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /campaigns/{id}:
    get:
      operationId: getCampaign
      tags:
        - Campaigns
      summary: Get a campaign
      description: >-
        Retrieves a single campaign, including title, description, goal, dates,
        occurrences, and amount raised. Modeled from the documented ability to
        look up a specific campaign.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A single campaign.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Campaign'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Per-organization API key generated under Settings then Integrations,
        sent as "Authorization: Bearer YOUR_API_KEY".
  responses:
    Unauthorized:
      description: Missing or invalid API key.
    RateLimited:
      description: Rate limit exceeded (100 requests per minute per API key).
  schemas:
    Payment:
      type: object
      description: A transaction/donation. Field set is modeled.
      properties:
        id:
          type: string
        currency:
          type: string
        status:
          type: string
        type:
          type: string
          enum: [online, manual, imported]
        amount:
          type: number
        contactId:
          type: string
        campaignId:
          type: string
        createdAt:
          type: string
          format: date-time
        lineItems:
          type: array
          items:
            type: object
        refund:
          type: object
          nullable: true
        taxReceiptUrl:
          type: string
          format: uri
          nullable: true
    PaymentList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Payment'
        has_more:
          type: boolean
        next_cursor:
          type: string
          nullable: true
    Contact:
      type: object
      description: A donor or supporter. Field set is modeled.
      properties:
        id:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        email:
          type: string
          format: email
        address:
          type: object
          nullable: true
        totalContributions:
          type: number
        communicationPreferences:
          type: object
          nullable: true
    ContactList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Contact'
        has_more:
          type: boolean
        next_cursor:
          type: string
          nullable: true
    Campaign:
      type: object
      description: A donation form, event, or other campaign type. Field set is modeled.
      properties:
        id:
          type: string
        title:
          type: string
        description:
          type: string
        type:
          type: string
        goal:
          type: number
          nullable: true
        amountRaised:
          type: number
        startDate:
          type: string
          format: date
          nullable: true
        endDate:
          type: string
          format: date
          nullable: true
    CampaignList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Campaign'
        has_more:
          type: boolean
        next_cursor:
          type: string
          nullable: true