- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
orderFulfillmentDeliverablilityValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the orderFulfillmentDeliverablilityValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that the order fulfillment can be delivered. If the order is cancelled, the items to mark as delivered don't exist in the order, or the fulfillment doesn't exist in the order, the step will throw an error.
Example#
Input#
order
OrderDTO & object
order
OrderDTO & objectid
stringThe ID of the order.
id
stringversion
numberThe version of the order.
version
numberdisplay_id
numberThe order's display ID.
display_id
numberstatus
OrderStatusThe status of the order.
status
OrderStatuscurrency_code
stringThe currency of the order
currency_code
stringcreated_at
string | DateWhen the order was created.
created_at
string | Dateupdated_at
string | DateWhen the order was updated.
updated_at
string | Dateoriginal_item_total
BigNumberValueThe original item total of the order.
original_item_total
BigNumberValueoriginal_item_subtotal
BigNumberValueThe original item subtotal of the order.
original_item_subtotal
BigNumberValueoriginal_item_tax_total
BigNumberValueThe original item tax total of the order.
original_item_tax_total
BigNumberValueitem_total
BigNumberValueThe item total of the order.
item_total
BigNumberValueitem_subtotal
BigNumberValueThe item subtotal of the order.
item_subtotal
BigNumberValueitem_tax_total
BigNumberValueThe item tax total of the order.
item_tax_total
BigNumberValueoriginal_total
BigNumberValueThe original total of the order.
original_total
BigNumberValueoriginal_subtotal
BigNumberValueThe original subtotal of the order.
original_subtotal
BigNumberValueoriginal_tax_total
BigNumberValueThe original tax total of the order.
original_tax_total
BigNumberValuetotal
BigNumberValueThe total of the order.
total
BigNumberValuesubtotal
BigNumberValueThe subtotal of the order. (Excluding taxes)
subtotal
BigNumberValuetax_total
BigNumberValueThe tax total of the order.
tax_total
BigNumberValuediscount_subtotal
BigNumberValueThe discount subtotal of the order.
discount_subtotal
BigNumberValuediscount_total
BigNumberValueThe discount total of the order.
discount_total
BigNumberValuediscount_tax_total
BigNumberValueThe discount tax total of the order.
discount_tax_total
BigNumberValuegift_card_total
BigNumberValueThe gift card total of the order.
gift_card_total
BigNumberValuegift_card_tax_total
BigNumberValueThe gift card tax total of the order.
gift_card_tax_total
BigNumberValueshipping_total
BigNumberValueThe shipping total of the order.
shipping_total
BigNumberValueshipping_subtotal
BigNumberValueThe shipping subtotal of the order.
shipping_subtotal
BigNumberValueshipping_tax_total
BigNumberValueThe shipping tax total of the order.
shipping_tax_total
BigNumberValueoriginal_shipping_total
BigNumberValueThe original shipping total of the order.
original_shipping_total
BigNumberValueoriginal_shipping_subtotal
BigNumberValueThe original shipping subtotal of the order.
original_shipping_subtotal
BigNumberValueoriginal_shipping_tax_total
BigNumberValueThe original shipping tax total of the order.
original_shipping_tax_total
BigNumberValuefulfillments
FulfillmentDTO[]
fulfillments
FulfillmentDTO[]The active order change, if any.
region_id
stringOptionalThe ID of the region the order belongs to.
region_id
stringOptionalcustomer_id
stringOptionalThe ID of the customer on the order.
customer_id
stringOptionalsales_channel_id
stringOptionalThe ID of the sales channel the order belongs to.
sales_channel_id
stringOptionalemail
stringOptionalThe email of the order.
email
stringOptionalThe associated shipping address.
The associated billing address.
The associated order details / line items.
The associated shipping methods
The tramsactions associated with the order
The credit lines for an order
The summary of the order totals.
metadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>Optionalcanceled_at
string | DateOptionalWhen the order was canceled.
canceled_at
string | DateOptionalfulfillment
FulfillmentDTOThe fulfillment details.
fulfillment
FulfillmentDTOid
stringThe ID of the fulfillment.
id
stringlocation_id
stringThe associated location's ID.
location_id
stringpacked_at
null | DateThe date the fulfillment was packed.
packed_at
null | Dateshipped_at
null | DateThe date the fulfillment was shipped.
shipped_at
null | Datedelivered_at
null | DateThe date the fulfillment was delivered.
delivered_at
null | Datecanceled_at
null | DateThe date the fulfillment was canceled.
canceled_at
null | Datedata
null | Record<string, unknown>The data necessary for the fulfillment provider to process
the fulfillment.
data
null | Record<string, unknown>provider_id
stringThe associated fulfillment provider's ID.
provider_id
stringshipping_option_id
null | stringThe associated shipping option's ID.
shipping_option_id
null | stringmetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>shipping_option
null | ShippingOptionDTOThe associated shipping option.
shipping_option
null | ShippingOptionDTOrequires_shipping
booleanFlag to indidcate whether shipping is required
requires_shipping
booleanprovider
FulfillmentProviderDTOThe associated fulfillment provider.
provider
FulfillmentProviderDTOdelivery_address
FulfillmentAddressDTOThe associated fulfillment address used for delivery.
delivery_address
FulfillmentAddressDTOitems
FulfillmentItemDTO[]The items of the fulfillment.
items
FulfillmentItemDTO[]labels
FulfillmentLabelDTO[]The labels of the fulfillment.
labels
FulfillmentLabelDTO[]created_at
DateThe creation date of the fulfillment.
created_at
Dateupdated_at
DateThe update date of the fulfillment.
updated_at
Datedeleted_at
null | DateThe deletion date of the fulfillment.
deleted_at
null | Datemarked_shipped_by
null | stringOptionalThe id of the user that marked fulfillment as shipped
marked_shipped_by
null | stringOptionalcreated_by
null | stringOptionalThe id of the user that created the fulfillment
created_by
null | stringOptionalWas this page helpful?