Create fulfillment
create_fulfillmentFulfill a Medusa order by specifying line items and stock location, or default to all remaining unfulfilled quantities and the only available location.
Instructions
Creates a fulfillment for an order. Without 'items' it fulfills all remaining unfulfilled quantities. Without 'location_id' it uses the only stock location, if there is exactly one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order": "<order>"
},
"name": "create_fulfillment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Specific line items; defaults to everything remaining | |
| order | Yes | Order ID or order number | |
| location_id | No | Stock location to ship from | |
| notify_customer | No |