Givebutter Transactions API

The Transactions API from Givebutter — 2 operation(s) for transactions.

OpenAPI Specification

givebutter-transactions-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Givebutter Campaigns Transactions API
  version: 1.0.0
  description: 'Best-effort OpenAPI 3.1 description of the Givebutter REST API covering

    campaigns, contacts, transactions, funds, households, tickets, plans,

    payouts, pledges, webhooks, and discount codes. Authentication uses

    Bearer-token authentication with an API key. Sourced from

    https://docs.givebutter.com/.

    '
  contact:
    name: Givebutter API Docs
    url: https://docs.givebutter.com/reference/reference-getting-started
servers:
- url: https://api.givebutter.com/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Transactions
paths:
  /transactions:
    get:
      summary: List transactions
      operationId: listTransactions
      tags:
      - Transactions
      parameters:
      - $ref: '#/components/parameters/PerPage'
      - $ref: '#/components/parameters/Page'
      responses:
        '200':
          description: Transactions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Transaction'
    post:
      summary: Create a transaction
      operationId: createTransaction
      tags:
      - Transactions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Transaction'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transaction'
  /transactions/{id}:
    parameters:
    - $ref: '#/components/parameters/IdString'
    get:
      summary: Get a transaction
      operationId: getTransaction
      tags:
      - Transactions
      responses:
        '200':
          description: Transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transaction'
components:
  schemas:
    Transaction:
      type: object
      properties:
        id:
          type: string
        number:
          type: string
        campaign_id:
          type: integer
        amount:
          type: number
          format: float
        currency:
          type: string
        status:
          type: string
        method:
          type: string
        created_at:
          type: string
          format: date-time
        giving_space:
          type: object
          properties:
            name:
              type: string
            amount:
              type: number
  parameters:
    IdString:
      in: path
      name: id
      required: true
      schema:
        type: string
    PerPage:
      in: query
      name: per_page
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Page:
      in: query
      name: page
      schema:
        type: integer
        minimum: 1
        default: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using a personal API key.