Swoogo Session Fees API

Manage pricing for individual sessions, including early bird rates.

GitHub OpenAPI

Operations 3

GET /sessions/{session_id}/fee Get session fee configuration #
PUT /sessions/{session_id}/fee Update session fee configuration #
DELETE /sessions/{session_id}/fee Remove session fee #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/swoogo:swoogo-session-fees-api"
All apis
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.

Get an API 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 Specification

swoogo-session-fees-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swoogo Session Fees 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 Session Fees 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: Session Fees
  description: Manage pricing for individual sessions, including early bird rates.
paths:
  /sessions/{session_id}/fee:
    get:
      tags:
      - Session Fees
      summary: Get session fee configuration
      description: 'Retrieve the current fee configuration for a specific session, including base price and conditional pricing.


        **Note:** Only standard conditional pricing is exposed through the API. Early bird pricing is not accessible.'
      operationId: getSessionFee
      parameters:
      - name: session_id
        in: path
        required: true
        description: The unique identifier of the session
        schema:
          type: integer
          minimum: 1
        example: 73
      responses:
        '200':
          description: Session fee configuration retrieved successfully
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/FeeResponse'
                - type: object
                  properties:
                    session_id:
                      type: integer
                      description: The session ID this fee belongs to
                      example: 73
                  required:
                  - session_id
              examples:
                sessionFee:
                  summary: Session fee with conditional pricing
                  value:
                    id: 124
                    session_id: 73
                    price: '20.00'
                    conditional_prices:
                      '76': '10.00'
                      '77': '5.00'
        '404':
          $ref: '#/components/responses/ParentNotFound'
    put:
      tags:
      - Session Fees
      summary: Update session fee configuration
      description: 'Update the fee configuration for a specific session. You can update the base price and/or conditional pricing.


        **Important Notes:**

        - Only existing conditional pricing keys can be updated

        - Non-existent keys are silently ignored

        - Empty strings can be used to clear specific conditional prices

        - Early bird pricing cannot be modified through this API'
      operationId: updateSessionFee
      parameters:
      - name: session_id
        in: path
        required: true
        description: The unique identifier of the session
        schema:
          type: integer
          minimum: 1
        example: 73
      requestBody:
        description: Fee configuration to update
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FeeUpdateRequest'
            examples:
              updatePriceOnly:
                $ref: '#/components/examples/updatePriceOnly'
              updateConditionalPricesOnly:
                $ref: '#/components/examples/updateConditionalPricesOnly'
              updateBothPriceAndConditional:
                $ref: '#/components/examples/updateBothPriceAndConditional'
              partialConditionalUpdate:
                $ref: '#/components/examples/partialConditionalUpdate'
              clearSpecificConditionalPrices:
                $ref: '#/components/examples/clearSpecificConditionalPrices'
              mixedConditionalOperations:
                $ref: '#/components/examples/mixedConditionalOperations'
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                price:
                  type: string
                  format: decimal
                  example: '25.00'
                conditional_prices[76]:
                  type: string
                  format: decimal
                  example: '15.00'
                conditional_prices[77]:
                  type: string
                  format: decimal
                  example: '8.00'
      responses:
        '200':
          description: Session fee updated successfully
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/FeeResponse'
                - type: object
                  properties:
                    session_id:
                      type: integer
                      description: The session ID this fee belongs to
                      example: 73
                  required:
                  - session_id
              examples:
                updatePriceOnly:
                  $ref: '#/components/examples/updatePriceOnly'
                updateConditionalPricesOnly:
                  $ref: '#/components/examples/updateConditionalPricesOnly'
                updateBothPriceAndConditional:
                  $ref: '#/components/examples/updateBothPriceAndConditional'
                partialConditionalUpdate:
                  $ref: '#/components/examples/partialConditionalUpdate'
                clearSpecificConditionalPrices:
                  $ref: '#/components/examples/clearSpecificConditionalPrices'
                mixedConditionalOperations:
                  $ref: '#/components/examples/mixedConditionalOperations'
        '404':
          $ref: '#/components/responses/ParentNotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
    delete:
      tags:
      - Session Fees
      summary: Remove session fee
      description: 'Remove the fee for a specific session, effectively making it free. This sets the base price to 0 and clears all conditional pricing.


        **Note:** This operation cannot be undone through the API. The fee will need to be reconfigured manually if pricing needs to be restored.'
      operationId: deleteSessionFee
      parameters:
      - name: session_id
        in: path
        required: true
        description: The unique identifier of the session
        schema:
          type: integer
          minimum: 1
        example: 73
      responses:
        '200':
          description: Session fee removed successfully (session is now free)
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/FeeResponse'
                - type: object
                  properties:
                    session_id:
                      type: integer
                      description: The session ID this fee belongs to
                      example: 73
                    price:
                      type: string
                      example: '0'
                    conditional_prices:
                      type: object
                      description: All conditional prices are cleared (empty strings)
                      example:
                        '76': ''
                        '77': ''
                  required:
                  - session_id
              examples:
                removedFee:
                  summary: Session fee removed (now free)
                  value:
                    id: 124
                    session_id: 73
                    price: '0'
                    conditional_prices:
                      '76': ''
                      '77': ''
        '404':
          $ref: '#/components/responses/ParentNotFound'
    servers:
    - url: https://api.swoogo.com/api/v1
      description: Production API server
    - url: https://local.swoogo.com/api/v1
      description: Local API server
