Recur Products API

Products - list the available products (subscription plans, one-time purchases and so on)

GitHub OpenAPI

Operations 2

GET /products List products #
GET /products/by-slug/{slug} Retrieve a product by slug #

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/recur-tw:recur-tw-products-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

recur-tw-products-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Recur Products API
  version: 1.0.0
  description: 'Recur is a subscription billing REST API for the Taiwan market. Amounts are whole-number TWD: 499 means NT$499, never cents.


    ## Authentication


    Recur uses API keys, in two kinds:


    - **Secret key** (`sk_xxx`): server side, full access

    - **Publishable key** (`pk_xxx`): client side, limited access


    ### Environments


    | Environment | Key prefix | Use |

    |-------------|-----------|-----|

    | Sandbox | `sk_test_` / `pk_test_` | testing |

    | Production | `sk_live_` / `pk_live_` | live payments |


    ### Sending the key


    Put the key in the request header:


    ```

    Authorization: Bearer sk_test_xxx

    ```


    or use the dedicated headers:


    ```

    X-Recur-Secret-Key: sk_test_xxx

    X-Recur-Publishable-Key: pk_test_xxx

    ```


    ## Field naming


    Every REST response is snake_case: the v1 app runs the whole response through a conversion step, so `expires_at`, not `expiresAt`. Requests accept either case and are normalized on the way in; the request examples below use camelCase. The official SDK converts responses back to camelCase, so its types are camelCase and this spec is not.'
  contact:
    name: Recur Support
    email: support@recur.tw
    url: https://recur.tw
  license:
    name: Elastic License 2.0
    url: https://www.elastic.co/licensing/elastic-license
servers:
- url: https://api.recur.tw/v1
  description: Production
- url: http://localhost:3000/api/v1
  description: Development
security:
- SecretKey: []
- SecretKeyHeader: []
- PublishableKey: []
- OAuth2:
  - openid
  - products:read
  - orders:read
  - subscriptions:read
  - customers:read
  - analytics:read
tags:
- name: Products
  description: Products - list the available products (subscription plans, one-time purchases and so on)
paths:
  /products:
    get:
      summary: List products
      description: 'List every available product in the organization.

        Filter by product type with the `type` parameter.'
      operationId: listProducts
      tags:
      - Products
      security:
      - PublishableKey: []
      parameters:
      - name: type
        in: query
        required: false
        description: Filter by product type
        schema:
          type: string
          enum:
          - SUBSCRIPTION
          - ONE_TIME
          - CREDITS
          - DONATION
          example: SUBSCRIPTION
      responses:
        '200':
          description: Product list
          content:
            application/json:
              schema:
                type: object
                required:
                - object
                - data
                - livemode
                properties:
                  object:
                    type: string
                    enum:
                    - list
                    description: Always `"list"`
                  data:
                    type: array
                    items:
                      allOf:
                      - type: object
                        properties:
                          object:
                            type: string
                            enum:
                            - product
                            description: Always `"product"`
                      - $ref: '#/components/schemas/Product'
                  livemode:
                    type: boolean
                    description: Whether this is the production environment
  /products/by-slug/{slug}:
    get:
      summary: Retrieve a product by slug
      description: Retrieve a single product by its URL slug
      operationId: getProductBySlug
      tags:
      - Products
      security:
      - PublishableKey: []
      parameters:
      - name: slug
        in: path
        required: true
        description: The product's URL slug
        schema:
          type: string
          example: monthly-plan
      responses:
        '200':
          description: Product details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
        '404':
          description: Product not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - invalid_request
              - resource_not_found
              - unauthorized
              - forbidden
              - internal_error
              description: Error code
            message:
              type: string
              description: Error message
            details:
              type: object
              additionalProperties: true
              description: Additional error details
    Product:
      type: object
      required:
      - id
      - name
      - type
      - price
      - currency
      properties:
        id:
          type: string
          description: Product ID
          example: cmfxq8n2a0001l8yz3k5p9t7d
        name:
          type: string
          description: Product name
          example: 專業版月訂閱
        slug:
          type: string
          description: URL slug
          example: pro-monthly
        description:
          type: string
          nullable: true
          description: Product description
        type:
          type: string
          enum:
          - SUBSCRIPTION
          - ONE_TIME
          - CREDITS
          - DONATION
          description: 'Product type:

            - `SUBSCRIPTION`: recurring billing

            - `ONE_TIME`: single charge

            - `CREDITS`: prepaid credit pack

            - `DONATION`: donation

            '
          example: SUBSCRIPTION
        billing_period:
          type: string
          enum:
          - WEEKLY
          - MONTHLY
          - YEARLY
          - ONE_TIME
          - CUSTOM
          nullable: true
          description: Billing period (subscription products only)
          example: MONTHLY
        price:
          type: integer
          description: 'Price. TWD is a whole-number integer: 499 means NT$499, not cents'
          example: 499
        currency:
          type: string
          default: TWD
          example: TWD
        trial_days:
          type: integer
          nullable: true
          description: Trial days (subscription products only)
          example: 14
        metadata:
          type: object
          additionalProperties: true
          nullable: true
          description: Product metadata
        product_family:
          type: string
          nullable: true
          description: Product family, for grouping related products
          example: pro
        display_order:
          type: integer
          description: Display order
          default: 0
  securitySchemes:
    SecretKey:
      type: http
      scheme: bearer
      description: 'Secret API key (`sk_xxx`) - server side, full access. Can set metadata.

        '
    PublishableKey:
      type: apiKey
      in: header
      name: X-Recur-Publishable-Key
      description: 'Publishable API key (`pk_xxx`) - client side, limited access. Cannot set metadata.

        '
    OAuth2:
      type: oauth2
      description: 'OAuth 2.1 (Authorization Code + PKCE) for AI agents and MCP clients.

        Used by the Recur MCP server (https://mcp.recur.tw) so agents can request

        least-privilege, scoped access on behalf of a user. Human-facing API

        integrations should use `SecretKey`/`PublishableKey` instead.


        Discovery: https://app.recur.tw/.well-known/openid-configuration

        '
      flows:
        authorizationCode:
          authorizationUrl: https://app.recur.tw/api/auth/oauth2/authorize
          tokenUrl: https://app.recur.tw/api/auth/oauth2/token
          refreshUrl: https://app.recur.tw/api/auth/oauth2/token
          scopes:
            openid: OpenID Connect authentication.
            profile: Read the user's basic profile.
            email: Read the user's email address.
            org:read: Read organization details.
            api-keys:read: List and read API keys.
            api-keys:write: Create and revoke API keys.
            products:read: Read products and pricing.
            products:write: Create and update products.
            integration:verify: Verify integration and connection status.
            orders:read: Read orders and payment history.
            subscriptions:read: Read subscriptions and their schedules.
            customers:read: Read customer records.
            analytics:read: Read revenue analytics (MRR, ARR, churn, LTV).
    SecretKeyHeader:
      type: apiKey
      in: header
      name: X-Recur-Secret-Key
      description: 'Header form of the secret API key (`sk_xxx`); equivalent to `Authorization: Bearer sk_xxx`.

        '