Getting more information on product taxes when fetching order

Getting more information on product taxes when fetching order

fabiombc
Shopify Partner
2 0 0

Hello.

 

We are using the order resource to fetch an order information. When a line item has multiple taxes applied, is there any way to obtain more information about every tax line?

 

Example:

Order to: East Baton Rouge, Luisiana

 

This order will have the Louisiana sales tax of 4.45%, Baton Rouge City tax of 2% and an East baton Rouge County tax of 3.5%. Our goal is to differentiate these taxes programmatically between the State and local Sales taxes. Is there a way to achieve this?

 

The current payload does not have any indicator to distinguish them.

 

Thank you in advance.

 

Example product tax lines from this example order:

"tax_lines":[
   {
	  "channel_liable":false,
	  "price":"0.87",
"price_set" {...} "rate":0.0445, "title":"Louisiana State Tax" }, { "channel_liable":false, "price":"0.68",
"price_set" {...} "rate":0.035, "title":"East Baton Rouge County Tax" }, { "channel_liable":false, "price":"0.39",
"price_set" {...} "rate":0.02, "title":"Baton Rouge City Tax" } ]

 

Endpoint used: https://shopify.dev/docs/api/admin-rest/2023-04/resources/order#get-orders?status=any

Replies 0 (0)