Swoogo Package Fees API
Manage pricing for packages, including early bird rates.
Manage pricing for packages, including early bird rates.
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-package-fees-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 Package 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 Package 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: Package Fees
description: Manage pricing for packages, including early bird rates.
paths:
/packages/{package_id}/fee:
get:
tags:
- Package Fees
summary: Get package fee configuration
description: 'Retrieve the current fee configuration for a specific package, including base price and conditional pricing.
**Note:** Only standard conditional pricing is exposed through the API. Early bird pricing is not accessible.'
operationId: getPackageFee
parameters:
- name: package_id
in: path
required: true
description: The unique identifier of the package
schema:
type: integer
minimum: 1
example: 2
responses:
'200':
description: Package fee configuration retrieved successfully
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/FeeResponse'
- type: object
properties:
package_id:
type: integer
description: The package ID this fee belongs to
example: 2
required:
- package_id
examples:
packageFee:
summary: Package fee with conditional pricing
value:
id: 124
package_id: 2
price: '20.00'
conditional_prices:
'76': '10.00'
'77': '5.00'
'404':
$ref: '#/components/responses/ParentNotFound'
put:
tags:
- Package Fees
summary: Update package fee configuration
description: 'Update the fee configuration for a specific package. 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: updatePackageFee
parameters:
- name: package_id
in: path
required: true
description: The unique identifier of the package
schema:
type: integer
minimum: 1
example: 2
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: Package fee updated successfully
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/FeeResponse'
- type: object
properties:
package_id:
type: integer
description: The package ID this fee belongs to
example: 2
required:
- package_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:
- Package Fees
summary: Remove package fee
description: 'Remove the fee for a specific package, 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: deletePackageFee
parameters:
- name: package_id
in: path
required: true
description: The unique identifier of the package
schema:
type: integer
minimum: 1
example: 2
responses:
'200':
description: Package fee removed successfully (package is now free)
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/FeeResponse'
- type: object
properties:
package_id:
type: integer
description: The package ID this fee belongs to
example: 2
price:
type: string
example: '0'
conditional_prices:
type: object
description: All conditional prices are cleared (empty strings)
example:
'76': ''
'77': ''
required:
- package_id
examples:
removedFee:
summary: Package fee removed (now free)
value:
id: 124
package_id: 2
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