components:
  examples:
    partialConditionalUpdate:
      summary: Update only specific conditional prices (others preserved)
      value:
        conditional_prices:
          '76': '18.00'
    updatePriceOnly:
      summary: Update base price only
      value:
        price: '25.00'
    mixedConditionalOperations:
      summary: Mix of updating, clearing, and preserving conditional prices
      value:
        price: '30.00'
        conditional_prices:
          '76': '15.00'
          '77': ''
    updateBothPriceAndConditional:
      summary: Update both base price and conditional prices
      value:
        price: '50.00'
        conditional_prices:
          '76': '20.00'
          '77': '15.00'
          '78': '12.50'
    clearSpecificConditionalPrices:
      summary: Clear specific conditional prices with empty strings
      value:
        conditional_prices:
          '76': ''
          '77': '10.00'
    updateConditionalPricesOnly:
      summary: Update conditional prices only
      value:
        conditional_prices:
          '76': '15.00'
          '77': '10.00'
  responses:
    ParentNotFound:
      description: Session or package not found
      content:
        application/json:
          schema:
            type: object
            properties:
              name:
                type: string
                example: Not Found
              message:
                type: string
                example: 'Object not found: 73'
              code:
                type: integer
                example: 0
              status:
                type: integer
                example: 404
    ValidationError:
      description: Data validation failed
      content:
        application/json:
          schema:
            type: object
            properties:
              name:
                type: string
                example: Unprocessable Entity
              message:
                type: string
                example: Data Validation Failed.
              code:
                type: integer
                example: 0
              status:
                type: integer
                example: 422
              errors:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
                example:
                  conditional_prices:
                  - 'Conditional price for key ''77'' must be a valid number. Got: ''8s'''
  schemas:
    FeeUpdateRequest:
      type: object
      properties:
        price:
          type: string
          format: decimal
          description: The base price for the session/package
          minimum: 0
          maximum: 999999999
          example: '20.00'
        conditional_prices:
          type: object
          description: Conditional pricing based on registration field selections. Only existing keys can be updated.
          additionalProperties:
            type: string
            format: decimal
          example:
            '76': '10.00'
            '77': '5.00'
    FeeResponse:
      type: object
      properties:
        id:
          type: integer
          description: The unique identifier of the fee
          example: 124
        session_id:
          type: integer
          description: The session ID (only present for session fees)
          example: 73
        package_id:
          type: integer
          description: The package ID (only present for package fees)
          example: 2
        price:
          type: string
          format: decimal
          description: The base price for the session/package
          example: '20.00'
        conditional_prices:
          type: object
          description: Conditional pricing based on registration field selections
          additionalProperties:
            type: string
            format: decimal
          example:
            '76': '10.00'
            '77': '5.00'
      required:
      - id
      - price
      - conditional_prices
  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