Taxes Not Applied?

I'm working on a web application to submit order and payment information to Square. I'm currently getting an error because the payment amount and the order amount differ. The difference is in the value of the sales tax applied to each line item. Here's my order request:

 

Accept: application/json
square-version: 2022-03-16
User-Agent: Square-PHP-SDK/17.3.0.20220316 (2022-03-16) Zend/3.4.0 (Linux-5.17.5-x86_64-linode154)
Host: connect.squareupsandbox.com
Accept-Encoding: deflate, gzip, br
Content-Length: 892
Content-Type: application/json


{
"order": {
"location_id": "LNWEFE97X7JZM",
"reference_id": "7680",
"line_items": [
{
"name": "Line Item 1",
"quantity": "1.00",
"base_price_money": {
"amount": 1200,
"currency": "USD"
}
},
{
"name": "Line Item 2",
"quantity": "1.00",
"base_price_money": {
"amount": 1620,
"currency": "USD"
}
},
{
"name": "Shipping",
"quantity": "1",
"base_price_money": {
"amount": 550,
"currency": "USD"
}
}
],
"taxes": [
{
"name": "Tax",
"percentage": "6",
"applied_money": {
"amount": 72,
"currency": "USD"
},
"scope": "LINE_ITEM"
},
{
"name": "Tax",
"percentage": "6",
"applied_money": {
"amount": 97,
"currency": "USD"
},
"scope": "LINE_ITEM"
}
],
"discounts": [
{
"name": "Discount",
"amount_money": {
"amount": 800,
"currency": "USD"
},
"scope": "LINE_ITEM"
},
{
"name": "Discount",
"amount_money": {
"amount": 1080,
"currency": "USD"
},
"scope": "LINE_ITEM"
}
]
},
"idempotency_key": "7680-62fd13c623cb59.23100205"
}

 

and here's the "taxes" section of the response:

 

 "taxes": [
{
"uid": "nUFXRAkNxMe97qWLkzU8sB",
"name": "Tax",
"percentage": "6",
"type": "ADDITIVE",
"applied_money": {
"amount": 0,
"currency": "USD"
},
"scope": "LINE_ITEM"
},
{
"uid": "P6KkOB3fnF3pdhJa19IyjB",
"name": "Tax",
"percentage": "6",
"type": "ADDITIVE",
"applied_money": {
"amount": 0,
"currency": "USD"
},
"scope": "LINE_ITEM"
}
]

 

Why is the applied_money amount 0 for each line item when the request has applied_money amounts specified?

266 Views
Message 1 of 1
Report
0 REPLIES 0