---
title: RefundSessionRejectUserErrorCode - Payments Apps API
description: Possible error codes that can be returned by `RefundSessionRejectUserError`.
api_version: 2026-10
source_url:
  html: https://shopify.dev/docs/api/payments-apps/latest/enums/refundsessionrejectusererrorcode
  md: https://shopify.dev/docs/api/payments-apps/latest/enums/refundsessionrejectusererrorcode.md
---

# RefundSessionRejectUserErrorCode

enum

Possible error codes that can be returned by `RefundSessionRejectUserError`.

## Valid values

* REFUND\_SESSION\_INVALID\_STATE

  Refund session has already been resolved or has already been rejected with a different reason.

* REFUND\_SESSION\_NOT\_FOUND

  Refund session not found.

***

## Fields

* [RefundSessionRejectUserError.code](https://shopify.dev/docs/api/payments-apps/latest/objects/RefundSessionRejectUserError#field-RefundSessionRejectUserError.fields.code)

  OBJECT

  An error that occurs during the execution of `RefundSessionReject`.

***

## Map

### Fields with this enum

* [RefundSessionRejectUserError.code](https://shopify.dev/docs/api/payments-apps/latest/objects/RefundSessionRejectUserError#field-RefundSessionRejectUserError.fields.code)