use the code
but it dose not work
use https://shopify.dev/docs/api/shopify-app-remix/v2/apis/billing it work.
but I need a more flexible way
能用中文回复吗?感谢。
Can you reply in Chinese? grateful.
{
"errors": [
{
"message": "Access denied for appSubscriptionCreate field.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"appSubscriptionCreate"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes"
}
}
],
"data": {
"appSubscriptionCreate": null
},
"extensions": {
"cost": {
"requestedQueryCost": 22,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1990,
"restoreRate": 100
}
}
}
}
