Smart Pension Company Rules API

The CompanyRules API from Smart Pension — 1 operation(s) for companyrules.

Operations 1

GET /companies/{company_id}/company_rules Companies/CompanyRules/Get

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/smart-pension-companyrules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

smart-pension-companyrules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Keystone Company Rules API
  version: v12
  description: This is the endpoint description of Keystone API.
servers:
- url: https://api.sandbox.autoenrolment.co.uk
- url: /
tags:
- name: CompanyRules
paths:
  /companies/{company_id}/company_rules:
    get:
      summary: Companies/CompanyRules/Get
      tags:
      - CompanyRules
      security:
      - oAuth2:
        - customer
      parameters:
      - name: company_id
        in: path
        required: true
        example: 135
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              examples:
                success:
                  value:
                    scheme_detail_display_name: Test Name
                    enrolment_type: null
                    employee_percentage: null
                    employer_percentage: null
                    tax_relief_basis_type: true
                    salary_sacrifice_consent_type: express
                    national_insurance_saving_share: 10
                    how_employee_amend_their_contribution: Test response 1
                    any_other_restrictions: Test response 2
                    how_often_employee_amend_contributions: Test response 3
              schema:
                $ref: '#/components/schemas/response_company_rules'
        '401':
          description: Unauthorized
          content:
            text/plain:
              examples:
                unauthorized:
                  value: 'HTTP Token: Access denied.

                    '
        '404':
          description: Not Found
          content:
            text/html:
              examples:
                not_found:
                  value: ''
components:
  schemas:
    response_company_rules:
      type: object
      properties:
        scheme_detail_display_name:
          type:
          - string
          - 'null'
        enrolment_type:
          type:
          - string
          - 'null'
        employee_percentage:
          type:
          - number
          - 'null'
          format: float
        employer_percentage:
          type:
          - number
          - 'null'
          format: float
        tax_relief_basis_type:
          type:
          - boolean
          - 'null'
        salary_sacrifice_consent_type:
          type:
          - string
          - 'null'
        national_insurance_saving_share:
          type:
          - number
          - 'null'
          format: float
        how_employee_amend_their_contribution:
          type:
          - string
          - 'null'
        any_other_restrictions:
          type:
          - string
          - 'null'
        how_often_employee_amend_contributions:
          type:
          - string
          - 'null'
  securitySchemes:
    oAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://id.sandbox.autoenrolment.co.uk/oauth/authorize
          tokenUrl: https://id.sandbox.autoenrolment.co.uk/oauth/token
          scopes:
            customer: 'Manage the customer''s company.

              - Create postponements

              - Create and import contributions

              - Edit company details

              - Add and edit employees'
            user: 'Manage all companies linked to the user''s adviser.

              - Manage adviser details

              - Add and edit adviser''s users

              - Create and import contributions for any company managed by the adviser'
            employee: 'Manage the employee account.

              - List employee contributions

              - Edit employee details and preferences'
x-samples-languages:
- curl
x-proxy-enabled: false