System for quick creation of websites and online stores

Operation costs for API

Back in the category

Due to the nature of GraphQL based API the complexity and workload of various request may strongly differ among each other. That is why quotas and usage rates use „operation cost" to assess your real usage of the API.

All rates' or quotas' values are to be interpreted as operation cost values.

Example 1

<code> getOrder... </code> <code> { json response } </code>

Each loaded entity and each subordinate load of data are 1 unit of operation cost. For the example above and returned data operation cost of running that query would be #32.

 

Example 2

query {
getOrder(order_num: "O-123456“){ order_num price_elements { title } items { item_label product { title } quantity } }
}

Answer

{
   "data": {
      "getOrder": {
         "order_num": "O-123456",
         "price_elements": [
            {
               "title": "Pickup point"
            },
            {
               "title": "Paypal"
            }
         ],
         "items": [
            {
               "item_label": "Product A, Green",
               "product": {
                   "title": "Product A"
               },
               "quantity": 1
            },
            {
               "item_label": "Product B, Red",
               "product": {
                   "title": "Product B"
               },
               "quantity": 1
            }
         ]
      }
   }
}



Each loaded entity and every subordinate data load count as 1 operational cost unit. In the example above, the number of data operational costs for executing this query would be 4, because the query loads a total of 4 entities: the order, the price element, the order item, and within the order item, the product entity is also loaded.

Would you like to ask more about this topic? Contact us please:

Captcha

i

Free 15-day trial

Design selection:

Your new website with .bizwebs.com will be available immediately.
You can change address to one without .bizwebs.com later, either by buying a new domain or reddirecting an existing one.
By pressing the create button you agree with the Terms & Conditions of Bizwebs.com.

Please select one of premade templates.
You can change design of your new website anytime you want in website administration, where you can find a wealth of template customization.
We can also create a unique design tailored to your wishes.

Login

This website uses cookies. More info
Privacy settings

We use cookies to improve your visit to this website, to analyze its performance and to collect data about its use. We may use third party tools and services to do so and the data collected may be passed on to partners in the EU, the US or other countries. By clicking on "Accept all cookies", you agree to this processing. You can find detailed information or adjust your preferences below.

Privacy declaration

Show details