Skip to main content
Skip table of contents

Plan [APIs]

Plan

Plans bundle Tariffs, Service Profiles, and commercial rules into an offer that can be assigned to endpoints.


POST Plan – Create

Endpoint

CODE
POST /api/createPlan

Headers

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

Request body

Top-level object: planInfo

Field

Mandatory

Description

planName

Yes

Plan name

tariffId

Yes

Tariff id

serviceProfileId

Yes

Service profile id

status

Yes

0 = Inactive, 1 = Active

Result codes (selected)

Code

Description

1601

Create plan success

1602

Create plan failure

1603

Duplicate plan name

10239

Operation failed (verify completion)

10240

Operation timeout (verify completion)


GET Plan (Query Rate Plan)

Endpoint

CODE
GET /api/QueryRatePlan

Headers

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

Query parameters

Parameter

Mandatory

Description

planId

No

Fetch a specific plan

Response (selected)

Returned under responseParam.rows[]:

Field

Description

planId

Plan id

planName

Plan name

tariffId

Linked tariff

serviceProfileId

Linked service profile

status

Plan status

Result codes (selected)

Code

Description

1604

Get plan success

1605

Get plan failure

1359

No data available


POST Plan – Modify

Endpoint

CODE
POST /api/modifyPlan

Headers

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

Request body

Top-level object: planInfo

Field

Mandatory

Description

planId

Yes

Plan id

planName

No

Updated name

tariffId

No

Updated tariff

serviceProfileId

No

Updated service profile

status

No

Updated status

Result codes (selected)

Code

Description

1606

Modify plan success

1607

Modify plan failure

10239

Operation failed (verify completion)

10240

Operation timeout (verify completion)


POST Plan – Delete

Endpoint

CODE
POST /api/deletePlan

Headers

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

Request body

Top-level object: planInfo

Field

Mandatory

Description

planId

Yes

Plan id

Result codes (selected)

Code

Description

Next steps

1608

Delete plan success

1609

Delete plan failure

1610

Plan attached to endpoint

Detach endpoint before deletion


Cross-API parameter sourcing

  • tariffId: via GET Tariff

  • serviceProfileId: via GET Service Profile

  • planId: via GET Query Rate Plan or Create response

  • Dependency checks:

    • Endpoint usage: via endpoint assignment APIs

JavaScript errors detected

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

If this problem persists, please contact our support.