Create OC Essential Service with IP Group
This request enables you to create a new service from lead with an IP Group used to create a SIP connection between the customer tenant service and the Online PSTN gateway. Two new IP Groups are created on the SBC device that is configured to connect calls between the PSTN trunk and Microsoft Teams, one for the SIP leg (<IP_Group_Name-c) and another for the Teams leg (<IP_Group_Name-t). On Live Platform , a single IP Group representing the SIP leg is created serving as the SIP Connection between the customer tenant service and the Online PSTN gateway. IP Groups are mandatory for SIP Registration (see Create Customer from Lead with IP Group (Advanced Configuration).
By default, Operator Connect is configured to work with Microsoft Operator Connect 'peering' mode with two IP groups, one for the Microsoft Teams connection and the other for the SIP Trunk connection. The default Operator Connect Onboarding script creates a default Proxy Set 'Teams-OC ' and default IP Group 'Teams-OC' for this purpose .
Using this request, two new IP Groups are created on the SBC device for the service, one for the SIP leg (<IP_Group_Name-c) and another for the Teams leg (<IP_Group_Name-t). On the Live Platform portal, a single IP Group is created serving as the SIP Connection between the customer tenant service and the Online PSTN gateway.
URI
{{baseUrl}}/api/v3/customer
HTTP Method
POST
Request Body
Parameter |
Type |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ConfigurationName |
string |
|
||||||||||||
CustomerShortName |
string |
Customer short name with the following validation rules:
|
||||||||||||
CustomerFulName |
string |
Generally the company name, however, any value can be used. |
||||||||||||
siteLocation |
|
The configured SBC used to manage calls for this site location. |
||||||||||||
ovocCustomerType |
string One of the following values:
|
|
||||||||||||
channelId |
string |
Id of the Channel. |
||||||||||||
msTenantId |
string |
Microsoft subscription Tenant ID of the Customer lead. |
||||||||||||
leadId |
string |
The Id generated for the lead (see Get All OC Leads) |
||||||||||||
m365Email |
string |
Email of the M365 tenant. |
||||||||||||
m365Password |
string |
Password of the M365 tenant. |
||||||||||||
invitationEmail |
string |
Email of the customer tenant Global Admin or Service account operator used for Onboarding and securing the Token connection. |
||||||||||||
licenseType |
integer |
|
||||||||||||
umpCustomerGuid |
string($uuid) |
CustomerGuid created for the customer tenant when Live Cloud OC license is applied.
|
||||||||||||
teamsQos |
array |
Array consisting of the following values:
|
||||||||||||
applicationID |
string |
|
||||||||||||
applicationPassword |
string |
|
||||||||||||
licensedUsersCount |
integer |
|
||||||||||||
scriptParameters |
list array |
List array including the following values:
|
||||||||||||
webhooks |
List array |
List array including the following values:
|
||||||||||||
invitationIsPending |
Customer invitation is pending. | |||||||||||||
customerCreated |
Customer has been created, | |||||||||||||
didChange |
|
|
Example Request Body
{
"configurationName": "OcEssential_IPGROUP_TYPE",
"msTenantId": "f9f53ee0-56e1-43f6-8fe3-5fb322986657",
"customerShortName": "Bradx35340067",
"customerFullName": "Bradx35340067",
"scriptParameters": {
"ProxySet": "SIPTrunk",
"OnlinePstnGateway":"oc1.sandbox2.audiocodes.be"}
}
Example Response
The initial response displays the Task Id.
Parameter
|
Type |
Description |
---|---|---|
Task Id |
string |
The queued task Id that is generated for this action. You must run the Task request to retrieve the status of the action. See Task Status. Note that the wst string in the prefix is unique for this endpoint. |
{
"jobId": "wst_80b54f45-6643-4fdf-960a-638c18edb787"
}
The execution of the request may take a few minutes. The status will progress from 'In Progress' to 'Completed Success'.
{
"id": "wst_80b54f45-6643-4fdf-960a-638c18edb787",
"status": "CompletedSuccess",
"details": [
"Converted"
],
"executionMessages": [
{
"level": "Information",
"message": "SBC sbc-onboarding done for site Bradx35340067."
},
{
"level": "Information",
"message": "Site created in Ovoc"
}
],
"outputData": {}
}
Response Codes
■ | 200 Success |
Parameter |
Type |
Description |
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
string |
Task Id |
|||||||||||||||
status |
string |
One of the following values:
|
|||||||||||||||
details |
string |
One of the following values:
|
|||||||||||||||
executionMessages |
list array |
List array including the following parameters:
|
|||||||||||||||
level |
string |
One of the following values:
|
|||||||||||||||
message |
string |
Copy
Copy
Copy
Copy
Copy
Copy
|
|||||||||||||||
umpCustomerGuid |
string($uuid) |
CustomerGuid created for the customer tenant. This value is equivalent to the Id value extracted using Get Services Brief Details (V3). If this field is null: An OC license has not yet been applied to the customer lead. |
|||||||||||||||
outputData |
list array |
Additional information. |
■ | 405 Method Not Allowed: |
{
"type": "https://httpstatuses.com/500",
"title": "Internal Server Error",
"status": 500,
"traceId": "00-5bcfb1f75627574e43998a4558b34f5e-85a4aabfabc87feb-00"
}
■ | 500 Internal Server Error |
{
"type": "https://httpstatuses.com/500",
"title": "Internal Server Error",
"status": 500,
"traceId": "00-5bcfb1f75627574e43998a4558b34f5e-85a4aabfabc87feb-00"
}