#.saberkhan
1 messages · Page 1 of 1 (latest)
shipping_rate_data allows you to create a shipping rate in line
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-shipping_options-shipping_rate_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
shipping_options.shipping_rate_data.tax_code
optional
A tax code ID. The Shipping tax code is txcd_92010001.. The value of the txcd_92010001 is for Stripe Tax, is not it?
So I shoul not use "shipping_options.shipping_rate_data.tax_code" if I am not using Stripe Tax. Am I correct?
I guess so
shipping_options.shipping_rate_data.tax_behavior", this fields is also related to Stripe tax. Am I correct?
Have you looked at our shipping rates doc already? They clearly have answers for your questions
https://stripe.com/docs/payments/during-payment/charge-shipping?payment-ui=checkout&dashboard-or-api=api#shipping-rate-with-tax-code