question

Alan avatar image
Alan asked sam Deactivated commented

Items from orders created via API not appearing in the reporting app

Hi Clover, I'm creating orders from the API, but the items aren't appearing in the reporting app as taxed, even though the order's line items have taxRates.

  1. I've tried creating line items without providing taxrates
  2. And creating line items, providing the tax rates in my POST
  3. I have tax rates applied to all item
  4. I've made sure tax reporting is working for the same items, by ordering manually on the clover device (by cash)

Thanks, Alan

7 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Alan avatar image Alan commented ·

My last guess is it's something to do with the payment? Do I need to attach the line item ids that were paid for, when creating the payment?

0 Likes 0 ·
voski avatar image voski commented ·

It does not report on items that are just added to the order. The order must be paid or refunded.

0 Likes 0 ·
Alan avatar image Alan commented ·

@Voski I'm paying for the order using my own tender type (with tax enabled).

0 Likes 0 ·
sam avatar image sam commented ·

Reporting is aggregated using payment objects rather than order objects. Make sure when you're creating a payment with your own tender type, you are passing taxAmount param.

{ "tender": { "id": "xxxxxxxxx" }, "amount": 1234, "taxAmount": 100, "note": "test" }

0 Likes 0 ·
Alan avatar image Alan commented ·

Thanks @Sam, I'll try this. I'm using Nodejs, are there any clover/third party libraries for calculating tax with clover? I see @jacobabrams suggested this a few years ago https://devask.clover.com/question/22... Thanks!

0 Likes 0 ·
Show more comments

0 Answers

Welcome to the
Clover Developer Community