--- title: SubscriptionBillingAttemptInventoryError - GraphQL Admin description: >- An inventory-related error that occurred during a subscription billing attempt. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/SubscriptionBillingAttemptInventoryError md: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/SubscriptionBillingAttemptInventoryError.md --- # Subscription​Billing​Attempt​Inventory​Error object Requires `read_own_subscription_contracts` access scope. An inventory-related error that occurred during a subscription billing attempt. ## Fields * code [Subscription​Billing​Attempt​Inventory​Error​Code!](https://shopify.dev/docs/api/admin-graphql/unstable/enums/SubscriptionBillingAttemptInventoryErrorCode) non-null The error code for the inventory-related failure. * insufficient​Stock​Product​Variants [Product​Variant​Connection](https://shopify.dev/docs/api/admin-graphql/unstable/connections/ProductVariantConnection) A list of product variants that caused the insufficient inventory error. * first [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) ### Arguments The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * after [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * last [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * before [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * reverse [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Reverse the order of the underlying list. *** *** ## Map ### Possible type in * [Subscription​Billing​Attempt​Error](https://shopify.dev/docs/api/admin-graphql/unstable/unions/SubscriptionBillingAttemptError)