---
title: "Fulfillment actions, commands, and pipelines"
slug: "fulfillment-actions-commands-and-pipelines"
abstract: "Provides an overview of actions, commands and pipelines that the Fulfillment plugin defines."
---
# Fulfillment actions, commands, and pipelines

The Sitecore.Commerce.Plugin.Fulfillment plugin provides the following fulfillment actions, commands, and pipelines:

| **Action/Command/Pipeline** | **Description** |
| --- | --- |
| `Api/GetCartFulfillmentOptions`<br><br>`GetFulfillmentOptionsCommand`<br><br>`GetCartFulfillmentOptionsPipeline` | Retrieves a list of fulfillment options, with the ability to filter based on items in the Cart.<br><br>Parameters:<br><br><ul><li>`cartId`: the identifier of the cart</li></ul> |
| `Api/GetCartLineFulfillmentOptions`<br><br>`GetFulfillmentOptionsCommand`<br><br>`GetCartLineFulfillmentOptionsPipeline` | Retrieves a list of available fulfillment options for a specific cart line.<br><br>Parameters:<br><br><ul><li>`cartId`: the identifier of the cart</li><li>`cartLineId`: the identifier of the cart line</li></ul> |
| `Api/GetFulfillmentMethods`<br><br>`GetFulfillmentMethodsCommand`<br><br>`GetFulfillmentMethodsPipeline` | Retrieves a list of all available fulfillment methods. The `IGetFulfillmentMethodsPipeline` contains the following blocks:<br><br><ul><li>The `GetFulfillmentMethodsFromCacheBlock` block checks the presence of the fulfillment methods in the Fulfillment cache; this cache stores fulfillment entities.</li><li>The `GetFulfillmentMethodsBlock` block checks the presence of `FulfilmentMethodItems` in the `ItemsCollectionCache`. This cache stores storefront configuration items imported from Sitecore. If the block finds the items in the cache, it adds them to the `CommercePipelineExecutionContext`; if it is not found, it is retrieved from Sitecore.</li><li>The `TranslateItemsToFulfillmentMethodsBlock` block transforms Sitecore items received in the `GetFulfillmentMethodsBlock` block into the fulfillment entities.</li></ul><br><br>Parameters: none |
| `Api/GetCartFulfillmentMethods`<br><br>`GetFulfillmentMethodsCommand`<br><br>`GetCartFulfillmentMethodsPipeline` | Retrieves a list of all available fulfillment methods for a cart, based on the populated `FulfillmentComponent` and the items in the cart.<br><br>Parameters:<br><br><ul><li>`cartId`: the identifier of the cart</li><li>`fulfillment`: a `PhysicalFulfillmentComponent` (`ShippingParty` populated)</li></ul> |
| `Api/GetCartLineFulfillmentMethods`<br><br>`GetFulfillmentMethodsCommand`<br><br>`GetCartLineFulfillmentMethodsPipeline` | Retrieves a list of all available fulfillment methods for a cart line, based on the populated FulfillmentComponent and the item in the cart line.<br><br>Parameters:<br><br><ul><li>`cartId`: the identifier of the cart</li><li>`fulfillment`: a PhysicalFulfillmentComponent (LineID populated with a specific Line Id, ShippingParty populated)</li></ul> |
| `Api/SetCartFulfillment`<br><br>`SetCartFulfillmentCommand`<br><br>`SetCartFulfillmentPipeline` | Sets a cart-level fulfillment option.<br><br>Parameters:<br><br><ul><li>`cartId`: the identifier of the cart</li><li>`fulfillment`: the fulfillment option</li></ul><br><br>The command:<br><br><ul><li>validates the FulfillmentComponent</li><li>sets the component into the cart</li><li>calculates the cart</li><li>persists the cart</li><li>adds cart totals to return the models collection</li></ul> |
| `Api/SetCartLineFulfillment`<br><br>`SetCartLinesFulfillmentCommand`<br><br>`SetCartLinesFulfillmentPipeline` | Sets a cart line-level fulfillment option.<br><br>Parameters:<br><br><ul><li>`cartId` : the identifier of the cart</li><li>`cartLineId`: the identifier of the cart line</li><li>`fulfillment`: the fulfillment option</li></ul><br><br>The command:<br><br><ul><li>validates the FulfillmentComponent</li><li>sets the component into the cart line</li><li>calculates the cart line</li><li>persists the cart line</li><li>adds the cart line totals to return the models collection</li></ul> |
| `Api/Shipments`<br><br>`FindEntitiesInListCommand`<br><br>`FindEntitiesInListPipeline` | Returns all shipments in the shipments list. This could be a very long list so do not use for routine processing. Instead, use the GetList functionality.<br><br>Parameters: none<br><br>The command:<br><br><ul><li>Uses FindEntitiesInList to retrieve all of the items in the Shipments list.</li></ul> |
| `Api/Shipments(id)`<br><br>`FindEntityCommand`<br><br>`FindEntityPipeline` | Returns a specific shipment based on its identifier.<br><br>Parameters:<br><br><ul><li>`Id`: the identifier of the shipment</li></ul><br><br>The command:<br><br><ul><li>Retrieves a specific shipment entity using the `FindEntityPipeline`.</li></ul> |

> [!note]
> The following is not implemented: `Api/FulfillmentOptions`.