Tariscope 4.6.Tariscope API guide
Tariscope API Methods
6. subscriber.dnadd
This is a POST request that adds a phone number to the subscriber.
Request parameters:
- SubscriberId. The subscriber identifier to which the phone number is attached.
- DN. The phone number assigned to the subscriber.
- description. A description of the phone number. An optional parameter.
- fromdate. The date from which the number belongs to the subscriber.
- pbxid. The identifier of the PBX to which the phone number belongs
If the request is executed correctly, the following data is returned:
- id. The identifier of the phone number in Tariscope.
- subscriberid. The identifier of the subscriber to whom the phone number is added.
- pbxid. The identifier of the PBX to which the phone number belongs.
- dn. The phone number.
Example of a request.
Assign the telephone number 2001 to the subscriber with the identifier 7334 from 02.06.2023. The number belongs to the PBX with the identifier 292.