---
title: PaymentSessionRejectionReasonInput - Payments Apps API
description: The input fields for the reason why the payment was rejected.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/payments-apps/latest/input-objects/PaymentSessionRejectionReasonInput
  md: >-
    https://shopify.dev/docs/api/payments-apps/latest/input-objects/PaymentSessionRejectionReasonInput.md
api_name: payments-apps
api_type: graphql
type: input-object
---

# Payment​Session​Rejection​Reason​Input

input\_object

The input fields for the reason why the payment was rejected.

## Fields

* code

  [Payment​Session​State​Rejected​Reason!](https://shopify.dev/docs/api/payments-apps/latest/enums/PaymentSessionStateRejectedReason)

  non-null

  The reason code.

* merchant​Message

  [String](https://shopify.dev/docs/api/payments-apps/latest/scalars/String)

  A custom, localized message for the merchant.

* source

  [Payment​Session​State​Rejected​Source](https://shopify.dev/docs/api/payments-apps/latest/enums/PaymentSessionStateRejectedSource)

  The entity that rejected the payment.

***

## Mutations using this input

* [payment​Session​Reject.reason](https://shopify.dev/docs/api/payments-apps/latest/mutations/paymentSessionReject#arguments-reason)

  ARGUMENT

***

## Map

### Mutations using this input

* [payment​Session​Reject.reason](https://shopify.dev/docs/api/payments-apps/latest/mutations/paymentSessionReject#arguments-reason)
