Earnipay Payment Details API

The Payment Details API from Earnipay — 2 operation(s) for payment details.

Operations 5

POST /v1/payment-details Create payment detail #
GET /v1/payment-details List payment details #
GET /v1/payment-details/{id} Get payment detail #
PATCH /v1/payment-details/{id} Update payment detail #
DELETE /v1/payment-details/{id} Delete payment detail #

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-payment-details-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-payment-details-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Earnipay Invoicing App Payment Details API
  description: FIRS-compliant e-invoicing platform API
  version: '1.0'
  contact: {}
servers: []
tags:
- name: Payment Details
paths:
  /v1/payment-details:
    post:
      description: Create a reusable payment detail for a business.
      operationId: PaymentDetailController_create_v1
      parameters:
      - name: businessId
        required: true
        in: query
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePaymentDetailDto'
      responses:
        '201':
          description: Payment detail created successfully
      security:
      - JWT-auth: []
      summary: Create payment detail
      tags:
      - Payment Details
    get:
      description: List all payment details for a business with pagination.
      operationId: PaymentDetailController_findAll_v1
      parameters:
      - name: businessId
        required: true
        in: query
        schema:
          type: string
      - name: page
        required: false
        in: query
        schema:
          default: 1
          type: string
      - name: limit
        required: false
        in: query
        schema:
          default: 20
          type: string
      responses:
        '200':
          description: Payment details retrieved successfully
      security:
      - JWT-auth: []
      summary: List payment details
      tags:
      - Payment Details
  /v1/payment-details/{id}:
    get:
      operationId: PaymentDetailController_findOne_v1
      parameters:
      - name: id
        required: true
        in: path
        description: Payment Detail ID
        schema:
          type: string
      responses:
        '200':
          description: Payment detail retrieved successfully
        '404':
          description: Payment detail not found
      security:
      - JWT-auth: []
      summary: Get payment detail
      tags:
      - Payment Details
    patch:
      operationId: PaymentDetailController_update_v1
      parameters:
      - name: id
        required: true
        in: path
        description: Payment Detail ID
        schema:
          type: string
      - name: businessId
        required: true
        in: query
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePaymentDetailDto'
      responses:
        '200':
          description: Payment detail updated successfully
        '404':
          description: Payment detail not found
      security:
      - JWT-auth: []
      summary: Update payment detail
      tags:
      - Payment Details
    delete:
      operationId: PaymentDetailController_remove_v1
      parameters:
      - name: id
        required: true
        in: path
        description: Payment Detail ID
        schema:
          type: string
      - name: businessId
        required: true
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Payment detail deleted successfully
        '404':
          description: Payment detail not found
      security:
      - JWT-auth: []
      summary: Delete payment detail
      tags:
      - Payment Details
components:
  schemas:
    UpdatePaymentDetailDto:
      type: object
      properties:
        label:
          type: string
          description: Label for the payment detail
          example: Company GTBank Account
        type:
          type: string
          description: Payment type
          enum:
          - BANK_TRANSFER
          - MOBILE_MONEY
          - CASH
          - CREDIT_CARD
          - OTHER
        details:
          type: object
          description: Payment details as JSON object
        isDefault:
          type: boolean
          description: Whether this is the default payment detail
    CreatePaymentDetailDto:
      type: object
      properties:
        label:
          type: string
          description: Label for the payment detail
          example: Company Access Bank Account
        type:
          type: string
          description: Payment type
          enum:
          - BANK_TRANSFER
          - MOBILE_MONEY
          - CASH
          - CREDIT_CARD
          - OTHER
          example: BANK_TRANSFER
        details:
          type: object
          description: Payment details as JSON object
          example:
            accountName: John Doe Enterprises
            accountNumber: 0909082892
            bankName: Access Bank
        isDefault:
          type: boolean
          description: Whether this is the default payment detail for the business
          default: false
      required:
      - label
      - type
      - details
  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