--- title: refundSessionReject - Payments Apps API description: |- Rejects an open refund session. After the `refundSessionReject` mutation completes on a given refund session, any `refundSessionResolve` mutation attempts will fail. Subsequent `refundSessionReject` mutation attempts will succeed, but the `RejectionReasonInput` argument will be ignored. api_version: 2025-10 api_name: payments-apps type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/payments-apps/latest/mutations/refundSessionReject md: https://shopify.dev/docs/api/payments-apps/latest/mutations/refundSessionReject.md --- # refund​Session​Reject mutation Requires `write_payment_sessions` access scope. Rejects an open refund session. After the `refundSessionReject` mutation completes on a given refund session, any `refundSessionResolve` mutation attempts will fail. Subsequent `refundSessionReject` mutation attempts will succeed, but the `RejectionReasonInput` argument will be ignored. ## Arguments * id [ID!](https://shopify.dev/docs/api/payments-apps/latest/scalars/ID) required The refund session ID. * reason [Refund​Session​Rejection​Reason​Input!](https://shopify.dev/docs/api/payments-apps/latest/input-objects/RefundSessionRejectionReasonInput) required The rejection reason. *** ## Refund​Session​Reject​Payload returns * refund​Session [Refund​Session](https://shopify.dev/docs/api/payments-apps/latest/objects/RefundSession) The updated refund session. * user​Errors [\[Refund​Session​Reject​User​Error!\]!](https://shopify.dev/docs/api/payments-apps/latest/objects/RefundSessionRejectUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### refundSessionReject reference ## Mutation Reference ```graphql mutation refundSessionReject($id: ID!, $reason: RefundSessionRejectionReasonInput!) { refundSessionReject(id: $id, reason: $reason) { refundSession { # RefundSession fields } userErrors { field message } } } ``` ## Input ```json { "id": "gid://shopify//10079785100", "reason": { "code": "PROCESSING_ERROR", "merchantMessage": "" } } ``` ##### Variables ``` { "id": "gid://shopify//10079785100", "reason": { "code": "PROCESSING_ERROR", "merchantMessage": "" } } ``` ##### Schema ``` input RefundSessionRejectionReasonInput { code: RefundSessionStatusReasonRejectionCode! merchantMessage: String } ```