### Example: Create a Bundle with Multiple Asset Types Source: https://ezo.io/ezofficeinventory/developers Example command demonstrating the creation of a bundle with a mix of fixed assets, stock assets, and inventory assets, specifying quantities and prices where applicable. ```bash curl -H "token:" -X POST \ -d "bundle[name]=" \ -d "bundle[location_id]=" -d "bundle[identification_number]=" \ -d "bundle[description]=" \ -d "asset_ids=1,2,3,4,5,6" \ -d "asset_attributes[3][quantity]=2" \ -d "asset_attributes[4][quantity]=2" \ -d "asset_attributes[5][quantity]=2" \ -d "asset_attributes[5][price]=10" \ -d "asset_attributes[6][quantity]=2" \ -d "asset_attributes[6][price]=30" \ "https://.ezofficeinventory.com/bundles.api?" ``` -------------------------------- ### Start a Project Source: https://ezo.io/ezofficeinventory/developers This endpoint marks a project as in progress. It requires the project's unique identifier. ```curl curl -H "token:" -X PATCH \ https://.ezofficeinventory.com/projects//mark_in_progress.api ``` -------------------------------- ### Start a Project Source: https://ezo.io/ezofficeinventory/developers Marks a project as in progress. This action updates the project's status to indicate that it has begun. ```APIDOC ## Start a Project ### Description Initiates a project by marking it as in progress. ### Method PATCH ### Endpoint https://.ezofficeinventory.com/projects//mark_in_progress.api ### Parameters #### Path Parameters - **PROJECT#** (integer) - Required - The unique identifier of the project to start. ### Request Example (No request body required) ### Response #### Success Response (200) Confirmation of the project status update. #### Response Example (Response structure not provided in source) ``` -------------------------------- ### Start Work Order Source: https://ezo.io/ezofficeinventory/developers Marks a specified work order as 'in progress'. ```APIDOC ## PATCH /tasks//mark_in_progress.api ### Description Marks a specified work order as being in progress. ### Method PATCH ### Endpoint https://.ezofficeinventory.com/tasks//mark_in_progress.api ### Parameters #### Path Parameters - **Work_Order#** (string) - Required - The unique identifier of the work order to start. ### Response #### Success Response (200) - **status** (string) - Confirmation of the status update. #### Response Example [Example of the success response] ``` -------------------------------- ### Start Work Order Source: https://ezo.io/ezofficeinventory/developers Mark a specific work order as 'in progress' using its Work_Order#. ```curl curl -H "token:" -X PATCH \ https://.ezofficeinventory.com/tasks//mark_in_progress.api? ``` -------------------------------- ### Retrieve Reservation Requests Starting Today Source: https://ezo.io/ezofficeinventory/developers Get all reservation requests for assets, inventory, stock assets, and baskets that are starting today. Supports pagination. ```curl curl -H "token:" -X GET \ https://.ezofficeinventory.com/checkout_requests/filter.api? \ all=true&start_date=mm/dd/yyyy&page= ``` -------------------------------- ### Retrieve All Carts Source: https://ezo.io/ezofficeinventory/developers Get a list of all available carts in the system. ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/baskets.api ``` -------------------------------- ### Schedule Service for Asset Source: https://ezo.io/ezofficeinventory/developers Schedule a service for an asset. This requires service start and end dates, description, start and end times, and service type name. Optionally, set 'service[make_item_unavailable]' to true to make the item unavailable during the service period. ```bash curl -H "token:" -X POST \ -d "service[make_item_unavailable]=true" -d "service[end_date]=" \ -d "service_end_time=" \ -d "service[start_date]=" \ -d "service_start_time=" \ -d "service_type_name=" \ -d "service[description]=" \ http://.ezofficeinventory.com/assets//services.api?service_type=scheduled_service ``` -------------------------------- ### Retrieve Assets in Service Source: https://ezo.io/ezofficeinventory/developers Retrieve a list of all assets currently in service. You can optionally include 'show_document_urls=true' to get document links. Specify the page number to paginate through results, with 25 assets per page. ```bash curl -H "token:" -X GET \ -d "show_document_urls=true" \ "https://.ezofficeinventory.com/assets/filter.api?for_service=true&status=assets_being_serviced&page=" ``` -------------------------------- ### Retry-After Header Example Source: https://ezo.io/ezofficeinventory/developers This header indicates the number of seconds to wait before retrying a request after receiving a 429 Too Many Requests response. ```text Retry-After: 3600 ``` -------------------------------- ### Retrieve Stock Quantity by Location Source: https://ezo.io/ezofficeinventory/developers Get the stock quantity of a specific asset at a particular location. Requires the asset ID and location ID. ```bash curl -H "token:" -X GET \ -d "asset_id=" \ -d "location_id=" \ https://.ezofficeinventory.com/locations/get_quantity_by_location.api ``` -------------------------------- ### Create reservation request Source: https://ezo.io/ezofficeinventory/developers Creates a new reservation request for a specific asset. Requires specifying the start and end dates, an optional note, and the user ID. ```APIDOC ## POST /assets//reservation_requests.api ### Description Creates a new reservation request for a specific asset. ### Method POST ### Endpoint https://.ezofficeinventory.com/assets//reservation_requests.api ### Parameters #### Request Body - **reservation_request[from]** (string) - Required - The start date for the reservation (mm/dd/yyyy). - **reservation_request[to]** (string) - Required - The end date for the reservation (mm/dd/yyyy). - **reservation_request[note]** (string) - Optional - Comments or notes for the reservation request. - **user[id]** (string) - Required - The ID of the user making the reservation request. ### Request Example ```json { "reservation_request[from]": "mm/dd/yyyy", "reservation_request[to]": "mm/dd/yyyy", "reservation_request[note]": "", "user[id]": "" } ``` ``` -------------------------------- ### Create Reservation Request Source: https://ezo.io/ezofficeinventory/developers Use this endpoint to create a new reservation request for an asset. Ensure to provide the start date, end date, and any relevant notes. ```curl curl -H "token:" -X POST \ -d "reservation_request[from]=mm/dd/yyyy" \ -d "reservation_request[to]=mm/dd/yyyy" \ -d "reservation_request[note]=" \ -d "user[id]=" https://.ezofficeinventory.com/assets//reservation_requests.api ``` -------------------------------- ### Retrieve reservation requests starting today Source: https://ezo.io/ezofficeinventory/developers Retrieves all reservation requests for assets, inventory, stock assets, and baskets that are starting on the specified date. ```APIDOC ## GET /checkout_requests/filter.api ### Description Retrieves all reservation requests for assets, inventory, stock assets, and baskets that are starting on the specified date. ### Method GET ### Endpoint https://.ezofficeinventory.com/checkout_requests/filter.api ### Parameters #### Query Parameters - **all** (boolean) - Required - Set to `true` to retrieve all reservation requests. - **start_date** (string) - Required - The date to filter reservation requests by (mm/dd/yyyy). - **page** (integer) - Optional - The page number to retrieve. Defaults to 1. Each page contains up to 25 reservation requests. ### Response #### Success Response (200) - **reservation_requests** (array) - A list of reservation request objects. - Each object contains details of a reservation request. ``` -------------------------------- ### Create a Bundle Source: https://ezo.io/ezofficeinventory/developers Create a new bundle. `bundle[name]` and `asset_ids` are mandatory. For Asset Stock, `asset_attributes[Asset#][quantity]` is mandatory. For Inventory Asset, `asset_attributes[Asset#][quantity]` and `asset_attributes[Asset#][price]` are mandatory. Optional fields include `bundle[identification_number]`, `bundle[description]`, and `bundle[location_id]`. ```bash curl -H "token:" -X POST \ -d "bundle[name]=" \ -d "bundle[location_id]=" -d "bundle[identification_number]=" \ -d "bundle[description]=" \ -d "asset_ids=" \ -d "asset_attributes[][quantity]=" \ -d "asset_attributes[][price]=" \ "https://.ezofficeinventory.com/bundles.api" ``` -------------------------------- ### Create Package Source: https://ezo.io/ezofficeinventory/developers Use this endpoint to create a new package. Mandatory fields include package name and asset IDs. An optional description can also be provided. ```curl curl -H "token:" -X POST \ -d "package[name]=" \ -d "package[description]=" \ -d "asset_ids= " \ http://.ezofficeinventory.com/packages.api ``` -------------------------------- ### Create Project Source: https://ezo.io/ezofficeinventory/developers Creates a new project. The 'name' field is mandatory. Optional fields include 'identifier', 'description', 'expected_start_date', 'expected_end_date', 'user_ids', and 'contract_id'. Project settings for items, checkouts, reservations, purchase orders, tasks, baskets, and locations can also be configured. ```APIDOC ## Create Project ### Description Creates a new project with specified details and settings. ### Method POST ### Endpoint https://.ezofficeinventory.com/projects.api ### Parameters #### Request Body - **project[name]** (string) - Required - The name of the project. - **project[identifier]** (string) - Optional - A unique identifier for the project. - **project[description]** (string) - Optional - A description of the project. - **project[expected_start_date]** (string) - Optional - The expected start date in 'mm/dd/yyyy' format. - **project[expected_end_date]** (string) - Optional - The expected end date in 'mm/dd/yyyy' format. - **project[project_setting_attributes][items_enabled]** (boolean) - Optional - Enable or disable item tracking for the project. - **project[project_setting_attributes][checkouts_enabled]** (boolean) - Optional - Enable or disable checkout functionality for the project. - **project[project_setting_attributes][reservations_enabled]** (boolean) - Optional - Enable or disable reservation functionality for the project. - **project[project_setting_attributes][purchase_orders_enabled]** (boolean) - Optional - Enable or disable purchase order tracking for the project. - **project[project_setting_attributes][tasks_enabled]** (boolean) - Optional - Enable or disable task management for the project. - **project[project_setting_attributes][baskets_enabled]** (boolean) - Optional - Enable or disable basket functionality for the project. - **project[project_setting_attributes][locations_enabled]** (boolean) - Optional - Enable or disable location tracking for the project. - **user_ids** (string) - Optional - Comma-separated list of user IDs to associate with the project. - **contract_id** (string) - Optional - Comma-separated list of contract IDs to associate with the project. ### Request Example ```json { "project[name]": "", "project[identifier]": "", "project[description]": "", "project[expected_start_date]": "mm/dd/yyyy", "project[expected_end_date]": "mm/dd/yyyy", "project[project_setting_attributes][items_enabled]": true, "project[project_setting_attributes][checkouts_enabled]": true, "project[project_setting_attributes][reservations_enabled]": true, "project[project_setting_attributes][purchase_orders_enabled]": true, "project[project_setting_attributes][tasks_enabled]": true, "project[project_setting_attributes][baskets_enabled]": true, "project[project_setting_attributes][locations_enabled]": true, "user_ids": ",", "contract_id": "," } ``` ### Response #### Success Response (200) Details of the created project. #### Response Example (Response structure not provided in source) ``` -------------------------------- ### Retrieve Location-Based Thresholds Source: https://ezo.io/ezofficeinventory/developers Get location-specific threshold details for a given inventory item. ```APIDOC ## GET /inventory//location_based_thresholds.api ### Description Retrieves the threshold details for an inventory item, broken down by specific locations. ### Method GET ### Endpoint `https://.ezofficeinventory.com/inventory//location_based_thresholds.api` ### Parameters #### Path Parameters - **Inventory#** (string) - Required - The unique identifier of the inventory item. ### Response #### Success Response (200) - **thresholds** (object) - An object where keys are location IDs and values are the threshold quantities for that location. #### Response Example ```json { "thresholds": { "LOC456": 10, "LOC789": 5 } } ``` ``` -------------------------------- ### Create Package Source: https://ezo.io/ezofficeinventory/developers Creates a new package by specifying its name and associated assets. The package description is optional. ```APIDOC ## POST /packages.api ### Description Creates a new package with a name, optional description, and a list of asset IDs. ### Method POST ### Endpoint `http://.ezofficeinventory.com/packages.api` ### Parameters #### Request Body - **package[name]** (string) - Required - The name of the package. - **package[description]** (string) - Optional - A description for the package. - **asset_ids** (string) - Required - A space-separated list of asset IDs. ### Request Example ```json { "package[name]": "", "package[description]": "", "asset_ids": " " } ``` ### Response #### Success Response (200) (Response details not provided in source) #### Response Example (Response example not provided in source) ``` -------------------------------- ### Create a Bundle Source: https://ezo.io/ezofficeinventory/developers Creates a new bundle with specified assets and attributes. Requires bundle name and assets. Supports stock and inventory asset types with different mandatory fields. ```APIDOC ## Create a Bundle ### Description Creates a new bundle with specified assets and attributes. Requires bundle name and assets. Supports stock and inventory asset types with different mandatory fields. ### Method POST ### Endpoint `https://.ezofficeinventory.com/bundles.api` ### Parameters #### Request Body - **bundle[name]** (string) - Required - The name of the bundle. - **bundle[location_id]** (integer) - Optional - The ID of the location for the bundle. - **bundle[identification_number]** (string) - Optional - The identification number for the bundle. - **bundle[description]** (string) - Optional - A description for the bundle. - **asset_ids** (string) - Required - A comma-separated list of asset IDs to include in the bundle. - **asset_attributes[Asset#][quantity]** (integer) - Required for Asset Stock. The quantity of the asset. - **asset_attributes[Asset#][price]** (float) - Required for Inventory Asset. The price of the asset. ### Request Example (Mixed Asset Types) ``` curl -H "token:" -X POST \ -d "bundle[name]=" \ -d "bundle[location_id]=" \ -d "bundle[identification_number]=" \ -d "bundle[description]=" \ -d "asset_ids=1,2,3,4,5,6" \ -d "asset_attributes[3][quantity]=2" \ -d "asset_attributes[4][quantity]=2" \ -d "asset_attributes[5][quantity]=2" \ -d "asset_attributes[5][price]=10" \ -d "asset_attributes[6][quantity]=2" \ -d "asset_attributes[6][price]=30" \ "https://.ezofficeinventory.com/bundles.api?" ``` ``` -------------------------------- ### Retrieve Reserved Dates for Inventory Source: https://ezo.io/ezofficeinventory/developers Get the reserved dates for a specific inventory item. ```APIDOC ## GET /assets//reserved_dates.api ### Description Retrieves a list of dates for which a specific inventory item has been reserved. ### Method GET ### Endpoint `https://.ezofficeinventory.com/assets//reserved_dates.api` ### Parameters #### Path Parameters - **Inventory#** (string) - Required - The unique identifier of the inventory item. ### Response #### Success Response (200) - **reserved_dates** (array) - A list of dates (in YYYY-MM-DD format) when the inventory item is reserved. #### Response Example ```json { "reserved_dates": [ "2023-10-26", "2023-11-15" ] } ``` ``` -------------------------------- ### Create a New Project Source: https://ezo.io/ezofficeinventory/developers Use this endpoint to create a new project. Mandatory fields include the project name, and optional fields allow for identifiers, descriptions, dates, and various project settings. User IDs and contract IDs can also be associated. ```curl curl -H "token:" -X POST \ -d "project[name]=" \ -d "project[identifier]=" \ -d "project[description]=" \ -d "project[expected_start_date]=mm/dd/yyyy" \ -d "project[expected_end_date]=mm/dd/yyyy" \ -d "project[project_setting_attributes][items_enabled]=" \ -d "project[project_setting_attributes][checkouts_enabled]=" \ -d "project[project_setting_attributes][reservations_enabled]=" \ -d "project[project_setting_attributes][purchase_orders_enabled]=" \ -d "project[project_setting_attributes][tasks_enabled]=" \ -d "project[project_setting_attributes][baskets_enabled]=" \ -d "project[project_setting_attributes][locations_enabled]=" \ -d "user_ids=," \ -d "contract_id=," \ https://.ezofficeinventory.com/projects.api ``` -------------------------------- ### Link StockAsset/Inventory Reservation with Project Source: https://ezo.io/ezofficeinventory/developers Use this cURL command to link a stock asset or inventory reservation to a project. Ensure you specify the project_id and other reservation details. ```bash curl -H "token:" -X POST \ -d "inventory_reservation[from]=" \ -d "inventory_reservation[to]=" \ -d "inventory_reservation[quantity]=" \ -d "inventory_reservation[price]=" \ -d "inventory_reservation[location_number]=" \ -d "inventory_reservation[reserved_to_location_number]=" \ -d "inventory_reservation[project_id]=" \ -d "user[id]=" \ https://.ezofficeinventory.com/stock_assets//inventory_reservations.api ``` -------------------------------- ### Retrieve Reservation Requests Source: https://ezo.io/ezofficeinventory/developers Get reservation requests made by a specific user. Pagination is supported. ```APIDOC ## GET /members//reservation_requests.api ### Description Retrieves reservation requests made by a specific user. ### Method GET ### Endpoint https://.ezofficeinventory.com/members//reservation_requests.api?page= ### Parameters #### Path Parameters - **USER_ID** (integer) - Required - The ID of the user. #### Query Parameters - **page** (integer) - Optional - The page number to retrieve. Defaults to 1. Each page contains up to 25 entries. ### Request Example ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/members/123/reservation_requests.api?page=1 ``` ### Response #### Success Response (200) - **reservation_requests** (array) - A list of reservation requests. - **page** (integer) - The current page number. - **total_pages** (integer) - The total number of pages available. #### Response Example ```json { "reservation_requests": [ { "id": 501, "item_name": "Monitor", "requested_at": "2023-10-25T09:00:00Z" } ], "page": 1, "total_pages": 1 } ``` ``` -------------------------------- ### Create Inventory Reservation Source: https://ezo.io/ezofficeinventory/developers Use this endpoint to create a new inventory reservation. Ensure all required fields like dates, quantity, price, and user ID are provided. ```bash curl -H "token:" -X POST \ -d "inventory_reservation[from]=mm/dd/yyyy" \ -d "inventory_reservation[to]=mm/dd/yyyy" \ -d "inventory_reservation[quantity]=" \ -d "inventory_reservation[price]=" \ -d "inventory_reservation[note]=" \ -d "inventory_reservation[location_number]=" \ -d "user[id]=" https://.ezofficeinventory.com/inventory//inventory_reservations.api ``` -------------------------------- ### Retrieve Check In/Out History Source: https://ezo.io/ezofficeinventory/developers Get the check-in/check-out history for a specific user. Pagination is supported. ```APIDOC ## GET /members//checkin_checkout_history.api ### Description Retrieves the check-in/check-out history for a specific user. ### Method GET ### Endpoint https://.ezofficeinventory.com/members//checkin_checkout_history.api?page= ### Parameters #### Path Parameters - **USER_ID** (integer) - Required - The ID of the user. #### Query Parameters - **page** (integer) - Optional - The page number to retrieve. Defaults to 1. Each page contains up to 25 history entries. ### Request Example ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/members/123/checkin_checkout_history.api?page=1 ``` ### Response #### Success Response (200) - **history** (array) - A list of check-in/check-out history entries. - **page** (integer) - The current page number. - **total_pages** (integer) - The total number of pages available. #### Response Example ```json { "history": [ { "action": "checked_out", "item_name": "Dell Laptop", "timestamp": "2023-10-27T10:00:00Z" } ], "page": 1, "total_pages": 3 } ``` ``` -------------------------------- ### Create Stock Asset Reservation Source: https://ezo.io/ezofficeinventory/developers Use this endpoint to create a new reservation for a stock asset. Ensure all required fields like dates, quantity, price, and location details are provided. ```bash curl -H "token:" -X POST \ -d "inventory_reservation[from]=mm/dd/yyyy" \ -d "inventory_reservation[to]=mm/dd/yyyy" \ -d "inventory_reservation[quantity]=" \ -d "inventory_reservation[price]=" \ -d "inventory_reservation[note]=" \ -d "inventory_reservation[location_number]=" \ -d "inventory_reservation[reserved_to_location_number]=" \ -d "user[id]=" \ https://.ezofficeinventory.com/stock_assets//inventory_reservations.api ``` -------------------------------- ### Retrieve All Bundles Source: https://ezo.io/ezofficeinventory/developers Retrieve a list of all bundles. Each page contains 25 bundles; specify `page` for subsequent pages. ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/bundles.api?page= ``` -------------------------------- ### Retrieve Inventory Reservation History Source: https://ezo.io/ezofficeinventory/developers Get the inventory reservation history for a specific user. Pagination is supported. ```APIDOC ## GET /members//inventory_reservations.api ### Description Retrieves the inventory reservation history for a specific user. ### Method GET ### Endpoint https://.ezofficeinventory.com/members//inventory_reservations.api?page= ### Parameters #### Path Parameters - **USER_ID** (integer) - Required - The ID of the user. #### Query Parameters - **page** (integer) - Optional - The page number to retrieve. Defaults to 1. Each page contains up to 25 history entries. ### Request Example ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/members/123/inventory_reservations.api?page=1 ``` ### Response #### Success Response (200) - **inventory_reservations** (array) - A list of inventory reservation history entries. - **page** (integer) - The current page number. - **total_pages** (integer) - The total number of pages available. #### Response Example ```json { "inventory_reservations": [ { "id": 601, "item_name": "Desk Chair", "reserved_at": "2023-10-24T11:00:00Z" } ], "page": 1, "total_pages": 1 } ``` ``` -------------------------------- ### Retrieve Reserved Dates for an Asset Source: https://ezo.io/ezofficeinventory/developers Get the reserved dates for a specific asset by providing its stock number. ```curl curl -H "token:" -X GET \ https://.ezofficeinventory.com/assets//reserved_dates.api ``` -------------------------------- ### Create a New Location Source: https://ezo.io/ezofficeinventory/developers Use this endpoint to create a new location. Mandatory fields include the location name. Optional fields allow for specifying city, state, zip code, street addresses, status, and a description. ```bash curl -H "token:" -X POST \ -d "location[name]=" \ -d "location[city]=" \ -d "location[status]=" \ https://.ezofficeinventory.com/locations.api ``` -------------------------------- ### Retrieve Check In/Out Stock History Source: https://ezo.io/ezofficeinventory/developers Get the stock check-in/check-out history for a specific user. Pagination is supported. ```APIDOC ## GET /members//checkin_checkout_history_for_stock.api ### Description Retrieves the stock check-in/check-out history for a specific user. ### Method GET ### Endpoint https://.ezofficeinventory.com/members//checkin_checkout_history_for_stock.api?page= ### Parameters #### Path Parameters - **USER_ID** (integer) - Required - The ID of the user. #### Query Parameters - **page** (integer) - Optional - The page number to retrieve. Defaults to 1. Each page contains up to 25 history entries. ### Request Example ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/members/123/checkin_checkout_history_for_stock.api?page=1 ``` ### Response #### Success Response (200) - **history** (array) - A list of stock check-in/check-out history entries. - **page** (integer) - The current page number. - **total_pages** (integer) - The total number of pages available. #### Response Example ```json { "history": [ { "action": "checked_in", "item_name": "Keyboard", "timestamp": "2023-10-26T15:30:00Z" } ], "page": 1, "total_pages": 1 } ``` ``` -------------------------------- ### Retrieve All Checklists Source: https://ezo.io/ezofficeinventory/developers Fetch all checklists available in the system. Use the 'page' parameter to paginate through results, with each page containing up to 25 checklists. ```curl curl -H "token:" -X GET \ https://.ezofficeinventory.com/checklists/page= ``` -------------------------------- ### Get Background Job Details Source: https://ezo.io/ezofficeinventory/developers Retrieves detailed information about a specific background job, including its status and any associated attachments. ```APIDOC ## GET /background_jobs/.api ### Description Retrieves detailed information about a specific background job. ### Method GET ### Endpoint https://.ezofficeinventory.com/background_jobs/.api ### Parameters #### Path Parameters - **ID** (string) - Required - The unique identifier of the background job. #### Headers - **token** (string) - Required - Your company token for authentication. ### Response #### Success Response (200) - **background_job** (object) - An object containing details of the background job. - **id** (string) - The unique identifier for the background job. - **status** (string) - The current status of the background job (e.g., "Completed", "Failed"). - **attachments** (array) - A list of attachments associated with the background job (if any). - **order** (integer) - The order of the attachment. - **mime-type** (string) - The MIME type of the attachment. - **download_url** (string) - The URL to download the attachment. - **download_url_expires_at** (string) - The expiration date and time for the download URL. - **data** (object) - Contains error details if the job failed. - **error** (string) - A message describing the error. ### Response Example (Single Attachment) ```json { "background_job": { "id": "59eff6ae-b983-4a80-a829-88e1c3d8a422", "status": "Completed", "attachments": [ { "order": 1, "mime-type": "text/csv", "download_url": "https://s3.amazonaws.com/download/custom_report_2025-02-04_014937.csv", "download_url_expires_at": "2025-02-04T02:50:54Z" } ] } } ``` ### Response Example (Multiple Attachments) ```json { "background_job": { "id": "b8ef86c8-eabe-4459-a2ce-884fe3f5b0e7", "status": "Completed", "attachments": [ { "order": 1, "mime-type": "text/csv", "download_url": "https://s3.amazonaws.com/download/custom_report_part_1.csv", "download_url_expires_at": "2025-02-04T01:51:59Z" }, { "order": 2, "mime-type": "text/csv", "download_url": "https:/s3.amazonaws.com/download/custom_report_part_2.csv", "download_url_expires_at": "2025-02-04T01:51:59Z" }, { "order": 3, "mime-type": "text/csv", "download_url": "https://s3.amazonaws.com/download/custom_report_part_3.csv", "download_url_expires_at": "2025-02-04T01:51:59Z" }, { "order": 4, "mime-type": "text/csv", "download_url": "https://s3.amazonaws.com/download/custom_report_part_4.csv", "download_url_expires_at": "2025-02-04T01:51:59Z" } ] } } ``` ### Error Response Example ```json { "background_job": { "id": "b42a3950-22ff-440b-a994-42c0d3efd1e1", "status": "Failed", "data": { "error": "An unexpected error occurred while processing the report." } } } ``` ``` -------------------------------- ### Get Assets in Work Orders by Type Source: https://ezo.io/ezofficeinventory/developers Retrieves assets associated with work orders of a specific type. Supports pagination. ```APIDOC ## GET /tasks.api?task_type=&page= ### Description Retrieves assets from work orders filtered by their type. Supports pagination, with each page containing up to 25 work orders. ### Method GET ### Endpoint https://.ezofficeinventory.com/tasks.api ### Parameters #### Query Parameters - **task_type** (string) - Required - The type of work orders to filter by. - **page** (integer) - Optional - The page number to retrieve. Defaults to 1. ### Response #### Success Response (200) - **work_orders** (array) - A list of work orders matching the specified type. - **total_pages** (integer) - The total number of pages available. #### Response Example [Example of the success response] ``` -------------------------------- ### Receive Purchase Order Items Source: https://ezo.io/ezofficeinventory/developers Receive all items for a purchase order and specify payment details. ```bash curl -H "token:" -X PATCH \ -F "payment_details[amount]=" \ https://.ezofficeinventory.com/purchase_orders//receive_items.api ``` -------------------------------- ### Retrieve Stock Quantity by Location Source: https://ezo.io/ezofficeinventory/developers Get the stock quantity for a specific asset at a particular location. Requires the asset_id and location_id. ```curl curl -H "token:" -X GET \ -d "asset_id=" -d "location_id=" https://.ezofficeinventory.com/locations/get_quantity_by_location.api ``` -------------------------------- ### Retrieve All Purchase Orders Source: https://ezo.io/ezofficeinventory/developers Fetch a list of all purchase orders associated with the account. ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/purchase_orders.api ``` -------------------------------- ### Retrieve Assets in Service by Type Source: https://ezo.io/ezofficeinventory/developers Use this command to retrieve all assets currently in service, filtered by their service type. The `service_type` parameter is mandatory. Each page returns 25 assets; specify `page` for subsequent pages. ```bash curl -H "token:" -X GET \ -d "service_type=" \ "https://.ezofficeinventory.com/assets/filter.api?for_service=true&status=assets_being_serviced&page=" ``` -------------------------------- ### Retrieve Location-Based Thresholds for Inventory Source: https://ezo.io/ezofficeinventory/developers Get location-specific threshold details for an inventory item by providing its inventory number in the URL. ```bash curl -H "token:" -X GET \ https://.ezofficeinventory.com/inventory//location_based_thresholds.api ``` -------------------------------- ### Create Purchase Order Source: https://ezo.io/ezofficeinventory/developers Use this endpoint to create a new purchase order by specifying the vendor ID. ```bash curl -H "token:" -X POST \ -d "vendor_id=" \ https://.ezofficeinventory.com/purchase_orders.api ``` -------------------------------- ### Link Checkout History with Project Source: https://ezo.io/ezofficeinventory/developers This cURL command links checkout history with a project. Specify the project_id and checkout details, including optional overrides and custom attributes. ```bash curl -H "token:" -X PUT \ -d "checkout_values[location_id]=" \ -d "checkout_values[comments]=" -d "till=" -d "till_time=