Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is also possible to access information about past orders placed on the platform for the specific material. Based on that, an if-condition can be constructed to impact the price based on the order historyspecific materials. For example: when a specified amount of orders was achieved during the or parts is reached over a day, you can increase the margin for the next orders.

OrderdedOrdered_parts is an Array with a maximum length equal to of 20. These variables are only available in the materials pricing (not available in Post-processing pricing and Additional Order Fees).

Variable name

Description

ordered_parts[0].unit_price

Value of the order unit price

ordered_parts[0].discount

Value of the discount (deprecated)

ordered_parts[0].quantity

Quantity of the models in the order

ordered_parts[0].stl_file.volume

Volume of the current 3D model [mm^3]

ordered_parts[0].stl_file.machine_volume

Area of the current 3D model [mm^2]

ordered_parts[0].stl_file.area

Area of the current 3D model [mm^2]

ordered_parts[0].stl_file.h

Height of the current 3D model [mm]

ordered_parts[0].stl_file.w

Width of the 3D model [mm]

ordered_parts[0].stl_file.d

Depth of the 3D model [mm]

ordered_parts[0].name

Name of the order

ordered_parts[0].datetime_created

Time of the order creating