Rateplans API

get listing

GET /api/rest/admin/rateplans

Parameters

Name Description
filter[id] id filter
filter[name] name filter
filter[name-eq] name eq filter
filter[name-not-eq] name not eq filter
filter[name-cont] name cont filter
filter[name-start] name start filter
filter[name-end] name end filter
filter[name-in] name in filter
filter[name-not-in] name not in filter
filter[name-cont-any] name cont any filter
filter[profit-control-mode-id-eq] profit control mode id eq filter
filter[profit-control-mode-id-not-eq] profit control mode id not eq filter
filter[profit-control-mode-id-gt] profit control mode id gt filter
filter[profit-control-mode-id-gteq] profit control mode id gteq filter
filter[profit-control-mode-id-lt] profit control mode id lt filter
filter[profit-control-mode-id-lteq] profit control mode id lteq filter
filter[profit-control-mode-id-in] profit control mode id in filter
filter[profit-control-mode-id-not-in] profit control mode id not in filter

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE3NCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc0MDg1MzAzOH0._9hY9g0qkxL2uJfP0FeBssNbOoWThjo3Otm74gFcLRc
Host: example.org
Cookie: 

Route

GET /api/rest/admin/rateplans

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"26360a97ad9124a5fcae4fdd221df239"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: fe4bfa94-16d8-4fd3-9fb0-15e522df3b18
X-Runtime: 0.008419
Content-Length: 772

Status

200 OK

Body

{
  "data": [
    {
      "id": "21",
      "type": "rateplans",
      "links": {
        "self": "http://example.org/api/rest/admin/rateplans/21"
      },
      "attributes": {
        "name": "rateplan8",
        "profit-control-mode-id": 2
      },
      "relationships": {
        "rate-groups": {
          "links": {
            "related": "http://example.org/api/rest/admin/rateplans/21/rate-groups"
          }
        }
      }
    },
    {
      "id": "22",
      "type": "rateplans",
      "links": {
        "self": "http://example.org/api/rest/admin/rateplans/22"
      },
      "attributes": {
        "name": "rateplan9",
        "profit-control-mode-id": 2
      },
      "relationships": {
        "rate-groups": {
          "links": {
            "related": "http://example.org/api/rest/admin/rateplans/22/rate-groups"
          }
        }
      }
    }
  ],
  "meta": {
    "total-count": 2
  },
  "links": {
    "first": "http://example.org/api/rest/admin/rateplans?page%5Bnumber%5D=1&page%5Bsize%5D=50",
    "last": "http://example.org/api/rest/admin/rateplans?page%5Bnumber%5D=1&page%5Bsize%5D=50"
  }
}