I do have Canada post API but I cannot find how to add it or where to add it on my Wix dashboard so that it calculates the shipping. I did look at the REST code of Canada post and I understand it but I still do not know where to add it on Wix.
https://www.wix.com/corvid/forum/community-discussion/canada-post-integration-to-wix-stores
https://www.wix.com/corvid/forum/community-discussion/how-can-i-connect-canada-post-shipping-rates-to-my-wix-checkout-page-using-api-key-i-am-also-connected-to-shipstation-thanks
I have looked at the links in there but as I already mentioned I know how to code the REST part of Canada post I am just not sure how to integrate it in Wix in a way that the changes appear the checkout page and the shipping is added to the value of the items
@beeddesigners
To use an API from another company, then you need to be looking at using Wix HTTP Functions or Wix Fetch.
https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions
https://www.wix.com/corvid/reference/wix-fetch.html
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api
Corvid Example.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient
You will most likely need to use Wix Stores Backend too if you are wanting to grab checkout/shipping costs etc.
https://www.wix.com/corvid/reference/wix-stores-backend.html
Also, check out Wix Pay API too for the payment cycle etc.
https://www.wix.com/corvid/reference/wix-pay-backend.html
https://www.wix.com/corvid/reference/wix-pay.html
https://support.wix.com/en/article/accepting-payments-by-credit-card
https://support.wix.com/en/article/changing-your-payment-provider-for-accepting-credit-card-payments
As you are using Canada Post and understand their REST API info.
https://www.canadapost.ca/cpotools/apps/drc/home?execution=e1s1
Then I do suggest that you go through their own support too and ask them if it is possible for Canada Post to be integrated into Wix and if so, how they can do it as well.
If it is only through HTML code and not through accessing their own API, then Wix will not provide support for code that comes from a third party provider.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
https://support.wix.com/en/article/embedding-custom-code-to-your-site
Important:
Wix cannot provide support for external codes that were not created or tested with Wix.
If you are experiencing an issue with your code snippet, please contact the provider directly.
A much easier option for yourself would be to simply use ShipStation which is already integrated with Wix Stores.
https://support.wix.com/en/article/integrating-shipstation-with-wix-stores
https://support.wix.com/en/article/shipping-orders-using-shipstation
Then you can simply use Canada Post through ShipStation.
https://www.shipstation.com/partners/integration/carriers_canada/
https://www.shipstation.com/blog/shipstation-now-supports-canada-post/
https://www.shipstation.com/partners/canada-post/
https://help.shipstation.ca/hc/en-ca/articles/360025443051-Canada-Post
@givemeawhisky Thanks for the information. I contacted the Wix support and at the moment it is impossible to integrate any API with the checkout page. ShipStation is indeed integrated with Wix but it costs a lot just for getting shipping estimates so I wanted to do it on my own which is impossible right now