Multiple Sales Tax on LineItems

9 views
Skip to first unread message

Scott Butler

unread,
Feb 26, 2012, 4:22:48 PM2/26/12
to Less Accounting API
When creating a line item, you can specify the sales taxes to be
applied. According to the docs, it is created like this:

Request: https://{your_business}.lessaccounting.com/proposals/11/line_items.json?line_item[unit_price]=7.32&line_item[line]=yo,
dis is da ting&line_item[sales_tax_ids]=1,2&api_key=89341988-6b36-4128-
b3d5-deab427132a7

So the sales tax id's are comma separated. However, this doesn't
work. Only for first sales tax gets applied to the line item.

Steven Bristol

unread,
Feb 29, 2012, 4:58:58 PM2/29/12
to Less Accounting API
yup, the docs are wrong, do it like this:


https://{your_business}.lessaccounting.com/proposals/11/line_items.json?lin
e_item[unit_price]=7.32&line_item[line]=yo,
dis is da ting&line_item[sales_tax_ids][]=1&line_item[sales_tax_ids]
[]=2&api_key=89341988-6b36-4128-
b3d5-deab427132a7


Notice:
1. extra brackets:
line_item[sales_tax_ids]***[]***
2. repeat the param for each id:
line_item[sales_tax_ids][]=1&line_item[sales_tax_ids][]=2

The new docs will be uploaded shortly.
Reply all
Reply to author
Forward
0 new messages