cart.set_shipping_method
Set only the delivery method, leaving the address as it is — for a shopper whose address the store already has on file and does not re-type. Get the valid method ids from the read shipping_options.
- Scope:
public - System: no
- Reachable from:
POST /v1/cart/commands/cart.set_shipping_method— an ANONYMOUS face:x-forge-storeis required, no credential is sent, and it is never on/v1/commands/*· MCP toolcart.set_shipping_method - Events: none — A checkout step on session state, read back no-store on the next step.
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "cart_id": { "minLength": 1, "type": "string" }, "shipping_method_id": { "minLength": 1, "type": "string" } }, "required": [ "cart_id", "shipping_method_id" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "cart_id": { "type": "string" } }, "required": [ "cart_id" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)