Calculate Order - Service Charge not being taxed

I am trying to use Calculate Order in the API Explorer to test getting the total order amount to be used in a payment, but the service charges are not being taxed. I have pricing_options auto_apply_taxes set to true and I have the service charge set as taxable (taxable : true) and the calculation phase as SUBTOTAL_PHASE. The items are being taxed, but not the Service Charge. Any thoughts?


Hi, what is the Square order_id that you see this?

It is not an existing order. I was just using the API Explorer for calculate_order and entering some data to see what was returned. I can give you the object being sent and the response if that helps? I was trying it out thinking I would use calculate order to show totals in my application before an actual order is created and used for payment.


Yes, thank you, that would be helpful.

I have now tried the same thing in the sandbox for create order and it looks like it is the same issue. I was hoping it was just a calculate order issue. It seems that service charges are not being taxed with taxable true and auto_apply_taxes set to true. If I am missing something please let me know. This makes it difficult to create an order with the correct taxes from our application if service charges don’t have taxes applied. Any help would be appreciated. One more thing. Maybe this will help. When orders are created through the Square Online Website I can see that the service charges have taxes applied in the order object when I pull it down.


@jtstephenson were you able to find a solution? I’m facing a similar issue while adding a service charge using the Square Orders API. I’ve created a service charge like so:

const exampleServiceCharge = {
	name: "Processing Fee",
	amountMoney: {
		amount: 250n,
		currency: "USD"
	taxable: true,
	calculationPhase: "SUBTOTAL_PHASE"

and applied this to a new order of which autoApplyTaxes is set to true on the order. From the documentation, it appears that order-level taxes should be applied to the subtotal including the service charge when calculated as a part of the subtotal. Is there something that I am missing?

@Bryan-Square I’m not sure if it’s helpful but I’ve created an example order using the sandbox with an ID of vF0ItA7DSjt03sVXhNdk5zTHACNZY

I checked with the team and at this time service charges don’t support auto_apply_taxes. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face:

1 Like

I had to do the following: (you already have 1 and 2 the way I have them, but just listing for you)

  1. Set the service_charges attribute taxable: True
  2. Set the calculation_phase: SUBTOTAL_PHASE
  3. Create taxes object inside the order with a the particular catalog_object_id used for that location for calculating taxes. Setting scope:ORDER
  4. On the pricing_options set auto_apply_taxes:False

I hope this helps.