- Partially update an order item
Partially updates an order item.
The name of the order item. Free text value. Maximum character limit: 128
The type of order item. Must not be set to any of the following: "FLIGHT", "HOTEL", "MORTGAGE", "MORTGAGE_APPLICATION", "LOAN_APPLICATION", "PERSONAL_LOAN", "RAIL"
The unit price of the order item before conversion to the organization's currency.
- Production server APhttps://api-engage-ap.sitecorecloud.io/v2.1/orderItems/{orderItemRef}
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/orderItems/{orderItemRef}
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/orderItems/{orderItemRef}
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/orderItems/{orderItemRef}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
-u '<username>:<password>' \
https://api-engage-ap.sitecorecloud.io/v2.1/orderItems/2d7de9df-45a2-45ea-872c-30e45139007d \
-H 'Content-Type: application/json' \
-d '{
"name": "Mobile AZ10",
"description": "Mobile AZ10 description",
"type": "MOBILE",
"productId": "1233-44",
"price": 105,
"currencyCode": "EUR",
"originalPrice": 110,
"originalCurrencyCode": "USD",
"referenceId": "AAAAA-134",
"vendor": "Vendor XYZ",
"status": "CONFIRMED",
"language": "EN",
"quantity": 1,
"channel": "WEB"
}'Resource successfully created
The order item reference. This is a unique identifier of the order item. Use the order item reference to interact with a specific order item, for example, to retrieve it, update it, or create a data extension for it.
The link to the order item.
The name of the order item. Free text value. Maximum character limit: 128
The date and time when the resource was created in Sitecore CDP.
The date and time when the resource was updated in Sitecore CDP.
The date and time when the order item was made.
The unit price of the order item before conversion to the organization's currency.
{ "ref": "2d7de9df-45a2-45ea-872c-30e45139007d", "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orderItems/2d7de9df-45a2-45ea-872c-30e45139007d", "name": "Mobile AZ10", "description": "Mobile AZ10 description", "createdAt": "2024-01-01T16:17:16Z", "modifiedAt": "2024-01-01T16:17:16Z", "orderedAt": "2024-01-01T16:17:16Z", "type": "MOBILE", "productId": "1233-44", "price": 105, "currencyCode": "EUR", "originalPrice": 110, "originalCurrencyCode": "USD", "referenceId": "AAAAA-134", "vendor": "Vendor XYZ", "status": "CONFIRMED", "language": "EN", "quantity": 1, "channel": "WEB", "order": { "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orders?guestRef=2d7de9df-45a2-45ea-872c-30e45139007d&offset=1&limit=10" } }