Hi,
I get a very generic error message when trying to generate a usage charge on a shop after it changed plan.
{
"data": {
"appUsageRecordCreate": {
"userErrors": [
{
"field": null,
"message": "Failed to create usage charge"
}
],
"appUsageRecord": null
}
},
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 990,
"restoreRate": 50.0
}
}
}
}
Here is the timeline of the events
I am still able to emit usage charge for other shops.
I am not the only one with the problem, but all the other thread are not solved.
I have provided the correct app_subscription_line_item_id
Here is the GraphQL request
mutation($subcription_line_item_id: ID!, $description: String!, $amount: Decimal!) {
appUsageRecordCreate(
subscriptionLineItemId: $subcription_line_item_id
description: $description,
price:{ amount: $amount, currencyCode: USD}
) {
userErrors {
field
message
}
appUsageRecord {
id
}
}
}
Thank you
Solved! Go to the solution
This is an accepted solution.
Alright so I got the answer. (I use the 2020-04 GraphQL APIs)
TLDR: Shopify usage balance of your last plan follows on the new plan even if AppSubscription information says that the balance is 0$. Solution: you have to wait until the plan resets or make the merchant increase its cap amount again.
Long version:
It is because I was exceeding the cap amount even if it does not says so.
Here is what happened chronologically
Solution:
You have to wait until plan reset date or make the merchant increase its cap amount again.
** sight **
User | Count |
---|---|
12 | |
12 | |
10 | |
8 | |
7 |