I'm trying the "appusageRecordCreate" mutation to accomplish our dynamic app pricing. While doing this, I'm facing a strange error that says:
[ { field: [ 'subscriptionLineItemId' ], message: 'Invalid id' } ]
This is the mutation query I'm using:
`mutation { appUsageRecordCreate( subscriptionLineItemId: "gid://shopify/AppSubscriptionLineItem/14869987468?v=1&index=0", price: { amount: 99, currencyCode: USD } description: "test...") { appUsageRecord { id } userErrors { field message } } }
Thanks!
Wil
Hey @Wil!
I was able to get this working on my end. Has the charge been activated? Is it a test charge by chance? Do you have a request ID handy?
Hey Scott, I was able to make it work using REST API. Shopify GraphQL documentation is poor.
Cheers,
Wil
Back then I didn't know how to get subscriptionLineItemId. But now found it in the response from appSubscriptionCreate.
So please ignore my question, my bad.
User | Count |
---|---|
29 | |
7 | |
7 | |
6 | |
5 |