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

# Void​Session​Reject​User​Error​Code

enum

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

## Valid values

* VOID\_​SESSION\_​INVALID\_​STATE

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

* VOID\_​SESSION\_​NOT\_​FOUND

  Void session not found.

***

## Fields

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

  OBJECT

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

***

## Map

### Fields with this enum

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