Skip to main content

Using the delete order item function in Sitecore CDP REST API

Abstract

Provides a cURL command to delete an order item in Sitecore CDP REST API (Data model 2.0).

You can use the Order REST API to perform a delete order item function to delete an order item.

To delete an order item in the Sitecore CDP, use the following:

DELETE: https://apiEndpoint/v2/orderItems/orderItemRef

Attribute

Description

Type

orderItemRef

The reference of the order item.

string

$ curl -x DELETE -H "Accept: application/json" \
     "https://{apiEndpoint}/v2/orderItems/FECBB7ED-6DFE-4E8C-85A9-B894B17EF4F3"

If successful, a 204 response is returned.