Add Working Hours

Updated 1 year ago by RM

Protocol

HTTP 1.1

Url

https://secure.telecomstats.co.uk/IVRAPI/Scripts/TODAdd.aspx

Port

443

Method

GET or POST

Required Parameters

Name

Type

Values

ClientID

Integer

"1234"

Username

String

"MyUsername"

Password

String

"MyPassword"

DDI

String

"08445567676"

DayNo

Integer(1-7) Mon=1

"1"

StartTime

String

"0700"

EndTime

String

"1700"

Optional Parameters

Name

Type

Values

Test

String

"True" or "False"

Error Returns

Errors will be returned with the status code HTTP 500:

Error Code

Response

Explanation

1

Authentication failed.

An invalid combination of username, password or clientid was supplied.

2

Invalid DDI.

DDI not found or doesn't belong to the authenticated account.

3

Invalid parameter '[parameter name]'

A parameter was supplied either incorrectly or in the wrong format.

4

Invalid Method.

HTTP request was something other than GET.

5

Missing parameter '[parameter name]'

A parameter was not supplied or was supplied empty.

10

Invalid Service

The service registered against the DDI is something other than One2One.

12

Invalid Times

Either the start or end time is invalid.

13

Setup Exists

There is already a record for the specified DDI on the provided day.

15

DDI Is A Clone

The DDI is a clone of another DDI.

OK Returns

OK responses will be returned with the status code HTTP 200 and will contain the unique ID of the newly created record.


How did we do?