@plentymarkets/shop-api / getOrderPropertyFile
Function: getOrderPropertyFile() ​
getOrderPropertyFile(
context
,params
):Promise
<Data
<OrderPropertyFileResponse
>>
Method getOrderPropertyFile - Get the order property file.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: OrderPropertyFileParams
hash: file hash fileName: file name
Returns ​
Promise
<Data
<OrderPropertyFileResponse
>>
The document file in base64 encoded format with type.
Remarks ​
- Calls /rest/storefront/order-property-file/{hash}/{fileName} endpoint.
- Method should be used to get the document file in base64 encoded format.
Example ​
ts
const { data } = await useSdk().plentysystems.getOrderPropertyFile({
hash: 'abcdefgh,
fileName: 'test.png',
});