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

# Reject Payment

> Reject a pending payment transaction. Optionally provide a reason for rejection.

Reject a pending payment transaction. This endpoint allows you to cancel a payment that was initiated but not yet confirmed.

## Overview

Use this endpoint to reject a payment that is in pending status. This is useful if you need to cancel a payment before it's executed.

## Request Body

<ParamField body="reason" type="string">
  Optional reason for rejecting the payment
</ParamField>

## Response

Returns a success response indicating the payment has been rejected.


## OpenAPI

````yaml POST /payments/reject
openapi: 3.0.0
info:
  title: Pooler Developer API
  description: >-
    Comprehensive API documentation for Pooler payment and financial services
    platform
  version: 1.0.0
servers:
  - url: https://api.usepooler.com
    description: Production server
  - url: https://sandbox.usepooler.com
    description: Sandbox server
security:
  - bearerAuth: []
paths:
  /payments/reject:
    post:
      tags:
        - Payments
      summary: Reject Payment
      description: >-
        Reject a pending payment transaction. Optionally provide a reason for
        rejection.
      operationId: rejectPayment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RejectPaymentRequest'
      responses:
        '200':
          description: Payment rejected successfully
components:
  schemas:
    RejectPaymentRequest:
      type: object
      properties:
        reason:
          type: string
          description: Reason for rejecting the payment
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token authentication. Include your API key in the Authorization
        header as: Bearer {your_api_key}

````