Skip to main content
Skip table of contents

Tariff [APIs]

Tariff

Tariffs define pricing rules for services and are linked to Ratezones. Tariffs are later attached to Plans.

Account access

  • Reseller: Yes

  • Enterprise: No


POST Tariff – Create

Endpoint

CODE
POST /api/createTariff

Headers

CODE
Content-Type: application/json
X-Requested-With: XMLHttpRequest
X-Authorization: Bearer <AccessToken>

Request body

Top-level object: tariffInfo

Field

Mandatory

Description

tariffName

Yes

Tariff name

ratezoneId

Yes

Ratezone id

serviceProfileId

Yes

Service profile id

status

Yes

0 = Inactive, 1 = Active

Result codes (selected)

Code

Description

1501

Create tariff success

1502

Create tariff failure

1503

Duplicate tariff name

10239

Operation failed (verify completion)

10240

Operation timeout (verify completion)


GET Tariff

Endpoint

CODE
GET /api/GetTariff

Headers

CODE
Content-Type: application/json
X-Requested-With: XMLHttpRequest
X-Authorization: Bearer <AccessToken>

Query parameters

Parameter

Mandatory

Description

tariffId

No

Fetch a specific tariff

Response (selected)

Returned under responseParam.rows[]:

Field

Description

tariffId

Tariff id

tariffName

Tariff name

ratezoneId

Linked ratezone

serviceProfileId

Linked service profile

status

Tariff status

Result codes (selected)

Code

Description

1504

Get tariff success

1505

Get tariff failure

1359

No data available


POST Tariff – Modify

Endpoint

CODE
POST /api/modifyTariff

Headers

CODE
Content-Type: application/json
X-Requested-With: XMLHttpRequest
X-Authorization: Bearer <AccessToken>

Request body

Top-level object: tariffInfo

Field

Mandatory

Description

tariffId

Yes

Tariff id

tariffName

No

Updated name

ratezoneId

No

Updated ratezone

serviceProfileId

No

Updated service profile

status

No

Updated status

Result codes (selected)

Code

Description

1506

Modify tariff success

1507

Modify tariff failure

10239

Operation failed (verify completion)

10240

Operation timeout (verify completion)


POST Tariff – Delete

Endpoint

CODE
POST /api/deleteTariff

Headers

CODE
Content-Type: application/json
X-Requested-With: XMLHttpRequest
X-Authorization: Bearer <AccessToken>

Request body

Top-level object: tariffInfo

Field

Mandatory

Description

tariffId

Yes

Tariff id

Result codes (selected)

Code

Description

Next steps

1508

Delete tariff success

1509

Delete tariff failure

1510

Tariff attached to plan

Use GET Query Rate Plan


Cross-API parameter sourcing

  • ratezoneId: via GET Ratezone

  • serviceProfileId: via GET Service Profile

  • tariffId: via GET Tariff or Create response

  • Dependency checks:

    • Plan usage: GET Query Rate Plan

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.