Usage charge stopped working after shop changed plan [GRAPHQL]

Highlighted
Tourist
8 2 2

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

  • morning : usage charge are working for the shop
  • 1:58pm : shop change plan
  • 1:58pm to 3:01pm: I am able to emit multiple usage charges
  • after 3:01pm: unable to emit usage charge

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

0 Likes