Updates an order consumer.
The title of the person.
Example values: "Br", "Brigadier", "Capt", "Colonel", "Dame", "Dr", "Elder", "Fr", "General", "Hon", "Judge", "Lord", "Master", "Miss", "Mr", "Mrs", "Ms", "Mstr", "Prof", "Rabbi", "Rev", "Shaikha", "Sheikh", "Sir", "Sister", "Sr"
The person's gender.
Example values: "male", "female", "unknown"
The person's date of birth. Validation: Date must be in the past.
The phone numbers of the person.
[ "+353161123345", "+353161123346" ]
The person's nationality.
Example values: "Irish", "British", "Spanish", "French"
The guest's country.
Example values: "IE", "GB", "ES", "FR"
- Production server APhttps://api-engage-ap.sitecorecloud.io/v2.1/orderConsumers/{orderConsumerRef}
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/orderConsumers/{orderConsumerRef}
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/orderConsumers/{orderConsumerRef}
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/orderConsumers/{orderConsumerRef}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u '<username>:<password>' \
https://api-engage-ap.sitecorecloud.io/v2.1/orderConsumers/2d7de9df-45a2-45ea-872c-30e45139007d \
-H 'Content-Type: application/json' \
-d '{
"title": "Mr",
"firstName": "John",
"lastName": "Doe",
"gender": "male",
"dateOfBirth": "1991-01-01T16:17:16Z",
"emails": [
"john.doe@gmail.com"
],
"phoneNumbers": [
"+353161123345",
"+353161123346"
],
"nationality": "Irish",
"passportNumber": "PZ4A9565",
"country": "IE",
"identifiers": [
{
"provider": "ProfileSystem",
"id": "B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41"
}
]
}'Successful operation
The link to the order consumer.
The title of the person.
Example values: "Br", "Brigadier", "Capt", "Colonel", "Dame", "Dr", "Elder", "Fr", "General", "Hon", "Judge", "Lord", "Master", "Miss", "Mr", "Mrs", "Ms", "Mstr", "Prof", "Rabbi", "Rev", "Shaikha", "Sheikh", "Sir", "Sister", "Sr"
The person's gender.
Example values: "male", "female", "unknown"
The person's date of birth. Validation: Date must be in the past.
The phone numbers of the person.
[ "+353161123345", "+353161123346" ]
The person's nationality.
Example values: "Irish", "British", "Spanish", "French"
The guest's country.
Example values: "IE", "GB", "ES", "FR"
{ "ref": "2d7de9df-45a2-45ea-872c-30e45139007d", "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orderConsumers/2d7de9df-45a2-45ea-872c-30e45139007d", "title": "Mr", "firstName": "John", "lastName": "Doe", "gender": "male", "dateOfBirth": "1991-01-01T16:17:16Z", "emails": [ "john.doe@gmail.com" ], "phoneNumbers": [ "+353161123345", "+353161123346" ], "nationality": "Irish", "passportNumber": "PZ4A9565", "country": "IE", "orderItems": { "orderItems": [ … ] }, "order": { "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orders?guestRef=2d7de9df-45a2-45ea-872c-30e45139007d&offset=1&limit=10" }, "guest": { "href": "https://api-engage-eu.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03" } }