Integrating Quadreno Tax Calculator With Stripe

There are different payment gateways used for payments and we know that when we are doing payments to purchase different products and services then we need to pay some tax amount for payment transactions. Depending upon the different tax rates provided for each country/region by their government. So for that, we need to use a Quaderno tax calculator third-party application. So we are learning about quaderno tax integration.

  1. What is Quaderno and Quaderno connect?
  2. How to connect Quaderno with stripe?
  3. Different APIs to calculate automatic tax.
  4. Advantages.
  5. Conclusion.

1. What is quaderno and quaderno connect?

Quaderno is a tax calculator application that calculates tax automatically region-wise and it is globally available all over the world. We just need to pass the country to API’s then we will get the tax rate automatically. It provides tax calculation services for different types of businesses like SaaS, eCommerce, and digital businesses worldwide.

So we got the basic idea about quaderno, now depending upon business structure we need to select Quaderno APIs. If we want to use the tax compilation as your business owner then we can go through simple APIs, but if your business structure has multiple sellers and they are selling products and services on your platform, in this case, we need to use a different service provided by Quaderno known as quaderno connect.

Quaderno connect is used when you have a marketplace and if you have different sellers on your platform and they can add a tax id and they will get a tax rate.

There are different types of connected accounts 

  • Standard Account:

A Standard Quaderno account is a conventional Quaderno account controlled directly by the sellers of your platform and sellers are able to use quaderno dashboard and also able to login and control all functionalities. 

  • Custom Account:

A Custom Quaderno account is almost completely invisible to the seller. Platform owner is responsible for all interactions with your user and controlling all the account’s settings, also  Platform owner controls all the information needed for tax calculations, programmatically.

So in this tutorial, we will be going through the custom connected account integration.  

2. How to connect Quaderno with stripe?

In this topic, we will be going through the different steps to integrate the quaderno application with stripe.

  • Firstly we need to visit Quaderno so that we can create an account on Quaderno.
  • After creating quaderno account we need to start with the setup process, you will be able to see the page like below

Quaderno Account Setup | Mindbowser

In the above image, you can see first we need to select the business country and then if we have a business tax id then we can skip and can add later as well, after then we need to select your business type and also whether your country is selected for tax collection or not.

  • After clicking on next we need to select a type of platform which we are using for payment so we are using stripe as shown in the below image

Quaderno Account Setup | Mindbowser

  • After clicking on stripe we will be redirected to the stripe platform where we need to create or login to your stripe platform as shown in the below image

Quaderno Login Page | Mindbowser

 

 Also if you want to skip the process for test mode you can also skip it.

  • After adding all setup information your account will be set up and you can see the image below and you only need to click on get started then your account is ready to use.

Quaderno Account Setup | Mindbowser

3. Different APIs to calculate tax.

In the implementation part, firstly we need to get the secret key and publishable key with API URL , need to click on the profile icon on the right side then you will be able to see the different options like below

Different APIs to calculate tax | Mindbowser

You can see marked option API keys we need to select that option then we will get API key and API URL.

So now we git API keys required for API call NOw will go through step by step API calls required to set up the tax calculation process.

  • API to create a connected account:
    As we are using a marketplace platform and our platform has multiple sellers each seller need to tax rate by creating their connected account as below
curl --request POST \

  --url https://ACCOUNT_NAME.quadernoapp.com/api/accounts/ \

  -u YOUR_API_KEY:x \

  --header 'Content-Type: application/json' \

  --data '{

    "business_name": "Your business name.",

    "email": "your.email@example.com",

    "country": "US",

    "postal_code": "00000",

    "local_tax_id": "0000000",

    "default_product_type": "service",

    "default_tax_code": "ebook"

  }'

  • API to get jurisdiction list:
    In this API we need to get the list of jurisdiction list, jurisdiction means country or region by which we can get tax rates.
    Curl to get jurisdiction given below
curl https://ACCOUNT_NAME.quadernoapp.com/api/jurisdictions-u YOUR_API_KEY:x

  • API to add tax to quaderno:
    After getting the jurisdiction list you need to get the jurisdiction id and your tax id which you got after registering to your government tax rules  as below
 curl https://ACCOUNT_NAME.quadernoapp.com/api/tax_ids \

  -u YOUR_API_KEY:x \

  --header 'Content-Type: application/json' \

  --data '{

    "jurisdiction_id": "6",

    "value": "IE6388047V"

  }'

  • API to calculate tax rate:
    After doing all-important steps now we will be moving to the main task to calculate the tax rate, so for calculating the tax rate we need to use below curl
 curl https://ACCOUNT_NAME.quadernoapp.com/api/tax_rates/calculate

?to_country=US&to_postal_code=90210&tax_code=standard&amount=10 \

  -u YOUR_API_KEY:x

Now we got the tax percentage, now we can apply tax rates on your transaction

4. Advantages.

  • Globally used.
  • Simple to integrate.
  • Flexible pricing plans from startup plan to advance plan.
  • Sandbox provided for testing purpose
coma

Conclusion

In this, we learned about what is quaderno and different API steps to integrate quaderno into our business platform. Also learned about the type of connected account required for the marketplace platform and in the last, we went through an advantage and I hope you liked the tutorial.

Rishikesh D

Software Engineer

Rishikesh is a Full-stack developer with 3+ years of experience. He has experience in web technologies like AngularJS, ReactJS. His expertise is building Python integrated web applications, creating REST APIs with well-designed, testable and efficient and optimized code. He loves to learn new technologies.

Keep Reading

Keep Reading

Launch Faster with Low Cost: Master GTM with Pre-built Solutions in Our Webinar!

Register Today!
  • Service
  • Career
  • Let's create something together!

  • We’re looking for the best. Are you in?