- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateFulfillmentWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateFulfillmentWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates a fulfillment. It's used by other workflows that update a fulfillment, such as markFulfillmentAsDeliveredWorkflow.
You can use this workflow within your own customizations or custom workflows, allowing you to update a fulfillment within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateFulfillmentWorkflowInput
UpdateFulfillmentWorkflowInput
UpdateFulfillmentWorkflowInput
UpdateFulfillmentWorkflowInputid
stringThe ID of the fulfillment
id
stringlocation_id
stringOptionalThe associated location's ID.
location_id
stringOptionalpacked_at
null | DateOptionalThe date the fulfillment was packed.
packed_at
null | DateOptionalshipped_at
null | DateOptionalThe date the fulfillment was shipped.
shipped_at
null | DateOptionalmarked_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 | stringOptionaldelivered_at
null | DateOptionalThe date the fulfillment was delivered.
delivered_at
null | DateOptionaldata
null | Record<string, unknown>OptionalThe data necessary for the associated fulfillment provider to process the fulfillment.
data
null | Record<string, unknown>Optionalmetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>OptionalOutput#
FulfillmentDTO
FulfillmentDTOThe fulfillment details.
FulfillmentDTO
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?