Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to appUsageRecordCreate

appUsageRecordCreate

mutation

Enables an app to charge a store for features or services on a per-use basis. The usage charge value is counted towards the cappedAmount limit that was specified in the appUsagePricingDetails field when the app subscription was created. If you create an app usage charge that causes the total usage charges in a billing interval to exceed the capped amount, then a Total price exceeds balance remaining error is returned.

String!required

The description of the app usage record.

A unique key generated by the client to avoid duplicate charges. Maximum length of 255 characters.

MoneyInput!required

The price of the app usage record.

Anchor to subscriptionLineItemIdsubscriptionLineItemId
ID!required

The ID of the app subscription line item to create the usage record under. This app subscription line item must have a usage pricing plan.


Was this section helpful?

Anchor to AppUsageRecordCreatePayload returnsAppUsageRecordCreatePayload returns

The newly created app usage record.

The list of errors that occurred from executing the mutation.


Was this section helpful?