Order class

Track created orders using the SDK.


Overview

The Order class enables access to catalog and tasking orders tracking.

Python

    order = up42.initialize_order(order_id="ea36dee9-fed6-457e-8400-2c20ebd30f44")

  

Orders

info

The info attribute returns metadata of a specific order. The returned data type is dict.

An example with info

Python

    order.info

  

order_details

The order_details attribute returns details of a specific tasking order. It doesn’t work with catalog orders. The returned data type is dict.

An example with order_details

Python

    order.order_details

  

status

The status attribute returns the order status. The returned data type is str.

An example with status

Python

    order.status

  

is_fulfilled

The is_fulfilled attribute returns the following:

  • True, if the order has the FULFILLED status.
  • False, if the job has any other status. The returned data type is bool.
An example with is_fulfilled

Python

    order.is_fulfilled

  

track_status()

The track_status() function allows you to track the order status until the order is fulfilled or failed. The returned data type is str.

ArgumentOverview
report_timeint
The time interval for querying whether the order status has changed to FULFILLED or FAILED_PERMANENTLY, in seconds. The default value is 120.
An example with track_status()

Python

    order.track_status(report_time=150)

  

Assets

get_assets()

The get_assets() function returns a list of order assets. Use this function to retrieve multiple assets from the same order. The returned data type is list[Asset].

To search across all assets in your storage, use the get_assets() function from the Storage class.

An example with get_assets()

Python

    order.get_assets()

  

View repository