> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nexapay.ng/llms.txt
> Use this file to discover all available pages before exploring further.

# Process External Payment (Legacy)

> Legacy route matching the functionality of `/process`. Records a payment collection from an external payer.

Legacy route matching the functionality of `/process`. Records a payment collection from an external payer.


## OpenAPI

````yaml POST /process/external
openapi: 3.0.0
info:
  title: NexaPay Business API
  version: 1.0.0
  description: Server-to-server merchant integration API documentation.
servers:
  - url: https://api.nexapay.ng/api/v1/business
    description: Production Server
security: []
tags: []
paths:
  /process/external:
    post:
      tags:
        - Transfers
      summary: Record business collection payment (Legacy Alias)
      description: >-
        Legacy route matching the functionality of `/process`. Records a payment
        collection from an external payer.
      parameters:
        - $ref: '#/components/parameters/BusinessEnvHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                businessId:
                  type: string
                  description: Unique business ID.
                amount:
                  type: number
                  description: The transaction amount.
                externalPayerName:
                  type: string
                  description: The name of the payer.
                payerName:
                  type: string
                  description: Alternative name parameter for the payer.
                externalPayerId:
                  type: string
                externalPayerEmail:
                  type: string
                payerEmail:
                  type: string
                externalPayerPhone:
                  type: string
                payerPhone:
                  type: string
                payerMetadata:
                  type: object
                serviceType:
                  type: string
                description:
                  type: string
              required:
                - businessId
                - amount
      responses:
        '200':
          description: Payment recorded.
      security:
        - ApiKeyAuth: []
components:
  parameters:
    BusinessEnvHeader:
      name: x-business-env
      in: header
      required: false
      schema:
        type: string
        enum:
          - prod
          - test
        default: prod
      description: Target environment selector (live production vs. simulated sandbox).
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Merchant API Key (e.g., nexa-prod-... or nexa-test-...)

````