curl --location 'https://oteapi.webnic.cc/domain/v2/bulk/register' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"domainRegistrationList": [
{
"domainName": "SampleDomain.com",
"term": 1,
"nameservers": [
"ns1.web.cc",
"ns2.web.cc"
],
"registrantContactId": "WNC968072T",
"administratorContactId": "WNC968073T",
"technicalContactId": "WNC968074T",
"billingContactId": "WNC968075T",
"registrantUserId": "REG100078"
},
{
"domainName": "SampleDom2.com",
"term": 1,
"nameservers": [
"ns1.web.cc",
"ns2.web.cc"
],
"registrantContactId": "WNC968072T",
"administratorContactId": "WNC968073T",
"technicalContactId": "WNC968074T",
"billingContactId": "WNC968075T",
"registrantUserId": "REG100078"
}
]
}'{
"code": "1000",
"message": "Command completed successfully.",
"data": {
"taskId": "37c60f0f-4f3a-4c9e-adde-690693b44b90",
"action": "register domain",
"status": "pending",
"total": 3,
"resid": 2740,
"dtcreate": "2024-05-06T16:52:07.322233532+08:00",
"dtmodify": "2024-05-06T16:52:07.322234667+08:00",
"id": 345
}
}