@plentymarkets/shop-api / getLegalTexts
Function: getLegalTexts() ​
getLegalTexts(
context
,params
):Promise
<Data
<LegalInformationResponse
>>
Method getLegalTexts- Method that returns content consumable in legal text pages
Parameters ​
• context: PlentysystemsIntegrationContext
• params: LegalTextsParams
type: LegalTextsParams - type of legal texts
Returns ​
Promise
<Data
<LegalInformationResponse
>>
Remarks ​
calls /rest/storefront/legal response should contain a prop htmlText which contains html formated information.
Example ​
ts
const { data, error } = await useAsyncData(() => sdk.plentysystems.getLegalTexts(params));