Alokai
You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x

getOrderApproval

Fetches a list of order approvals on the B2B Commerce Cloud instance.

This method receives data from the getOrderApproval endpoint exposed by the SAP OCC API B2B Order Approval controller.

Signature

export declare function getOrderApproval(
	context: SapccIntegrationContext,
	props: GetOrderApprovalProps
): Promise<OrderApproval>;

Parameters

NameRequiredTypeDescription
contextRequiredSapccIntegrationContext
propsRequiredGetOrderApprovalPropsParameter object which can be used with this method. Refer to its type definition to learn about possible properties.

Returns

Returns a representation of a OrderApproval.

Referenced Types

Examples

Fetching order approvals.

import { sdk } from '~/sdk';

const approvals = await sdk.commerce.getOrderApproval({ orderApprovalCode: "approval-code"});

On this page