## TL;DR

Set up your shipping rates and taxes in Shopify first. Then when you create the order through the API, Shopify applies those rates and tax rules to calculate the totals.

## Fix

1. Set up your shipping rates and taxes in Shopify first.
   Expected: You get the expected result; the problem is gone.

## When to use

- You are setting up or using this Shopify API feature.
- The symptom matches: how to know tax and shipping when creating orders from your own checkout.

## When NOT to use

- Unrelated Shopify API issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against Shopify API.

## Variant phrasings

### how to know tax and shipping when creating orders from your own checkout

## Why it happens

Stack Overflow question (score 21): an app takes payment with Stripe and creates orders in Shopify, but needs correct tax and shipping amounts for the order.

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.