Swoogo Transactions API
Transactions record financial activity for registrants — payments, refunds, and credits. Supports offline payment types (credit card, wire transfer, check, cash, etc.) and integration with payment gateways.
Transactions record financial activity for registrants — payments, refunds, and credits. Supports offline payment types (credit card, wire transfer, check, cash, etc.) and integration with payment gateways.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/swoogo:swoogo-transactions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Swoogo Transactions API
version: 1.0.0
contact:
name: Swoogo Developer Support
url: https://developer.swoogo.com
email: dev@swoogo.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: https://www.swoogo.com/terms
description: 'Operations tagged Transactions across 2 of this provider''s published API definitions: swoogo-openapi.yml, swoogo-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
tags:
- name: Transactions
description: Transactions record financial activity for registrants — payments, refunds, and credits. Supports offline payment types (credit card, wire transfer, check, cash, etc.) and integration with payment gateways.
paths:
/transactions:
get:
security:
- bearerAuth: []
tags:
- Transactions
summary: Get All Transactions
description: Retrieves all financial transaction records for a specific event. Transactions include payments, refunds, and credits linked to registrants. Requires the `event_id` query parameter. Each record contains the amount, type (e.g., credit_card_payment, wire_transfer_refund), status, and associated registrant. Use `search` to filter by registrant_id, status, amount, or date range.
operationId: getAllTransactions
parameters:
- name: event_id
in: query
required: true
schema:
type: integer
example: 1
description: integer - required - The ID of the event you want to retrieve transactions for
- name: fields
in: query
schema:
type: string
example: id,registrant_id,type,datetime,status,amount,created_at,created_by,updated_at,updated_by,card_type,card_number_last_4,name_on_card,notes,gateway_id
description: string - optional - Comma separated list of fields you want to return
- name: expand
in: query
schema:
type: string
example: paymentGateway,registrant
description: 'string - optional - Comma separated list of related objects to include inline. Supported values: `paymentGateway`, `registrant`'
- name: search
in: query
schema:
type: string
example: id>123
description: string - optional - Filter conditions to narrow the results. Valid operators are =, !=, >=, <=, >, <, *contains*, *beginswith*, *endswith*. Searchable fields include id, registrant_id, type, datetime, status, amount, payment_method_fee, currency, card_type, card_number_last_4, name_on_card, gateway_transaction_id, gateway_id, notes, created_by, created_at, updated_by, updated_at, order_number
- name: page
in: query
schema:
type: string
example: '1'
description: integer - optional - The page of results you want to view
- name: per-page
in: query
schema:
type: string
example: '5'
description: integer - optional - The number of results per page (to a max of 200)
- name: sort
in: query
schema:
type: string
description: string - optional - Sort the results (add - in front for opposite sort direction, e.g. "-id")
- name: ids
in: query
schema:
type: string
description: Comma-separated list of IDs to retrieve. When provided, only records matching these IDs are returned. All values must be positive integers. Maximum 100 IDs per request.
example: 1,2,3
responses:
'200':
description: Collection
headers:
x-rate-limit-limit:
$ref: '#/components/headers/RateLimitLimit'
x-rate-limit-remaining:
$ref: '#/components/headers/RateLimitRemaining'
x-rate-limit-reset:
$ref: '#/components/headers/RateLimitReset'
x-pagination-current-page:
$ref: '#/components/headers/PaginationCurrentPage'
x-pagination-page-count:
$ref: '#/components/headers/PaginationPageCount'
x-pagination-per-page:
$ref: '#/components/headers/PaginationPerPage'
x-pagination-total-count:
$ref: '#/components/headers/PaginationTotalCount'
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
created_at:
type: string
example: '2023-04-21 15:46:23'
updated_at:
type: string
example: '2023-04-21 15:47:37'
_links:
type: object
properties:
self:
type: object
properties:
href:
type: string
example: ''
first:
type: object
properties:
href:
type: string
example: ''
last:
type: object
properties:
href:
type: string
example: ''
_meta:
type: object
properties:
totalCount:
type: integer
example: 1
pageCount:
type: integer
example: 1
currentPage:
type: integer
example: 1
perPage:
type: integer
example: 20
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
/transactions/{transaction_id}:
get:
security:
- bearerAuth: []
tags:
- Transactions
summary: Get One Transaction
description: Retrieves a single transaction by its ID, including payment details (amount, type, status), card information (last 4 digits, card type), associated registrant, and payment gateway used.
operationId: getOneTransaction
parameters:
- name: transaction_id
in: path
required: true
schema:
type: integer
example: 1
description: integer - required - The ID of the track you want to get
- name: fields
in: query
schema:
type: string
example: id,registrant_id,type,datetime,status,amount,created_at,created_by,updated_at,updated_by,card_type,card_number_last_4,name_on_card,notes,gateway_id
description: string - optional - Comma separated list of fields you want to return
- name: expand
in: query
schema:
type: string
example: paymentGateway,registrant
description: 'string - optional - Comma separated list of related objects to include inline. Supported values: `paymentGateway`, `registrant`'
responses:
'200':
description: Get Transaction
headers:
x-rate-limit-limit:
$ref: '#/components/headers/RateLimitLimit'
x-rate-limit-remaining:
$ref: '#/components/headers/RateLimitRemaining'
x-rate-limit-reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
type: object
properties:
amount:
type: string
example: '-166.00'
card_number_last_4:
type: number
example: 1111
card_type:
type: string
example: amex
created_at:
type: string
example: '2016-09-26 12:54:22'
created_by:
type: number
example: 1
datetime:
type: string
example: '2016-09-26 12:54:17'
gateway_id:
type: number
example: 2
id:
type: number
example: 2
name_on_card:
type: string
example: Certification Test
notes:
type: string
example: note
registrant_id:
type: number
example: 1
paymentGateway:
type: object
properties:
name:
type: string
example: Paymentech Bin 2
registrant:
type: object
properties:
group_id:
type: number
example: 1
id:
type: number
example: 1
po_number:
type: string
example: '1234'
status:
type: string
example: confirmed
type:
type: string
example: credit_card_payment
updated_at:
type: string
example: '2016-09-26 12:54:22'
updated_by:
type: number
example: 1
examples:
Get Transaction:
value:
amount: '-166.00'
card_number_last_4: 1111
card_type: amex
created_at: '2016-09-26 12:54:22'
created_by: 1
datetime: '2016-09-26 12:54:17'
gateway_id: 2
id: 2
name_on_card: Certification Test
notes: note
registrant_id: 1
paymentGateway:
name: Paymentech Bin 2
registrant:
group_id: 1
id: 1
po_number: '1234'
status: confirmed
type: credit_card_payment
updated_at: '2016-09-26 12:54:22'
updated_by: 1
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
/transactions/create:
post:
security:
- bearerAuth: []
tags:
- Transactions
summary: Create Transaction
description: Creates an offline transaction record for a registrant. Use this for payments or refunds processed outside the online payment gateway (e.g., wire transfers, checks, cash). Requires `event_id`, `registrant_id`, `type`, and `amount`. The `type` must be an offline payment or refund type such as `wire_transfer_payment`, `check_payment`, `cash_refund`, etc. Online payment types (e.g., credit_card_payment) cannot be created through this endpoint.
operationId: createTransaction
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- event_id
- registrant_id
- type
- amount
properties:
event_id:
type: integer
description: ID of the event to which this transaction is associated.
example: 1
registrant_id:
type: integer
description: ID of the registrant this transaction belongs to
example: 1
type:
type: string
description: 'Type of transaction. Available values: <br>• **Payments**: offline_credit_card_payment, wire_transfer_payment, check_payment, cash_payment, past_event_credit_payment, offline_google_wallet_payment, offline_paypal_payment, other_payment <br>• **Refunds**: offline_credit_card_refund, wire_transfer_refund, check_refund, cash_refund, offline_google_wallet_refund, offline_paypal_refund, other_refund'
example: wire_transfer_payment
datetime:
type: string
description: Transaction date and time (format Y-m-d H:i:s)
example: '2025-06-04 14:30:00'
status:
type: string
description: 'Status of the transaction. Available values: <br>• **confirmed**: Processed, <br>• **failed**: Failed, <br>• **pending**: Pending, <br>• **duplicate**: Duplicate'
example: confirmed
amount:
type: number
format: float
description: Amount of the transaction
example: -166
notes:
type: string
description: Additional notes for the transaction
example: Payment for registration
examples:
Create A New Transaction:
value:
event_id: 1
registrant_id: 1
type: credit_card_payment
datetime: '2025-06-04 14:30:00'
status: confirmed
amount: 166
notes: Payment for registration
responses:
'201':
description: Transaction Created
content:
application/json:
schema:
type: object
properties:
registrant_id:
type: integer
example: 1
type:
type: string
example: credit_card_payment
datetime:
type: string
example: '2025-06-04 14:30:00'
status:
type: string
example: confirmed
amount:
type: number
format: float
example: -166
notes:
type: string
example: Payment for registration
created_at:
type: string
example: '2025-06-04 14:30:00'
updated_at:
type: string
example: '2025-06-04 14:30:00'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
/transactions/delete/{transaction_id}:
delete:
security:
- bearerAuth: []
tags:
- Transactions
summary: Delete Transaction
description: Permanently deletes a transaction record by its ID. This removes the financial record from the registrant's payment history and may affect their payment status and balance due calculations.
operationId: deleteTransaction
parameters:
- name: transaction_id
in: path
required: true
schema:
type: integer
example: 1
description: integer - required - The ID of the transaction you want to delete
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties: {}
examples:
Delete Transaction:
value: {}
responses:
'204':
description: Transaction deleted successfully
content: {}
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
servers:
- url: https://api.swoogo.com/api/v1
description: Production API server
- url: https://local.swoogo.com/api/v1
description: Local API server
components:
headers:
PaginationTotalCount:
schema:
type: integer
description: Total number of items matching the query across all pages.
example: 95
PaginationPerPage:
schema:
type: integer
description: Number of items returned per page.
example: 20
PaginationPageCount:
schema:
type: integer
description: Total number of pages available based on the current `per-page` value.
example: 5
RateLimitLimit:
schema:
type: integer
description: Maximum number of API requests allowed in the current 10-minute window.
example: 2000
PaginationCurrentPage:
schema:
type: integer
description: The current page number in the paginated result set.
example: 1
RateLimitRemaining:
schema:
type: integer
description: Number of requests remaining in the current rate limit window.
example: 1367
RateLimitReset:
schema:
type: integer
description: Number of seconds until the current rate limit window resets.
example: 0
schemas:
ErrorResponse:
type: object
description: Standard error response returned for all 4xx and 5xx status codes.
properties:
name:
type: string
description: Human-readable error type name (e.g., "Unauthorized", "Forbidden", "Not Found").
example: Unauthorized
message:
type: string
description: Detailed error message explaining what went wrong.
example: Your request was made with invalid credentials.
code:
type: integer
description: Application-specific error code. Currently `0` for all standard errors.
example: 0
status:
type: integer
description: HTTP status code of the error response.
example: 401
responses:
NotFound:
description: The specified resource does not exist or has been deleted. Verify the ID is correct and that the resource belongs to an event your credentials have access to.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Not Found
message: The requested resource does not exist.
code: 0
status: 404
Forbidden:
description: The authenticated user does not have permission to access this resource. This can occur if the resource belongs to a different account or the API credentials lack the required scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Forbidden
message: You do not have access to that resource.
code: 0
status: 403
Unauthorized:
description: Authentication failed. The bearer token is missing, expired, or invalid. Obtain a new token via `POST /oauth2/token`.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Unauthorized
message: Your request was made with invalid credentials.
code: 0
status: 401
InternalServerError:
description: An unexpected server error occurred. If this persists, contact Swoogo support with the request details and timestamp.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
name: Internal Server Error
message: An error occurred while processing your request.
code: 0
status: 500
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: access_token
description: OAuth 2.0 bearer token obtained from `POST /oauth2/token`. Tokens expire after 30 minutes. Include in the `Authorization` header as `Bearer {access_token}`.
basicAuth:
type: http
scheme: basic
description: HTTP Basic authentication using your base64-encoded API consumer key and secret. Only used for the `POST /oauth2/token` endpoint to obtain a bearer token.
x-refined-from:
- swoogo-openapi.yml
- swoogo-openapi.yml