--- title: SubscriptionContractLastBillingErrorType - GraphQL Admin description: The possible values of the last billing error on a subscription contract. api_version: unstable api_name: admin source_url: html: https://shopify.dev/docs/api/admin-graphql/unstable/enums/subscriptioncontractlastbillingerrortype md: https://shopify.dev/docs/api/admin-graphql/unstable/enums/subscriptioncontractlastbillingerrortype.md --- # Subscription​Contract​Last​Billing​Error​Type enum The possible values of the last billing error on a subscription contract. ## Valid values * CUSTOMER\_​ERROR Subscription billing attempt error due to customer error. * INVENTORY\_​ERROR Subscription billing attempt error due to inventory error. * OTHER All other billing attempt errors. * PAYMENT\_​ERROR Subscription billing attempt error due to payment error. *** ## Fields * [Subscription​Contract.lastBillingAttemptErrorType](https://shopify.dev/docs/api/admin-graphql/unstable/objects/SubscriptionContract#field-SubscriptionContract.fields.lastBillingAttemptErrorType) OBJECT A subscription contract that defines recurring purchases for a customer. Each contract specifies what products to deliver, when to bill and ship them, and at what price. The contract includes [`SubscriptionBillingPolicy`](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionBillingPolicy) and [`SubscriptionDeliveryPolicy`](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionDeliveryPolicy) that control the frequency of charges and fulfillments. [`SubscriptionLine`](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionLine) items define the products, quantities, and pricing for each recurring [`Order`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Order). The contract tracks [`SubscriptionBillingAttempt`](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionBillingAttempt) records, payment status, and generated orders throughout its lifecycle. [`App`](https://shopify.dev/docs/api/admin-graphql/latest/objects/App) instances manage contracts through various status transitions including active, paused, failed, cancelled, or expired states. Learn more about [building subscription contracts](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/contracts/build-a-subscription-contract) and [updating subscription contracts](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/contracts/update-a-subscription-contract). *** ## Map ### Fields with this enum * <-|[Subscription​Contract.lastBillingAttemptErrorType](https://shopify.dev/docs/api/admin-graphql/unstable/objects/SubscriptionContract#field-SubscriptionContract.fields.lastBillingAttemptErrorType)