Home > @shopware-pwa/shopware-6-client > setCurrentShippingMethod
# setCurrentShippingMethod() function
Signature:
export declare function setCurrentShippingMethod(newShippingMethodId: string, contextInstance?: ShopwareApiInstance): Promise<ContextTokenResponse>;
# Parameters
| Parameter | Type | Description | 
|---|---|---|
| newShippingMethodId | string | |
| contextInstance | ShopwareApiInstance | 
Returns:
Promise<ContextTokenResponse>
# Exceptions
ClientApiError