Request schemas
Schemas for the request bodies sent to Firmly’s mutation endpoints. For the response shape, see the response schemas — all cart-mutation endpoints return a cart object.
Cart Operations
AddLineItemRequest
-
add_to_cart_ref(object, required) — Product referenceproperties
variant_id(string, required) — Product variant IDproduct_id(string) — Product IDvariant_handles(array) — Variant handle identifiers
-
quantity(integer, required) — Quantity to add (minimum: 1)
UpdateLineItemRequest
quantity(integer, required) — New quantity (0 to remove)
Fulfillment
SetFulfillmentTypeRequest
-
shipment_id(string, required) — Target shipment ID -
fulfillment_type(string, required) — New fulfillment type enum -
location_id(string) — Required for PICKUP_IN_STORE
SetShippingMethodRequest
-
shipment_id(string, required) — Target shipment ID -
shipping_method_id(string, required) — Selected method ID
Addons
SetAddonSelectionsRequest
selections(array, required) — Array of addon selectionsproperties
addon_id(string, required) — Addon to selectselected_line_item_ids(array) — Items to apply toselected_child_ids(array) — Child addon selections
Promotions
AddPromoCodesRequest
promo_codes(array, required) — Array of 1–10 promotional codes to apply