Home > @vsf-enterprise/commercetools-api > updateShippingDetails

# updateShippingDetails() function

Updated shipping address details on the given cart. By default, it uses the updateCartDefaultQuery GraphQL query

Signature:

export declare function updateShippingDetails(context: Context, cart: UpdateShippingDetailsParams, shippingDetails: AddressInput, customQuery?: CustomQuery): Promise<UpdateShippingDetailsResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
cart UpdateShippingDetailsParams Cart information
shippingDetails AddressInput Shipping address information
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<UpdateShippingDetailsResponse>

User cart information