- Partially update an order contact
Partially updates an order contact.
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"
- Production server APhttps://api-engage-ap.sitecorecloud.io/v2.1/orderContacts/{orderContactRef}
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/orderContacts/{orderContactRef}
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/orderContacts/{orderContactRef}
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/orderContacts/{orderContactRef}
- 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/orderContacts/3b5cb55e-c616-424a-991c-a241d0024896 \
-H 'Content-Type: application/json' \
-d '{
"firstName": "John",
"lastName": "Doe",
"emails": [
"john.doe@gmail.com"
],
"identifiers": [
{
"provider": "ProfileSystem",
"id": "B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41"
}
],
"street": [
"Tara St.",
"Main Ave."
],
"city": "Dublin",
"state": "10001",
"title": "Mr",
"gender": "male",
"dateOfBirth": "1991-01-01T16:17:16Z",
"phoneNumbers": [
"+353161123345",
"+353161123346"
],
"nationality": "Irish",
"passportNumber": "PZ4A9565",
"country": "IE"
}'Successful operation
The link to the order contact.
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/orderContacts/2d7de9df-45a2-45ea-872c-30e45139007d", "firstName": "John", "lastName": "Doe", "emails": [ "john.doe@gmail.com" ], "identifiers": [ { … } ], "street": [ "Tara St.", "Main Ave." ], "city": "Dublin", "state": "New York", "postCode": "10001", "title": "Mr", "gender": "male", "dateOfBirth": "1991-01-01T16:17:16Z", "phoneNumbers": [ "+353161123345", "+353161123346" ], "nationality": "Irish", "passportNumber": "PZ4A9565", "country": "IE", "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" } }