The Asset 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
Default: Company
Default: false
Default: false
Default: false
Default: 1
Default: false
Default: 0
{
"id": "asset_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset_name": "asset_name_example",
"item_code": "item_code_example",
"asset_category": "asset_category_example",
"asset_owner": "Company",
"asset_owner_company": "Example Corp",
"supplier": "supplier_example",
"customer": "customer_example",
"image": "image_example",
"company": "Example Corp",
"location": "location_example",
"custodian": "custodian_example",
"cost_center": "cost_center_example",
"department": "department_example",
"purchase_date": "2024-01-15",
"disposal_date": "2024-01-15",
"journal_entry_for_scrap": "journal_entry_for_scrap_example",
"available_for_use_date": "2024-01-15",
"calculate_depreciation": false,
"opening_accumulated_depreciation": 0,
"depreciation_method": "depreciation_method_example",
"value_after_depreciation": 0,
"total_number_of_depreciations": 0,
"frequency_of_depreciation": 0,
"next_depreciation_date": "2024-01-15",
"policy_number": "policy_number_example",
"insurer": "insurer_example",
"insured_value": "insured_value_example",
"insurance_start_date": "2024-01-15",
"insurance_end_date": "2024-01-15",
"comprehensive_insurance": "comprehensive_insurance_example",
"maintenance_required": false,
"booked_fixed_asset": false,
"purchase_receipt": "purchase_receipt_example",
"purchase_invoice": "purchase_invoice_example",
"default_finance_book": "default_finance_book_example",
"split_from": "split_from_example",
"asset_quantity": 1,
"depr_entry_posting_status": "depr_entry_posting_status_example",
"is_fully_depreciated": false,
"total_asset_cost": 0,
"additional_asset_cost": 0,
"purchase_amount": 0,
"opening_number_of_booked_depreciations": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"purchase_invoice_item": "purchase_invoice_item_example",
"net_purchase_amount": 0,
"asset_type": "asset_type_example",
"item_name": "item_name_example"
} /api/assets/asset/{id} Retrieve a asset
Retrieves the details of an existing asset. Supply the unique asset ID that was returned from a previous request.
Path parameters
The identifier of the asset to retrieve.
Returns
Returns the asset object if a valid identifier was provided.
curl https://api.overplane.dev/api/assets/asset/asset_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "asset_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset_name": "asset_name_example",
"item_code": "item_code_example",
"asset_category": "asset_category_example",
"asset_owner": "Company",
"asset_owner_company": "Example Corp",
"supplier": "supplier_example",
"customer": "customer_example",
"image": "image_example",
"company": "Example Corp",
"location": "location_example",
"custodian": "custodian_example",
"cost_center": "cost_center_example",
"department": "department_example",
"purchase_date": "2024-01-15",
"disposal_date": "2024-01-15",
"journal_entry_for_scrap": "journal_entry_for_scrap_example",
"available_for_use_date": "2024-01-15",
"calculate_depreciation": false,
"opening_accumulated_depreciation": 0,
"depreciation_method": "depreciation_method_example",
"value_after_depreciation": 0,
"total_number_of_depreciations": 0,
"frequency_of_depreciation": 0,
"next_depreciation_date": "2024-01-15",
"policy_number": "policy_number_example",
"insurer": "insurer_example",
"insured_value": "insured_value_example",
"insurance_start_date": "2024-01-15",
"insurance_end_date": "2024-01-15",
"comprehensive_insurance": "comprehensive_insurance_example",
"maintenance_required": false,
"booked_fixed_asset": false,
"purchase_receipt": "purchase_receipt_example",
"purchase_invoice": "purchase_invoice_example",
"default_finance_book": "default_finance_book_example",
"split_from": "split_from_example",
"asset_quantity": 1,
"depr_entry_posting_status": "depr_entry_posting_status_example",
"is_fully_depreciated": false,
"total_asset_cost": 0,
"additional_asset_cost": 0,
"purchase_amount": 0,
"opening_number_of_booked_depreciations": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"purchase_invoice_item": "purchase_invoice_item_example",
"net_purchase_amount": 0,
"asset_type": "asset_type_example",
"item_name": "item_name_example"
} /api/assets/asset List all assets
Returns a list of assets. 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 asset objects.
curl https://api.overplane.dev/api/assets/asset \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "asset_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset_name": "asset_name_example",
"item_code": "item_code_example",
"asset_category": "asset_category_example",
"asset_owner": "Company",
"asset_owner_company": "Example Corp",
"supplier": "supplier_example",
"customer": "customer_example",
"image": "image_example",
"company": "Example Corp",
"location": "location_example",
"custodian": "custodian_example",
"cost_center": "cost_center_example",
"department": "department_example",
"purchase_date": "2024-01-15",
"disposal_date": "2024-01-15",
"journal_entry_for_scrap": "journal_entry_for_scrap_example",
"available_for_use_date": "2024-01-15",
"calculate_depreciation": false,
"opening_accumulated_depreciation": 0,
"depreciation_method": "depreciation_method_example",
"value_after_depreciation": 0,
"total_number_of_depreciations": 0,
"frequency_of_depreciation": 0,
"next_depreciation_date": "2024-01-15",
"policy_number": "policy_number_example",
"insurer": "insurer_example",
"insured_value": "insured_value_example",
"insurance_start_date": "2024-01-15",
"insurance_end_date": "2024-01-15",
"comprehensive_insurance": "comprehensive_insurance_example",
"maintenance_required": false,
"booked_fixed_asset": false,
"purchase_receipt": "purchase_receipt_example",
"purchase_invoice": "purchase_invoice_example",
"default_finance_book": "default_finance_book_example",
"split_from": "split_from_example",
"asset_quantity": 1,
"depr_entry_posting_status": "depr_entry_posting_status_example",
"is_fully_depreciated": false,
"total_asset_cost": 0,
"additional_asset_cost": 0,
"purchase_amount": 0,
"opening_number_of_booked_depreciations": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"purchase_invoice_item": "purchase_invoice_item_example",
"net_purchase_amount": 0,
"asset_type": "asset_type_example",
"item_name": "item_name_example"
}
],
"has_more": false,
"total": 1
} /api/assets/asset Create a asset
Creates a new asset object.
Body parameters
Default: draft
Default: Company
Default: false
Default: false
Default: false
Default: 1
Default: false
Default: 0
Returns
Returns the newly created asset object if the call succeeded.
curl https://api.overplane.dev/api/assets/asset \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"asset_name":"asset_name_example","item_code":"item_code_example","company":"Example Corp","location":"location_example","purchase_date":"2024-01-15"}' {
"id": "asset_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset_name": "asset_name_example",
"item_code": "item_code_example",
"asset_category": "asset_category_example",
"asset_owner": "Company",
"asset_owner_company": "Example Corp",
"supplier": "supplier_example",
"customer": "customer_example",
"image": "image_example",
"company": "Example Corp",
"location": "location_example",
"custodian": "custodian_example",
"cost_center": "cost_center_example",
"department": "department_example",
"purchase_date": "2024-01-15",
"disposal_date": "2024-01-15",
"journal_entry_for_scrap": "journal_entry_for_scrap_example",
"available_for_use_date": "2024-01-15",
"calculate_depreciation": false,
"opening_accumulated_depreciation": 0,
"depreciation_method": "depreciation_method_example",
"value_after_depreciation": 0,
"total_number_of_depreciations": 0,
"frequency_of_depreciation": 0,
"next_depreciation_date": "2024-01-15",
"policy_number": "policy_number_example",
"insurer": "insurer_example",
"insured_value": "insured_value_example",
"insurance_start_date": "2024-01-15",
"insurance_end_date": "2024-01-15",
"comprehensive_insurance": "comprehensive_insurance_example",
"maintenance_required": false,
"booked_fixed_asset": false,
"purchase_receipt": "purchase_receipt_example",
"purchase_invoice": "purchase_invoice_example",
"default_finance_book": "default_finance_book_example",
"split_from": "split_from_example",
"asset_quantity": 1,
"depr_entry_posting_status": "depr_entry_posting_status_example",
"is_fully_depreciated": false,
"total_asset_cost": 0,
"additional_asset_cost": 0,
"purchase_amount": 0,
"opening_number_of_booked_depreciations": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"purchase_invoice_item": "purchase_invoice_item_example",
"net_purchase_amount": 0,
"asset_type": "asset_type_example",
"item_name": "item_name_example"
} /api/assets/asset/{id} Update a asset
Updates the specified asset by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the asset to update.
Body parameters
Default: draft
Default: Company
Default: false
Default: false
Default: false
Default: 1
Default: false
Default: 0
Returns
Returns the updated asset object.
curl https://api.overplane.dev/api/assets/asset/asset_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","asset_name":"asset_name_example"}' {
"id": "asset_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset_name": "asset_name_example",
"item_code": "item_code_example",
"asset_category": "asset_category_example",
"asset_owner": "Company",
"asset_owner_company": "Example Corp",
"supplier": "supplier_example",
"customer": "customer_example",
"image": "image_example",
"company": "Example Corp",
"location": "location_example",
"custodian": "custodian_example",
"cost_center": "cost_center_example",
"department": "department_example",
"purchase_date": "2024-01-15",
"disposal_date": "2024-01-15",
"journal_entry_for_scrap": "journal_entry_for_scrap_example",
"available_for_use_date": "2024-01-15",
"calculate_depreciation": false,
"opening_accumulated_depreciation": 0,
"depreciation_method": "depreciation_method_example",
"value_after_depreciation": 0,
"total_number_of_depreciations": 0,
"frequency_of_depreciation": 0,
"next_depreciation_date": "2024-01-15",
"policy_number": "policy_number_example",
"insurer": "insurer_example",
"insured_value": "insured_value_example",
"insurance_start_date": "2024-01-15",
"insurance_end_date": "2024-01-15",
"comprehensive_insurance": "comprehensive_insurance_example",
"maintenance_required": false,
"booked_fixed_asset": false,
"purchase_receipt": "purchase_receipt_example",
"purchase_invoice": "purchase_invoice_example",
"default_finance_book": "default_finance_book_example",
"split_from": "split_from_example",
"asset_quantity": 1,
"depr_entry_posting_status": "depr_entry_posting_status_example",
"is_fully_depreciated": false,
"total_asset_cost": 0,
"additional_asset_cost": 0,
"purchase_amount": 0,
"opening_number_of_booked_depreciations": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"purchase_invoice_item": "purchase_invoice_item_example",
"net_purchase_amount": 0,
"asset_type": "asset_type_example",
"item_name": "item_name_example"
} /api/assets/asset/{id} Delete a asset
Permanently deletes a asset. This cannot be undone.
Path parameters
The identifier of the asset to delete.
Returns
Returns a confirmation that the asset has been deleted.
curl https://api.overplane.dev/api/assets/asset/asset_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "asset_abc123",
"deleted": true
} /api/assets/asset/{id}/submit Submit a asset
Submits a draft asset, transitioning its status from draft to submitted.
Path parameters
The identifier of the asset to act on.
Returns
Returns the asset object with updated status.
curl https://api.overplane.dev/api/assets/asset/asset_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset_name": "asset_name_example",
"item_code": "item_code_example",
"asset_category": "asset_category_example",
"asset_owner": "Company",
"asset_owner_company": "Example Corp",
"supplier": "supplier_example",
"customer": "customer_example",
"image": "image_example",
"company": "Example Corp",
"location": "location_example",
"custodian": "custodian_example",
"cost_center": "cost_center_example",
"department": "department_example",
"purchase_date": "2024-01-15",
"disposal_date": "2024-01-15",
"journal_entry_for_scrap": "journal_entry_for_scrap_example",
"available_for_use_date": "2024-01-15",
"calculate_depreciation": false,
"opening_accumulated_depreciation": 0,
"depreciation_method": "depreciation_method_example",
"value_after_depreciation": 0,
"total_number_of_depreciations": 0,
"frequency_of_depreciation": 0,
"next_depreciation_date": "2024-01-15",
"policy_number": "policy_number_example",
"insurer": "insurer_example",
"insured_value": "insured_value_example",
"insurance_start_date": "2024-01-15",
"insurance_end_date": "2024-01-15",
"comprehensive_insurance": "comprehensive_insurance_example",
"maintenance_required": false,
"booked_fixed_asset": false,
"purchase_receipt": "purchase_receipt_example",
"purchase_invoice": "purchase_invoice_example",
"default_finance_book": "default_finance_book_example",
"split_from": "split_from_example",
"asset_quantity": 1,
"depr_entry_posting_status": "depr_entry_posting_status_example",
"is_fully_depreciated": false,
"total_asset_cost": 0,
"additional_asset_cost": 0,
"purchase_amount": 0,
"opening_number_of_booked_depreciations": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"purchase_invoice_item": "purchase_invoice_item_example",
"net_purchase_amount": 0,
"asset_type": "asset_type_example",
"item_name": "item_name_example"
} /api/assets/asset/{id}/cancel Cancel a asset
Cancels a submitted asset, transitioning its status to cancelled.
Path parameters
The identifier of the asset to act on.
Returns
Returns the asset object with updated status.
curl https://api.overplane.dev/api/assets/asset/asset_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset_name": "asset_name_example",
"item_code": "item_code_example",
"asset_category": "asset_category_example",
"asset_owner": "Company",
"asset_owner_company": "Example Corp",
"supplier": "supplier_example",
"customer": "customer_example",
"image": "image_example",
"company": "Example Corp",
"location": "location_example",
"custodian": "custodian_example",
"cost_center": "cost_center_example",
"department": "department_example",
"purchase_date": "2024-01-15",
"disposal_date": "2024-01-15",
"journal_entry_for_scrap": "journal_entry_for_scrap_example",
"available_for_use_date": "2024-01-15",
"calculate_depreciation": false,
"opening_accumulated_depreciation": 0,
"depreciation_method": "depreciation_method_example",
"value_after_depreciation": 0,
"total_number_of_depreciations": 0,
"frequency_of_depreciation": 0,
"next_depreciation_date": "2024-01-15",
"policy_number": "policy_number_example",
"insurer": "insurer_example",
"insured_value": "insured_value_example",
"insurance_start_date": "2024-01-15",
"insurance_end_date": "2024-01-15",
"comprehensive_insurance": "comprehensive_insurance_example",
"maintenance_required": false,
"booked_fixed_asset": false,
"purchase_receipt": "purchase_receipt_example",
"purchase_invoice": "purchase_invoice_example",
"default_finance_book": "default_finance_book_example",
"split_from": "split_from_example",
"asset_quantity": 1,
"depr_entry_posting_status": "depr_entry_posting_status_example",
"is_fully_depreciated": false,
"total_asset_cost": 0,
"additional_asset_cost": 0,
"purchase_amount": 0,
"opening_number_of_booked_depreciations": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"purchase_invoice_item": "purchase_invoice_item_example",
"net_purchase_amount": 0,
"asset_type": "asset_type_example",
"item_name": "item_name_example"
}