--- title: UserErrorsShopPayPaymentRequestSessionUserErrorsCode - Storefront API description: Possible error codes that can be returned by `ShopPayPaymentRequestSessionUserErrors`. api_version: 2025-10 api_name: storefront type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/enums/usererrorsshoppaypaymentrequestsessionusererrorscode md: https://shopify.dev/docs/api/storefront/latest/enums/usererrorsshoppaypaymentrequestsessionusererrorscode.md --- # User​Errors​Shop​Pay​Payment​Request​Session​User​Errors​Code enum Possible error codes that can be returned by `ShopPayPaymentRequestSessionUserErrors`. ## Valid values * IDEMPOTENCY\_​KEY\_​ALREADY\_​USED Idempotency key has already been used. * PAYMENT\_​REQUEST\_​INVALID\_​INPUT Payment request input is invalid. * PAYMENT\_​REQUEST\_​NOT\_​FOUND Payment request not found. *** ## Fields * [User​Errors​Shop​Pay​Payment​Request​Session​User​Errors.code](https://shopify.dev/docs/api/storefront/latest/objects/UserErrorsShopPayPaymentRequestSessionUserErrors#field-UserErrorsShopPayPaymentRequestSessionUserErrors.fields.code) OBJECT Error codes for failed Shop Pay payment request session mutations. *** ## Map ### Fields with this enum * <-|[User​Errors​Shop​Pay​Payment​Request​Session​User​Errors.code](https://shopify.dev/docs/api/storefront/latest/objects/UserErrorsShopPayPaymentRequestSessionUserErrors#field-UserErrorsShopPayPaymentRequestSessionUserErrors.fields.code)