Add product document
Changed onPOST /api/v1/products/{id}/upload
Handles the uploading of a document to a product"
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.
Path parameters
The Product Hashed ID
Query parameters
Include child relationships of the Client Object. ie ?include=documents,system_logs
Available includes:
contacts [All contacts related to the client]
documents [All documents related to the client]
gateway_tokens [All payment tokens related to the client]
activities [All activities related to the client]
ledger [The client ledger]
system_logs [System logs related to the client]
group_settings [The group settings object the client is assigned to]
Usage:
/api/v1/clients?include=contacts,documents,activities
Headers
The API token to be used for authentication
Used to send the XMLHttpRequest header
Request body multipart/form-data
Example request
{
"_method": "POST"
}Response
Returns the Product object
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
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor 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 - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking