# Improved billing attempt error handling for subscriptions in Selling Plan API — Shopify developer changelog
---
## 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).

*Published: December 11, 2024*
Tags: API, Update
Link: https://shopify.dev/changelog/improved-billing-attempt-error-handling-for-subscriptions-in-selling-plan-api

---