Orders related to Appointment Service don't have catalog_object_id of taxes

Hi,

I’ve been investigating the issue that our customer recently had. I think it’s somehow related to the orders that have used Appointment Service.
For example, let’s look at this order:
It has a 5bbpUZKTM8jyT0VMxJkQkMpeV id, it has a product variation FE4H7WQ6HOTCR4O74AI7Y6PG, and this variation belongs to an item with AUSSALESTAXML9G5SEBG94ZR tax catalogue id, however, this tax id doesn’t appear in order’s applied taxes. Could you please explain why it’s not here? Is it a bug or expected behaviour?

Thanks

Hi there.

I found another customer affected by this issue. Could you please look at this order? Describing briefly, there is an order with id rUF4hxVDQWAuBRuPf4lhF2meV that has product variation 6D6YYNTBYMUZU5PKZNYMVNLB and that variation belongs to an item with AUSSALESTAXML11ZPDVQBD20 tax catalogue, but this tax id doesn’t appear in order’s applied taxes.

Thanks in advance :slight_smile:

:wave: I spoke to the team about this and this is due to the way that the order was created and paid for with Square Appointments. Currently the applied_taxes won’t contain the Id for the tax. You will need to get the tax_id by getting the related_objects associated to the item. :slightly_smiling_face:

Thanks for the response. I appreciate it. :slight_smile:

Hi,

Actually, there is one more thing I would like to know.
Could you please confirm if by “You will need to get the tax_id by getting the related_objects associated to the item.” you mean that we should extract an id from the Appointments Service item’s tax_ids to find out which taxes were used during the order creation? So, those tax_ids can be matched with taxes on the particular line_item?


Would you please confirm if my understanding is correct? I’ll appreciate it.

Thanks!

Yes, you are correct! :slightly_smiling_face:

Hi again,

I have another question regarding the same customer.
Besides Square Appointments-related orders, we found some taxes still don’t have catalog_object_id assigned. For example this order has line item with uid e274a8d7-8bcd-4248-be22-db09b57ae186 that is related to the product_variant with id P7B3J3WLCQIGN2SE7VW5FXAC and this variant belongs to an item with AUSSALESTAXML9G5SEBG94ZR tax catalog id, but order field taxes doesn’t contain such a relation.
Can we match it in the same way we did for Square Appointment items, so we will know which id of the tax was used for the particular line_item?


Is the solution you gave us also applicable for this issue? If yes, how we can distinguish between real ad-hoc taxes and those created using the shown relation?

Thanks.

Besides this customer, there is another one that has a similar issue.

Initially, we thought that it’s somehow related to how Weebly works (which is not supported by us). But our customer said it’s not - he doesn’t use that. So, by investigating the order, we found a potential association with catalogue tax (described in previous posts) which we want potentially use. We already know that it works for Square Appointments, so maybe we can use that for other similar issues like this one also?

This affects all line items of order with id 6JvvCEthVgqVnBcxmTIMoKlK73RZY.

Sorry, for linking so many tickets here, but we want to find a more general solution if possible.

:wave: Yes, with the orders you provided you will match it in the same way you did for Square Appointment items, so you will know which id of the tax was used for the particular line_item . Also for Square Online store orders like 6JvvCEthVgqVnBcxmTIMoKlK73RZY you can use the same process to figure our the taxes.

Thanks Bryan.

I see, so we can use this process for Square Appointments and even for Square Online. But how about 59A3UWzvLuvxzgzbkMEi2JseV. As I understand, this is not Square Online order. So, is this a coincidence that we can also apply the same process here? I’m asking because I’m looking specifically for general solutions, but I don’t see anything special regarding this particular order.

I’m not sure I fully understand the question. This order 59A3UWzvLuvxzgzbkMEi2JseV is from Square Appointments.

Right, I’m very sorry I didn’t notice that it was Square Appointment service.
Please assume there wasn’t this part of a question :smiley:
Thanks.