If this content did not answer your questions, try searching or contacting our support team for further assistance.
acquia-dam-sdk / Components / OrdersApi
new OrdersApi(
client
):OrdersApi
Create an instance of the OrdersApi class
Provides information about Orders and Conversions
Provide an instance of ApiClient.
cleanAssets(
assets
):Promise
<CleanAssetsResult
>
This can be called before attempting to create an order to determine which items will be removed from the order. Situations include an asset that has been deleted or an asset the user does not have permission to order. Any items returned in the removedItems list, will be removed automatically when the order is submitted.
string
[]
Array of asset UUIDs
Promise
<CleanAssetsResult
>
Promise containing the assets that will not be ordered
https://widenv1.docs.apiary.io/#reference/orders/create-order/clean-assets-for-order
createOrder(
params
):Promise
<CreateOrderResult
>
Create an asset order.
Information about the request
Promise
<CreateOrderResult
>
Promise containing information about the created order
https://widenv1.docs.apiary.io/#reference/orders/create-order/create-order
createZipArchive(
uuid
):Promise
<void
>
Used to submit a request to begin the creation of a zip archive for a specific order
string
The order UUID
Promise
<void
>
Promise containing no information
https://widenv1.docs.apiary.io/#reference/orders/zip-archives/create-zip-archive
getOrderDetails(
params
):Promise
<GetOrderDetailsResult
>
Gets order information by uuid or sequence number and, if the order conversion status is 'Completed', up to 100 assets and associated conversions and pickup urls for that order. If the order conversion status is not 'Completed', only order details (uuid, conversion status, assets in order, and sequence number) will appear in the response.
Information about the request
Promise
<GetOrderDetailsResult
>
Promise containing information about the order
getZipStatus(
uuid
):Promise
<GetZipStatusResult
>
Used to check the status of an archive operation that has previously been submitted. If the archive operation is complete, this call returns a download link for the zip archive.
string
The order UUID
Promise
<GetZipStatusResult
>
Promise containing information about the status of the Zip archive
https://widenv1.docs.apiary.io/#reference/orders/zip-archives/get-zip-archive-status/link
listConversionsForOrder(
params
):Promise
<ListConversionsForOrderResult
>
Retrieves the list of conversions available for a specific order profile and set of assets.
Information about the request
Promise
<ListConversionsForOrderResult
>
Promise containing the list of available conversions
https://widenv1.docs.apiary.io/#reference/orders/conversions-for-order/conversions-for-order
listOrderProfiles():
Promise
<ListOrderProfileResult
>
Gets the Order Profiles available for sending orders via the internet
Promise
<ListOrderProfileResult
>
Promise containing the list of available order profiles