Shipment Configuration
Set Shipping Method
Selects a shipping method for a specific shipment and recalculates cart totals
POST
Set Shipping Method
Select shipping methods at the shipment level, enabling different shipping speeds and costs for each shipment in a multi-shipment cart.
Default Selection: When a cart is created or shipping information is set, Firmly automatically selects the cheapest available shipping method for each shipment. You only need to call this endpoint if you want to change from the default selection.
Request
The merchant’s domain (e.g. staging.luma.gift)
Device authentication token for session identification
Target shipment identifier
Selected method ID from the shipment’s
shipping_method_optionsSpecial delivery instructions for this shipment
For scheduled delivery, the selected date in YYYY-MM-DD format
Response
Returns the updated shopping cart with the selected shipping method applied.Array of shipments with updated shipping methodShipment Properties:
shipment_id(string): Unique shipment identifiershipping_method(object): Selected shipping method detailsid(string): Method identifierdescription(string): Method display nameprice(object): Shipping cost for this methodestimated_delivery(string): Delivery time estimate
notes(string): Stored delivery instructionsselected_date(string): Selected delivery date (for scheduled delivery)
Updated total shipping cost across all shipments
Updated cart total including new shipping costs
Shipping Method Types
Available shipping methods are dynamic and depend on:
- The merchant’s shipping configuration
- Shipment fulfillment type
- Item characteristics and requirements
- Destination address
- Merchant-specific business rules
Example Method Patterns
These are common patterns you might encounter, but actual values will vary by merchant:- Standard Shipping Examples
- Scheduled Delivery Examples
- Store Pickup Examples
- Ground shipping (e.g., “standard”, “ground”, “regular”)
- Express options (e.g., “2day”, “express”, “priority”)
- Overnight delivery (e.g., “overnight”, “nextday”, “1day”)
- Economy options (e.g., “economy”, “basic”, “saver”)
Examples
Standard Shipping Response
Standard Shipping Response
Scheduled Delivery Response
Scheduled Delivery Response
Pickup Method Response
Pickup Method Response
V2 Multi-Shipment Scenarios
V2’s shipment-level method selection enables complex fulfillment scenarios where different items have different shipping speeds and costs.
Mixed Shipping Speeds
Cost Optimization
Method Selection Process
Behavior Notes
Next Steps
After setting shipping methods:- For Standard Shipping: Proceed to set shipping address
- For Scheduled Delivery: May need to select specific time slot
- For Pickup: Confirm pickup time and proceed to checkout
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid shipping method ID or request format |
| 401 | Invalid authentication token |
| 404 | Shipment not found |
| 422 | Invalid date or unprocessable data |
Previous
Get AvailabilityRetrieves available delivery dates and time slots for scheduled delivery shipments
Next
Set Shipping Method