v1

latestOpenAPI 3.0.02026-07-266521,3121.2 MB
Orders

GetOrderPackagingCalculation

Retrieves order packaging, weight and dimension information with split packaging. The method can perform ad hoc recalculation and saving of any changes. <b>Permissions Required: </b> GlobalPermissions.OrderBook.ViewOrderDetailsNode <b>Rate limit: </b><span style="background-color:#0272d9;color:white;padding:4px 8px;text-align:center;border-radius:5px; font-size: small;"><b>150</b></span> / minute

post/api/Orders/GetOrderPackagingCalculation

Request body

pkOrderIdsstring[]

List of order ids for which the packaging information should be returned, recalculated, saved

Recalculateboolean

Flag to indicate that recalculation is necessary

SaveRecalculationboolean

Flag to indicate that after recalculation the results should be saved back to the database

Example request

{
  "pkOrderIds": [
    "00000000-0000-0000-0000-000000000000"
  ]
}

Response

OK

pkOrderIDstring uuid

Order id

nOrderIdinteger

Numeric order id

fkPostalServiceIdstring uuid

Shipping service id

fkCountryIdstring uuid

Country Id

cCountrystring

Country Name

ItemWeightnumber double

Total Item weight in the order

fkPackagingGroupIdstring uuid

Packaging Group Id

fkPackagingTypeIdstring uuid

Calculated packaging type for the order

IsSplitPackagingboolean

Is the packaging split?

PackagingWeightnumber double

Packaging weight

TotalWeightnumber double

Total weight, items + packaging weight

TotalWidthnumber double

Total width of the order packaging. If null the recalculation was not performed yet. See documentation about how the dimensions of the order calculated.

TotalHeightnumber double

Total Height of the order packaging. If null the recalculation was not performed yet. See documentation about how the dimensions of the order calculated.

TotalDepthnumber double

Total Depth of the order packaging. If null the recalculation was not performed yet. See documentation about how the dimensions of the order calculated.

ManualAdjustboolean

Inidicates that order weights, packaging dimensions has been manually adjusted by the user and therefore automatic recalculation should not be performed for this order

CanAutoSplitboolean
IsAutoSplitboolean

Was the packaging automatically split? Usually by the 3D Packaging method.

SplitPackageCountinteger

Indicates the number of split packaging bins. If null, or 0 - no split packaging

LabelPrintedboolean

Is Label Printed

CalculationHintsstring[]

Calculation comments. The recalculation routine will output some basic comments about how the calculation was performed in English.

DimMethod'LEGACY' | 'MAX' | 'STACKED' | 'WEIGHTFIT' | 'THREEDIM_ALL' | 'THREEDIM_ITEMS'

Dimension Calculation method