Skip to content

cartSetPickupPoint

Mutationin Delivery options

Choose where the cart is collected. Sets the pickup point and the shipping cost that goes with it; choosing another point, or a delivery slot, replaces it.

Arguments

ArgumentTypeDescription
idID!
versionString
pickupPointIdID!

Returns

CartSetPickupPointResponse!

FieldTypeDescription
cartCartThe cart with the pickup point and its shipping cost set
cartErrors[CartSetPickupPointError!]Error details if the pickup point could not be chosen

Example

mutation CartSetPickupPoint($id: ID!, $version: String, $pickupPointId: ID!) {
cartSetPickupPoint(id: $id, version: $version, pickupPointId: $pickupPointId) {
cart {
id
version
createdAt
lastModifiedAt
currency
customerEmail
isGuest
totalQuantity
deliveryRemarks
vatNumber
purchaseOrderNumber
deliverySplit
requestedDeliveryDate
earliestCompleteDeliveryDate
name
defaultName
status
}
cartErrors {
__typename
... on ValidationError {
message
}
... on CartError {
message
code
}
... on DeliveryError {
message
code
}
}
}
}

The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved

Used by

The storefront packages that send it, in these GraphQL documents: