--- title: OrderCancelUserErrorCode - GraphQL Admin description: Possible error codes that can be returned by `OrderCancelUserError`. 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/OrderCancelUserErrorCode md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/OrderCancelUserErrorCode.txt --- # Order​Cancel​User​Error​Code enum Possible error codes that can be returned by `OrderCancelUserError`. ## Valid values * INTERNAL\_​ERROR Unexpected internal error happened. * INVALID The input value is invalid. * NO\_​REFUND\_​PERMISSION An order refund was requested but the user does not have the refund\_orders permission. * NOT\_​FOUND The record with the ID used as the input value couldn't be found. *** ## Fields * [Order​Cancel​User​Error.​code](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/OrderCancelUserError#field-code) OBJECT Errors related to order cancellation. *** ## Map ### Fields with this enum * <-|[Order​Cancel​User​Error.code](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/OrderCancelUserError#field-code)