post https://api.splio.com/data/contacts
Create a contact.
Error cases
Already existing unique_key (400)
{
"status": 400,
"errors": [
{
"error_key": "id",
"error": "wrong_value",
"error_description": "contact with unique key test_existing already exists"
}
]
}
Missing unique_key (400)
{
"status": 400,
"errors": [
{
"error_key": "contact_key",
"error": "wrong_contact_key",
"error_description": "Bad key formating against universe key, c0 is empty"
}
]
}
Malformatted value - ex: price as String (400)
Generic error for all fields and custom fields values types
{
"status": 400,
"errors": [
{
"error_key": "custom_fields",
"error": "wrong_type",
"error_description": "Custom field with id 5 and name Date_de_test must be of type date."
}
]
}
Non-existing list (400)
{
"status": 400,
"errors": [
{
"error_key": "list_id",
"error": "wrong_value",
"error_description": "list 777 does not exist"
}
]
}
Non-existing custom_field (400)
{
"status": 400,
"errors": [
{
"error_key": "custom_fields",
"error": "wrong_value",
"error_description": "Custom field not found for id 145."
}
]
}
Malformatted email (400)
{
"status": 400,
"errors": [
{
"error_key": "email",
"error": "wrong_email",
"error_description": "The email given should have the right format"
}
]
}
Malformatted list (400)
{
"status": 400,
"errors": [
{
"error_key": "list_id",
"error": "wrong_value",
"error_description": "lists for contact created should contains id key"
}
]
}
Double optin without list (400)
{
"status": 400,
"errors": [
{
"error_key": "double_optin",
"error": "wrong_value",
"error_description": "double optin option should have some lists to prepare"
}
]
}