Earnipay IRN Generator API

Generate FIRS-compliant Invoice Reference Numbers

Operations 1

POST /v1/irn-generator/generate Generate Invoice Reference Number (IRN) #

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/earnipay-irn-generator-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 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

earnipay-irn-generator-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Earnipay Invoicing App IRN Generator API
  description: FIRS-compliant e-invoicing platform API
  version: '1.0'
  contact: {}
servers: []
tags:
- name: IRN Generator
  description: Generate FIRS-compliant Invoice Reference Numbers
paths:
  /v1/irn-generator/generate:
    post:
      description: 'Generate a FIRS-compliant IRN from invoice number, service ID, and issue date. Format: {InvoiceNumber}-{ServiceID}-{YYYYMMDD}'
      operationId: IrnGeneratorController_generateIRN_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateIrnDto'
      responses:
        '200':
          description: IRN generated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateIrnResponse'
        '400':
          description: Bad Request - Invalid invoice number or service ID format
        '401':
          description: Unauthorized
      security:
      - JWT-auth: []
      summary: Generate Invoice Reference Number (IRN)
      tags:
      - IRN Generator
components:
  schemas:
    GenerateIrnDto:
      type: object
      properties:
        invoiceNumber:
          type: string
          description: Preferred invoice number (alphanumeric, no special characters)
          example: INV0001
        serviceId:
          type: string
          description: FIRS Service ID (8 alphanumeric characters)
          example: 94ND90NR
        issueDate:
          type: string
          description: Invoice issuance date (ISO 8601 format)
          example: '2024-06-11T00:00:00.000Z'
      required:
      - invoiceNumber
      - serviceId
      - issueDate
    GenerateIrnResponse:
      type: object
      properties:
        irn:
          type: string
          description: Generated Invoice Reference Number
          example: INV0001-94ND90NR-20240611
        components:
          type: object
          description: Components of the IRN
          example:
            invoiceNumber: INV0001
            serviceId: 94ND90NR
            datestamp: '20240611'
      required:
      - irn
      - components
  securitySchemes:
    JWT-auth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      name: JWT
      description: Enter JWT token
      in: header
    API-Key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for third-party integrations