You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
doAddOrgCartEntries
Add entries to a B2B cart
This method exchanges data with the doAddOrgCartEntries endpoint exposed by the SAP OCC API B2B Carts Controller.
Signature
export declare function doAddOrgCartEntries(
context: SapccIntegrationContext,
props: DoAddOrgCartEntriesProps
): Promise<CartModificationList>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SapccIntegrationContext | |
props | Required | DoAddOrgCartEntriesProps | Parameter object which can be used with this method. Refer to its type definition to learn about possible properties. |
Returns
Returns cart modification list
Referenced Types
- SapccIntegrationContext
DoAddOrgCartEntriesProps- CartModificationList
Examples
Adding entries to a B2B cart
const doAddOrgCartEntries = await sdk.commerce.doAddOrgCartEntries({
cartId: "00035084",
orderEntryList: {
orderEntries: [
{
quantity: 1,
product: {
code: "3881017"
}
}
]
}
});