--- title: DiscountsAllocatorFunctionUserError - GraphQL Admin description: >- An error that occurs during the execution of a discounts allocator function mutation. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountsAllocatorFunctionUserError md: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountsAllocatorFunctionUserError.md --- # Discounts​Allocator​Function​User​Error object An error that occurs during the execution of a discounts allocator function mutation. ## Fields * code [Discounts​Allocator​Function​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/unstable/enums/DiscountsAllocatorFunctionUserErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [discounts​Allocator​Function​Register](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountsAllocatorFunctionRegister) mutation Registers a discounts allocator function. * [discounts​Allocator​Function​Unregister](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountsAllocatorFunctionUnregister) mutation Unregisters a discounts allocator function. *** ## <\~> DiscountsAllocatorFunctionUserError Mutations ### Mutated by * <\~>[discounts​Allocator​Function​Register](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountsAllocatorFunctionRegister) * <\~>[discounts​Allocator​Function​Unregister](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountsAllocatorFunctionUnregister) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError) interface *** ## ||-DiscountsAllocatorFunctionUserError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)