question

AlanF avatar image
AlanF asked ·

payments element missing taxRates

I have what I think is a POS step issue, but looking for ideas....


This order type:

{
   "id":"EX72DAXEC2ZTJ",
   "labelKey":"com.clover.order.type.pick_up",
   "label":"To Go",
   "taxable":true,
   "isDefault":true,
   "filterCategories":false,
   "isHidden":false,
   "fee":0,
   "minOrderAmount":0,
   "maxOrderAmount":0,
   "maxRadius":0,
   "avgOrderTime":0,
   "hoursAvailable":"BUSINESS",
   "isDeleted":false,
   "systemOrderTypeId":"PICK-UP-TYPE"
}


Results in orders with payments that look like this, including a taxRates element:

"payments": {
"elements": [
...
 "taxAmount": 299,
...
"taxRates": {
"elements": [
{
"id": "S6QPJNZ253YGA",
"paymentRef": {
"id": "G5BBDPPZZGZGT"
},
"name": "New Jersey Sales Tax",
"rate": 662500,
 "isDefault": true,
"taxableAmount": 4508,
"taxAmount": 299
}
]
}
}
]
},

This order type, with only one notable difference in isDefault:

{
   "id":"Y4M8BG2RQBNXW",
   "labelKey":"com.clover.order.type.dine_in",
   "label":"Grubhub",
   "taxable":true,
   "isDefault":false,
   "filterCategories":false,
   "isHidden":false,
   "fee":0,
   "minOrderAmount":0,
   "maxOrderAmount":0,
   "maxRadius":0,
   "avgOrderTime":0,
   "hoursAvailable":"BUSINESS",
   "isDeleted":false,
   "systemOrderTypeId":"DINE-IN-TYPE"
}


Results in payments with no taxRates element:

"payments": {
...
 "taxAmount": 132,
...
}
]
}


The structure of their order items is the same and they both include:

"taxRates": {
"elements": [
{
"id": "S6QPJNZ253YGA",
"lineItemRef": {
"id": "FJ2NPR6T5T80T"
},
"name": "New Jersey Sales Tax",
"rate": 662500,
"isDefault": true
}
]


isDefault at the order type seems to just be the default when entering new orders.

isDefault at the payment and order item level seem to confirm that the taxes are being applied correctly. From the docs: "payments[].taxRates[].isDefault Whether the tax rate was configued as a default tax rate at the time that the payment was created."


So...is there something that can be done via POS configuration to fix this??? Or is this just a quick of the API that the payments.taxRates element is unreliable?



Taxes
10 |2000 characters needed characters left characters exceeded

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

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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