Skip to main content

SaveOrderSelectedShippingInput

Clear-text chosen shipping for trusted backend callers. No secureId tokens — the option id, selection reference and addons are passed in plain. Prices and cost are not included in the input, they are already expected to be saved on the order.

input SaveOrderSelectedShippingInput {
optionId: Int!
origin: SelectedShippingOptionOriginInput
addons: [SaveOrderSelectedShippingAddonInput!]
selection: SaveOrderSelectedShippingSelectionInput
}

Fields​

optionId ● Int!​

The chosen option's plain id.

origin ● SelectedShippingOptionOriginInput​

What the source said about the delivery, if anything.

addons ● [SaveOrderSelectedShippingAddonInput!]​

Chosen addons, if any.

selection ● SaveOrderSelectedShippingSelectionInput​

Chosen selection (timeslot or pickup location), if any.

Example​

{
"origin": {},
"addons": [
{}
],
"selection": {
"timeslot": {
"start": "2024-05-03T11:52:33Z"
},
"location": {
"address": {}
}
}
}