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

# Get one of a customer's payments



## OpenAPI

````yaml /api-reference/openapi.json get /api/v3/partners/{shortName}/customers/{externalUserId}/payments/{reference}
openapi: 3.0.0
info:
  title: Ndovu Partner API
  description: API for partners distributing Ndovu investment products to their customers.
  version: '3'
  contact: {}
servers:
  - url: https://be-dev-1.dev.ndovu.co
    description: Development
security: []
tags: []
paths:
  /api/v3/partners/{shortName}/customers/{externalUserId}/payments/{reference}:
    get:
      tags:
        - partners
      summary: Get one of a customer's payments
      operationId: PartnerMoneyController_getPayment_v3
      parameters:
        - name: shortName
          required: true
          in: path
          description: Your partner short name
          schema:
            type: string
        - name: externalUserId
          required: true
          in: path
          description: Your own ID for the customer
          schema:
            type: string
        - name: reference
          required: true
          in: path
          description: The payment reference, e.g. NDV7F3K9Q
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerPaymentDetailDto'
        '404':
          description: CUSTOMER_NOT_FOUND or PAYMENT_NOT_FOUND
      security:
        - bearer: []
components:
  schemas:
    PartnerPaymentDetailDto:
      type: object
      properties:
        reference:
          type: string
          example: NDV7F3K9Q
          description: >-
            The PaymentReference. For a bank transfer, quote it as the transfer
            memo
        channel:
          type: string
          enum:
            - MPESA
            - BANK_TRANSFER
        amount:
          type: number
          example: 5000
        finalAmount:
          type: number
          example: 5000
          description: The amount to pay
        currency:
          type: string
          example: KES
        status:
          enum:
            - PENDING
            - COMPLETED
            - FAILED
          type: string
        mnoReference:
          type: string
          nullable: true
          description: The M-Pesa receipt
        bankReference:
          type: string
          nullable: true
          description: The bank's own transaction id, once reconciled
        phoneNumber:
          type: string
          nullable: true
          example: +2547...5678
          description: The paying number, redacted (M-Pesa)
        plan:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PartnerPlanRefDto'
        transactionId:
          type: number
          nullable: true
          description: >-
            The Transaction this Payment funds. Null until the Payment is
            COMPLETED, when the Transaction is created
        createdAt:
          format: date-time
          type: string
        completedAt:
          format: date-time
          type: string
          nullable: true
        bankDetails:
          nullable: true
          description: >-
            Where to send a bank transfer. Only while a BANK_TRANSFER Payment is
            PENDING
          allOf:
            - $ref: '#/components/schemas/PartnerBankDetailsDto'
      required:
        - reference
        - channel
        - amount
        - finalAmount
        - currency
        - status
        - createdAt
    PartnerPlanRefDto:
      type: object
      properties:
        id:
          type: number
          example: 12
        name:
          type: string
          example: Ndovu Money Market Fund
      required:
        - id
        - name
    PartnerBankDetailsDto:
      type: object
      properties:
        bankName:
          type: string
        bankBranch:
          type: string
        accountName:
          type: string
        accountNumber:
          type: string
        swiftCode:
          type: string
          nullable: true
      required:
        - bankName
        - bankBranch
        - accountName
        - accountNumber
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.