Payer Oauth2 API

The Oauth2 API from Payer — 1 operation(s) for oauth2.

Operations 1

POST /oauth2/token POST /oauth2/token #

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/payer:payer-oauth2-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

payer-oauth2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Payer Oauth2 API
  version: '2026-10-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-15: 33 operation(s) read from 12 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; Payer has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 6
    documentation: 27
    pages-with-code: 5
    pages-read: 12
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-15'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.developerhub.io/api/ref
  - https://docs.developerhub.io/api.md?operation=add-reference
  - https://docs.developerhub.io/api.md?operation=publish-reference
  - https://docs.developerhub.io/support-center/api-reference-faq.md
  - https://docs.developerhub.io/support-center/api-reference-settings.md
  - https://docs.developerhub.io/api.md?operation=read-reference-definition
  - https://docs.developerhub.io/support-center/api-key.md
  - https://docs.developerhub.io/api.md?operation=all-project
  - https://docs.developerhub.io/support-center/code-generation.md
  - https://payerdocs.developerhub.io/payer-docs/b2b-invoicing---quickstart
  - https://payerdocs.developerhub.io/payer-docs/events-api-and-subscribing-to-events
  - https://payerdocs.developerhub.io/payer-b2b/ref
servers:
- url: https://b2b.payer.se
security:
- bearer: []
tags:
- name: OAuth2
paths:
  /oauth2/token:
    post:
      operationId: post_oauth2_token
      tags:
      - OAuth2
      summary: POST /oauth2/token
      x-source: https://payerdocs.developerhub.io/payer-b2b/ref
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostOauth2TokenResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST  https://b2b.payer.se/oauth2/token  -H 'Accept: application/json'  -H 'Authorization: Basic <credentials>'  -H 'Content-Type: application/x-www-form-urlencoded'  -d grant_type=client_credentials \n The POST will return a JSON response containing an OAuth2 Bearer token: \n {\n \"access_token\": \"some-very-long-token\",\n \"expires_in\": 3599,\n \"scope\": \"\",\n \"token_type\": \"bearer\"\n} For all othe"
components:
  schemas:
    PostOauth2TokenResponse:
      type: object
      properties:
        access_token:
          type: string
        expires_in:
          type: integer
        scope:
          type: string
        token_type:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer