Skip to main content

Using the delete order contact function in Sitecore CDP REST API

Abstract

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

You can use the Order Contact REST API to perform the delete order contact function to remove the guest from the order.

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

DELETE: https://apiEndpoint/v2/orderContacts/orderContactRef

Attribute

Description

Type

orderContactRef

The reference of the contact on the order.

string

$ curl -x DELETE -H "Accept: application/json" \
     "https://{apiEndpoint}/v2/orderContacts/F8D1F0D5-365D-46B7-BECF-D041E93A5705"

If successful, a 204 response is returned.