question

Mateus avatar image
Mateus asked Dan answered

What to pass on second parameter of **InventoryConnector.assignTaxRatesToItem(final String itemId, final List taxRates)**?

Hi, I'm trying to add a tax to an item on the inventory. What should I pass on the List<string> parameter? a name for the tax and its percentage value? Tax ID? In case I need the tax id, can I crete tax rates programmatically via SDK/API?

An example would be great.

Thanks!

Inventory
10 |2000

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

1 Answer

Dan avatar image
Dan answered

The assignTaxRatesToItem(...) takes the item uuid and a list of tax rate uuids. InventoryConnector has getTaxRates(), from which you can get the merchant's current tax rates. This requires the app to have INVENTORY_R permissions.

To create a TaxRate, see https://devask.clover.com/question/69...

10 |2000

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