curl --request POST \
--url https://app.cloudtxt.com/api/customer/add \
--data '{
"source_id":"627346b1ac507",
"phone":"+79231783401",
"first_name":"John",
"last_name":"Smith",
"email":"jsmith@gmail.com"
}'
The request correctly process the following fields:
Error | Reason |
---|---|
Could not decode JSON, syntax error - malformed JSON. | Some of the fields do not meet JSON format requirements |
400 Missing source_id | API key (required field) is missing |
400 Missing phone | Phone number (required field) is missing |
400 Invalid phone number | Inserted phone number is invalid |
400 Too long source_id | Source ID length exceeds 20 characters |
400 Too long phone | Phone number length exceeds 11 digits |
400 Too long first_name | first_name length exceeds 20 characters |
400 Too long last_name | last_name length exceeds 20 characters |
400 Too long email | email length exceeds 20 characters |
400 Wrong email | Email format is not correct |
404 No resource | The key does not exist in a database or the key is disabled. |