Orders > Orders > ordersCalculate
Commerce APIOrdersOrdersordersCalculate
ordersCalculate
POST:orders/calculate.json

Description

Calculate order shipping rates and totals.

If this is the first time, shipping rates are calculated and the one with lowest price is selected as the current. Or otherwise if another shipping rate is selected the api request will recalculate the numbers.

Permission bit: "orders.calculate"

Topic: Orders

Arguments

order_id: String!

Unique order identifier. See also: Unique Identifiers

Example: "or_EQzGqWoY"


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


uuid: String


Result

Order

Preview (typescript)

Loading module