/
Ordering History Variable

Ordering History Variable

It is possible to access information about past orders placed on the platform for specific materials. For example: when a specified amount of orders or parts is reached over a day, you can increase the margin for the next orders.

Ordered_parts is an Array with a maximum length 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

 

Related content

Order Level Pricing Scripts
Order Level Pricing Scripts
More like this
User Based Pricing Scripts
User Based Pricing Scripts
Read with this
Context data available in Order Notes
Context data available in Order Notes
More like this
General Rules for Pricing Scripts
General Rules for Pricing Scripts
Read with this
Post Processing Pricing Scripts
Post Processing Pricing Scripts
More like this
Placing Orders
More like this