mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-15 23:52:33 +01:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
|
|
||
|
ProductBulkAction:
|
||
|
required:
|
||
|
- action
|
||
|
- ids
|
||
|
properties:
|
||
|
action:
|
||
|
type: string
|
||
|
example: archive
|
||
|
description: 'The action to perform ie. archive / restore / delete / set_tax_id'
|
||
|
ids:
|
||
|
type: array
|
||
|
items:
|
||
|
format: string
|
||
|
type: string
|
||
|
example: 2J234DFA,D2J234DFA,D2J234DFA
|
||
|
description: string array of client hashed ids
|
||
|
tax_id:
|
||
|
type: string
|
||
|
example: '1'
|
||
|
description: |
|
||
|
The tax rate id to set on the list of products
|
||
|
|
||
|
The following constants are available (default = '1')
|
||
|
|
||
|
```
|
||
|
PRODUCT_TYPE_PHYSICAL = '1'
|
||
|
PRODUCT_TYPE_SERVICE = '2'
|
||
|
PRODUCT_TYPE_DIGITAL = '3'
|
||
|
PRODUCT_TYPE_SHIPPING = '4'
|
||
|
PRODUCT_TYPE_EXEMPT = '5'
|
||
|
PRODUCT_TYPE_REDUCED_TAX = '6'
|
||
|
PRODUCT_TYPE_OVERRIDE_TAX = '7'
|
||
|
PRODUCT_TYPE_ZERO_RATED = '8'
|
||
|
PRODUCT_TYPE_REVERSE_TAX = '9'
|
||
|
```
|
||
|
type: object
|