NexGen Cloud Payment API

Payment endpoints initiate and retrieve payments. Use these to add funds to your account programmatically or to fetch receipts for reconciliation.

Business capability
Payment Collection & Dunning BC-4250.40

Operations 3

GET /billing/payment/payment-details GET: View payment details #
POST /billing/payment/payment-initiate POST: Initiate payment #
GET /billing/payment/receipt/{payment_id} Retrieve Payment Receipt #

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/nexgen-cloud-payment-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

nexgen-cloud-payment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Infrahub Payment API
  version: '1.0'
servers:
- url: https://infrahub-api.nexgencloud.com/v1
security:
- accessToken: []
- apiKey: []
tags:
- name: Payment
paths:
  /billing/payment/payment-details:
    get:
      tags:
      - Payment
      summary: 'GET: View payment details'
      description: Retrieves a list of all payments made within your **organization** and their details, including the amount, payment status, and more. For additional information **click here**.
      operationId: List_payment_details
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Payment_Details_Response'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - accessToken: []
      - apiKey: []
  /billing/payment/payment-initiate:
    post:
      tags:
      - Payment
      summary: 'POST: Initiate payment'
      description: Creates a payment for a specified amount, adding credit to the balance of your **organization**. Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the **Retrieve Payment History** API. For additional information **click here**.
      operationId: Initiate_Payment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Payment_Initiate_Payload'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Payment_Initiate_Response'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - accessToken: []
      - apiKey: []
      x-codegen-request-body-name: payload
  /billing/payment/receipt/{payment_id}:
    get:
      tags:
      - Payment
      summary: Retrieve Payment Receipt
      description: Retrieve the payment receipt from Stripe for a specific payment
      operationId: Get_payment_receipt
      parameters:
      - name: payment_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - accessToken: []
      - apiKey: []
components:
  schemas:
    Payment_Initiate_Response:
      type: object
      properties:
        message:
          type: string
        status:
          type: boolean
        data:
          $ref: '#/components/schemas/Payment_Initiate_Fields'
    Payment_Details_Fields:
      type: object
      properties:
        amount:
          type: number
        tax_amount:
          type: number
        currency:
          type: string
        paid_from:
          type: string
        status:
          type: string
        payment_type:
          type: string
        gateway_response:
          type: string
        description:
          type: string
        transaction_id:
          type: string
        invoice:
          type: string
        payment_id:
          type: string
        auto_topup_id:
          type: integer
        attempt_number:
          type: integer
        max_attempts:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorResponseModel:
      type: object
      properties:
        status:
          type: boolean
          default: false
        message:
          type: string
        error_reason:
          type: string
    Payment_Initiate_Payload:
      type: object
      properties:
        amount:
          type: number
    Payment_Details_Response:
      type: object
      properties:
        message:
          type: string
        status:
          type: boolean
        data:
          type: array
          items:
            $ref: '#/components/schemas/Payment_Details_Fields'
    Payment_Initiate_Fields:
      type: object
      properties:
        payment_id:
          type: string
  securitySchemes:
    accessToken:
      type: apiKey
      description: Bearer Token
      name: Authorization
      in: header
    apiKey:
      type: apiKey
      description: Send it as api_key in header
      name: api_key
      in: header
x-original-swagger-version: '2.0'