@plentymarkets/shop-api / getOrderDocument
Function: getOrderDocument() ​
getOrderDocument(
context
,params
):Promise
<Data
<number
[]>>
Method getOrderDocument - Used to get the document file.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: OrderDocumentParams
document: the order document. accessKey: order access key.
Returns ​
Promise
<Data
<number
[]>>
The document file in an array buffer format.
Remarks ​
- Calls /rest/storefront/order/document/preview/${docReferenceId}/?orderId=${orderId}&accessKey=$
- Method should be used to get the document file in array buffer format.
Example ​
ts
const { data } = await useSdk().plentysystems.getOrderDocument({
document: {},
accessKey: '',
});