Bulk product actions
Changed onPOST /api/v1/products/bulk
Archive / Restore / Delete / Set tax id in bulk
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-API-TOKEN, X-Requested-With
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Replaces the default response index from data to a user specific string
ie.
?index=new_index
response is wrapped
{
'new_index' : [
.....
]
}
Headers
The API token to be used for authentication
Used to send the XMLHttpRequest header
Request body
Example request
{
"action": "archive",
"ids": [
"2J234DFA,D2J234DFA,D2J234DFA"
],
"tax_id": "1"
}Response
The Product response
Example response
{
"id": "eP01N",
"user_id": "n30m4",
"assigned_user_id": "pR0j3",
"project_id": "pR0j3",
"vendor_id": "pR0j3",
"custom_value1": "Custom value 1",
"custom_value2": "Custom value 2",
"custom_value3": "Custom value 3",
"custom_value4": "Custom value 4",
"product_key": "1234",
"notes": "These are some notes about the product.",
"cost": 10,
"price": 20,
"quantity": 5,
"tax_name1": "Tax 1",
"tax_rate1": 10,
"tax_name2": "Tax 2",
"tax_rate2": 5,
"tax_name3": "Tax 3",
"archived_at": 1647604800,
"created_at": 1647604800,
"updated_at": 1647691496,
"tax_id": "1",
"income_account_id": "42"
}Changes
- info
added the optional property
to the response with the status
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning