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

# Capture​Session​Reject​User​Error​Code

enum

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

## Valid values

* CAPTURE\_​SESSION\_​INVALID\_​STATE

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

* CAPTURE\_​SESSION\_​NOT\_​FOUND

  Capture session not found.

***

## Fields

* [Capture​Session​Reject​User​Error.code](https://shopify.dev/docs/api/payments-apps/latest/objects/CaptureSessionRejectUserError#field-CaptureSessionRejectUserError.fields.code)

  OBJECT

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

***

## Map

### Fields with this enum

* [Capture​Session​Reject​User​Error.code](https://shopify.dev/docs/api/payments-apps/latest/objects/CaptureSessionRejectUserError#field-CaptureSessionRejectUserError.fields.code)