Skip to content
← Back to Index

orderCommand

Return this effect to apply an order command from hooks that supports it.

Type

filtrera
{
  effect: 'orderCommand'
  type: text // Command type
  // Additional command properties are added here
}

Order Commands

addActivityLogAdds an activity log to an Order
addDeliveryTagAdds a tag to a Delivery
addTagAdds a tag to an Order
cancelDeliveryCancels a delivery.
cancelInvoiceCancels an Invoice
completeDeliveryMarks a delivery as completed.
createComputedOrderDiscountAdds a new computed Order Discount to an Order based on a component
createComputedOrderDiscountBySourceAdds a new computed Order Discount to an Order using an embedded source code for the logic
createDeliveryAdds a new Delivery to an Order
createOrderLineCreates a new Order Row
createReturnCreates a Return for a specific Order Row
createStaticOrderDiscountCreates a static discount on an Order. An order discount value is distributed across all order lines and shipping fees proportionally to their value.
createStaticOrderLineDiscountCreates a static discount on an order line
createStaticShippingDiscountCreates a static discount on a shipping fee
deleteDiscountDeletes an existing Discount from an Order
deleteOrderLineDeletes an existing Order Row
deleteReturnDeletes and existing Return
generateOrderNumberByPrefixGenerates an order number for an order based on the given prefix
invoiceInvoices all entities released for invoicing on the Order.
linkPaymentAssociates a Payment with an Order
moveOrderLineToDeliveryMoves an existing order line to a different delivery.
openDeliveryOpens a delivery that is currently in processing. Ensure there are no external dependencies such as warehouses actively working on the delivery.
releaseDeliveryReleases a delivery for fulfillment processing.
releaseOrderLineToInvoicingReleases an order line to be invoiced.
releaseShippingToInvoicingReleases a delivery's shipping fee to be invoiced.
removeDeliveryTagRemoves a tag from a Delivery
removeTagRemoves a tag from an Order
retractOrderLineFromInvoicingUnreleases an order line from invoicing.
retractShippingFromInvoicingUnreleases a delivery's shipping fee from invoicing.
setChannelKeySets the channel key of an order.
setComputedOrderDiscountParametersSets a computed order discount's parameters
setCustomerNumberSets the customer number of an order.
setDeliveryAddressSets the Address of a Delivery
setDeliveryDynamicFieldsSets dynamic fields of a delivery. Non specified fields will be left unchanged. Set value to null to remove field.
setDeliveryInventorySets the inventory and inventory date of a Delivery. Stock reservations will be updated if there are any.
setDiscountDescriptionSets description of discount. Should be meaningful to the customer as it's used on invoices and customer communication.
setDiscountDynamicFieldsSets dynamic fields of a discount. Non specified fields will be left unchanged. Set value to null to remove field.
setInvoiceAddressSets the invoice address of an Order which will be used for new invoices
setLocaleSet the locale of the Order. Nothing else will be affected.
setNotesSet the notes of the Order.
setOrderDynamicFieldsSets dynamic fields of an order. Non specified fields will be left unchanged. Set value to null to remove field.
setOrderLineDynamicFieldsSets dynamic fields of an order line. Non specified fields will be left unchanged. Set value to null to remove field.
setOrderLineProductSets the product of an Order Line.
setOrderLineQuantitySets the quantity of an Order Line
setOrderLineSkusSets the required quantities of SKUs on an Order Line
setOrderLineTaxSets the tax of an Order Line, either by a fixed total (taxTotal) or a percentage (taxFactor).
setOrderLineUnitPriceSets the unit price of an Order Line.
setOrderStateSets the state of an Order
setReturnDynamicFieldsSets dynamic fields of a return. Non specified fields will be left unchanged. Set value to null to remove field.
setShippingPriceSets the shipping price of a Delivery.
setShippingProductSets the shipping product of a Delivery.
setShippingTaxSets the tax percentage factor of a a Delivery's shipping cost.
setStaticDiscountValueUpdates the value of an existing static discount
unsetDeliveryInventoryRemoves the inventory from a Delivery. Stock reservations will be updated if there are any.

© 2024 Hantera AB. All rights reserved.