Order Telephone Number
CreateTNOrder
POST https://api.opentact.org/rest/order/tn
Headers
Authorization
string
JWT_TOKEN
Content-Type
string
application/json
Request Body
autorenew
boolean
Default: "true"
voice
string
Default:"true"
Voice feature
fax
string
Fax feature
sms
boolean
SMS feature
Default: "true"
mms
boolean
MMS feature
emergency
boolean
Emergency feature
tns
string
Array of numbers <double> non-empty
Array of numbers to order
profile
string
[ 1 .. 255 ] characters
Default: US
TNProfile name
sip_connection
string
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
SIP Connection uuid
sip_control_app
string
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
SIP Control app uuid
{
"success": true,
"payload": {
"voice": true,
"fax": true,
"sms": true,
"mms": true,
"emergency": true,
"autorenew": true,
"state": "created",
"request": {
"voice": true,
"fax": true,
"sms": true,
"mms": true,
"emergency": true,
"tns": [
0
],
"autorenew": true,
"profile": "US"
},
"uuid": "e7fad289-f977-45bb-bc42-448d1290555c",
"price": null,
"created_on": "2020-10-28T10:47:28.270Z",
"modified_on": "2020-10-28T10:47:28.270Z"
}
}Code Example
GetOrderPrice
POST https://api.opentact.org/rest/order/price
Get order price
Headers
Authorization
string
JWT_TOKEN
Content-Type
string
application/json
Request Body
autorenew
boolean
Default: "true"
voice
string
Default:"true"
Voice feature
fax
string
Fax feature
sms
boolean
SMS feature
Default: "true"
mms
boolean
MMS feature
emergency
boolean
Emergency feature
tns
string
Array of numbers <double> non-empty
Array of numbers to order
profile
string
[ 1 .. 255 ] characters
Default: US
TNProfile name
sip_connection
string
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
SIP Connection uuid
sip_control_app
string
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
SIP Control app uuid
Code Example
ListOrders
POST https://api.opentact.org/rest/order
This return the order list.
Headers
Authorization
string
JWT_TOKEN
Content-Type
string
application/json
Code Example
GetOrderByUUID
GET https://api.opentact.org/rest/order/{uuid}
Get extended order info.
Path Parameters
uuid
string
Headers
X-Auth-Token
string
JWT_TOKEN
Code Example
Last updated