Search...
managementGetOrder( )
Retrieves an order by ID.
Description
The managementGetOrder()
function returns a Promise that resolves to information about the specified order.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function managementGetOrder(_id: string, options: ManagementGetOrderOptions): Promise<GetOrderResponse>
managementGetOrder Parameters
NAME
TYPE
DESCRIPTION
_id
string
Order ID.
options
Optional
ManagementGetOrderOptions
Options to use when getting an order.
Returns
Return Type:
Promise<
GetOrderResponse
>NAME
TYPE
DESCRIPTION
order
Order
Order.
Was this helpful?
managementGetOrder example
Copy Code
1import { orders } from 'wix-pricing-plans.v2';23 async function managementGetOrder(id, options) {4 try {5 const result = await orders.managementGetOrder(id, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13