Re: Get NoMethodError: undefined method `available_calls' for ShopifyAPI:Module. Shopify_api gem 10.

Get NoMethodError: undefined method `available_calls' for ShopifyAPI:Module. Shopify_api gem 10.0.3

Shopify Partner
3 0 0

I am trying to update the shopify_api gem version from 9.5.1 to 10.0.3 to our ruby based project.

But I had a problem using the available_calls method (also known as credit_left), which was present in the version 9.5.1.

I'm getting an error:

NoMethodError: undefined method `available_calls' for ShopifyAPI: Module


Examining the changes in the gem code, I found that this method, along with its module, was removed.
So my question is whether this method was implemented in the new version of the library and what is it called now if it is present?


Thanks and best regards😉

Reply 1 (1)

Shopify Staff
249 42 36

Hey @gunnnner,

Thanks for taking the time to create a post here in this API & SDK community forum board. I had a close look but couldn't find any recent or related issues involving the error you shared.

If you feel you are facing  any unexpected behavior with a library, such as the shopify_api gem, I'd recommend opening a new issue here in the GitHub Repo - this is generally the best place to ask questions concerning our API libraries. 

- Cheer!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit or the Shopify Web Design and Development Blog