AppUsageRecord object

Store usage for app subscriptions with usage pricing.


On this page


Fields

  • createdAt ([DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    The date and time when the usage record was created.
  • description ([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    The description of the app usage record.
  • id ([ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
    Globally unique identifier.
  • price ([MoneyV2!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2))
    The price of the usage record. The only permitted currency code is USD.
  • subscriptionLineItem ([AppSubscriptionLineItem!](https://shopify.dev/docs/admin-api/graphql/reference/billing/appsubscriptionlineitem))
    Defines the usage pricing plan the merchant is subscribed to.


Types that return AppUsageRecord

  • [AppSubscriptionLineItem.usageRecords](https://shopify.dev/docs/admin-api/graphql/reference/billing/appsubscriptionlineitem#usagerecords-2021-01)


Mutations for AppUsageRecord


Implements

  • [Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)

An auto-generated type for paginating through multiple AppUsageRecords.


On this page


Fields

  • edges ([[AppUsageRecordEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/billing/appusagerecord))
    A list of edges.
  • pageInfo ([PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo))
    Information to aid in pagination.

An auto-generated type which holds one AppUsageRecord and a cursor during pagination.


On this page


Fields

  • cursor ([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    A cursor for use in pagination.
  • node ([AppUsageRecord!](https://shopify.dev/docs/admin-api/graphql/reference/billing/appusagerecord))
    The item at the end of AppUsageRecordEdge.


Types that return AppUsageRecordEdge

  • [AppUsageRecordConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/billing/appusagerecord#edges-2021-01)