The Sales Invoice Timesheet object
Attributes
Unique identifier for the object.
{
"id": "sales-invoice-timesheet_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"time_sheet": "time_sheet_example",
"billing_hours": 0,
"billing_amount": 0,
"timesheet_detail": "timesheet_detail_example",
"activity_type": "activity_type_example",
"description": "description_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"project_name": "project_name_example"
} /api/accounts/sales-invoice-timesheet?parent_id={id} List sales invoice timesheets by parent
Returns all sales invoice timesheets belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of sales invoice timesheet objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/sales-invoice-timesheet?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "sales-invoice-timesheet_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"time_sheet": "time_sheet_example",
"billing_hours": 0,
"billing_amount": 0,
"timesheet_detail": "timesheet_detail_example",
"activity_type": "activity_type_example",
"description": "description_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"project_name": "project_name_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/sales-invoice-timesheet Create a sales invoice timesheet
Creates a new sales invoice timesheet object.
Body parameters
Returns
Returns the newly created sales invoice timesheet object if the call succeeded.
curl https://api.overplane.dev/api/accounts/sales-invoice-timesheet \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example"}' {
"id": "sales-invoice-timesheet_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"time_sheet": "time_sheet_example",
"billing_hours": 0,
"billing_amount": 0,
"timesheet_detail": "timesheet_detail_example",
"activity_type": "activity_type_example",
"description": "description_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"project_name": "project_name_example"
} /api/accounts/sales-invoice-timesheet/{id} Update a sales invoice timesheet
Updates the specified sales invoice timesheet by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the sales invoice timesheet to update.
Body parameters
Returns
Returns the updated sales invoice timesheet object.
curl https://api.overplane.dev/api/accounts/sales-invoice-timesheet/sales-invoice-timesheet_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "sales-invoice-timesheet_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"time_sheet": "time_sheet_example",
"billing_hours": 0,
"billing_amount": 0,
"timesheet_detail": "timesheet_detail_example",
"activity_type": "activity_type_example",
"description": "description_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"project_name": "project_name_example"
} /api/accounts/sales-invoice-timesheet/{id} Delete a sales invoice timesheet
Permanently deletes a sales invoice timesheet. This cannot be undone.
Path parameters
The identifier of the sales invoice timesheet to delete.
Returns
Returns a confirmation that the sales invoice timesheet has been deleted.
curl https://api.overplane.dev/api/accounts/sales-invoice-timesheet/sales-invoice-timesheet_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "sales-invoice-timesheet_abc123",
"deleted": true
} /api/accounts/sales-invoice-timesheet/reorder Reorder sales invoice timesheets
Updates the sort order of sales invoice timesheets within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/sales-invoice-timesheet/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "sales-invoice-timesheet_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"time_sheet": "time_sheet_example",
"billing_hours": 0,
"billing_amount": 0,
"timesheet_detail": "timesheet_detail_example",
"activity_type": "activity_type_example",
"description": "description_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"project_name": "project_name_example"
}