Creates the primary contact on an order. In identifiers, make sure to provide enough identity information according to your organization's identity rules.
In the response, ref contains the order contact reference. Use the order contact reference to interact with a specific contact, for example, to retrieve or update it.
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/orders/{orderRef}/contacts
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/orders/{orderRef}/contacts
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/orders/{orderRef}/contacts
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/orders/{orderRef}/contacts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u '<username>:<password>' \
https://api-engage-ap.sitecorecloud.io/v2.1/orders/2d7de9df-45a2-45ea-872c-30e45139007d/contacts \
-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"
}'Resource successfully created
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" } }