@plentymarkets/shop-api / doUploadOrderPropertyFile
Function: doUploadOrderPropertyFile() ​
doUploadOrderPropertyFile(
context
,params
):Promise
<Data
<UploadFileForOrderPropertyResponse
>>
Method doUploadOrderPropertyFile - Uploads a file for an order property.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: UploadFileForOrderPropertyParams
base64: string; filename: string; type: string;
Returns ​
Promise
<Data
<UploadFileForOrderPropertyResponse
>>
The name of the uploaded file
Remarks ​
- Calls /rest/io/order/property/file
- This method is used to upload a file for an order property.
Example ​
ts
const { data, error } = await sdk.boilerplate.doUploadOrderPropertyFile({
base64: 'base64_file_string',
filename: 'filename.png',
type: 'image/png'
});