createStockLocations - Medusa Core Workflows Reference
This documentation provides a reference to the createStockLocations
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more stock locations.
Input#
CreateStockLocationsStepInput
CreateStockLocationsStepInputThe stock locations to create.
CreateStockLocationsStepInput
CreateStockLocationsStepInputname
stringThe name of the stock location.
name
stringaddress_id
string | nullOptionalThe associated address's ID.
address_id
string | nullOptionalThe associated address.
Holds custom data in key-value pairs.
Output#
StockLocationDTO[]
StockLocationDTO[]
StockLocationDTO[]
StockLocationDTO[]id
stringThe ID of the stock location.
id
stringname
stringThe name of the stock location.
name
stringmetadata
Record<string, unknown> | nullHolds custom data in key-value pairs.
metadata
Record<string, unknown> | nulladdress_id
stringThe associated address's ID.
address_id
stringfulfillment_sets
FulfillmentSetDTO[]Fulfillment sets for the location
fulfillment_sets
FulfillmentSetDTO[]created_at
string | DateThe creation date of the stock location.
created_at
string | Dateupdated_at
string | DateThe update date of the stock location.
updated_at
string | Datedeleted_at
string | Date | nullThe deletion date of the stock location.
deleted_at
string | Date | nullThe address of the stock location.
Was this page helpful?