Recurly SwapAndAddOnOptions API

The SwapAndAddOnOptions API API from Recurly — 1 operation(s) for swapandaddonoptions api.

GitHub OpenAPI

Operations 1

GET /api/v1/swapAndAddOnOptions List Swap And Add On Options #

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/recurly:recurly-swapandaddonoptions-api-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

recurly-swapandaddonoptions-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Recurly Commerce API Documentation SwapAndAddOnOptions API
  description: Recurly Commerce API Documentation
  version: '1.3'
  contact: {}
servers:
- url: https://subs.api.recurlycommerce.com
tags:
- name: SwapAndAddOnOptions API
paths:
  /api/v1/swapAndAddOnOptions:
    get:
      operationId: listSwapAndAddOnOptions
      summary: List Swap And Add On Options
      description: Retrieve a list of swap and add-on options
      parameters:
      - name: page
        required: true
        in: query
        description: Page number
        schema:
          default: 1
          type: number
      - name: limit
        required: true
        in: query
        description: Items per page. Limit must be between 1 and 250.
        schema:
          default: 10
          type: number
      - name: sort
        required: false
        in: query
        description: Sort order. If not set, default is createdAt.
        schema:
          type: string
      - name: desc
        required: false
        in: query
        description: Sort direction. If not set, default is ASC.
        schema:
          type: boolean
      - name: minCreatedAt
        required: false
        in: query
        description: The min date of createdAt
        schema:
          format: date-time
          default: '2023-01-01T00:00:00.000Z'
          type: string
      - name: maxCreatedAt
        required: false
        in: query
        description: The max date of createdAt
        schema:
          format: date-time
          default: '2023-01-01T00:00:00.000Z'
          type: string
      - name: minUpdatedAt
        required: false
        in: query
        description: The min date of updatedAt
        schema:
          format: date-time
          default: '2023-01-01T00:00:00.000Z'
          type: string
      - name: maxUpdatedAt
        required: false
        in: query
        description: The min date of updatedAt
        schema:
          format: date-time
          default: '2023-01-01T00:00:00.000Z'
          type: string
      - name: includeDeleted
        required: false
        in: query
        description: If true, include deleted lines
        schema:
          default: false
          type: boolean
      - name: subscriptionId
        required: false
        in: query
        description: The subscription ID
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved swap and add-on options
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SwapAndAddOnOptionsResultDto'
      security:
      - bearer: []
      tags:
      - SwapAndAddOnOptions API
