The Stock Reconciliation 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: false
Default: false
{
"id": "stock-reconciliation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"set_posting_time": false,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"difference_amount": 0,
"scan_barcode": "scan_barcode_example",
"scan_mode": false,
"set_warehouse": "set_warehouse_example"
} /api/stock/stock-reconciliation/{id} Retrieve a stock reconciliation
Retrieves the details of an existing stock reconciliation. Supply the unique stock reconciliation ID that was returned from a previous request.
Path parameters
The identifier of the stock reconciliation to retrieve.
Returns
Returns the stock reconciliation object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/stock-reconciliation/stock-reconciliation_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "stock-reconciliation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"set_posting_time": false,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"difference_amount": 0,
"scan_barcode": "scan_barcode_example",
"scan_mode": false,
"set_warehouse": "set_warehouse_example"
} /api/stock/stock-reconciliation List all stock reconciliations
Returns a list of stock reconciliations. 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 stock reconciliation objects.
curl https://api.overplane.dev/api/stock/stock-reconciliation \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "stock-reconciliation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"set_posting_time": false,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"difference_amount": 0,
"scan_barcode": "scan_barcode_example",
"scan_mode": false,
"set_warehouse": "set_warehouse_example"
}
],
"has_more": false,
"total": 1
} /api/stock/stock-reconciliation Create a stock reconciliation
Creates a new stock reconciliation object.
Body parameters
Default: draft
Default: false
Default: false
Returns
Returns the newly created stock reconciliation object if the call succeeded.
curl https://api.overplane.dev/api/stock/stock-reconciliation \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp","purpose":"purpose_example","posting_date":"2024-01-15","posting_time":"posting_time_example"}' {
"id": "stock-reconciliation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"set_posting_time": false,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"difference_amount": 0,
"scan_barcode": "scan_barcode_example",
"scan_mode": false,
"set_warehouse": "set_warehouse_example"
} /api/stock/stock-reconciliation/{id} Update a stock reconciliation
Updates the specified stock reconciliation by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the stock reconciliation to update.
Body parameters
Default: draft
Default: false
Default: false
Returns
Returns the updated stock reconciliation object.
curl https://api.overplane.dev/api/stock/stock-reconciliation/stock-reconciliation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "stock-reconciliation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"set_posting_time": false,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"difference_amount": 0,
"scan_barcode": "scan_barcode_example",
"scan_mode": false,
"set_warehouse": "set_warehouse_example"
} /api/stock/stock-reconciliation/{id} Delete a stock reconciliation
Permanently deletes a stock reconciliation. This cannot be undone.
Path parameters
The identifier of the stock reconciliation to delete.
Returns
Returns a confirmation that the stock reconciliation has been deleted.
curl https://api.overplane.dev/api/stock/stock-reconciliation/stock-reconciliation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "stock-reconciliation_abc123",
"deleted": true
} /api/stock/stock-reconciliation/{id}/submit Submit a stock reconciliation
Submits a draft stock reconciliation, transitioning its status from draft to submitted.
Path parameters
The identifier of the stock reconciliation to act on.
Returns
Returns the stock reconciliation object with updated status.
curl https://api.overplane.dev/api/stock/stock-reconciliation/stock-reconciliation_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "stock-reconciliation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"set_posting_time": false,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"difference_amount": 0,
"scan_barcode": "scan_barcode_example",
"scan_mode": false,
"set_warehouse": "set_warehouse_example"
} /api/stock/stock-reconciliation/{id}/cancel Cancel a stock reconciliation
Cancels a submitted stock reconciliation, transitioning its status to cancelled.
Path parameters
The identifier of the stock reconciliation to act on.
Returns
Returns the stock reconciliation object with updated status.
curl https://api.overplane.dev/api/stock/stock-reconciliation/stock-reconciliation_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "stock-reconciliation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"set_posting_time": false,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"difference_amount": 0,
"scan_barcode": "scan_barcode_example",
"scan_mode": false,
"set_warehouse": "set_warehouse_example"
} Line items
Child objects that belong to this stock reconciliation. These are accessed via the parent's ID.
Stock Reconciliation Item
Attributes
Endpoints
/api/stock/stock-reconciliation-item?parent_id={id} /api/stock/stock-reconciliation-item /api/stock/stock-reconciliation-item/{id} /api/stock/stock-reconciliation-item/{id} /api/stock/stock-reconciliation-item/reorder {
"id": "stock-reconciliation-item_abc123",
"idx": 1,
"stock_reconciliation_id": "stock_reconciliation_id_example",
"barcode": "barcode_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"warehouse": "warehouse_example",
"qty": 0,
"stock_uom": "stock_uom_example",
"valuation_rate": 0,
"amount": 0,
"serial_no": "serial_no_example",
"current_qty": 0,
"current_serial_no": "current_serial_no_example",
"current_valuation_rate": 0,
"current_amount": 0,
"quantity_difference": "quantity_difference_example",
"amount_difference": 0,
"batch_no": "batch_no_example",
"allow_zero_valuation_rate": false,
"has_item_scanned": "has_item_scanned_example",
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"current_serial_and_batch_bundle": "current_serial_and_batch_bundle_example",
"item_group": "item_group_example",
"use_serial_batch_fields": false,
"reconcile_all_serial_batch": false
}