Apps without a public distribution cannot use the Billing API error on appSubscriptionCreate

Solved

Apps without a public distribution cannot use the Billing API error on appSubscriptionCreate

ssagli
Shopify Partner
18 3 7

I have a development store and I am trying to do appSubscriptionCreate mutation for the store, but I'm getting "Apps without a public distribution cannot use the Billing API" error from Shopify graphql response. I was able to make this query before updating the graphql version to the latest (2022-07). Besides, I set test=true so it shouldn't matter whether the app is public or not I thought? Could someone assist me with this issue please? Thank you!

 

mutation appSubscriptionCreate($name: String!, $lineItems: [AppSubscriptionLineItemInput!]!, $returnUrl: URL!, $test: Boolean, $trialDays: Int) {
  appSubscriptionCreate(name: $name, lineItems: $lineItems, returnUrl: $returnUrl, test: $test, trialDays: $trialDays) {
    appSubscription {
      id
      name
      status
      test
    }
    confirmationUrl
    userErrors {
      field
      message
    }
  }
}

 

 

Accepted Solution (1)

yourivdlans
Shopify Partner
1 1 9

This is an accepted solution.

I noticed the same thing, was able to resolve it using the following steps:

 

1. Edit your app

2. Click on "Distribution" from the menu on the left

3. Choose "Shopify Store" as distribution

 

This should solve the issue.

View solution in original post

Replies 3 (3)

yourivdlans
Shopify Partner
1 1 9

This is an accepted solution.

I noticed the same thing, was able to resolve it using the following steps:

 

1. Edit your app

2. Click on "Distribution" from the menu on the left

3. Choose "Shopify Store" as distribution

 

This should solve the issue.

ssagli
Shopify Partner
18 3 7

Thank you so much for taking a time to respond! I was able to get it working by following the suggested steps!

wb1
Shopify Partner
64 2 17

Thanks, this saved me so much time