Solved

Are Storefront API Costs reliable?

vadimpk
Shopify Partner
4 0 0

According to documentation found here

The costs are subject to change and changes will be reflected at checkout.

Can we actually rely on the costs calculated by the Cart API? I am asking because in some cases my app will not go through default Shopify checkout and since the Checkout API is deprecated, we need to use the Cart API.

 

I suspect that this line in documentation means a very basic thing, eg. that the cost can change when a customer selects a shipping rate at checkout – I'm fine with that. My concern is that Cart API can return a wrong amount, for example wrong tax or something like that, because that is a critical problem.
So, are the Cart API costs actually reliable?

Accepted Solution (1)

ahmad1999
Tourist
4 1 0

This is an accepted solution.

Yes, the Cart API in Shopify provides reliable estimates for line item costs, discounts, and basic taxes. However, final tax amounts and shipping rates can vary based on customer inputs at checkout, so thorough testing of your integration is recommended to ensure accuracy.

View solution in original post

Reply 1 (1)

ahmad1999
Tourist
4 1 0

This is an accepted solution.

Yes, the Cart API in Shopify provides reliable estimates for line item costs, discounts, and basic taxes. However, final tax amounts and shipping rates can vary based on customer inputs at checkout, so thorough testing of your integration is recommended to ensure accuracy.