The Stock Reservation Entry 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: 0
Default: 0
Default: 0
Default: false
Default: false
Default: Qty
{
"id": "stock-reservation-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"stock_uom": "stock_uom_example",
"project": "project_example",
"company": "Example Corp",
"reserved_qty": 0,
"delivered_qty": 0,
"available_qty": 0,
"voucher_qty": 0,
"has_serial_no": false,
"has_batch_no": false,
"reservation_based_on": "Qty",
"from_voucher_type": "from_voucher_type_example",
"from_voucher_detail_no": "from_voucher_detail_no_example",
"from_voucher_no": "from_voucher_no_example",
"consumed_qty": 0,
"transferred_qty": 0
} /api/stock/stock-reservation-entry/{id} Retrieve a stock reservation entry
Retrieves the details of an existing stock reservation entry. Supply the unique stock reservation entry ID that was returned from a previous request.
Path parameters
The identifier of the stock reservation entry to retrieve.
Returns
Returns the stock reservation entry object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/stock-reservation-entry/stock-reservation-entry_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "stock-reservation-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"stock_uom": "stock_uom_example",
"project": "project_example",
"company": "Example Corp",
"reserved_qty": 0,
"delivered_qty": 0,
"available_qty": 0,
"voucher_qty": 0,
"has_serial_no": false,
"has_batch_no": false,
"reservation_based_on": "Qty",
"from_voucher_type": "from_voucher_type_example",
"from_voucher_detail_no": "from_voucher_detail_no_example",
"from_voucher_no": "from_voucher_no_example",
"consumed_qty": 0,
"transferred_qty": 0
} /api/stock/stock-reservation-entry List all stock reservation entrys
Returns a list of stock reservation entrys. 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 reservation entry objects.
curl https://api.overplane.dev/api/stock/stock-reservation-entry \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "stock-reservation-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"stock_uom": "stock_uom_example",
"project": "project_example",
"company": "Example Corp",
"reserved_qty": 0,
"delivered_qty": 0,
"available_qty": 0,
"voucher_qty": 0,
"has_serial_no": false,
"has_batch_no": false,
"reservation_based_on": "Qty",
"from_voucher_type": "from_voucher_type_example",
"from_voucher_detail_no": "from_voucher_detail_no_example",
"from_voucher_no": "from_voucher_no_example",
"consumed_qty": 0,
"transferred_qty": 0
}
],
"has_more": false,
"total": 1
} /api/stock/stock-reservation-entry Create a stock reservation entry
Creates a new stock reservation entry object.
Body parameters
Default: draft
Default: 0
Default: 0
Default: 0
Default: false
Default: false
Default: Qty
Returns
Returns the newly created stock reservation entry object if the call succeeded.
curl https://api.overplane.dev/api/stock/stock-reservation-entry \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "stock-reservation-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"stock_uom": "stock_uom_example",
"project": "project_example",
"company": "Example Corp",
"reserved_qty": 0,
"delivered_qty": 0,
"available_qty": 0,
"voucher_qty": 0,
"has_serial_no": false,
"has_batch_no": false,
"reservation_based_on": "Qty",
"from_voucher_type": "from_voucher_type_example",
"from_voucher_detail_no": "from_voucher_detail_no_example",
"from_voucher_no": "from_voucher_no_example",
"consumed_qty": 0,
"transferred_qty": 0
} /api/stock/stock-reservation-entry/{id} Update a stock reservation entry
Updates the specified stock reservation entry by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the stock reservation entry to update.
Body parameters
Default: draft
Default: 0
Default: 0
Default: 0
Default: false
Default: false
Default: Qty
Returns
Returns the updated stock reservation entry object.
curl https://api.overplane.dev/api/stock/stock-reservation-entry/stock-reservation-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","item_code":"item_code_example"}' {
"id": "stock-reservation-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"stock_uom": "stock_uom_example",
"project": "project_example",
"company": "Example Corp",
"reserved_qty": 0,
"delivered_qty": 0,
"available_qty": 0,
"voucher_qty": 0,
"has_serial_no": false,
"has_batch_no": false,
"reservation_based_on": "Qty",
"from_voucher_type": "from_voucher_type_example",
"from_voucher_detail_no": "from_voucher_detail_no_example",
"from_voucher_no": "from_voucher_no_example",
"consumed_qty": 0,
"transferred_qty": 0
} /api/stock/stock-reservation-entry/{id} Delete a stock reservation entry
Permanently deletes a stock reservation entry. This cannot be undone.
Path parameters
The identifier of the stock reservation entry to delete.
Returns
Returns a confirmation that the stock reservation entry has been deleted.
curl https://api.overplane.dev/api/stock/stock-reservation-entry/stock-reservation-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "stock-reservation-entry_abc123",
"deleted": true
} /api/stock/stock-reservation-entry/{id}/submit Submit a stock reservation entry
Submits a draft stock reservation entry, transitioning its status from draft to submitted.
Path parameters
The identifier of the stock reservation entry to act on.
Returns
Returns the stock reservation entry object with updated status.
curl https://api.overplane.dev/api/stock/stock-reservation-entry/stock-reservation-entry_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "stock-reservation-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"stock_uom": "stock_uom_example",
"project": "project_example",
"company": "Example Corp",
"reserved_qty": 0,
"delivered_qty": 0,
"available_qty": 0,
"voucher_qty": 0,
"has_serial_no": false,
"has_batch_no": false,
"reservation_based_on": "Qty",
"from_voucher_type": "from_voucher_type_example",
"from_voucher_detail_no": "from_voucher_detail_no_example",
"from_voucher_no": "from_voucher_no_example",
"consumed_qty": 0,
"transferred_qty": 0
} /api/stock/stock-reservation-entry/{id}/cancel Cancel a stock reservation entry
Cancels a submitted stock reservation entry, transitioning its status to cancelled.
Path parameters
The identifier of the stock reservation entry to act on.
Returns
Returns the stock reservation entry object with updated status.
curl https://api.overplane.dev/api/stock/stock-reservation-entry/stock-reservation-entry_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "stock-reservation-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"stock_uom": "stock_uom_example",
"project": "project_example",
"company": "Example Corp",
"reserved_qty": 0,
"delivered_qty": 0,
"available_qty": 0,
"voucher_qty": 0,
"has_serial_no": false,
"has_batch_no": false,
"reservation_based_on": "Qty",
"from_voucher_type": "from_voucher_type_example",
"from_voucher_detail_no": "from_voucher_detail_no_example",
"from_voucher_no": "from_voucher_no_example",
"consumed_qty": 0,
"transferred_qty": 0
}