Loading...
Was this page helpful?
This documentation provides a reference to the createFulfillmentWorkflow. It belongs to the @medusajs/medusa/core-flows package.
This workflow creates a fulfillment, which can be used for an order, return, exchanges, and similar concepts. The workflow is used by the Create Fulfillment Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create a fulfillment within your custom flows.
Workflow hook
Step conditioned by when
View step details
CreateFulfillmentWorkflowInputCreateFulfillmentWorkflowInputlocation_idstringprovider_idstringdelivery_addressCreateFulfillmentAddressWorkflowDTOpacked_atDate | nullOptionalshipped_atDate | nullOptionalcreated_bystring | nullOptionaldelivered_atDate | nullOptionalcanceled_atDate | nullOptionaldataRecord<string, unknown> | nullOptionalshipping_option_idstring | nullOptionalmetadataRecord<string, unknown> | nullOptionalFulfillmentDTOFulfillmentDTOidstringlocation_idstringpacked_atnull | Dateshipped_atnull | Datedelivered_atnull | Datecanceled_atnull | Datedatanull | Record<string, unknown>provider_idstringshipping_option_idnull | stringmetadatanull | Record<string, unknown>shipping_optionnull | ShippingOptionDTOrequires_shippingbooleanproviderFulfillmentProviderDTOdelivery_addressFulfillmentAddressDTOitemsFulfillmentItemDTO[]labelsFulfillmentLabelDTO[]created_atDateupdated_atDatedeleted_atnull | Datemarked_shipped_bynull | stringOptionalcreated_bynull | stringOptional