The Installation Note object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: draft
{
"id": "installation-note_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"customer_name": "customer_name_example",
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "[email protected]",
"territory": "territory_example",
"customer_group": "customer_group_example",
"inst_date": "2024-01-15",
"inst_time": "inst_time_example",
"company": "Example Corp",
"remarks": "remarks_example",
"project": "project_example"
} /api/stock/installation-note/{id} Retrieve a installation note
Retrieves the details of an existing installation note. Supply the unique installation note ID that was returned from a previous request.
Path parameters
The identifier of the installation note to retrieve.
Returns
Returns the installation note object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/installation-note/installation-note_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "installation-note_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"customer_name": "customer_name_example",
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "[email protected]",
"territory": "territory_example",
"customer_group": "customer_group_example",
"inst_date": "2024-01-15",
"inst_time": "inst_time_example",
"company": "Example Corp",
"remarks": "remarks_example",
"project": "project_example"
} /api/stock/installation-note List all installation notes
Returns a list of installation notes. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of installation note objects.
curl https://api.overplane.dev/api/stock/installation-note \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "installation-note_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"customer_name": "customer_name_example",
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "[email protected]",
"territory": "territory_example",
"customer_group": "customer_group_example",
"inst_date": "2024-01-15",
"inst_time": "inst_time_example",
"company": "Example Corp",
"remarks": "remarks_example",
"project": "project_example"
}
],
"has_more": false,
"total": 1
} /api/stock/installation-note Create a installation note
Creates a new installation note object.
Body parameters
Default: draft
Returns
Returns the newly created installation note object if the call succeeded.
curl https://api.overplane.dev/api/stock/installation-note \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"customer":"customer_example","territory":"territory_example","inst_date":"2024-01-15","company":"Example Corp"}' {
"id": "installation-note_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"customer_name": "customer_name_example",
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "[email protected]",
"territory": "territory_example",
"customer_group": "customer_group_example",
"inst_date": "2024-01-15",
"inst_time": "inst_time_example",
"company": "Example Corp",
"remarks": "remarks_example",
"project": "project_example"
} /api/stock/installation-note/{id} Update a installation note
Updates the specified installation note by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the installation note to update.
Body parameters
Default: draft
Returns
Returns the updated installation note object.
curl https://api.overplane.dev/api/stock/installation-note/installation-note_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","customer":"customer_example"}' {
"id": "installation-note_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"customer_name": "customer_name_example",
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "[email protected]",
"territory": "territory_example",
"customer_group": "customer_group_example",
"inst_date": "2024-01-15",
"inst_time": "inst_time_example",
"company": "Example Corp",
"remarks": "remarks_example",
"project": "project_example"
} /api/stock/installation-note/{id} Delete a installation note
Permanently deletes a installation note. This cannot be undone.
Path parameters
The identifier of the installation note to delete.
Returns
Returns a confirmation that the installation note has been deleted.
curl https://api.overplane.dev/api/stock/installation-note/installation-note_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "installation-note_abc123",
"deleted": true
} /api/stock/installation-note/{id}/submit Submit a installation note
Submits a draft installation note, transitioning its status from draft to submitted.
Path parameters
The identifier of the installation note to act on.
Returns
Returns the installation note object with updated status.
curl https://api.overplane.dev/api/stock/installation-note/installation-note_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "installation-note_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"customer_name": "customer_name_example",
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "[email protected]",
"territory": "territory_example",
"customer_group": "customer_group_example",
"inst_date": "2024-01-15",
"inst_time": "inst_time_example",
"company": "Example Corp",
"remarks": "remarks_example",
"project": "project_example"
} /api/stock/installation-note/{id}/cancel Cancel a installation note
Cancels a submitted installation note, transitioning its status to cancelled.
Path parameters
The identifier of the installation note to act on.
Returns
Returns the installation note object with updated status.
curl https://api.overplane.dev/api/stock/installation-note/installation-note_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "installation-note_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"customer_name": "customer_name_example",
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "[email protected]",
"territory": "territory_example",
"customer_group": "customer_group_example",
"inst_date": "2024-01-15",
"inst_time": "inst_time_example",
"company": "Example Corp",
"remarks": "remarks_example",
"project": "project_example"
} Line items
Child objects that belong to this installation note. These are accessed via the parent's ID.
Installation Note Item
Attributes
Endpoints
/api/stock/installation-note-item?parent_id={id} /api/stock/installation-note-item /api/stock/installation-note-item/{id} /api/stock/installation-note-item/{id} /api/stock/installation-note-item/reorder {
"id": "installation-note-item_abc123",
"idx": 1,
"installation_note_id": "installation_note_id_example",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"qty": 0,
"description": "description_example",
"prevdoc_detail_docname": "prevdoc_detail_docname_example",
"prevdoc_docname": "prevdoc_docname_example",
"prevdoc_doctype": "prevdoc_doctype_example",
"serial_and_batch_bundle": "serial_and_batch_bundle_example"
}