Version: unstable
Curl example: "curl -X POST \\\nhttps://partners.shopify.com/api/unstable/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {partner_access_token}' \\\n-d '{\n\"query\": \"mutation appCreditCreate($appId: ID!, $shopId: ID!, $amount: MoneyInput!, $description: String!, $test: Boolean) { appCreditCreate(appId: $appId, shopId: $shopId, amount: $amount, description: $description, test: $test) { appCredit { id, test, name, amount { amount, currencyCode, } } userErrors{ field, message } } }\"\n}'\n" Node example: null Ruby example: null PHP example: null Remix example: null Graphql query: "mutation appCreditCreate($appId: ID!, $shopId: ID!, $amount: MoneyInput!, $description: String!, $test: Boolean) {\n appCreditCreate(appId: $appId, shopId: $shopId, amount: $amount, description: $description, test: $test) {\n appCredit {\n id,\n test,\n name,\n amount {\n amount,\n currencyCode,\n }\n }\n userErrors{\n field,\n message\n }\n }\n }"
input: null
response: { "data": { "appCreditCreate": { "appCredit": { "id": "gid://shopify/AppCredit/1", "test": false, "name": "app credit description", "amount": { "amount": "100.0", "currencyCode": "USD" } }, "userErrors": [] } } }