Partner Add Hotline

This API allows Partners to add new hotlines to the system.

Note

  • Please use <api_key>the one eTelecom provided earlier. The base_url information of the Partner.

Request:

curl --location 'BASE_URL.Etelecom/PartnerAddHotline' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
  "description": "string",
  "hotline": "string",
  "is_free_charge": true,
  "name": "string",
  "network": "unknown",
  "owner_id": "string"
}'

Response:

{
  "connection_id": "string",
  "connection_method": "unknown",
  "created_at": "2019-08-24T14:15:22Z",
  "description": "string",
  "hotline": "string",
  "id": "string",
  "is_free_charge": true,
  "name": "string",
  "network": "unknown",
  "owner_id": "string",
  "status": "Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

Request body structure:

Parameters
Data type
Describe

description

string

Hotline description

hotline require

string

Hotline number to create

is_free_charge

boolean

true: no balance check when calling false: balance check when calling

name required

string

Hotline name

network

string (tcMobileNetwork) Enum

Networkunknown mobifone vinaphone viettel other

Return data attribute structure:

Parameters
Data type
Describe

connection_id

string<int64>

Session ID

connection_method

string

Connection method

created_at

string<date-time>

Initialization time

description

string

Hotline description

hotline

string<int64>

Hotline number

id

string<int64>

Hotline ID

is_free_charge

boolean

true: no balance check when calling false: balance check when calling

name

string

Hotline name

network

string

Networkunknown mobifone vinaphone viettel other

owner_id

string<int64>

Manager ID

status

string

Status

Z: Newly created

P: Enable

N: Disable

updated_at

string<date-time>

Update date

Last updated