components:
  schemas:
    ProductForVariantDto:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        externalId:
          type: string
          description: The shopify product ID
        imageUrl:
          type:
          - string
          - 'null'
        productTitle:
          type:
          - string
          - 'null'
        description:
          type:
          - string
          - 'null'
      required:
      - id
      - createdAt
      - updatedAt
      - externalId
      - imageUrl
      - productTitle
      - description
    SubscriptionOfferDto:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        externalId:
          type: string
          description: The shopify selling plan group ID
        type:
          type: string
          enum:
          - ONETIME_AND_SUBSCRIPTION
          - ONE_TIME_AND_PREPAID_SUBSCRIPTION
          - SUBSCRIPTION_ONLY
          - PREPAID_SUBSCRIPTION_ONLY
          - ONETIME_AND_SUBSCRIPTION_AND_PREPAID
          - SUBSCRIPTION_AND_PREPAID
          - MEMBERSHIP
        status:
          type: string
          enum:
          - ACTIVE
          - ARCHIVED
          - DRAFT
        name:
          type: string
        description:
          type:
          - string
          - 'null'
        subscriptionOfferOptions:
          type: array
          items:
            $ref: '#/components/schemas/SubscriptionOfferOptionDto'
        cancellationFlowId:
          type:
          - string
          - 'null'
          description: The ID of the associated cancellation flow, if any
        trialDurationValue:
          type:
          - number
          - 'null'
        trialDurationUnit:
          type:
          - string
          - 'null'
          enum:
          - DAYS
          - WEEKS
          - MONTHS
          - YEARS
          - null
      required:
      - id
      - createdAt
      - updatedAt
      - externalId
      - type
      - status
      - name
      - description
      - subscriptionOfferOptions
      - trialDurationValue
      - trialDurationUnit
    VariantsEntryPointVisibilityDto:
      type: object
      properties:
        variantExternalId:
          type: string
          description: The shopify id of the variant
        entryPointVisibility:
          type: array
          items:
            type: string
            enum:
            - PRODUCT_SWAP
            - SUBSCRIPTION_ADD_ON
            - ONE_TIME_ADD_ON
      required:
      - variantExternalId
      - entryPointVisibility
    SwapAndAddOnOptionsResultDto:
      type: object
      properties:
        page:
          type: number
          description: Current page number
        limit:
          type: number
          description: Number of items per page
        totalItems:
          type: number
          description: Total number of items
        totalPages:
          type: number
          description: Total number of pages
        swapAndAddOnOptions:
          description: Array of swap and add-on options for the current page
          type: array
          items:
            $ref: '#/components/schemas/SwapAndAddOnOptionDto'
      required:
      - page
      - limit
      - totalItems
      - totalPages
      - swapAndAddOnOptions
    SubscriptionOfferOptionDto:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        externalId:
          type: string
          description: The shopify selling plan ID
        type:
          type:
          - string
          - 'null'
          enum:
          - ONETIME_AND_SUBSCRIPTION
          - ONE_TIME_AND_PREPAID_SUBSCRIPTION
          - SUBSCRIPTION_ONLY
          - PREPAID_SUBSCRIPTION_ONLY
          - ONETIME_AND_SUBSCRIPTION_AND_PREPAID
          - SUBSCRIPTION_AND_PREPAID
          - MEMBERSHIP
          - null
        name:
          type: string
        deliveryCadenceCount:
          type: number
        deliveryCadenceUnit:
          type: string
          enum:
          - HOUR
          - DAY
          - MONTH
          - WEEK
          - YEAR
        billingCadenceCount:
          type: number
        billingCadenceUnit:
          type: string
          enum:
          - HOUR
          - DAY
          - MONTH
          - WEEK
          - YEAR
        discount:
          type: number
        discountModifier:
          type: string
          enum:
          - PERCENTAGE
          - AMOUNT
          - FIXED_AMOUNT
        archived:
          type: boolean
      required:
      - id
      - createdAt
      - updatedAt
      - externalId
      - type
      - name
      - deliveryCadenceCount
      - deliveryCadenceUnit
      - billingCadenceCount
      - billingCadenceUnit
      - discount
      - discountModifier
      - archived
    SwapAndAddOnOptionDto:
      type: object
      properties:
        id:
          type: string
          description: ID of the SwapAndAddOnOption
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        subscriptionOfferId:
          type: string
        product:
          $ref: '#/components/schemas/ProductDto'
        entryPointVisibility:
          type: array
          items:
            type: string
            enum:
            - PRODUCT_SWAP
            - SUBSCRIPTION_ADD_ON
            - ONE_TIME_ADD_ON
        variantsEntryPointVisibility:
          type: array
          items:
            $ref: '#/components/schemas/VariantsEntryPointVisibilityDto'
        oneTimeAddOnDiscountModifierType:
          type: string
          enum:
          - PERCENTAGE
          - AMOUNT
          - FIXED_AMOUNT
        oneTimeAddOnDiscount:
          type: number
      required:
      - id
      - createdAt
      - updatedAt
      - subscriptionOfferId
      - product
      - entryPointVisibility
      - variantsEntryPointVisibility
    ProductDto:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        externalId:
          type: string
          description: The shopify product ID
        status:
          type: string
          enum:
          - ACTIVE
          - ARCHIVED
          - DRAFT
          - DELETED
          - UNLISTED
        imageUrl:
          type:
          - string
          - 'null'
        productTitle:
          type:
          - string
          - 'null'
        description:
          type:
          - string
          - 'null'
        variants:
          allOf:
          - $ref: '#/components/schemas/VariantDto'
        subscriptionOffer:
          $ref: '#/components/schemas/SubscriptionOfferDto'
      required:
      - id
      - createdAt
      - updatedAt
      - externalId
      - status
      - imageUrl
      - productTitle
      - description
      - variants
    VariantDto:
      type: object
      properties:
        id:
          type: string
        externalId:
          type: string
          description: The shopify variant ID
        status:
          type: string
          enum:
          - ACTIVE
          - DELETED
        currentPrice:
          type: number
        variantTitle:
          type: string
        sku:
          type:
          - string
          - 'null'
        requiresShipping:
          type: boolean
        product:
          allOf:
          - $ref: '#/components/schemas/ProductForVariantDto'
        subscriptionOffer:
          $ref: '#/components/schemas/SubscriptionOfferDto'
      required:
      - id
      - externalId
      - status
      - currentPrice
      - variantTitle
      - sku
      - requiresShipping
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
x-readme:
  explorer-enabled: false