deleteCart
Deletes a cart by ID.
It receives data from the deleteCart endpoint exposed by the BigCommerce API
Signature
declare function deleteCart(
context: BigcommerceIntegrationContext,
params: index_d_exports$1.DeleteCartParameters
): Promise<null>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | BigcommerceIntegrationContext | |
params | Required | index_d_exports$1.DeleteCartParameters |
Returns
Returns null
Referenced Types
Examples
Deleting a cart that matches the id from the query
import { sdk } from '~/sdk.config.ts';
await sdk.bigcommerce.deleteCart({ id: "930a1424-e8e8-4757-b4f6-8de76c8106cb" })