appCreditCreate mutation
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Allows an app to create a credit for a shop that can be used towards future app purchases.
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 |
---|---|
amount
(
MoneyInput!
)
required
|
The amount that can be used towards future app purchases in Shopify.The only permitted currency code is USD. |
description
(
String!
)
required
|
The description of the app credit. |
test
(
Boolean
)
|
Specifies whether the app credit is a test transaction. |
MoneyInput fields
-
amount (
Decimal!
) RequiredDecimal money amount.
-
currencyCode (
CurrencyCode!
) RequiredCurrency of the money.
Return fields
-
appCredit (
AppCredit
)The newly created app credit.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.