appUsageRecordCreate mutation
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to charge a store for usage.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
description
(
String!
)
required
|
The description of the app usage record. |
price
(
MoneyInput!
)
required
|
The price of the app usage record. The only permitted currceny code is USD. |
subscriptionLineItemId
(
ID!
)
required
|
The ID for the app subscription line item. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appUsageRecord (
AppUsageRecord
)The newly created app usage record.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.