Unable to override Automatic Calculation option in the Sales tax rate in Invoice created via API. The sales tax amount is being overridden but the sales tax rate is not.
I have automatic sales tax calculations on my QuickBooks account.
The payload is attached below.
The correct TxnTaxCodeRef and TotalTax are being passed. However, the sales tax amount is getting overridden correctly. Still, the specific sales tax rate is not being selected in the dropdown instead Automatic Calculation is selected there. This is working fine in the sandbox environment but not in production.
This is my Company ID:
Company Id for sandbox => [removed]
Company Id for production => [removed]
Payload
{
"TxnDate": "2024-04-01",
"Line": [
{
"LineNum": 1,
"Description": "Products",
"Amount": "517.00",
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": {
"value": "33"
},
"UnitPrice": "517.00",
"Qty": 1,
"TaxCodeRef": {
"value": "TAX"
}
}
},
{
"LineNum": 2,
"Description": "Setup Fee",
"Amount": "40.00",
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": {
"value": "41"
},
"UnitPrice": "40.00",
"Qty": 1,
"TaxCodeRef": {
"value": "TAX"
}
}
},
{
"LineNum": 3,
"Description": "Ship Handling Fee",
"Amount": "3.00",
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": {
"value": "31"
},
"UnitPrice": "3.00",
"Qty": 1,
"TaxCodeRef": {
"value": "TAX"
}
}
},
{
"LineNum": 4,
"Description": "Shipping",
"Amount": "20.83",
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": {
"value": "6"
},
"UnitPrice": "20.83",
"Qty": 1,
"TaxCodeRef": {
"value": "TAX"
}
}
}
],
"CustomerRef": {
"value": "7461"
},
"DocNumber": "xxxxxxxxx",
"PrivateNote": {REMOVED}
"TxnTaxDetail": {
"TxnTaxCodeRef": {
"value": "9",
"name": {REMOVED}
},
"TotalTax": "36.19"
},
"ShipAddr": {REMOVED}
",
"Line1": "
"Line2": "",
"PostalCode": "xxxxx-xxxx",
"{REMOVED}
}
}
}
