@plentymarkets/shop-api / setCheckoutAddress
Function: setCheckoutAddress() ​
setCheckoutAddress(
context
,params
):Promise
<Data
<number
>>
Method setCheckoutAddress - sets a billing or shipping address as default.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: SetAddressDefaultParams
Returns ​
Promise
<Data
<number
>>
Remarks ​
- Calls /rest/storefront/contact/addresses/$
- This method is used to set a billing or shipping address as default
Example ​
ts
const { data } = await useSdk().plentysystems.setCheckoutAddress({
typeId: AddressType.Shipping,
addressId: 331
});