--- title: Improved billing attempt error handling for subscriptions in Selling Plan API - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/improved-billing-attempt-error-handling-for-subscriptions-in-selling-plan-api md: https://shopify.dev/changelog/improved-billing-attempt-error-handling-for-subscriptions-in-selling-plan-api.md --- [Back to Developer changelog](https://shopify.dev/changelog) December 11, 2024 Tags: * Admin GraphQL API * 2025-01 # Improved billing attempt error handling for subscriptions in Selling Plan API Following the [release](https://shopify.dev/changelog/subscription-billing-attempt-now-respects-inventory-policy-to-not-allow-overselling) of subscription billing attempt respecting merchant’s inventory policy to prevent overselling, we added new features to assist developers in managing billing errors. As of 2025-01, when accessing billing error details during billing attempts, you can now leverage [processingError](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/SubscriptionBillingAttempt#field-processingerror) to identify specific product variants responsible for inventory errors. This update provides better insight into failed billing attempts related to inventory issues by integrating location-specific inventory data directly within the error diagnostics. Learn more about the [Selling Plan API inventory policy](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/subscriptionBillingAttemptCreate#top).