The Asset Value Adjustment 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": "asset-value-adjustment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"asset": "asset_example",
"asset_category": "asset_category_example",
"finance_book": "finance_book_example",
"journal_entry": "journal_entry_example",
"date": "2024-01-15",
"current_asset_value": 0,
"new_asset_value": 0,
"difference_amount": 0,
"cost_center": "cost_center_example",
"difference_account": "difference_account_example"
} /api/assets/asset-value-adjustment/{id} Retrieve a asset value adjustment
Retrieves the details of an existing asset value adjustment. Supply the unique asset value adjustment ID that was returned from a previous request.
Path parameters
The identifier of the asset value adjustment to retrieve.
Returns
Returns the asset value adjustment object if a valid identifier was provided.
curl https://api.overplane.dev/api/assets/asset-value-adjustment/asset-value-adjustment_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "asset-value-adjustment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"asset": "asset_example",
"asset_category": "asset_category_example",
"finance_book": "finance_book_example",
"journal_entry": "journal_entry_example",
"date": "2024-01-15",
"current_asset_value": 0,
"new_asset_value": 0,
"difference_amount": 0,
"cost_center": "cost_center_example",
"difference_account": "difference_account_example"
} /api/assets/asset-value-adjustment List all asset value adjustments
Returns a list of asset value adjustments. 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 value adjustment objects.
curl https://api.overplane.dev/api/assets/asset-value-adjustment \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "asset-value-adjustment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"asset": "asset_example",
"asset_category": "asset_category_example",
"finance_book": "finance_book_example",
"journal_entry": "journal_entry_example",
"date": "2024-01-15",
"current_asset_value": 0,
"new_asset_value": 0,
"difference_amount": 0,
"cost_center": "cost_center_example",
"difference_account": "difference_account_example"
}
],
"has_more": false,
"total": 1
} /api/assets/asset-value-adjustment Create a asset value adjustment
Creates a new asset value adjustment object.
Body parameters
Default: draft
Returns
Returns the newly created asset value adjustment object if the call succeeded.
curl https://api.overplane.dev/api/assets/asset-value-adjustment \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"asset":"asset_example","date":"2024-01-15","current_asset_value":0,"new_asset_value":0,"difference_account":"difference_account_example"}' {
"id": "asset-value-adjustment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"asset": "asset_example",
"asset_category": "asset_category_example",
"finance_book": "finance_book_example",
"journal_entry": "journal_entry_example",
"date": "2024-01-15",
"current_asset_value": 0,
"new_asset_value": 0,
"difference_amount": 0,
"cost_center": "cost_center_example",
"difference_account": "difference_account_example"
} /api/assets/asset-value-adjustment/{id} Update a asset value adjustment
Updates the specified asset value adjustment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the asset value adjustment to update.
Body parameters
Default: draft
Returns
Returns the updated asset value adjustment object.
curl https://api.overplane.dev/api/assets/asset-value-adjustment/asset-value-adjustment_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "asset-value-adjustment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"asset": "asset_example",
"asset_category": "asset_category_example",
"finance_book": "finance_book_example",
"journal_entry": "journal_entry_example",
"date": "2024-01-15",
"current_asset_value": 0,
"new_asset_value": 0,
"difference_amount": 0,
"cost_center": "cost_center_example",
"difference_account": "difference_account_example"
} /api/assets/asset-value-adjustment/{id} Delete a asset value adjustment
Permanently deletes a asset value adjustment. This cannot be undone.
Path parameters
The identifier of the asset value adjustment to delete.
Returns
Returns a confirmation that the asset value adjustment has been deleted.
curl https://api.overplane.dev/api/assets/asset-value-adjustment/asset-value-adjustment_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "asset-value-adjustment_abc123",
"deleted": true
} /api/assets/asset-value-adjustment/{id}/submit Submit a asset value adjustment
Submits a draft asset value adjustment, transitioning its status from draft to submitted.
Path parameters
The identifier of the asset value adjustment to act on.
Returns
Returns the asset value adjustment object with updated status.
curl https://api.overplane.dev/api/assets/asset-value-adjustment/asset-value-adjustment_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-value-adjustment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"asset": "asset_example",
"asset_category": "asset_category_example",
"finance_book": "finance_book_example",
"journal_entry": "journal_entry_example",
"date": "2024-01-15",
"current_asset_value": 0,
"new_asset_value": 0,
"difference_amount": 0,
"cost_center": "cost_center_example",
"difference_account": "difference_account_example"
} /api/assets/asset-value-adjustment/{id}/cancel Cancel a asset value adjustment
Cancels a submitted asset value adjustment, transitioning its status to cancelled.
Path parameters
The identifier of the asset value adjustment to act on.
Returns
Returns the asset value adjustment object with updated status.
curl https://api.overplane.dev/api/assets/asset-value-adjustment/asset-value-adjustment_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-value-adjustment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"asset": "asset_example",
"asset_category": "asset_category_example",
"finance_book": "finance_book_example",
"journal_entry": "journal_entry_example",
"date": "2024-01-15",
"current_asset_value": 0,
"new_asset_value": 0,
"difference_amount": 0,
"cost_center": "cost_center_example",
"difference_account": "difference_account_example"
}