Create Customer from Lead with IP Group (Advanced Configuration)
This request enables you to create a new customer from a lead by creating an IP Group and Proxy Set on the OnlinePstnGateway (AudioCodes SBC device configured to connect calls between PSTN trunk and Microsoft Teams) device and creating a link between Live Platform portal database and the SBC device using the newly created IP Group.
IP Groups are mandatory for SIP Registration. This request is applied in the Live Platform portal in the Advanced tab when changing status of the lead (see Enabling Operator Connect License).
URI
{{baseUrl}}/api/v3/customer
HTTP Method
POST
Request Body
Parameter |
Type |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ConfigurationName |
string |
|
||||||||||||
shortName |
string |
Short customer name, complying with validation rules for customer name:
|
||||||||||||
CustomerFulName |
string |
Generally the company name, however, any value can be used. |
||||||||||||
msTenantID |
string |
The Microsoft Azure subscription Tenant Id of the customer lead. |
||||||||||||
scriptParameters |
list array |
List array including the following values:
|
||||||||||||
ProxySet (SBC carrier) |
string |
SBC Proxy Set to apply to the PSTN gateway. The same Proxy set and Proxy Address can be used for multiple customers. |
||||||||||||
OnlinePstnGateway |
string |
Online PSTN gateway (SBC device connected to Live Cloud and activated on Micrsosoft, see 'Get Online PSTN Gateway'). |
||||||||||||
Custom Variables |
string |
Custom variables configured for the script. For example, IP-PBX credentials. |
Example Request Body
{
"configurationName": "OcEssential_IPGROUP_TYPE",
"customerShortName": "SIPTest4",
"customerFullName": "SIPTest4",
"msTenantId": "f79a7f93-5ef7-47d2-92c8-e4570503cec3",
"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. |
{
"taskId": "wst_1a93b0c9-5ab0-4d3f-af25-c0f18ad0aa2e"
}
The execution of the request may take a few minutes. The status will progress from 'In Progress' to 'Completed Success'.
{
"id": "wst_9a7ff916-aab2-41d1-a9fe-0e9baacf4a15",
"status": "CompletedSuccess",
"details": [
"Converted"
],
"executionMessages": [
{
"level": "Information",
"message": "SBC sbc-onboarding done for site SIPTest4."
},
{
"level": "Information",
"message": "Site created in Ovoc"
}
],
"outputData": {
"umpCustomerGuid": "1b9ec2ad-bf3e-4096-b387-9daa05750616"
},
"createTime": "0001-01-01T00:00:00"
}
HTTP Responses
■ | 200 OK |
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 |
Example error messages are described below.
Copy
Copy
Copy
Copy
The following error is displayed when there is no active lead: Copy
The following error is displayed when a customer has already been created for the tenant: Copy
|
||||||||||||
umpCustomerGuid |
string($uuid) |
This id is created in the Live Platform database for the customer tenant when a Live Platform license is applied. This value is also obtained in the 'Get Task' response when the customer is created. |
||||||||||||
outputData |
list array |
Additional information. |