--- title: TransactionVoidUserErrorCode - GraphQL Admin description: Possible error codes that can be returned by `TransactionVoidUserError`. api_version: 2024-10 api_name: admin type: enum api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/TransactionVoidUserErrorCode md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/TransactionVoidUserErrorCode.txt --- # Transaction​Void​User​Error​Code enum Possible error codes that can be returned by `TransactionVoidUserError`. ## Valid values * AUTH\_​NOT\_​SUCCESSFUL Transaction must be a successful authorization. * AUTH\_​NOT\_​VOIDABLE Transaction must be voidable. * GENERIC\_​ERROR A generic error occurred while attempting to void the transaction. * TRANSACTION\_​NOT\_​FOUND Transaction does not exist. *** ## Fields * [Transaction​Void​User​Error.​code](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/TransactionVoidUserError#field-code) OBJECT An error that occurs during the execution of `TransactionVoid`. *** ## Map ### Fields with this enum * <-|[Transaction​Void​User​Error.code](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/TransactionVoidUserError#field-code)