Vincent Rose
07/01/2025, 7:51 PMCeligo AI
07/01/2025, 7:51 PMAI generated answer (using internal Slack threads):To update tax amounts in a sales order via the REST API, you would need to POST to the
/record/v1/salesOrder/{id}
endpoint. The fields you would need to include in your request body would depend on your specific requirements, but at a minimum, you would likely need to include the taxCode
and taxRate
fields for each line item that you want to update.
Here is a simplified example of what your request body might look like:
json
{
"line": [
{
"itemId": "123",
"quantity": "1",
"taxCode": "NEW_TAX_CODE",
"taxRate": "NEW_TAX_RATE"
},
{
"itemId": "456",
"quantity": "2",
"taxCode": "NEW_TAX_CODE",
"taxRate": "NEW_TAX_RATE"
}
]
}
Please replace NEW_TAX_CODE
and NEW_TAX_RATE
with your actual tax code and tax rate. Also, replace 123
and 456
with your actual item IDs and adjust the quantities as needed.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
07/01/2025, 7:52 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837403655
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831296265
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825301647
Celigo AI
07/01/2025, 7:52 PM