Allows an app to create a credit for a shop that can be used towards future app purchases. This mutation is only available to Partner API clients that have been granted the `View financials` permission.
Access Scopes
Arguments
amount:
MoneyInput! -
The amount that can be used towards future app purchases in Shopify.
appId:
ID! -
The id of the app to associate the credit with. Example value: `gid://partners/App/123`.
description:
String! -
The description of the app credit.
shopId:
ID! -
The id of the shop to be credited. Example value: `gid://partners/Shop/456`.
test:
Boolean -
Specifies whether the app credit is a test transaction.
Returns
appCredit:
AppCredit
The app credit that was created.
userErrors:
UserError
Errors when creating the application credit.