question

shannonf avatar image
shannonf asked shannonf answered

Item "taxable amount" is less than item price

I have an item that is priced at $1.00, but when I place a test order with a taxRate, it's showing a "taxable amount" of 99 cents. Why is this? It's causing the tax to be off by a cent.

Here are the payment details:

Order:

{
    "href": "https://www.clover.com/v3/merchants/W9FHNWHPGB1M2/orders/VSW8G52K1E1G8",
    "id": "VSW8G52K1E1G8",
    "currency": "USD",
    "employee": {
        "id": "ZHA7JWKSDB9CP"
    },
    "total": 107,
    "paymentState": "OPEN",
    "taxRemoved": false,
    "isVat": false,
    "state": "locked",
    "manualTransaction": false,
    "groupLineItems": true,
    "testMode": false,
    "createdTime": 1593468458000,
    "clientCreatedTime": 1593468458000,
    "modifiedTime": 1593468460000,
    "lineItems": {
        "elements": [
            {
                "id": "WSTA5VZ8HM4ZE",
                "orderRef": {
                    "id": "VSW8G52K1E1G8"
                },
                "name": "Fountain Drink - Regular",
                "price": 100,
                "printed": false,
                "createdTime": 1593468459000,
                "orderClientCreatedTime": 1593468458000,
                "exchanged": false,
                "refunded": false,
                "isRevenue": true,
                "taxRates": {
                    "elements": [
                        {
                            "id": "631XWCHXCJXMG",
                            "lineItemRef": {
                                "id": "WSTA5VZ8HM4ZE"
                            },
                            "name": "California Sales Tax",
                            "rate": 797500,
                            "isDefault": true
                        }
                    ]
                }
            }
        ]
    }
}

And the item:

{
    "id": "0QZTDN4PGFBDM",
    "hidden": false,
    "name": "Fountain Drink - Regular",
    "price": 100,
    "priceType": "FIXED",
    "defaultTaxRates": false,
    "cost": 0,
    "isRevenue": true,
    "stockCount": 0,
    "modifiedTime": 1588370686000
}


OrdersLineItemsTaxes
10 |2000

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

David Marginian avatar image
David Marginian answered David Marginian edited

It doesn't look like you are calculating the order's total properly (it looks like you are rounding down instead of up) see "Calculating order totals" here - https://docs.clover.com/docs/working-with-orders.

10 |2000

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

shannonf avatar image
shannonf answered

Indeed we are, it was extremely buried. Thank you for the quick reply!

10 |2000

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

Welcome to the
Clover Developer Community