openapi: 3.2.0 info: title: Number Management Number Scheme API version: 1.0.5 description: '#### Copyright © Aeris Communications, Inc.' x-api-id: f9fccdac-8c1f-43bc-90a7-99edee52fe2f x-audience: external-public servers: - url: https://iot-api.aeris.com/iot/api/subscriptions description: API server tags: - name: NumberScheme description: Number scheme API paths: /number-schemes: get: tags: - NumberScheme operationId: listNumberSchemes summary: List Number schemes description: Provides list of number schemes mapped to specific organization ID. parameters: - $ref: '#/components/parameters/Header-Authorization' - in: query name: organizationId required: true schema: type: string example: '22311000' description: 'The number schemes mapped to the specific organization ID ' - $ref: '#/components/parameters/limitParam' - $ref: '#/components/parameters/cursorParam' responses: '200': $ref: '#/components/responses/NumberSchemesResponse' '400': $ref: '#/components/responses/400' '401': $ref: '#/components/responses/401' '403': $ref: '#/components/responses/403' '404': $ref: '#/components/responses/404' '429': $ref: '#/components/responses/429' '500': $ref: '#/components/responses/500' default: $ref: '#/components/responses/default' security: - OAuth2: - cnx_subscription_view /number-schemes/{schemeId}: get: tags: - NumberScheme operationId: getNumberSchemeInfo summary: Number scheme detail description: Provides details of numberscheme mapped to specific scheme parameters: - $ref: '#/components/parameters/Header-Authorization' - in: path name: schemeId required: true schema: type: string example: TESTOPPREFSCHEME00021 description: 'The number scheme mapped to the specific scheme ID ' - in: query name: organizationId required: true schema: type: string example: '22311000' description: 'The number schemes mapped to the specific organization ID ' responses: '200': $ref: '#/components/responses/NumberSchemeResponse' '400': $ref: '#/components/responses/400' '401': $ref: '#/components/responses/401' '403': $ref: '#/components/responses/403' '404': $ref: '#/components/responses/404' '429': $ref: '#/components/responses/429' '500': $ref: '#/components/responses/500' default: $ref: '#/components/responses/default' security: - OAuth2: - cnx_subscription_view components: responses: default: content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: response: value: type: https://www.iana.org/assignments/http-status-codes/ title: Internal Server Error status: 500 detail: Internal Server Error instance: https://exmaple.api.documentation.url/123e4567-e89b-12d3-a456-426614174000 description: Internal Server Error '429': content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: response: value: type: https://www.iana.org/assignments/http-status-codes/ title: Too Many Requests status: 429 detail: API rate limit exceeded instance: https://exmaple.api.documentation.url/123e4567-e89b-12d3-a456-426614174000 description: Too Many Requests allOf: - $ref: '#/components/responses/RateLimitedResponse' '401': content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: response: value: type: https://www.iana.org/assignments/http-status-codes/ title: Unauthorized status: 401 detail: Token expired instance: https://exmaple.api.documentation.url/123e4567-e89b-12d3-a456-426614174000 description: Unauthorized headers: Content-Type: $ref: '#/components/headers/Content-Type' RateLimitedResponse: headers: X-RateLimit-Limit-Second: $ref: '#/components/headers/X-RateLimit-Limit-Second' X-RateLimit-Limit-Minute: $ref: '#/components/headers/X-RateLimit-Limit-Minute' X-RateLimit-Remaining-Second: $ref: '#/components/headers/X-RateLimit-Remaining-Second' X-RateLimit-Remaining-Minute: $ref: '#/components/headers/X-RateLimit-Remaining-Minute' Content-Type: $ref: '#/components/headers/Content-Type' '403': content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: response: value: type: https://www.iana.org/assignments/http-status-codes/ title: Forbidden status: 403 detail: You do not have access to the resource instance: https://exmaple.api.documentation.url/123e4567-e89b-12d3-a456-426614174000 description: Forbidden headers: Content-Type: $ref: '#/components/headers/Content-Type' '400': content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: response: value: type: https://www.iana.org/assignments/http-status-codes/ title: Bad Request status: 400 detail: organizationId can not be null instance: https://exmaple.api.documentation.url/123e4567-e89b-12d3-a456-426614174000 description: Bad Request headers: Content-Type: $ref: '#/components/headers/Content-Type' NumberSchemesResponse: content: application/json: schema: $ref: '#/components/schemas/numberSchemes' examples: number-schemes: value: numberSchemes: - schemeId: TESTOPPREFSCHEME00021 hlrRID: 0 schemeName: NS022311 regionEnabled: false hosted: true rangeDuplication: true next: /number-schemes?organizationId=05000001&limit=10&cursor=ODk0NTA0MjExNzEyMDYwMjIyMjI= description: OK allOf: - $ref: '#/components/responses/RateLimitedResponse' '404': content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: response: value: type: https://www.iana.org/assignments/http-status-codes/ title: Not Found status: 404 detail: Not Found instance: https://exmaple.api.documentation.url/123e4567-e89b-12d3-a456-426614174000 description: Not Found headers: Content-Type: $ref: '#/components/headers/Content-Type' NumberSchemeResponse: content: application/json: schema: $ref: '#/components/schemas/numberScheme' example: schemeId: TESTOPPREFSCHEME00021 hlrRID: 0 schemeName: NS022311 regionEnabled: false hosted: true rangeDuplication: true description: OK allOf: - $ref: '#/components/responses/RateLimitedResponse' '500': content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: response: value: type: https://www.iana.org/assignments/http-status-codes/ title: Internal Server Error status: 500 detail: Internal Server Error instance: https://exmaple.api.documentation.url/123e4567-e89b-12d3-a456-426614174000 description: Internal Server Error headers: Content-Type: $ref: '#/components/headers/Content-Type' headers: Content-Type: description: Handle Content-Type schema: type: string X-RateLimit-Remaining-Second: description: The number of requests remaining in a second. schema: type: integer format: int32 X-RateLimit-Limit-Second: description: The maximum number of requests allowed in a second. schema: type: integer format: int32 X-RateLimit-Remaining-Minute: description: The number of requests remaining in a minute. schema: type: integer format: int32 X-RateLimit-Limit-Minute: description: The maximum number of requests allowed in a minute. schema: type: integer format: int32 parameters: limitParam: in: query name: limit schema: type: integer default: 100 description: 'Specifies the maximum number of results to be returned. Allowed interval is 1-10000. ' cursorParam: in: query name: cursor schema: type: string example: DFVSDB3434%DFB%EYY445 description: 'Encoded string parameter used for pagination. This field is automatically populated in the response field "next" if there are more results in the system than delivered in the response. ' Header-Authorization: name: Authorization in: header required: true description: A valid token string in the form Bearer schema: type: string schemas: numberScheme: type: object description: 'Number Scheme information. ' properties: schemeId: type: string description: ID of Scheme. example: TESTOPPREFSCHEME00021 hlrRID: type: integer format: int32 description: Specific Id of the HLR. example: 0 schemeName: type: string description: The name of the number scheme. example: NS022311 regionEnabled: type: boolean description: Check for region enabled. example: false hosted: type: boolean description: True for sims on DCP platform example: true rangeDuplication: type: boolean description: Check for range duplicates. example: false Problem: type: object properties: type: type: string format: uri description: 'An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML). ' default: about:blank example: https://your.api.documentation.url title: type: string description: 'A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable ' status: type: integer format: int32 description: 'The HTTP status code generated by the origin server for this occurrence of the problem. ' minimum: 100 example: 503 exclusiveMaximum: 600 detail: type: string description: 'A human readable explanation specific to this occurrence of the problem. ' example: Connection to database timed out instance: type: string description: 'An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. ' numberSchemes: type: object properties: numberSchemes: type: array items: $ref: '#/components/schemas/numberScheme' next: type: string securitySchemes: OAuth2: type: oauth2 description: The resources in the API are protected using the OAuth 2.0 protocol with the password grant flow. flows: password: tokenUrl: https://iot-api.aeris.com/iot/api/auth/token scopes: cnx_subscription_view: Grant user read access to Number management inventory resource