@plentymarkets/shop-api / setShippingProvider
Function: setShippingProvider() ​
setShippingProvider(
context
,params
):Promise
<Data
<ShippingProvider
>>
Method setShippingProvider - Used to set the shipping provider.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: ShippingProviderParams
shippingId: id of the shipping provider.
Returns ​
Promise
<Data
<ShippingProvider
>>
Remarks ​
- Calls /rest/storefront/checkout/shipping
- Method should be used to set the shipping provider.
Example ​
ts
const { data } = await useSdk().plentysystems.setShippingProvider({
shippingId: 1
});