Alokai

getOrderProducts

Fetches products associated with an order.

It receives data from the getOrderProducts endpoint exposed by the BigCommerce API

Signature

declare function getOrderProducts(
	context: BigcommerceIntegrationContext,
	params?: index_d_exports$1.GetOrderProductsParameters
): Promise<index_d_exports$1.OrderProductResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredBigcommerceIntegrationContext
paramsOptionalindex_d_exports$1.GetOrderProductsParameters

Returns

Returns a response with the products associated with the order.

Referenced Types

Examples

Fetching a list of products associated with an order.

import { sdk } from '~/sdk.config.ts';

const orderProductsResponse = await sdk.bigcommerce.getOrderProducts({ orderId: 286 })

On this page