AppSubscriptionLineItem object

Attaches a plan to an app subscription.


On this page


Connections

usageRecords ([AppUsageRecordConnection!](https://shopify.dev/docs/admin-api/graphql/reference/billing/appusagerecord))
Lists the store’s usage for a usage pricing plan.

Argument Description
after
(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)

)
Returns the elements that come after the specified cursor.
before
(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)

)
Returns the elements that come before the specified cursor.
first
(
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)

)
Returns up to the first n elements from the list.
last
(
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)

)
Returns up to the last n elements from the list.
reverse
(
[Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)

)
Reverse the order of the underlying list.
Default value: false
sortKey
(
[AppUsageRecordSortKeys](https://shopify.dev/docs/admin-api/graphql/reference/billing/appusagerecordsortkeys)

)
Sort the underlying list by the given key.
Default value: CREATED_AT


Fields

  • id ([ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
    Globally unique identifier.
  • plan ([AppPlanV2!](https://shopify.dev/docs/admin-api/graphql/reference/billing/appplanv2))
    Defines the pricing model for the app subscription.


Types that return AppSubscriptionLineItem

  • [AppSubscription.lineItems](https://shopify.dev/docs/admin-api/graphql/reference/billing/appsubscription#lineitems-2021-01)
  • [AppUsageRecord.subscriptionLineItem](https://shopify.dev/docs/admin-api/graphql/reference/billing/appusagerecord#subscriptionlineitem-2021-01)


Mutations for AppSubscriptionLineItem