Salta ai contenuti

Create single contact

POST
/v3/contacts
curl --request POST \
--url https://api-crm-staging.divinea.com/api/v3/contacts \
--header 'APIKey: <APIKey>' \
--header 'Content-Type: application/json' \
--data '{ "acceptedMarketing": true, "acceptedPrivacyTerms": true, "acceptedProfiling": true, "cap": "00100", "city": "Rome", "contactType": "example", "country": "example", "countryISO": "IT", "dateOfBirth": "1980-01-01", "email": "example", "emails": [ { "email": "john.doe@gmail.com", "type": "master" } ], "firstName": "John", "languageISO": "EN", "lastName": "Doe", "manualMarketing": false, "masterEmail": { "email": "john.doe@gmail.com", "master": true, "type": "master" }, "phoneNumber": "example", "phoneNumbers": [ { "phone": "+1234567890", "type": "master" } ], "province": "RM", "unsubscribed": false, "wineryID": "example" }'

Contact

Media typeapplication/json
ContactDTO

Contact data transfer object

object
acceptedMarketing

Accepted Marketing

boolean
Example
true
acceptedPrivacyTerms

Accepted Privacy Terms

boolean
Example
true
acceptedProfiling

Accepted Profiling

boolean
Example
true
cap

Postal Code / CAP

string
Example
00100
city

City name

string
Example
Rome
contactType
string
country

Country name

string
countryISO
required

Country ISO

string
Example
IT
dateOfBirth

Date of Birth

string format: date
Example
1980-01-01
email
string
emails
required

Emails

Array<object>
Email

Email object for a contact

object
email

Email address

string
Example
john.doe@gmail.com
master
boolean
type

Type of email

string
Allowed values: master secondary work additionalWork pec
Example
master
Example
[
{
"email": "john.doe@gmail.com",
"type": "master"
}
]
firstName
required

First Name

string
Example
John
languageISO

Language ISO code

string
Example
EN
lastName
required

Last Name

string
Example
Doe
manualMarketing

Privacy Manual flagged by winery (has a signed paper)

boolean
Example
false
masterEmail
Email

Email object for a contact

object
email

Email address

string
Example
john.doe@gmail.com
master
boolean
type

Type of email

string
Allowed values: master secondary work additionalWork pec
Example
master
phoneNumber
string
phoneNumbers
required

Phone Numbers

Array<object>
Phone

Phone object for a contact

object
phone

Phone number

string
Example
+1234567890
type

Type of phone

string
Allowed values: master secondary work
Example
master
Example
[
{
"phone": "+1234567890",
"type": "master"
}
]
province

Province name

string
Example
RM
unsubscribed

Privacy Unsubscribed

boolean
Example
false
wineryID

Winery ID associated with the contact

string

OK

Media type*/*
ContactDTO

Contact data transfer object

object
acceptedMarketing

Accepted Marketing

boolean
Example
true
acceptedPrivacyTerms

Accepted Privacy Terms

boolean
Example
true
acceptedProfiling

Accepted Profiling

boolean
Example
true
cap

Postal Code / CAP

string
Example
00100
city

City name

string
Example
Rome
contactType
string
country

Country name

string
countryISO
required

Country ISO

string
Example
IT
dateOfBirth

Date of Birth

string format: date
Example
1980-01-01
email
string
emails
required

Emails

Array<object>
Email

Email object for a contact

object
email

Email address

string
Example
john.doe@gmail.com
master
boolean
type

Type of email

string
Allowed values: master secondary work additionalWork pec
Example
master
Example
[
{
"email": "john.doe@gmail.com",
"type": "master"
}
]
firstName
required

First Name

string
Example
John
languageISO

Language ISO code

string
Example
EN
lastName
required

Last Name

string
Example
Doe
manualMarketing

Privacy Manual flagged by winery (has a signed paper)

boolean
Example
false
masterEmail
Email

Email object for a contact

object
email

Email address

string
Example
john.doe@gmail.com
master
boolean
type

Type of email

string
Allowed values: master secondary work additionalWork pec
Example
master
phoneNumber
string
phoneNumbers
required

Phone Numbers

Array<object>
Phone

Phone object for a contact

object
phone

Phone number

string
Example
+1234567890
type

Type of phone

string
Allowed values: master secondary work
Example
master
Example
[
{
"phone": "+1234567890",
"type": "master"
}
]
province

Province name

string
Example
RM
unsubscribed

Privacy Unsubscribed

boolean
Example
false
wineryID

Winery ID associated with the contact

string