curl --location --request POST 'https://oteapi.webnic.cc/ssl/v2/contact/create' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"administrator":{
"company": "Nelson Corp",
"firstName":"Nelson",
"lastName":"SSL",
"address1":"L4-E-2, HIVE 5, Mranti",
"city":"Bukit Jalil",
"state" : "Selangor",
"countryCode": "MY",
"zip": "57100",
"phoneNumber": "+6012.1234567890",
"email": "ssl-testing@webnic.cc"
},
"technical":{
"company": "Nelson Corp-test",
"firstName":"Nelson",
"lastName":"SSL",
"address1":"L4-E-2, HIVE 5, Mranti",
"city":"Bukit Jalil",
"state" : "Selangor",
"countryCode": "MY",
"zip": "57100",
"phoneNumber": "+60.6506503",
"email": "ssl-testing@webnic.cc"
}
}'{
"code": "1000",
"message": "Command completed successfully.",
"data": [
{
"contactId": "SSL10667T",
"resid": 2740,
"details": {
"company": "Nelson Corp",
"firstName": "Nelson",
"lastName": "SSL",
"address1": "L4-E-2, HIVE 5, Mranti",
"address2": null,
"city": "Bukit Jalil",
"state": "Selangor",
"countryCode": "MY",
"zip": "57100",
"phoneNumber": "+6012.1234567890",
"faxNumber": null,
"email": "ssl-testing@webnic.cc",
"jobTitle": null
},
"contactType": "administrator",
"dtcreate": "2024-12-27T09:35:42.7352+08:00",
"dtmodify": "2024-12-27T09:35:42.735204+08:00"
},
{
"contactId": "SSL10668T",
"resid": 2740,
"details": {
"company": "Nelson Corp-test",
"firstName": "Nelson",
"lastName": "SSL",
"address1": "L4-E-2, HIVE 5, Mranti",
"address2": null,
"city": "Bukit Jalil",
"state": "Selangor",
"countryCode": "MY",
"zip": "57100",
"phoneNumber": "+60.6506503",
"faxNumber": null,
"email": "ssl-testing@webnic.cc",
"jobTitle": null
},
"contactType": "technical",
"dtcreate": "2024-12-27T09:35:42.880034+08:00",
"dtmodify": "2024-12-27T09:35:42.88004+08:00"
}
]
}