openapi: 3.0.1 info: title: Connectivity APIs description: Connectivity APIs help users manage their connectivity through APIs. version: 1.0.0 servers: - url: https://api.korewireless.com/connectivity description: Production security: - {} - Auth: [] - api_key: [] tags: - name: eligibility description: Retrieve details about the eligibility of a given account - name: eSIM Profile Management description: API to manage eSIM Switch related activities for a given account
Refer to the eSIM switch article on the KORE Help Center for additional information - name: usage description: A user can retrieve usage records for a given subscription or plan - name: provisioning description: Status of requests made by the customer - name: Diagnostics description: '' - name: Activation Profiles description: API to manage activation profile related activities for a given account .
For more details please go to our help desk article [here](https://helpdesk.korewireless.com/hc/en-us/articles/360050144452-Activation-profiles) - name: Session description: Customers of KORE having Radius Accounting integrated at carrier level will have session events collected at KORE. Session START and STOP events are correlated, and data is exposed as Session API for consumption. This API also provides the session count for any duration within the last 7 days.Typical use cases would be 1) UI showing recent sessions against a subscription-id or iccid or msisdn in a paginated fashion. 2) Fetch session count so to generate alarms when a defined threshold is crossed. - name: subscription description: API provides subscription enquiries made by the customer. - name: account description: Account details of customer - name: testing description: APIs that are currently under testing - name: alerting description: APIs that provides alerts on subscribed events - name: Reports description: Customers of KORE who pre-configure report schedules have reports automatically generated and securely stored at the scheduled times — when accessed via API, they receive data in the agreed format, with internal integrity checks to guarantee authenticity. paths: /v1/accounts/{account-id}/plans: get: tags: - eligibility summary: Lists All Eligible Plans description: Get all eligible plans for an account operationId: getPlanByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: plans: type: array items: type: object properties: plan: type: object properties: plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-type-id: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' example: null $$ref: '#/components/schemas/PlanDetails_plan' $$ref: '#/components/schemas/PlanDetails' $$ref: '#/components/schemas/Plans' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/plans'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/plans',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/plans\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/plans\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/plans',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/plans\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getPlanByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/plan-types: get: tags: - eligibility summary: Lists All Plan Types description: Get all plan types for an account operationId: getPlanTypeByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: plan-types: type: array items: type: object properties: plan-type-id: type: string plan-type-name: type: string example: null $$ref: '#/components/schemas/PlanTypes_plantypes' $$ref: '#/components/schemas/PlanTypes' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/plan-types'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/plan-types',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/plan-types\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/plan-types\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/plan-types',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/plan-types\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getPlanTypeByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/plans/{plan-id}: get: tags: - eligibility summary: Finds Plan by PlanId description: Get details of a specific plan for an account operationId: getPlanByPlanId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: plan-id in: path description: The unique identifier of your plan required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: plan: type: object properties: plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-type-id: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' example: null $$ref: '#/components/schemas/PlanDetails_plan' $$ref: '#/components/schemas/PlanDetails' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getPlanByPlanId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/service-types: get: tags: - eligibility summary: Lists All Eligible Service Types description: Get all eligible service types for an account operationId: getServiceTypeByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: service-types: type: array items: type: object properties: service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' service-type-name: type: string $$ref: '#/components/schemas/ServiceType' $$ref: '#/components/schemas/ServiceTypes' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/service-types'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/service-types',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/service-types\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/service-types\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/service-types',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/service-types\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getServiceTypeByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/service-types/{service-type-id}: get: tags: - eligibility summary: Finds ServiceType by ServiceTypeId description: Get details of a specific service type for an account operationId: getServiceTypeByServiceTypeId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: service-type-id in: path description: The unique identifier of the service type required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' service-type-name: type: string $$ref: '#/components/schemas/ServiceType' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/service-types/{service-type-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/service-types/{service-type-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/service-types/{service-type-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/service-types/{service-type-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/service-types/{service-type-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/service-types/{service-type-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getServiceTypeByServiceTypeId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/features: get: tags: - eligibility summary: Lists All Eligible Features description: Get all eligible features for an account operationId: getFeatureByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: features: type: array items: type: object properties: feature: type: object properties: usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' description: type: string description: The description of the feature service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' $$ref: '#/components/schemas/Feature' example: null $$ref: '#/components/schemas/Features_features' $$ref: '#/components/schemas/Features' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/features'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/features',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/features\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/features\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/features',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/features\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getFeatureByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/features/{feature-id}: get: tags: - eligibility summary: Finds Feature by FeatureId description: Get details of a specific feature for an account operationId: getFeatureByFeatureId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: feature-id in: path description: The unique identifier of your feature required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' description: type: string description: The description of the feature service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' $$ref: '#/components/schemas/Feature' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/features/{feature-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/features/{feature-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/features/{feature-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/features/{feature-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/features/{feature-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/features/{feature-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getFeatureByFeatureId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscriptions/{subscription-id}/usage-records: get: tags: - usage summary: Finds Usage Records By Sim Number And Date Range description: Get usage records for a subscription operationId: getUsageRecordBySimNumberandDateRange parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: subscription-id in: path description: The unique identifier for the SIM required: true style: simple explode: false schema: type: string - name: start-date in: query required: true style: form explode: true schema: type: string format: YYYY-MM-DD - name: end-date in: query description: Date range must fall in between 60 days required: true style: form explode: true schema: type: string format: YYYY-MM-DD - name: source in: query required: false style: form explode: true schema: type: string enum: - cdr - name: include-plan-name description: Indicates whether the Plan Name of which the device is in when the usages is incurred should be included in the Response. in: query required: false schema: type: boolean responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: source: type: string subscription-id: type: string example: cmp-k1-subscription-000000 data: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: byte daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: byte $$ref: '#/components/schemas/SingleFeatureUsageRecord_dailyusages' $$ref: '#/components/schemas/SingleFeatureUsageRecord' sms: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: event daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: event $$ref: '#/components/schemas/SingleFeatureUsageRecordSMS_dailyusages' $$ref: '#/components/schemas/SingleFeatureUsageRecordSMS' voice: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: sec daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: sec $$ref: '#/components/schemas/SingleFeatureUsageRecordVoice_dailyusages' $$ref: '#/components/schemas/SingleFeatureUsageRecordVoice' $$ref: '#/components/schemas/SimUsageRecord' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: StatusCode: type: integer Messages: type: array items: type: string ErrorMessages: type: array items: type: string $$ref: '#/components/schemas/5xx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}/usage-records?start-date=&end-date=&source='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}/usage-records?start-date=&end-date=&source=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}/usage-records?start-date=&end-date=&source=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}/usage-records?start-date=&end-date=&source=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}/usage-records?start-date=&end-date=&source=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}/usage-records?start-date=&end-date=&source=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getUsageRecordBySimNumberandDateRange security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/plans/{plan-id}/usage-records: get: tags: - usage summary: Finds Usage Records By PlanId description: Get usage records for a plan operationId: getUsageRecordByPlanId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: plan-id in: path description: The unique identifier of your plan required: true style: simple explode: false schema: type: string - name: start-date in: query required: true style: form explode: true schema: type: string format: YYYY-MM-DD - name: end-date in: query description: Date range must fall in between 60 days required: true style: form explode: true schema: type: string format: YYYY-MM-DD - name: source in: query required: false style: form explode: true schema: type: string enum: - cdr responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: source: type: string plan-id: type: string total-usage: type: integer unit: type: string daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: byte $$ref: '#/components/schemas/SingleFeatureUsageRecord_dailyusages' $$ref: '#/components/schemas/PlanUsageRecord' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}/usage-records?start-date=&end-date=&source='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}/usage-records?start-date=&end-date=&source=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}/usage-records?start-date=&end-date=&source=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}/usage-records?start-date=&end-date=&source=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}/usage-records?start-date=&end-date=&source=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/plans/{plan-id}/usage-records?start-date=&end-date=&source=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getUsageRecordByPlanId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests: get: tags: - provisioning summary: Lists All Requests description: Get all requests made for an account operationId: getRequestStatusByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: page in: query description: page number required: false style: form explode: true schema: type: integer - name: take in: query description: number of records required: false style: form explode: true schema: type: integer - name: subscription-id in: query required: false style: form explode: true schema: type: string - name: iccid in: query description: The ICCID of the subscription required: false style: form explode: true schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: total-records: type: integer total-pages: type: integer page: type: integer records: type: array items: type: object properties: provisioning-request-id: type: string date-completed: type: string format: dateTime request-status: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string format: dateTime request-type: type: string source: type: string provisioned-by: type: string activation-profile-id: type: string example: null $$ref: '#/components/schemas/Requests_records' $$ref: '#/components/schemas/Requests' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests?page=&take=&subscription-id=&iccid='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests?page=&take=&subscription-id=&iccid=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests?page=&take=&subscription-id=&iccid=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests?page=&take=&subscription-id=&iccid=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests?page=&take=&subscription-id=&iccid=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests?page=&take=&subscription-id=&iccid=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getRequestStatusByAccountId security: - {} - Auth: [] - api_key: [] post: tags: - provisioning summary: Create A Provisioning Request description: "Create a provisioning request for an account
\nNote: New provisioning endpoints have been created, one endpoint per action, to simplify provisioning SIMs. The current endpoint will continue to work. \n- [Activate a SIM](https://developer.korewireless.com/api?product=Connectivity#post-/v1/accounts/-account-id-/provisioning-requests/activate)\n- [Change Plan for a SIM](https://developer.korewireless.com/api?product=Connectivity#post-/v1/accounts/-account-id-/provisioning-requests/plan-feature-change)\n- [Deactivate a SIM](https://developer.korewireless.com/api?product=Connectivity#post-/v1/accounts/-account-id-/provisioning-requests/deactivate)\n- [Reactivate a SIM](https://developer.korewireless.com/api?product=Connectivity#post-/v1/accounts/-account-id-/provisioning-requests/reactivate)\n- [Suspend a SIM](https://developer.korewireless.com/api?product=Connectivity#post-/v1/accounts/-account-id-/provisioning-requests/suspend)\n- [Terminate a SIM](https://developer.korewireless.com/api?product=Connectivity#post-/v1/accounts/-account-id-/provisioning-requests/terminate)\n" operationId: CreateProvisioningRequest parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: description: create request body content: application/json: schema: oneOf: - type: object properties: suspend: type: object required: - subscriptions properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: Suspend a SIM. $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend' $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest' - type: object properties: activate: required: - activation-state - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest_activate_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. activation-state: type: string enum: - active - test - ready activation-profile-id: type: string sku: type: string description: SKU is mandatory for VZW SKU activation service-type-info: properties: aus-ipnd-info: type: object description: IPND information is mandatory for KORE TELS2 Activation properties: title: type: string first-name: type: string last-name: type: string address: type: string description: activate a sim example: null $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest_activate' $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest' - type: object properties: deactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: deactivate a sim example: null $$ref: '#/components/schemas/CommonInputDeactivateProvisioningRequest_deactivate' $$ref: '#/components/schemas/CommonInputDeactivateProvisioningRequest' - type: object properties: plan-feature-change: required: - activation-profile-id - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request activation-profile-id: type: string mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/CommonPlanChangeProvisioningRequest_planfeaturechange' $$ref: '#/components/schemas/CommonPlanChangeProvisioningRequest' - type: object properties: reactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/CommonReactivateProvisioningRequest_reactivate' $$ref: '#/components/schemas/CommonReactivateProvisioningRequest' - type: object properties: terminate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. force-enabled-esim-profile-termination: type: boolean description: Force termination when eSIM subscription is enabled (on an EID with many ICCIDs) example: false example: null $$ref: '#/components/schemas/CommonTerminateProvisioningRequest_terminate' $$ref: '#/components/schemas/CommonTerminateProvisioningRequest' $$ref: '#/components/schemas/accountid_provisioningrequests_body' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' $$ref: '#/components/schemas/CreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n })\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"suspend\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n }\\n ],\\n \\\"mail-to\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"suspend\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"mail-to\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend\"\n\npayload = json.dumps({\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: CreateProvisioningRequest security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests/suspend: post: tags: - provisioning summary: Suspend a SIM description: Suspend a SIM for an account operationId: SuspendASim parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: content: application/json: schema: type: object properties: suspend: type: object required: - subscriptions properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: Suspend a SIM. $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend' $$ref: '#/components/schemas/InputSuspendProvisioningRequest' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' $$ref: '#/components/schemas/CreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"suspend\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n }\\n ],\\n \\\"mail-to\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"suspend\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"mail-to\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/suspend\"\n\npayload = json.dumps({\n \"suspend\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: SuspendASim security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests/activate: post: tags: - provisioning summary: Activate a SIM description: Activate a SIM for an account operationId: ActivateASim parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: content: application/json: schema: type: object properties: activate: required: - activation-state - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation $$ref: '#/components/schemas/InputActivateProvisioningRequest_activate_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. activation-state: type: string enum: - active - test - ready activation-profile-id: type: string sku: type: string description: SKU is mandatory for VZW SKU activation service-type-info: properties: aus-ipnd-info: type: object description: IPND information is mandatory for KORE TELS2 Activation properties: title: type: string first-name: type: string last-name: type: string address: type: string description: activate a sim example: null $$ref: '#/components/schemas/InputActivateProvisioningRequest_activate' $$ref: '#/components/schemas/InputActivateProvisioningRequest' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' $$ref: '#/components/schemas/CreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/activate' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"activate\": {\n \"activation-state\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"mail-to\": \"\",\n \"activation-profile-id\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\",\n \"address\": \"\"\n }\n }\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/activate',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"activate\": {\n \"activation-state\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\":\"\",\n \"imei\": \"\"\n }\n ],\n \"mail-to\": \"\",\n \"activation-profile-id\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\",\n \"address\": \"\"\n }\n }\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"activate\\\": {\\n \\\"activation-state\\\": \\\"\\\",\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n ,\\n \\\"imei\\\": \\\"\\\"\\n \\n }\\n ],\\n \\\"mail-to\\\": \\\"\\\",\\n \\\"activation-profile-id\\\": \\\"\\\",\\n \\\"sku\\\": \\\"\\\",\\n \\\"service-type-info\\\": {\\n \\\"aus-ipnd-info\\\": {\\n \\\"title\\\": \\\"\\\",\\n \\\"first-name\\\": \\\"\\\",\\n \\\"last-name\\\": \\\"\\\",\\n \\\"address\\\": \\\"\\\"\\n }\\n }\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/activate\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/activate\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"activate\"\": {\" + \"\\n\" +\n@\" \"\"activation-state\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" ,\" + \"\\n\" +\n@\" \"\"imei\"\": \"\"\"\"\" + \"\\n\" +\n@\" \" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"mail-to\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"activation-profile-id\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"sku\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"service-type-info\"\": {\" + \"\\n\" +\n@\" \"\"aus-ipnd-info\"\": {\" + \"\\n\" +\n@\" \"\"title\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"first-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"last-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"address\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/activate',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"activate\": {\n \"activation-state\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\",\n \"imei\": \"\" \n }\n ],\n \"mail-to\": \"\",\n \"activation-profile-id\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\",\n \"address\": \"\"\n }\n }\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/activate\"\n\npayload = json.dumps({\n \"activate\": {\n \"activation-state\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\":\"\",\n \"iccid\": \"\",\n \"imei\": \"\" \n } \n ],\n \"mail-to\": \"\",\n \"activation-profile-id\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\",\n \"address\": \"\"\n }\n }\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: ActivateASim security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests/deactivate: post: tags: - provisioning summary: Deactivate a SIM description: Deactivate a SIM for an account operationId: DeactivateASim parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: content: application/json: schema: type: object properties: deactivate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: deactivate a sim example: null $$ref: '#/components/schemas/InputDeactivateProvisioningRequest_deactivate' $$ref: '#/components/schemas/InputDeactivateProvisioningRequest' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' $$ref: '#/components/schemas/CreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/deactivate' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"deactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/deactivate',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"deactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"deactivate\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\":\\\"\\\"\\n ,\\n \\\"iccid\\\": \\\"\\\"\\n \\n }\\n ],\\n \\\"mail-to\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/deactivate\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/deactivate\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"deactivate\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\" +\n@\" ,\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" \" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"mail-to\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/deactivate',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"deactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/deactivate\"\n\npayload = json.dumps({\n \"deactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: DeactivateASim security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests/plan-feature-change: post: tags: - provisioning summary: Change Plan for a SIM description: Change plan for a SIM of an account operationId: PlanChangeForASim parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: content: application/json: schema: type: object properties: plan-feature-change: required: - activation-profile-id - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request activation-profile-id: type: string mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/PlanChangeProvisioningRequest_planfeaturechange' $$ref: '#/components/schemas/PlanChangeProvisioningRequest' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' $$ref: '#/components/schemas/CreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/plan-feature-change' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"plan-feature-change\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/plan-feature-change',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"plan-feature-change\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\":\"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"plan-feature-change\\\": {\\n \\\"activation-profile-id\\\": \\\"\\\",\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n }\\n ],\\n \\\"mail-to\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/plan-feature-change\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/plan-feature-change\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"plan-feature-change\"\": {\" + \"\\n\" +\n@\" \"\"activation-profile-id\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"mail-to\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/plan-feature-change',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"plan-feature-change\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\" \n }\n ],\n \"mail-to\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/plan-feature-change\"\n\npayload = json.dumps({\n \"plan-feature-change\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: PlanChangeForASim security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests/reactivate: post: tags: - provisioning summary: Reactivate a SIM description: Reactivate a SIM for an account operationId: ReactivateASim parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: content: application/json: schema: type: object properties: reactivate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/ReactivateProvisioningRequest_reactivate' $$ref: '#/components/schemas/ReactivateProvisioningRequest' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' $$ref: '#/components/schemas/CreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/reactivate' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"reactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/reactivate',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"reactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"reactivate\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n }\\n ],\\n \\\"mail-to\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/reactivate\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/reactivate\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"reactivate\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"mail-to\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/reactivate',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"reactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\" \n }\n ],\n \"mail-to\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/reactivate\"\n\npayload = json.dumps({\n \"reactivate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: ReactivateASim security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests/terminate: post: tags: - provisioning summary: Terminate a SIM description: Terminate a SIM for an account operationId: TerminateASim parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: content: application/json: schema: type: object properties: terminate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. force-enabled-esim-profile-termination: type: boolean description: Force termination when eSIM subscription is enabled (on an EID with many ICCIDs) example: false example: null $$ref: '#/components/schemas/TerminateProvisioningRequest_terminate' $$ref: '#/components/schemas/TerminateProvisioningRequest' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' $$ref: '#/components/schemas/CreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/terminate' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"terminate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\",\n \"force-enabled-esim-profile-termination\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/terminate',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"terminate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\",\n \"force-enabled-esim-profile-termination\": \"\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"terminate\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n }\\n ],\\n \\\"mail-to\\\": \\\"\\\",\\n \\\"force-enabled-esim-profile-termination\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/terminate\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/terminate\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"terminate\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"mail-to\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"force-enabled-esim-profile-termination\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/terminate',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"terminate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\",\n \"force-enabled-esim-profile-termination\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/terminate\"\n\npayload = json.dumps({\n \"terminate\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"mail-to\": \"\",\n \"force-enabled-esim-profile-termination\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: TerminateASim security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/provisioning-requests/{provisioning-request-id}: get: tags: - provisioning summary: Finds Request Status By ProvisioningRequestId description: Get details of a specific request made operationId: getRequestStatusByProvisioningRequestId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: provisioning-request-id in: path required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: request-type: type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string error-message: type: string example: null $$ref: '#/components/schemas/RequestStatus_requesttype_subscriptions' status: type: string description: ' submitted -- Request is submitted via api and got the acknowledgement back, failed -- Request creation failed, pending -- Request is created, completed -- Request is completed ' enum: - submitted - failed - pending - completed provisioning-request-id: type: string date-completed: type: string description: YYY:MM:DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' service-type: type: string number-of-subscriptions: type: integer date-created: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' request-type: type: string provisioned-by: type: string account-id: type: string activation-profile-id: type: string description: __Allowed:__ Activation | StateChange | Deactivation | Reactivation | PlanChange | ProfileChange example: null $$ref: '#/components/schemas/RequestStatus_requesttype' $$ref: '#/components/schemas/RequestStatus' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/{provisioning-request-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/{provisioning-request-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/{provisioning-request-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/{provisioning-request-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/{provisioning-request-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/provisioning-requests/{provisioning-request-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getRequestStatusByProvisioningRequestId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscriptions: get: tags: - subscription summary: Lists All Subscription Details description: Get details on all subscriptions for an account operationId: getSubscriptionsByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: page-index in: query description: page index starting with zero required: true style: form explode: true schema: type: integer - name: max-page-item in: query description: maximum 1000 records per page required: true style: form explode: true schema: type: integer - name: sort-field in: query description: the values are case-sensitive, if not specified, will be sorted based on created time. required: false style: form explode: true schema: type: string enum: - subscription-id - iccid - service-type-id - cost-center-id - name: sort-direction in: query description: the values are case-sensitive required: false style: form explode: true schema: type: string default: Desc enum: - Asc - Desc - name: imsi in: query required: false style: form explode: true schema: type: string - name: imei in: query required: false style: form explode: true schema: type: string - name: iccid in: query description: 'Please note to add iccids using comma separators and upto max of 100.
eg: 8765367892,856326787,8456095345,.....' required: false style: form explode: true schema: type: string - name: eid in: query description: 32 - digit unique identifier for the eSIM required: false style: form explode: true schema: type: string - name: sim-state in: query required: false style: form explode: true schema: type: string - name: msisdn in: query required: false style: form explode: true schema: type: string - name: show-state-history in: query description: default - false required: false style: form explode: true schema: type: boolean default: false enum: - true - false - name: last-modified-from in: query required: false description: 'Date from which subscription was last modified,eg: 2023-02-23T11:20:04.077Z' style: form explode: true schema: type: string - name: last-modified-to in: query required: false style: form description: 'Date to which subscription was last modified,eg: 2023-02-23T11:20:04.077Z' explode: true schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: page-info-result: type: object properties: total-count: type: integer page-index: type: integer max-page-item: type: integer example: null $$ref: '#/components/schemas/Subscriptions_pageinforesult' subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription eid: type: string description: The EID of a subscription, blank means this is not an esim example: '00000000000000000000000000000000' rsp-state: type: string description: State of the profile in eSIM example: enabled product-offer: type: string description: combination of plans, features and sim format types product-offer-type: type: string description: Differentiates the product offer types bewteen the manufacturers imei: type: string description: The unique identifier of the device the SIM is connected too imsi: type: string description: The unique identifier of the subscription on the network serial: type: string description: The serial number of the device attached to the SIM model: type: string description: The model number of the device attached to the SIM msisdns: type: array items: type: object properties: msisdn: type: string description: The phone number attached to the subscription example: null $$ref: '#/components/schemas/SubscriptionDetails_msisdns' last-active-profile: type: array description: The last known profile per state of the SIM items: type: object properties: profile-id: type: integer start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveprofile' last-active-imsi-msisdn: type: array description: The last known imsi msidn per state of the SIM items: type: object properties: msisdn: type: string imsi: type: string start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveimsimsisdn' last-effective-date-of-states: type: array description: The last known effective date per state of the SIM items: type: object properties: state: type: string start-date-time-utc: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_lasteffectivedateofstates' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' states: type: array description: The state of the subscription items: type: object properties: state: type: string enum: - Stock - Active - Suspend - Suspend With Charge - Deactivated - Pending Scrap - Scrapped - Barred state-id: type: string start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_states' cost-center-id: type: string description: The unique identifier of your cost center $$ref: '#/components/schemas/cost-center-id' profiles: type: array items: type: object properties: profile-id: type: string description: The unique identifier of the feature-plan combination $$ref: '#/components/schemas/profile-id' start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_profiles' apn-data: type: array items: type: object properties: ip-address: type: string description: The address of the subscription apn-id: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_apndata' additional-fields: type: array description: A set of customer defined customer fields (key/value pairs) items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_additionalfields' $$ref: '#/components/schemas/SubscriptionDetails' $$ref: '#/components/schemas/Subscriptions' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/subscriptions?page-index=&max-page-item=&sort-field=&sort-direction=Desc&imsi=&imei=&iccid=&eid=&sim-state=&msisdn=&show-state-history=false&last-modified-from=&last-modified-to='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscriptions?page-index=&max-page-item=&sort-field=&sort-direction=Desc&imsi=&imei=&iccid=&eid=&sim-state=&msisdn=&show-state-history=false&last-modified-from=&last-modified-to=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscriptions?page-index=&max-page-item=&sort-field=&sort-direction=Desc&imsi=&imei=&iccid=&eid=&sim-state=&msisdn=&show-state-history=false&last-modified-from=&last-modified-to=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscriptions?page-index=&max-page-item=&sort-field=&sort-direction=Desc&imsi=&imei=&iccid=&eid=&sim-state=&msisdn=&show-state-history=false&last-modified-from=&last-modified-to=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscriptions?page-index=&max-page-item=&sort-field=&sort-direction=Desc&imsi=&imei=&iccid=&eid=&sim-state=&msisdn=&show-state-history=false&last-modified-from=&last-modified-to=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscriptions?page-index=&max-page-item=&sort-field=&sort-direction=Desc&imsi=&imei=&iccid=&eid=&sim-state=&msisdn=&show-state-history=false&last-modified-from=&last-modified-to=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getSubscriptionsByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscription-requests: post: tags: - subscription summary: Update Subscription Details description: Create a subscription request to update Subscriptions operationId: updateSubscriptionsBySubscriptionId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: description: update subscriptions content: application/json: schema: required: - subscription-request type: object properties: subscription-request: required: - subscriptions type: object properties: subscriptions: type: array items: required: - subscription-id type: object properties: subscription-id: type: string additional-fields: type: array items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest_additionalfields' example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest_subscriptions' example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest' $$ref: '#/components/schemas/UpdateSubscription' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string $$ref: '#/components/schemas/UpdatedSubscription' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: oneOf: - type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' - type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' $$ref: '#/components/schemas/subscription_Error' $$ref: '#/components/schemas/inline_response_400' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' $$ref: '#/components/schemas/subscription_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"additional-fields\": [\n {\n \"key\": \"\",\n \"value\": \"\"\n }\n ]\n }\n ]\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"additional-fields\": [\n {\n \"key\": \"\",\n \"value\": \"\"\n }\n ]\n }\n ]\n }\n })\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"subscription-request\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"additional-fields\\\": [\\n {\\n \\\"key\\\": \\\"\\\",\\n \\\"value\\\": \\\"\\\"\\n } \\n]\\n }\\n ]\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"subscription-request\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\", \" + \"\\n\" +\n@\" \"\"additional-fields\"\": [ \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"key\"\": \"\"\"\"\", \"\\n\" +\n@\" \"\"value\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ] }\" + \"\\n\" +\n@\" ]\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"additional-fields\": [\n {\n \"key\": \"\",\n \"value\": \"\"\n }\n ]\n }\n ]\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests\"\n\npayload = json.dumps({\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"additional-fields\":[\n {\n \"key\": \"\",\n \"value\": \"\"\n }\n ]\n }\n ]\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: updateSubscriptionsBySubscriptionId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscription-requests/connected-hardware: post: tags: - subscription summary: Update Connected Hardware Details description: Create a subscription request to update connected hardware details operationId: updateConnectedHardwareBySubscriptionId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: description: update connected hardware details content: application/json: schema: required: - subscription-request type: object properties: subscription-request: required: - subscriptions type: object properties: subscriptions: type: array items: required: - subscription-id type: object properties: subscription-id: type: string connected-hardware: type: object properties: imei: type: string serial-number: type: string model-number: type: string example: null $$ref: '#/components/schemas/UpdateConnectedHardware_subscriptionrequest_subscriptions' example: null $$ref: '#/components/schemas/UpdateConnectedHardware_subscriptionrequest' $$ref: '#/components/schemas/UpdateConnectedHardware' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string $$ref: '#/components/schemas/UpdatedSubscription' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: oneOf: - type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' - type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' $$ref: '#/components/schemas/subscription_Error' $$ref: '#/components/schemas/inline_response_400' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' $$ref: '#/components/schemas/subscription_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/connected-hardware' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"connected-hardware\": {\n \"imei\": \"\",\n \"serial-number\": \"\",\n \"model-number\": \"\"\n }\n }\n ]\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/connected-hardware',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\", \n \"connected-hardware\": {\n \"imei\": \"\",\n \"serial-number\": \"\",\n \"model-number\": \"\"\n }\n }\n ]\n }\n })\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"subscription-request\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"connected-hardware\\\": {\\n \\\"imei\\\": \\\"\\\",\\n \\\"serial-number\\\": \\\"\\\",\\n \\\"model-number\\\": \\\"\\\"\\n }\\n }\\n ]\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/connected-hardware\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/connected-hardware\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"subscription-request\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\" +\n@\" , \"\\n\" +\n@\" \"\"connected-hardware\"\": {\" + \"\\n\" +\n@\" \"\"imei\"\": \"\"\"\"\", \"\\n\" +\n@\" \"\"serial-number\"\": \"\"\"\"\", \"\\n\" +\n@\" \"\"model-number\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" \" }\" + \"\\n\" +\n@\" ]\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/connected-hardware',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\",\n \"connected-hardware\": {\n \"imei\": \"\",\n \"serial-number\": \"\",\n \"model-number\": \"\"\n }\n }\n ]\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/connected-hardware\"\n\npayload = json.dumps({\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"subscription-id\": \"\", \n \"connected-hardware\": {\n \"imei\": \"\",\n \"serial-number\": \"\",\n \"model-number\": \"\" \n }\n }\n ]\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: updateConnectedHardwareBySubscriptionId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscription-requests/sim-transfer: post: tags: - subscription summary: Transfer a SIM description: Create a request to transfer "Stock" Subscriptions to another account using the "account-id" key parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: description: sim transfer content: application/json: schema: required: - subscription-request type: object properties: subscription-request: required: - subscriptions type: object properties: subscriptions: type: array items: required: - destination-account-id - subscription-id type: object properties: subscription-id: type: string destination-account-id: type: string example: null $$ref: '#/components/schemas/UpdateSubscriptionSIM_subscriptionrequest_subscriptions' example: null $$ref: '#/components/schemas/UpdateSubscriptionSIM_subscriptionrequest' $$ref: '#/components/schemas/UpdateSubscriptionSIM' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string $$ref: '#/components/schemas/UpdatedSubscription' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: oneOf: - type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' - type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' $$ref: '#/components/schemas/subscription_Error' $$ref: '#/components/schemas/inline_response_400' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' $$ref: '#/components/schemas/subscription_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/sim-transfer' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"destination-account-id\": \"\",\n \"subscription-id\": \"\"\n }\n ]\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/sim-transfer',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"destination-account-id\": \"\", \n \"subscription-id\": \"\"\n }\n ]\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"subscription-request\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"destination-account-id\\\": \\\"\\\",\\n \\\"subscription-id\\\": \\\"\\\",\\n }\\n ]\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/sim-transfer\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/sim-transfer\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"subscription-request\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"destination-account-id\"\": \"\"\"\"\", \"\\n\" +\n@\" \" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ]\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/sim-transfer',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"destination-account-id\": \"\",\n \"subscription-id\": \"\"\n }\n ]\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/sim-transfer\"\n\npayload = json.dumps({\n \"subscription-request\": {\n \"subscriptions\": [\n {\n \"destination-account-id\": \"\",\n \"subscription-id\": \"\"\n }\n ]\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscriptions/{subscription-id}: get: tags: - subscription summary: Finds Subscription Details For Given SubscriptionId description: Get details for a specific subscription for an account operationId: getSubscriptionDetailsBySubscriptionId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: subscription-id in: path description: The unique identifier for the SIM required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription eid: type: string description: The EID of a subscription, blank means this is not an esim example: '00000000000000000000000000000000' rsp-state: type: string description: State of the profile in eSIM example: enabled product-offer: type: string description: combination of plans, features and sim format types product-offer-type: type: string description: Differentiates the product offer types bewteen the manufacturers imei: type: string description: The unique identifier of the device the SIM is connected too imsi: type: string description: The unique identifier of the subscription on the network serial: type: string description: The serial number of the device attached to the SIM model: type: string description: The model number of the device attached to the SIM msisdns: type: array items: type: object properties: msisdn: type: string description: The phone number attached to the subscription example: null $$ref: '#/components/schemas/SubscriptionDetails_msisdns' last-active-profile: type: array description: The last known profile per state of the SIM items: type: object properties: profile-id: type: integer start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveprofile' last-active-imsi-msisdn: type: array description: The last known imsi msidn per state of the SIM items: type: object properties: msisdn: type: string imsi: type: string start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveimsimsisdn' last-effective-date-of-states: type: array description: The last known effective date per state of the SIM items: type: object properties: state: type: string start-date-time-utc: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_lasteffectivedateofstates' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' states: type: array description: The state of the subscription items: type: object properties: state: type: string enum: - Stock - Active - Suspend - Suspend With Charge - Deactivated - Pending Scrap - Scrapped - Barred state-id: type: string start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_states' cost-center-id: type: string description: The unique identifier of your cost center $$ref: '#/components/schemas/cost-center-id' profiles: type: array items: type: object properties: profile-id: type: string description: The unique identifier of the feature-plan combination $$ref: '#/components/schemas/profile-id' start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_profiles' apn-data: type: array items: type: object properties: ip-address: type: string description: The address of the subscription apn-id: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_apndata' additional-fields: type: array description: A set of customer defined customer fields (key/value pairs) items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_additionalfields' $$ref: '#/components/schemas/SubscriptionDetails' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscriptions/{subscription-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getSubscriptionDetailsBySubscriptionId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscription-requests/{subscription-request-id}: get: tags: - subscription summary: Finds Subscription Request For Given ID description: Get request details for a specific subscription for an account operationId: getSubscriptionRequestDetailsByID parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: subscription-request-id in: path description: The unique identifier for the Subscription request required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request: type: object properties: subscription-id: type: string subscription-request-type: type: string subscription-request-status: type: string enum: - Accepted (Sync) - Rejected ( Sync ) - In-Progress - Failed - Completed source: type: string total-subscriptions: type: number subscriptions: type: array items: type: object properties: subscription-request-id: type: string status: type: string error: type: string subscription-identifier: type: string subscription-identifier-value: type: string property-type: type: string subscription-request-error: type: array items: type: object properties: error-type: type: string error-code: type: string error-message: type: string example: null $$ref: '#/components/schemas/SubscriptionRequest_subscriptionrequest_subscriptionrequesterror' description: 1 - Failed and Rejected will have subscription-request-error object included in the response 2 - For validation failure, service will rollback everything, and error will be provided.--- Sample Error Message (10 Iccids failed validation will be provided)--- If 10 of 1000 failed, service will rollback everything 3 - For internal exceptions, will rollback/commit per batch (1000 iccids) example: null $$ref: '#/components/schemas/SubscriptionRequest_subscriptionrequest' $$ref: '#/components/schemas/SubscriptionRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getSubscriptionRequestDetailsByID security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/subscription-requests/cost-center: post: tags: - subscription summary: Update Subscription Cost Center description: Create a request to update cost center for a subscription requestBody: content: application/json: schema: type: array items: type: object properties: cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center subscription-id: type: string description: The unique identifier for the SIM required: - cost-center-pk - subscription-id $$ref: '#/components/schemas/UpdateSubscriptionCostCenter0' responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-type: type: array items: type: string subscription-request-id: type: string subscription-request-status: type: string $$ref: '#/components/schemas/200UpdateSubscriptionCostCenter0' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: subscription-request-type: type: array items: type: string subscription-request-id: type: string error: type: object properties: message: type: string status: type: string subscription-request-status: type: string $$ref: '#/components/schemas/400UpdateSubscriptionCostCenter0' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id in: path required: true schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/cost-center' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '[\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n },\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n }\n]'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/cost-center',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify([\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n },\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n }\n ])\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"[\\n {\\n \\\"cost-center-pk\\\": \\\"\\\",\\n \\\"subscription-id\\\": \\\"\\\"\\n },\\n {\\n \\\"cost-center-pk\\\": \\\"\\\",\\n \\\"subscription-id\\\": \\\"\\\"\\n }\\n]\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/cost-center\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/cost-center\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"[\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"cost-center-pk\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"cost-center-pk\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"]\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/cost-center',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'[\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n },\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n }\n]',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/subscription-requests/cost-center\"\n\npayload = json.dumps([\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n },\n {\n \"cost-center-pk\": \"\",\n \"subscription-id\": \"\"\n }\n])\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/profiles/{profile-id}: get: tags: - subscription summary: Finds Profile Details By ProfileId description: Get details of a specific profile for an account operationId: getProfilesByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: profile-id in: path required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: features: type: array items: type: object properties: feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' example: null $$ref: '#/components/schemas/Profiles_features' plans: type: array items: type: object properties: plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-type: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' example: null $$ref: '#/components/schemas/Profiles_plans' $$ref: '#/components/schemas/Profiles' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/profiles/{profile-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/profiles/{profile-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/profiles/{profile-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/profiles/{profile-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/profiles/{profile-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/profiles/{profile-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getProfilesByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts: get: tags: - account summary: Get All Accounts description: Get All Accounts operationId: GetAccountsByEmail parameters: - name: email in: query description: Input the dev portal admin email required: true style: form explode: true schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: account: type: array items: type: object properties: account-id: type: string account-number: type: integer account-name: type: string example: null $$ref: '#/components/schemas/Accounts_account' $$ref: '#/components/schemas/Accounts' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts?email='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts?email=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts?email=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts?email=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts?email=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts?email=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: GetAccountsByEmail security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/activation-profiles: get: tags: - Activation Profiles summary: Lists All Activation Profiles description: Get all activation profiles for an account operationId: getActivationProfileByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: array items: type: object properties: activation-profile-id: type: string activation-profile-name: type: string description: The name of the activation profile created-date: type: string created-by: type: string $$ref: '#/components/schemas/ActivationProfile_inner' $$ref: '#/components/schemas/ActivationProfile' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/activation-profiles'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/activation-profiles',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/activation-profiles\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/activation-profiles\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/activation-profiles',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/activation-profiles\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getActivationProfileByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/activation-profiles/{activation-profile-id}: get: tags: - Activation Profiles summary: Finds Activation Profile by Activation Profile Id description: Get details of a specific activation profile for an account operationId: getActivationProfileByActivationProfileId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: activation-profile-id in: path required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: activation-profile-id: type: string activation-profile-name: type: string description: type: string service-type-id: type: string product-offer: type: string created-date: type: string created-by: type: string plan-ids: type: array items: type: object properties: plan-id: type: string example: null $$ref: '#/components/schemas/ActivationProfileDetails_planids' feature-ids: type: array items: type: object properties: feature-id: type: string example: null $$ref: '#/components/schemas/ActivationProfileDetails_featureids' $$ref: '#/components/schemas/ActivationProfileDetails' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/activation-profiles/{profile-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/activation-profiles/{profile-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/activation-profiles/{profile-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/activation-profiles/{profile-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/activation-profiles/{profile-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/activation-profiles/{profile-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getActivationProfileByActivationProfileId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/cost-centers: get: tags: - account summary: Lists All Cost Centers description: Get all cost centers for an account operationId: getCostCenterByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: array items: type: object properties: cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-name: type: string description: A descriptive label or title given to a cost center. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center. $$ref: '#/components/schemas/CostCenter_inner' $$ref: '#/components/schemas/CostCenter' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/cost-centers'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/cost-centers',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/cost-centers',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getCostCenterByAccountId security: - {} - Auth: [] - api_key: [] post: tags: - account summary: Create Cost Center description: Create new cost center for an account requestBody: content: application/json: schema: type: object properties: cost-center-name: type: string description: A descriptive label or title given to a cost center. required: - cost-center-name $$ref: '#/components/schemas/CreateCostCenter0' responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. $$ref: '#/components/schemas/200CreateCostCenter0' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. $$ref: '#/components/schemas/400CreateCostCenter0' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/cost-centers' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"cost-center-name\": \"\"\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/cost-centers',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"cost-center-name\": \"\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"cost-center-name\\\": \\\"\\\"\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"cost-center-name\"\": \"\"\"\"\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/cost-centers',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"cost-center-name\": \"\"\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\"\n\npayload = json.dumps({\n \"cost-center-name\": \"\"\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] put: tags: - account summary: Update Cost Center description: Update existing cost center for an account requestBody: content: application/json: schema: type: object properties: cost-center-name: type: string description: A descriptive label or title given to a cost center. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center required: - cost-center-pk - cost-center-name $$ref: '#/components/schemas/UpdateCostCenter0' responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. $$ref: '#/components/schemas/200UpdateCostCenter0' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. $$ref: '#/components/schemas/400CreateCostCenter0' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff --request PUT '{{baseUrl}}/v1/accounts/{account-id}/cost-centers' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"cost-center-pk\": \"\",\n \"cost-center-name\": \"\"\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'PUT',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/cost-centers',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"cost-center-pk\": \"\",\n \"cost-center-name\": \"\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"cost-center-pk\\\": \\\"\\\",\\n \\\"cost-center-name\\\": \\\"\\\"\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\")\n .method(\"PUT\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Put);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"cost-center-pk\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"cost-center-name\"\": \"\"\"\"\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/cost-centers',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'PUT',\n CURLOPT_POSTFIELDS =>'{\n \"cost-center-pk\": \"\",\n \"cost-center-name\": \"\"\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/cost-centers\"\n\npayload = json.dumps({\n \"cost-center-pk\": \"\",\n \"cost-center-name\": \"\"\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/ping: get: tags: - testing summary: Get Online Connection Status description: Test API integration operationId: getConnectionStatus responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string $$ref: '#/components/schemas/Status' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/ping'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/ping',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/ping\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/ping\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/ping',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/ping\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getConnectionStatus security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/events: get: tags: - alerting summary: Lists All Events description: Get all eligible events for an account operationId: getEventsByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: array items: type: object properties: event-id: type: string event-name: type: string event-description: type: string category: type: string event-attributes: type: array items: type: object properties: name: type: string description: type: string type: type: string actions: type: array items: type: string default-frequency: type: string frequency-attribute: type: string frequencies: type: array items: type: string $$ref: '#/components/schemas/Events_inner' $$ref: '#/components/schemas/Events' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/events'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/events',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/events\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/events\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/events',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/events\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getEventsByAccountId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/rules: get: tags: - alerting summary: Lists All Rules description: Get all eligible rules for an account operationId: getRulesByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: account-id: type: string rules: type: array items: type: object properties: rule-id: type: string rule-name: type: string event-name: type: string enabled: type: boolean date-added: type: string format: dateTime date-updated: type: string format: dateTime conditions: type: array items: type: object properties: attribute-name: type: string condition-operator: type: string attribute-value: type: string example: null $$ref: '#/components/schemas/Rules_conditions' actions: type: object properties: webhook: type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/Rules_actions_webhook' email: type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/Rules_actions_email' block-usage: type: object properties: period: type: string example: null $$ref: '#/components/schemas/Rules_actions_blockusage' example: null $$ref: '#/components/schemas/Rules_actions' alert-strategy: type: object properties: batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null $$ref: '#/components/schemas/Rules_alertstrategy_batching' description: Optional:Define a batching strategy for the alerts you receive example: null $$ref: '#/components/schemas/Rules_alertstrategy' example: null $$ref: '#/components/schemas/Rules_rules' $$ref: '#/components/schemas/Rules' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/rules'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/rules',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/rules\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/rules\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/rules',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/rules\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getRulesByAccountId security: - {} - Auth: [] - api_key: [] post: tags: - alerting summary: Add A New Rule description: adds a new rule for non usage alerting operationId: createRule parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: description: create a rule content: application/json: schema: required: - actions - conditions - enabled - event-name - rule-name type: object properties: rule-name: type: string event-name: type: string enabled: type: boolean conditions: type: array description: Individual conditions are chained with AND operator by default items: type: object properties: attribute-name: type: string condition-operator: type: string description: Possible Operator values are (==, !=, <, <=, >, >=, in, not in). attribute-value: type: string example: null $$ref: '#/components/schemas/InputRule_conditions' actions: type: object properties: webhook: required: - webhook-url type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/InputRule_actions_webhook' email: required: - to type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/InputRule_actions_email' block-usage: required: - period type: object properties: period: type: string example: null $$ref: '#/components/schemas/InputRule_actions_blockusage' example: null $$ref: '#/components/schemas/InputRule_actions' alert-strategy: type: object properties: batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null $$ref: '#/components/schemas/Rules_alertstrategy_batching' description: Optional:Define a batching strategy for the alerts you receive example: null $$ref: '#/components/schemas/Rules_alertstrategy' $$ref: '#/components/schemas/InputRule' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: rule-id: type: string message: type: array items: type: string $$ref: '#/components/schemas/CreateRule' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: rule-id: type: integer message: type: array items: type: string $$ref: '#/components/schemas/Rule_500_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/rules' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/rules',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"actions\\\": {\\n \\\"webhook\\\": {\\n \\\"webhook-url\\\": \\\"\\\",\\n \\\"access-token\\\": \\\"\\\",\\n \\\"access-token-key\\\": \\\"\\\"\\n },\\n \\\"email\\\": {\\n \\\"to\\\": \\\"\\\",\\n \\\"cc\\\": \\\"\\\",\\n \\\"bcc\\\": \\\"\\\"\\n },\\n \\\"block-usage\\\": {\\n \\\"period\\\": \\\"\\\"\\n }\\n },\\n \\\"conditions\\\": [\\n {\\n \\\"attribute-name\\\": \\\"\\\",\\n \\\"condition-operator\\\": \\\"\\\",\\n \\\"attribute-value\\\": \\\"\\\"\\n },\\n {\\n \\\"attribute-name\\\": \\\"\\\",\\n \\\"condition-operator\\\": \\\"\\\",\\n \\\"attribute-value\\\": \\\"\\\"\\n }\\n ],\\n \\\"enabled\\\": \\\"\\\",\\n \\\"event-name\\\": \\\"\\\",\\n \\\"rule-name\\\": \\\"\\\",\\n \\\"alert-strategy\\\": {\\n \\\"batching\\\": {\\n \\\"type\\\": \\\"\\\",\\n \\\"times\\\": [\\n \\\"\\\"\\n ]\\n }\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/rules\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/rules\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"actions\"\": {\" + \"\\n\" +\n@\" \"\"webhook\"\": {\" + \"\\n\" +\n@\" \"\"webhook-url\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"access-token\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"access-token-key\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" \"\"email\"\": {\" + \"\\n\" +\n@\" \"\"to\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"cc\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"bcc\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" \"\"block-usage\"\": {\" + \"\\n\" +\n@\" \"\"period\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" \"\"conditions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"attribute-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"condition-operator\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"attribute-value\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"attribute-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"condition-operator\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"attribute-value\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"enabled\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"event-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"rule-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"alert-strategy\"\": {\" + \"\\n\" +\n@\" \"\"batching\"\": {\" + \"\\n\" +\n@\" \"\"type\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"times\"\": [\" + \"\\n\" +\n@\" \"\"\"\"\" + \"\\n\" +\n@\" ]\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/rules',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/rules\"\n\npayload = json.dumps({\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: createRule security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/rules/{rule-id}: put: tags: - alerting summary: Update An Existing Rule description: modifies an existing rule upon providing the rule Id operationId: updateRuleByRuleId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: rule-id in: path required: true style: simple explode: false schema: type: string requestBody: description: update a rule content: application/json: schema: required: - actions - conditions - enabled - event-name - rule-name type: object properties: rule-name: type: string event-name: type: string enabled: type: boolean conditions: type: array description: Individual conditions are chained with AND operator by default items: type: object properties: attribute-name: type: string condition-operator: type: string description: Possible Operator values are (==, !=, <, <=, >, >=, in, not in). attribute-value: type: string example: null $$ref: '#/components/schemas/InputRule_conditions' actions: type: object properties: webhook: required: - webhook-url type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/InputRule_actions_webhook' email: required: - to type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/InputRule_actions_email' block-usage: required: - period type: object properties: period: type: string example: null $$ref: '#/components/schemas/InputRule_actions_blockusage' example: null $$ref: '#/components/schemas/InputRule_actions' alert-strategy: type: object properties: batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null $$ref: '#/components/schemas/Rules_alertstrategy_batching' description: Optional:Define a batching strategy for the alerts you receive example: null $$ref: '#/components/schemas/Rules_alertstrategy' $$ref: '#/components/schemas/InputRule' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: rule-id: type: string message: type: array items: type: string $$ref: '#/components/schemas/CreateRule' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: rule-id: type: integer message: type: array items: type: string $$ref: '#/components/schemas/Rule_500_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff --request PUT '{{baseUrl}}/v1/accounts/{account-id}/rules/{rule-id}' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'PUT',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/rules/{rule-id}',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n })\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"actions\\\": {\\n \\\"webhook\\\": {\\n \\\"webhook-url\\\": \\\"\\\",\\n \\\"access-token\\\": \\\"\\\",\\n \\\"access-token-key\\\": \\\"\\\"\\n },\\n \\\"email\\\": {\\n \\\"to\\\": \\\"\\\",\\n \\\"cc\\\": \\\"\\\",\\n \\\"bcc\\\": \\\"\\\"\\n },\\n \\\"block-usage\\\": {\\n \\\"period\\\": \\\"\\\"\\n }\\n },\\n \\\"conditions\\\": [\\n {\\n \\\"attribute-name\\\": \\\"\\\",\\n \\\"condition-operator\\\": \\\"\\\",\\n \\\"attribute-value\\\": \\\"\\\"\\n },\\n {\\n \\\"attribute-name\\\": \\\"\\\",\\n \\\"condition-operator\\\": \\\"\\\",\\n \\\"attribute-value\\\": \\\"\\\"\\n }\\n ],\\n \\\"enabled\\\": \\\"\\\",\\n \\\"event-name\\\": \\\"\\\",\\n \\\"rule-name\\\": \\\"\\\",\\n \\\"alert-strategy\\\": {\\n \\\"batching\\\": {\\n \\\"type\\\": \\\"\\\",\\n \\\"times\\\": [\\n \\\"\\\"\\n ]\\n }\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/rules/{rule-id}\")\n .method(\"PUT\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/rules/{rule-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Put);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"actions\"\": {\" + \"\\n\" +\n@\" \"\"webhook\"\": {\" + \"\\n\" +\n@\" \"\"webhook-url\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"access-token\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"access-token-key\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" \"\"email\"\": {\" + \"\\n\" +\n@\" \"\"to\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"cc\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"bcc\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" \"\"block-usage\"\": {\" + \"\\n\" +\n@\" \"\"period\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" \"\"conditions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"attribute-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"condition-operator\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"attribute-value\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"attribute-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"condition-operator\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"attribute-value\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"enabled\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"event-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"rule-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"alert-strategy\"\": {\" + \"\\n\" +\n@\" \"\"batching\"\": {\" + \"\\n\" +\n@\" \"\"type\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"times\"\": [\" + \"\\n\" +\n@\" \"\"\"\"\" + \"\\n\" +\n@\" ]\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/rules/{rule-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'PUT',\n CURLOPT_POSTFIELDS =>'{\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/rules/{rule-id}\"\n\npayload = json.dumps({\n \"actions\": {\n \"webhook\": {\n \"webhook-url\": \"\",\n \"access-token\": \"\",\n \"access-token-key\": \"\"\n },\n \"email\": {\n \"to\": \"\",\n \"cc\": \"\",\n \"bcc\": \"\"\n },\n \"block-usage\": {\n \"period\": \"\"\n }\n },\n \"conditions\": [\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n },\n {\n \"attribute-name\": \"\",\n \"condition-operator\": \"\",\n \"attribute-value\": \"\"\n }\n ],\n \"enabled\": \"\",\n \"event-name\": \"\",\n \"rule-name\": \"\",\n \"alert-strategy\": {\n \"batching\": {\n \"type\": \"\",\n \"times\": [\n \"\"\n ]\n }\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: updateRuleByRuleId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/alerts: get: tags: - alerting summary: Lists All Alert History description: Gets a list of alerts for an account in the last 15 days parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: start-date in: query description: 'Specifies the date from which alert history will be shown.
eg: YYYY-MM-DD' required: false style: form explode: true schema: type: string format: date - name: end-date in: query description: 'Specifies the date from which alert history will be shown.
eg: YYYY-MM-DD' required: false style: form explode: true schema: type: string format: date - name: page-index in: query description: Specifies the index of a page during pagination. required: false style: form explode: true schema: type: number - name: page-size in: query description: Specifies the maximum number of records that needs to be included in the page. required: false style: form explode: true schema: type: number responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: page-index: type: number page-size: type: number total-records: type: number alerts: type: array items: type: object properties: id: type: string rule-id: type: string date-added: type: string format: date all-actions-complete: type: boolean actions: type: array items: anyOf: - type: object properties: type: type: string enum: - webhook event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: url: type: string access-token: type: string payload: type: object properties: alert-id: type: string alert-message-date: type: string format: date rule-id: type: string rule-name: type: string event-name: type: string account: type: string events: type: array items: type: object - type: object properties: type: type: string enum: - email event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: to: type: string format: email cc: type: string format: email bcc: type: string format: email - type: object properties: type: type: string enum: - block-Usage - unblock-usage event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: request-id: type: string subscription-id: type: string $$ref: '#/components/schemas/AlertHistoryDetails' $$ref: '#/components/schemas/AlertHistory' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/alerts?start-date=&end-date=&page-index=&page-size='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/alerts?start-date=&end-date=&page-index=&page-size=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/alerts?start-date=&end-date=&page-index=&page-size=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/alerts?start-date=&end-date=&page-index=&page-size=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/alerts?start-date=&end-date=&page-index=&page-size=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/alerts?start-date=&end-date=&page-index=&page-size=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/alerts/{alert-id}: get: tags: - alerting summary: Lists Alert History By ID description: Gets details of a specific alert for an account parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: alert-id in: path description: This specifies the id of an alert. required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: id: type: string rule-id: type: string date-added: type: string format: date all-actions-complete: type: boolean actions: type: array items: anyOf: - type: object properties: type: type: string enum: - webhook event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: url: type: string access-token: type: string payload: type: object properties: alert-id: type: string alert-message-date: type: string format: date rule-id: type: string rule-name: type: string event-name: type: string account: type: string events: type: array items: type: object - type: object properties: type: type: string enum: - email event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: to: type: string format: email cc: type: string format: email bcc: type: string format: email - type: object properties: type: type: string enum: - block-Usage - unblock-usage event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: request-id: type: string subscription-id: type: string $$ref: '#/components/schemas/AlertHistoryDetails' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/alerts/{alert-id}'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/alerts/{alert-id}',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/alerts/{alert-id}\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/alerts/{alert-id}\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/alerts/{alert-id}',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/alerts/{alert-id}\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/actions: get: tags: - alerting summary: Lists All Actions description: Gets all supported actions for an account parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: array items: type: object properties: name: type: string description: type: string attributes: type: array items: type: object properties: name: type: string description: type: string type: type: string $$ref: '#/components/schemas/Actions_inner' $$ref: '#/components/schemas/Actions' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/actions'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/actions',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/actions\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/actions\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/actions',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/actions\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/esim-profile-switch-requests/{esim-profile-switch-request-id}: get: tags: - eSIM Profile Management summary: Finds Switch Request By eSIM Profile Switch Request ID description: Get details of a specific switch request by eSIM Profile Switch Request ID responses: '200': description: 200 response content: application/json: schema: type: object properties: esim-profile-switch-request-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the switch request activation-profile-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the activation profile switch-request-type: type: string enum: - SwitchProfile - DownloadProfile - EnableProfile - DeleteProfile description: The type of eSim operation requested switch-request-date: type: string example: '2022-11-16T07:43:02.428Z' description: Date of switch request creation switch-request-status: type: string example: Completed description: 'Current status of the switch request ' total-switch-processing: type: integer description: eSIM switches in progress total-switch-failed: type: integer description: eSIMs that failed to switch total-switch-completed: type: integer description: 'Switches completed ' total-switch-pending-network-connection: type: integer description: 'eSIMs in the request waiting for the device to come online ' total-switch-requested: type: integer description: eSIMs in the request eids: type: array items: type: object properties: eid: type: string example: '000000000000000000000000000' description: Unique identifier of the eSIM new-subscription-id: type: string example: cmp-k1-subscription-0000000000 description: Unique identifier of the subscription that has been allocated to the eSIM as part of switching old-subscription-id: type: string example: cmp-k1-subscription-0000000000 description: Unique identifier of the subscription that has previously been active on the eSIM switch-status: type: string example: Completed description: Switch status of the eSIM switch-error-message: type: string example: Error Message description: Reason for switch failure of the eSIM $$ref: '#/components/schemas/200FindsSwitchRequestByeSIMProfileSwitchRequestID0' '400': description: Bad Request content: application/json: schema: type: object properties: error-message: type: string description: Reason for failure example: error status: type: string description: Status of the response example: No records found / Invalid input $$ref: '#/components/schemas/400FindsSwitchRequestByeSIMProfileSwitchRequestID0' '401': description: Unauthorised User content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: esim-profile-switch-request-id description: The unique identifier of the switch request in: path required: true schema: type: string - name: account-id description: The unique identifier of your account in: path required: true schema: type: string x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/esim-profile-switch-requests: get: tags: - eSIM Profile Management summary: Lists All Switch Requests description: Get details of all switch requests by EID responses: '200': description: 200 response content: application/json: schema: type: object properties: total-pages: type: integer description: Total number of pages page: type: integer description: Page number total-records: type: integer description: Total number of records records: type: array items: type: object properties: switch-request-type: type: string enum: - SwitchProfile - DownloadProfile - EnableProfile - DeleteProfile description: The type of eSim operation requested switch-request-date: type: string example: '2022-11-16T07:43:02.428Z' format: dateTime description: Date of switch request creation switch-request-status: type: string example: Pending description: Current status of switch request total-switch-processing: type: integer description: eSIM switches in progress total-switch-failed: type: integer description: eSIMs that failed to switch esim-profile-switch-request-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the switch request total-switch-completed: type: integer example: '2022-11-17T13:12:39.469Z' description: Switches completed total-switch-pending-network-connection: type: integer description: eSIMs in the request waiting for the device to come online total-switch-requested: type: integer description: eSIMs in this request activation-profile-id: type: string example: cmp-prov-ap-000000 description: Unique identifier of the activation profile $$ref: '#/components/schemas/200ListsAllSwitchRequests0' '400': description: Bad Request content: application/json: schema: type: object properties: status: type: string description: Status of the response example: error error-message: type: string description: Reason for request failure example: No records found / Invalid input $$ref: '#/components/schemas/400ListsAllSwitchRequests0' '401': description: Unauthorised User content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: eid description: The unique identifier of the eSIM in: query required: false schema: type: string - name: page description: Page number in: query required: false schema: type: number - name: take description: Number of records in: query required: false schema: type: number - name: account-id description: The unique identifier of your account in: path required: true schema: type: string x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests?eid=&page=&take='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests?eid=&page=&take=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests?eid=&page=&take=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests?eid=&page=&take=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests?eid=&page=&take=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests?eid=&page=&take=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] post: tags: - eSIM Profile Management summary: Create A Switch Request description: Create a switch profile request for an account. Downloads a new profile to the eSIM, activates the new subscription, enables the new profile in the eSIM, and deactivates or suspends the old subscription, or (optionally) the old subscription remains active and is subject to MRC requestBody: content: application/json: schema: type: object properties: activation-profile-id: type: string example: cmp-pp-ap-000000 description: Unique identifier of the activation profile exclude-deactivation: type: boolean example: false description: This can be set as true to keep the old subscription active skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times suspend-old-subscription: type: boolean example: false description: This can be set as true to suspend the old subscription if the suspend state is eligible sku: type: string description: The Stock Keeping Unit (SKU) number of a device type with an embedded SIM which is required for switching to VZW profile if IMEI is not provided example: VZW00000000 subscriptions: type: array items: type: object properties: eid: type: string example: '0000000000000000000000000' description: Unique identifier of the eSIM imei: type: string example: '12121212121212' description: IMEI is a 14 - 16 digit identifier of the device which is required for switching to VZW profile required: - eid description: Devices to be switched service-type-info: type: object properties: aus-ipnd-info: type: object properties: address: type: string description: Address of the user example: uniqueStr title: type: string description: Title of the user (Mr/Mrs/Ms) example: Mr/Mrs/Ms first-name: type: string description: First Name of the user example: uniqueStr last-name: type: string description: Last Name of the user example: uniqueStr description: IPND information is mandatory for activating a KORE TELS2 subscription description: Carrier specific information required for activating a subscription required: - activation-profile-id - subscriptions $$ref: '#/components/schemas/CreateASwitchRequest0' responses: '200': description: 200 response content: application/json: schema: type: object properties: status: type: string example: success description: Status of request submission data: type: object properties: esim-profile-switch-request-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the request created message: type: string example: Your request has been acknowledged description: Acknowledgement message $$ref: '#/components/schemas/200CreateASwitchRequest0' '400': description: Bad Request content: application/json: schema: type: object properties: status: type: string example: error description: Status of request submission error-message: type: string example: Invalid eIds / Imei description: Reason for request failure validation-error: type: array items: type: object properties: eid: type: string example: '00000000000000000000000000000' description: Unique identifier of the rejected eSIM error-message: type: string example: Cannot be switched to the requested profile description: Reason for the rejection of the EID $$ref: '#/components/schemas/400CreateASwitchRequest0' '401': description: Unauthorised User content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id description: The unique identifier of your account in: path required: true schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"exclude-deactivation\": \"\",\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"suspend-old-subscription\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"exclude-deactivation\": \"\",\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"suspend-old-subscription\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"activation-profile-id\\\": \\\"\\\",\\n \\\"subscriptions\\\": [\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"imei\\\": \\\"\\\"\\n },\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"imei\\\": \\\"\\\"\\n }\\n ],\\n \\\"exclude-deactivation\\\": \\\"\\\",\\n \\\"skip-session-check\\\": \\\"\\\",\\n \\\"disable-autoretry\\\": \\\"\\\",\\n \\\"suspend-old-subscription\\\": \\\"\\\",\\n \\\"sku\\\": \\\"\\\",\\n \\\"service-type-info\\\": {\\n \\\"aus-ipnd-info\\\": {\\n \\\"address\\\": \\\"\\\",\\n \\\"title\\\": \\\"\\\",\\n \\\"first-name\\\": \\\"\\\",\\n \\\"last-name\\\": \\\"\\\"\\n }\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"activation-profile-id\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"imei\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"imei\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"exclude-deactivation\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"skip-session-check\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"disable-autoretry\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"suspend-old-subscription\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"sku\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"service-type-info\"\": {\" + \"\\n\" +\n@\" \"\"aus-ipnd-info\"\": {\" + \"\\n\" +\n@\" \"\"address\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"title\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"first-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"last-name\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"exclude-deactivation\": \"\",\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"suspend-old-subscription\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests\"\n\npayload = json.dumps({\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"exclude-deactivation\": \"\",\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"suspend-old-subscription\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/esim-profile-switch-requests/retry: post: tags: - eSIM Profile Management summary: Retry Switch Request description: 'Retry a failed switch request or skip failed step of a switch request.
Note: The only step that can be skipped for a switch request is the session check step. If the device is not online the request may fail at the next step.' requestBody: content: application/json: schema: type: object properties: esim-profile-switch-request-id: type: string description: Unique identifier of the switch request example: cmp-cpro-request-0000000 eids: type: array items: type: string example: '235543656577454322' description: The array of unique identifiers of the eSIM skip-session-check: type: boolean description: Used to skip in-session check for an eSIM default: 'false' required: - esim-profile-switch-request-id - eids - skip-session-check $$ref: '#/components/schemas/RetrySwitchRequest0' responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string description: Response status example: success data: type: object properties: message: type: string description: Acknowledgement message example: Request requeued successfully! retry-response: type: object properties: accepted-eids: type: array items: type: string example: '235543656577454322' description: EIDs accepted for retry rejected-eids: type: array items: type: string example: '235543656577454322' description: EIDs rejected for retry description: Details of EIDs description: Response data $$ref: '#/components/schemas/200RetrySwitchRequest0' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string description: Response status example: error data: type: object properties: message: type: string description: Error message example: Request cannot be requeued! retry-response: type: object properties: rejected-eids: type: array items: type: string example: '235543656577454322' description: EIDs rejected for retry description: Details of EIDs description: Response data $$ref: '#/components/schemas/400RetrySwitchRequest0' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id description: The unique identifier of your account in: path required: true schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/retry' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"esim-profile-switch-request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"skip-session-check\": \"false\"\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/retry',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"esim-profile-switch-request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"skip-session-check\": \"false\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"esim-profile-switch-request-id\\\": \\\"\\\",\\n \\\"eids\\\": [\\n \\\"\\\",\\n \\\"\\\"\\n ],\\n \\\"skip-session-check\\\": \\\"false\\\"\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/retry\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/retry\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"esim-profile-switch-request-id\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"eids\"\": [\" + \"\\n\" +\n@\" \"\"\"\",\" + \"\\n\" +\n@\" \"\"\"\"\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"skip-session-check\"\": \"\"false\"\"\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/retry',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"esim-profile-switch-request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"skip-session-check\": \"false\"\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/retry\"\n\npayload = json.dumps({\n \"esim-profile-switch-request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"skip-session-check\": \"false\"\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/sessions: get: tags: - Session summary: Get Session Details description: Session details API queried by subscription-id or msisdn or iccid will return list of session details for a subscription. API will return an empty array in response if there are no RADIUS session details available for that subscription. responses: '200': description: 200 response content: application/json: schema: type: array items: type: object properties: subscription-urn: type: string description: 'Subscription URN of the device ' session-data: type: object properties: sessions: type: array items: type: object properties: stop-time: type: string description: Session Stop Time start-time: type: string description: Session Start Time apn: type: string description: APN session-id: type: string description: Session ID description: List of sessions sort: type: array items: type: string description: Denotes the sorting order of the results (Ascending or Descending) page: type: object properties: size: type: integer description: The result is paginated, the value denotes the page size number: type: integer description: The result is paginated, the value denotes the page number description: Response Data pagination details description: Session Details iccid: type: string description: 'ICCID of the device ' msisdn: type: string description: MSISDN of the device session-count: type: integer description: Number of sessions within the given time period ( default 7 days) $$ref: '#/components/schemas/200GetSessionDetails0' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp $$ref: '#/components/schemas/400GetSessionDetails0' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found content: application/json: schema: type: object properties: messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp $$ref: '#/components/schemas/404GetSessionDetails0' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error content: application/json: schema: type: object properties: path: type: string description: API endpoint messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp status: type: integer description: HTTP response status code $$ref: '#/components/schemas/500GetSessionDetails0' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: query-by-field description: This field determines by which attribute session data to be queried. Session data can be queried by subscription-id or msisdn or iccid. in: query required: true schema: type: string enum: - subscription-id - ' msisdn' - ' iccid' - name: query-by-values description: This field expects one or more values up to 100 for the field selected in the query-by-field. in: query required: true schema: type: array items: type: string - name: include-active-sessions description: Include details of the active/open session in the response. Default value is false. in: query required: false schema: type: boolean - name: date-range-start description: Session count and session data can be queried for any duration within the last 7 days, and this field defines the start of duration. Value format should be ISO-8601 having milliseconds precision, e.g. 2020-05-30T22:38:23.085Z. in: query required: false schema: type: string - name: date-range-end description: Session count and session data can be queried for any duration within the last 7 days, and this field defines the end of duration. Value format should be ISO-8601 having milliseconds precision, e.g. 2020-05-30T23:38:00.000Z. in: query required: false schema: type: string - name: page-number description: Session data is paginated, and this field defines the page number to be queried. in: query required: false schema: type: number default: 1 - name: page-size description: Session data is paginated, and this field defines the page size to be queried. in: query required: false schema: type: number default: 1 - name: sort-by description: Session data can be sorted by startTime in ASC or DESC order. Value format should be field:order and default supported is startTime:DESC in: query required: false schema: type: string - required: true name: account-id in: path description: Unique identifier for an account schema: type: string x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/sessions?query-by-field=&query-by-values=&query-by-values=&include-active-sessions=&date-range-start=&date-range-end=&page-number=1&page-size=1&sort-by='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/sessions?query-by-field=&query-by-values=&query-by-values=&include-active-sessions=&date-range-start=&date-range-end=&page-number=1&page-size=1&sort-by=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/sessions?query-by-field=&query-by-values=&query-by-values=&include-active-sessions=&date-range-start=&date-range-end=&page-number=1&page-size=1&sort-by=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/sessions?query-by-field=&query-by-values=&query-by-values=&include-active-sessions=&date-range-start=&date-range-end=&page-number=1&page-size=1&sort-by=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/sessions?query-by-field=&query-by-values=&query-by-values=&include-active-sessions=&date-range-start=&date-range-end=&page-number=1&page-size=1&sort-by=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/sessions?query-by-field=&query-by-values=&query-by-values=&include-active-sessions=&date-range-start=&date-range-end=&page-number=1&page-size=1&sort-by=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/in-session: get: tags: - Session summary: Get Session Status description: 'Get in-session status, that can be queried by subscription-id or msisdn or iccid. This API will return in session True/False based on the latest RADIUS event available. API will return an empty array in response if there are no RADIUS session events available for that subscription. ' responses: '200': description: 200 response content: application/json: schema: type: array items: type: object properties: subscription-id: type: string description: 'subscription-id of the device ' msisdn: type: string description: msisdn of the device iccid: type: string description: 'iccid of the device ' in-session: type: boolean description: Current Session status of the device last-updated-time: type: string description: Timestamp of the most recent Session recorded $$ref: '#/components/schemas/200GetSessionStatus0' '400': description: Bad Request content: application/json: schema: type: object properties: messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp $$ref: '#/components/schemas/400GetSessionDetails0' '401': description: Unauthorised User content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found content: application/json: schema: type: object properties: path: type: string description: API endpoint messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp status: type: integer description: HTTP response status code $$ref: '#/components/schemas/404GetSessionStatus0' '500': description: Server Error content: application/json: schema: type: object properties: path: type: string description: API endpoint messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp status: type: integer description: HTTP response status code $$ref: '#/components/schemas/500GetSessionStatus0' parameters: - name: query-by-field description: This field determines by which attribute session data to be queried. Session data can be queried by subscription-id or msisdn or iccid. in: query required: true schema: type: string enum: - subscription-id - ' msisdn' - ' iccid' - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: query-by-values description: This field expects one or more values up to 100 for the field selected in the query-by-field. in: query required: true schema: type: array items: type: string - name: include-session-timestamp description: Indicates whether the response should include the timestamp of the last updated session in: query required: false schema: type: boolean x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/in-session?query-by-field=&query-by-values=&query-by-values=&include-session-timestamp='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/in-session?query-by-field=&query-by-values=&query-by-values=&include-session-timestamp=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/in-session?query-by-field=&query-by-values=&query-by-values=&include-session-timestamp=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/in-session?query-by-field=&query-by-values=&query-by-values=&include-session-timestamp=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/in-session?query-by-field=&query-by-values=&query-by-values=&include-session-timestamp=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/in-session?query-by-field=&query-by-values=&query-by-values=&include-session-timestamp=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/esim-profile-enable-requests: post: tags: - eSIM Profile Management summary: Create An Enable Profile Request description: Create an enable profile request for an account. Enables a specified profile on the eSIM. requestBody: content: application/json: schema: type: object properties: enable: type: object properties: subscriptions: type: array items: type: object properties: eid: type: string description: The unique identifier of the eSIM example: '000000000000000000000' iccid: type: string description: Unique identifier of the profile to be enabled example: '0000000000000000' required: - eid - iccid description: ' ' skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times required: - subscriptions description: Enable profile request required: - enable $$ref: '#/components/schemas/CreateAnEnableProfileRequest0' responses: '200': description: 200 response content: application/json: schema: type: object properties: data: type: object properties: request-id: type: string description: The unique identifier of the request created example: cmp-cpro-request-11111 message: type: string description: Acknowledgement message example: Your request has been acknowledged description: Response object status: type: string description: The status of request submission example: success $$ref: '#/components/schemas/200CreateAnEnableProfileRequest0' '400': description: Bad Request content: application/json: schema: type: object properties: error-message: type: string description: Reason for request failure example: Invalid EIDs validation-error: type: array items: type: object properties: error-message: type: string description: Reason for the rejection of the EID example: EID not found eid: type: string description: The unique identifier of the rejected eSIM example: '000000000000000000000' description: Error response object status: type: string description: The status of request submission example: error $$ref: '#/components/schemas/400CreateAnEnableProfileRequest0' '401': description: Unauthorised User content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id description: The unique identifier of your account in: path required: true example: cmp-pp-org-000 schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-enable-requests' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"enable\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-enable-requests',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"enable\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"enable\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n },\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n }\\n ],\\n \\\"skip-session-check\\\": \\\"\\\",\\n \\\"disable-autoretry\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-enable-requests\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-enable-requests\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"enable\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"skip-session-check\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"disable-autoretry\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-enable-requests',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"enable\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-enable-requests\"\n\npayload = json.dumps({\n \"enable\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/esim-profile-download-requests: post: tags: - eSIM Profile Management summary: Create A Download Profile Request description: Create a download profile request for an account. Downloads a new profile to the eSIM and activates the subscription.  requestBody: content: application/json: schema: type: object properties: download: type: object properties: activation-profile-id: type: string description: The unique identifier of the activation profile example: cmp-prov-ap-11111 skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times sku: type: string description: The Stock Keeping Unit (SKU) number of a device type with an embedded SIM which is required for switching to VZW profile if IMEI is not provided example: VZW00000000 subscriptions: type: array items: type: object properties: eid: type: string description: The unique identifier of the eSIM example: uniqueStr imei: type: string description: IMEI is a 14 - 16 digit identifier of the device which is required for activating a KORE VZW subscription example: '111111111111111' required: - eid description: ' ' service-type-info: type: object properties: aus-ipnd-info: type: object properties: address: type: string description: Address of the user example: uniqueStr title: type: string description: Title of the user (Mr/Mrs/Ms) example: Mr/Mrs/Ms first-name: type: string description: First Name of the user example: uniqueStr last-name: type: string description: Last Name of the user example: uniqueStr description: IPND information is mandatory for activating a KORE TELS2 subscription description: Carrier specific information required for activating a subscription required: - activation-profile-id - subscriptions description: Download profile request required: - download $$ref: '#/components/schemas/CreateADownloadProfileRequest0' responses: '200': description: 200 response content: application/json: schema: type: object properties: data: type: object properties: request-id: type: string description: The unique identifier of the request created example: cmp-cpro-request-11111 message: type: string description: Acknowledgement message example: Your request has been acknowledged description: Response object status: type: string description: The status of request submission example: success $$ref: '#/components/schemas/200CreateADownloadProfileRequest0' '400': description: Bad Request content: application/json: schema: type: object properties: error-message: type: string description: Reason for request failure example: Invalid EIDs validation-error: type: array items: type: object properties: error-message: type: string description: Reason for the rejection of the EID example: uniqueStr eid: type: string description: The unique identifier of the rejected eSIM example: uniqueStr description: Error response object status: type: string description: The status of request submission example: error $$ref: '#/components/schemas/400CreateADownloadProfileRequest0' '401': description: Unauthorised User content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id description: The unique identifier of your account in: path required: true example: cmp-pp-org-000 schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-download-requests' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"download\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-download-requests',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"download\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"download\\\": {\\n \\\"activation-profile-id\\\": \\\"\\\",\\n \\\"subscriptions\\\": [\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"imei\\\": \\\"\\\"\\n },\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"imei\\\": \\\"\\\"\\n }\\n ],\\n \\\"skip-session-check\\\": \\\"\\\",\\n \\\"disable-autoretry\\\": \\\"\\\",\\n \\\"sku\\\": \\\"\\\",\\n \\\"service-type-info\\\": {\\n \\\"aus-ipnd-info\\\": {\\n \\\"address\\\": \\\"\\\",\\n \\\"title\\\": \\\"\\\",\\n \\\"first-name\\\": \\\"\\\",\\n \\\"last-name\\\": \\\"\\\"\\n }\\n }\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-download-requests\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-download-requests\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"download\"\": {\" + \"\\n\" +\n@\" \"\"activation-profile-id\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"imei\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"imei\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"skip-session-check\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"disable-autoretry\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"sku\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"service-type-info\"\": {\" + \"\\n\" +\n@\" \"\"aus-ipnd-info\"\": {\" + \"\\n\" +\n@\" \"\"address\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"title\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"first-name\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"last-name\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-download-requests',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"download\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-download-requests\"\n\npayload = json.dumps({\n \"download\": {\n \"activation-profile-id\": \"\",\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"imei\": \"\"\n },\n {\n \"eid\": \"\",\n \"imei\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\",\n \"sku\": \"\",\n \"service-type-info\": {\n \"aus-ipnd-info\": {\n \"address\": \"\",\n \"title\": \"\",\n \"first-name\": \"\",\n \"last-name\": \"\"\n }\n }\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/esim-profile-delete-requests: post: tags: - eSIM Profile Management summary: Create A Delete Profile Request description: Create a delete profile request for an account. Deletes a specified profile from the eSIM. requestBody: content: application/json: schema: type: object properties: delete: type: object properties: subscriptions: type: array items: type: object properties: eid: type: string description: The unique identifier of the eSIM example: '0000000000000000000000000' iccid: type: string description: The unique identifier of the profile to be deleted example: '0000000000000000' required: - eid - iccid description: ' ' skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times required: - subscriptions description: Delete profile request required: - delete $$ref: '#/components/schemas/CreateADeleteProfileRequest0' responses: '200': description: 200 response content: application/json: schema: type: object properties: data: type: object properties: request-id: type: string description: The unique identifier of the request created example: cmp-cpro-request-11111 message: type: string description: Acknowledgement message example: Your request has been acknowledged description: Response object status: type: string description: The status of request submission example: success $$ref: '#/components/schemas/200CreateADeleteProfileRequest0' '400': description: Bad Request content: application/json: schema: type: object properties: error-message: type: string description: Reason for request failure example: Invalid EIDs validation-error: type: array items: type: object properties: error-message: type: string description: Reason for the rejection of the EID example: EID not found eid: type: string description: The unique identifier of the rejected eSIM example: '0000000000000000' description: Error response object status: type: string description: The status of request submission example: error $$ref: '#/components/schemas/400CreateADeleteProfileRequest0' '401': description: Unauthorised User content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id description: The unique identifier of your account in: path required: true example: cmp-pp-org-000 schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-delete-requests' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"delete\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-delete-requests',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"delete\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"delete\\\": {\\n \\\"subscriptions\\\": [\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n },\\n {\\n \\\"eid\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\"\\n }\\n ],\\n \\\"skip-session-check\\\": \\\"\\\",\\n \\\"disable-autoretry\\\": \\\"\\\"\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-delete-requests\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-delete-requests\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"delete\"\": {\" + \"\\n\" +\n@\" \"\"subscriptions\"\": [\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" },\" + \"\\n\" +\n@\" {\" + \"\\n\" +\n@\" \"\"eid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"skip-session-check\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"disable-autoretry\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-delete-requests',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"delete\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-delete-requests\"\n\npayload = json.dumps({\n \"delete\": {\n \"subscriptions\": [\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n },\n {\n \"eid\": \"\",\n \"iccid\": \"\"\n }\n ],\n \"skip-session-check\": \"\",\n \"disable-autoretry\": \"\"\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/esim-profile-switch-requests/cancel: post: tags: - eSIM Profile Management summary: Cancel Switch Request description: Cancel all type of switch requests (switch/ enable/ download/ delete) Or cancel the pending auto retries requestBody: content: application/json: schema: type: object properties: request-id: type: string description: Unique identifier of the request example: cmp-cpro-request-0000000 eids: type: array items: type: string description: Array of unique identifiers of the eSIM cancel-autoretry: type: boolean example: false description: Cancel any pending autoretry of RSP steps for the eSIM. Does not cancel the request required: - request-id $$ref: '#/components/schemas/CancelSwitchRequest0' responses: '200': description: 200 response content: application/json: schema: type: object properties: data: type: object properties: message: type: string description: Acknowledgement message example: Request cancelled successfully! cancel-response: type: object properties: accepted-eids: type: array items: type: string description: EIDs accepted for cancel rejected-eids: type: array items: type: string description: EIDs rejected for cancel description: Details of EIDs description: Response data status: type: string description: Response status example: success $$ref: '#/components/schemas/200CancelSwitchRequest0' '400': description: Bad Request content: application/json: schema: type: object properties: data: type: object properties: message: type: string description: Error message example: Request is not eligible for cancellation cancel-response: type: object properties: accepted-eids: type: array items: type: string description: EIDs accepted for cancel rejected-eids: type: array items: type: string description: EIDs rejected for cancel description: Details of EIDs description: Response data status: type: string description: Response status example: error $$ref: '#/components/schemas/400CancelSwitchRequest0' '401': description: Unauthorised User content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' parameters: - name: account-id description: The unique identifier of your account in: path required: true example: cmp-pp-org-000 schema: type: string x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/cancel' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"cancel-autoretry\": \"\"\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/cancel',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"cancel-autoretry\": \"\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"request-id\\\": \\\"\\\",\\n \\\"eids\\\": [\\n \\\"\\\",\\n \\\"\\\"\\n ],\\n \\\"cancel-autoretry\\\": \\\"\\\"\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/cancel\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/cancel\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"request-id\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"eids\"\": [\" + \"\\n\" +\n@\" \"\"\"\",\" + \"\\n\" +\n@\" \"\"\"\"\" + \"\\n\" +\n@\" ],\" + \"\\n\" +\n@\" \"\"cancel-autoretry\"\": \"\"\"\"\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/cancel',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"cancel-autoretry\": \"\"\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/esim-profile-switch-requests/cancel\"\n\npayload = json.dumps({\n \"request-id\": \"\",\n \"eids\": [\n \"\",\n \"\"\n ],\n \"cancel-autoretry\": \"\"\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/esim/profile-status: get: tags: - eSIM Profile Management summary: Get eSIM profile status description: Get the RSP profile status for all subscriptions associated with the EID. Profile status is not returned for profiles that are not downloaded or were deleted. responses: '200': description: 200 response content: application/json: schema: type: object properties: subscriptions: type: array items: type: object properties: iccid: type: string description: The ICCID of the subscription product-offer: type: string description: Combination of plans, features and sim format types state: type: string description: 'The state of the subscription. Allowed: Stock|Active|Suspend|Suspend With. Charge|Deactivated|Pending Scrap|Scrapped|Barred' profile-status: type: string description: 'Status of the eSIM profile in RSP. Allowed: ENABLED|DISABLED|CREATED' subscription-id: type: string description: Unique identifier of the subscription is-fallback: type: boolean description: True if this is the fallback profile description: List of eSIM profiles associated with the EID $$ref: '#/components/schemas/200GeteSIMprofilestatus0' '400': description: Bad Request content: application/json: schema: type: object properties: error-message: type: string description: Reason for request failure status: type: string description: ' Status of the response' $$ref: '#/components/schemas/400GeteSIMprofilestatus0' '401': description: Unauthorised User content: application/json: schema: type: object properties: code: type: string message: type: string $$ref: '#/components/schemas/401GeteSIMprofilestatus0' '403': description: Forbidden content: application/json: schema: type: object properties: code: type: string message: type: string $$ref: '#/components/schemas/403GeteSIMprofilestatus0' '404': description: The Specified Resource Was Not Found content: application/json: schema: type: object properties: code: type: string message: type: string $$ref: '#/components/schemas/404GeteSIMprofilestatus0' '500': description: Server Error content: application/json: schema: type: object properties: code: type: string message: type: string $$ref: '#/components/schemas/500GeteSIMprofilestatus0' parameters: - name: eid description: Unique identifier of the eSIM in: query required: false schema: type: string - name: iccid description: The ICCID of the subscription in: query required: false schema: type: string x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/esim/profile-status?eid=&iccid='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/esim/profile-status?eid=&iccid=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/esim/profile-status?eid=&iccid=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/esim/profile-status?eid=&iccid=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/esim/profile-status?eid=&iccid=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/esim/profile-status?eid=&iccid=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/diagnostics: get: tags: - Diagnostics summary: Lists All Requests description: Get all requests made for an account operationId: getDiagnosticsRequestStatusByAccountId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: page in: query description: page number required: false style: form explode: true schema: type: integer - name: take in: query description: number of records required: false style: form explode: true schema: type: integer - name: subscription-id in: query required: false style: form explode: true schema: type: string - name: iccid in: query description: The ICCID of the subscription required: false style: form explode: true schema: type: string - name: msisdn in: query description: The phone number attached to the subscription required: false style: form explode: true schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: total-records: type: integer total-pages: type: integer page: type: integer records: type: array items: type: object properties: diagnostic-request-id: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string format: dateTime request-type: type: string date-completed: type: string format: dateTime source: type: string requested-by: type: string account-id: type: string request-status: type: string example: null $$ref: '#/components/schemas/Diagnostic_Requests_records' $$ref: '#/components/schemas/DiagnosticRequests' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/diagnostics?page=&take=&subscription-id=&iccid=&msisdn='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/diagnostics?page=&take=&subscription-id=&iccid=&msisdn=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/diagnostics?page=&take=&subscription-id=&iccid=&msisdn=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/diagnostics?page=&take=&subscription-id=&iccid=&msisdn=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/diagnostics?page=&take=&subscription-id=&iccid=&msisdn=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/diagnostics?page=&take=&subscription-id=&iccid=&msisdn=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getDiagnosticsRequestStatusByAccountId security: - {} - Auth: [] - api_key: [] post: tags: - Diagnostics summary: Create A Diagnostic Request description: Create a diagnostics request for an account operationId: CreateDiagnosticRequest parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string requestBody: description: create request body content: application/json: schema: type: object properties: cancel-device-location: type: object required: - subscription properties: subscription: description: Only one of the properties is expected in the subscription properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription msisdn: type: string description: The phone number attached to the subscription $$ref: '#/components/schemas/InputCreateDiagnosticsRequests_subscriptions' $$ref: '#/components/schemas/InputCreateDiagnosticsRequests' example: null $$ref: '#/components/schemas/accountid_diagnosticrequests_body' required: true responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string data: type: object properties: diagnostics-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/DiagnosticCreateRequest_data' $$ref: '#/components/schemas/DiagnosticCreateRequest' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: "curl --location --globoff '{{baseUrl}}/v1/accounts/{account-id}/diagnostics' \\\n--header 'Content-Type: application/json'\n--header 'Authorization: Bearer ' \n--header 'x-api-key: '\n--header 'Accept: application/json' \\\n--data '{\n \"cancel-device-location\": {\n \"subscription\": {\n \"subscription-id\": \"\",\n \"iccid\": \"\",\n \"msisdn\": \"\"\n }\n }\n}'" - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'POST',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/diagnostics',\n 'headers': {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n },\n body: JSON.stringify({\n \"cancel-device-location\": {\n \"subscription\": {\n \"subscription-id\": \"\",\n \"iccid\": \"\",\n \"msisdn\": \"\"\n }\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n \\\"cancel-device-location\\\": {\\n \\\"subscription\\\": {\\n \\\"subscription-id\\\": \\\"\\\",\\n \\\"iccid\\\": \\\"\\\",\\n \\\"msisdn\\\": \\\"\\\"\\n }\\n }\\n}\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/diagnostics\")\n .method(\"POST\", body)\n .addHeader(\"Authorization\", \"Bearer \")\n .addHeader(\"x-api-key\", \"\")\n .addHeader(\"Content-Type\", \"application/json\")\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/diagnostics\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Post);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"Accept\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\" \"\"cancel-device-location\"\": {\" + \"\\n\" +\n@\" \"\"subscription\"\": {\" + \"\\n\" +\n@\" \"\"subscription-id\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"iccid\"\": \"\"\"\",\" + \"\\n\" +\n@\" \"\"msisdn\"\": \"\"\"\"\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\" }\" + \"\\n\" +\n@\"}\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/diagnostics',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ',\n 'x-api-key: '),\n CURLOPT_POSTFIELDS =>'{\n \"cancel-device-location\": {\n \"subscription\": {\n \"subscription-id\": \"\",\n \"iccid\": \"\",\n \"msisdn\": \"\"\n }\n }\n}',\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/diagnostics\"\n\npayload = json.dumps({\n \"cancel-device-location\": {\n \"subscription\": {\n \"subscription-id\": \"\",\n \"iccid\": \"\",\n \"msisdn\": \"\"\n }\n }\n})\nheaders = {\n 'Content-Type': 'application/json',\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: CreateDiagnosticRequest security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/diagnostics/{diagnostics-request-id}: get: tags: - Diagnostics summary: Finds Request Status By Diagnostics Request Id description: Get details of a specific request made operationId: getRequestStatusByDiagnosticsRequestId parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: diagnostics-request-id in: path description: '' required: true style: simple explode: false schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: request-type: type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string example: null $$ref: '#/components/schemas/DiagnosticsRequestStatus_requesttype_subscriptions' status: type: string description: ' submitted -- Request is submitted via api and got the acknowledgement back, failed -- Request creation failed, pending -- Request is created, completed -- Request is completed ' enum: - submitted - failed - pending - completed diagnostics-request-id: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' request-type: type: string date-completed: type: string description: YYY:MM:DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' source: type: string requested-by: type: string account-id: type: string error-message: type: string description: __Allowed:__ CancelDeviceLocation example: null $$ref: '#/components/schemas/DiagnosticsRequestStatus_requesttype' $$ref: '#/components/schemas/DiagnosticRequestsById' '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '409': description: Request Conflict headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: status: type: string errorMessage: type: string $$ref: '#/components/schemas/400_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '502': description: Bad Gateway headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '503': description: Service Unavailable headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '504': description: Gateway Timeout headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/diagnostics/'' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/diagnostics/',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/diagnostics/\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/diagnostics/\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/diagnostics/',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/diagnostics/\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getRequestStatusByDiagnosticsRequestId security: - {} - Auth: [] - api_key: [] /v1/accounts/{account-id}/scheduled-reports/daily-subscriptions: get: tags: - Reports summary: Get The Scheduled Report Details description: Get a previously configured scheduled report. operationId: getScheduledReportDownloadUrl parameters: - name: account-id in: path description: The unique identifier of your account required: true style: simple explode: false schema: type: string - name: date in: query description: 'The date for which the scheduled report is requested. Eg: 2023-02-23' style: form explode: true schema: type: string responses: '200': description: 200 response headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: file-details: type: object properties: file-name: type: string file-type: type: string file-generation-date: type: string format: date-time checksum: type: object properties: type: type: string value: type: string signed-url: type: string '400': description: Bad Request headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '401': description: Unauthorised User headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: required: - error - message type: object properties: error: type: integer format: int32 message: type: string $$ref: '#/components/schemas/Error' '403': description: Forbidden headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' '404': description: The Specified Resource Was Not Found headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: INFO: type: string $$ref: '#/components/schemas/NotFound_Error' '500': description: Server Error headers: Access-Control-Allow-Origin: style: simple explode: false schema: type: string Access-Control-Allow-Methods: style: simple explode: false schema: type: string Access-Control-Allow-Credentials: style: simple explode: false schema: type: string Access-Control-Allow-Headers: style: simple explode: false schema: type: string content: application/json: schema: type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' x-code-samples: - lang: cURL label: cURL source: 'curl --location --globoff ''{{baseUrl}}/v1/accounts/{account-id}/scheduled-reports/daily-subscriptions?date='' \ --header ''Accept: application/json''' - lang: js label: NodeJs source: "var request = require('request');\nvar options = {\n 'method': 'GET',\n 'url': '{{baseUrl}}/v1/accounts/{account-id}/scheduled-reports/daily-subscriptions?date=',\n 'headers': {\n 'Accept': 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new Error(error);\n console.log(response.body);\n});\n" - lang: java label: Java source: "OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"{{baseUrl}}/v1/accounts/{account-id}/scheduled-reports/daily-subscriptions?date=\")\n .method(\"GET\", body)\n .addHeader(\"Accept\", \"application/json\")\n .build();\nResponse response = client.newCall(request).execute();" - lang: cs label: C# source: "var options = new RestClientOptions(\"{{baseUrl}}/v1/accounts/{account-id}/scheduled-reports/daily-subscriptions?date=\")\n{\n MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"\", Method.Get);\nrequest.AddHeader(\"Accept\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);" - lang: PHP label: Php source: " '{{baseUrl}}/v1/accounts/{account-id}/scheduled-reports/daily-subscriptions?date=',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer ',\n 'x-api-key: ')\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n" - lang: py label: Python source: "import requests\n\nurl = \"{{baseUrl}}/v1/accounts/{account-id}/scheduled-reports/daily-subscriptions?date=\"\n\npayload = {}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n" __originalOperationId: getScheduledReportDownloadUrl security: - {} - Auth: [] - api_key: [] components: schemas: Plans: type: object properties: plans: type: array items: type: object properties: plan: type: object properties: plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-type-id: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' example: null $$ref: '#/components/schemas/PlanDetails_plan' $$ref: '#/components/schemas/PlanDetails' PlanDetails: type: object properties: plan: type: object properties: plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-type-id: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' example: null $$ref: '#/components/schemas/PlanDetails_plan' plan-name: type: string description: The name of the plan plan-id: type: string description: The unique identifier of your plan usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE service-type-id: type: string description: The unique identifier of the service type xxx_Error: type: object properties: message: type: string Error: required: - error - message type: object properties: error: type: integer format: int32 message: type: string NotFound_Error: type: object properties: INFO: type: string PlanTypes: type: object properties: plan-types: type: array items: type: object properties: plan-type-id: type: string plan-type-name: type: string example: null $$ref: '#/components/schemas/PlanTypes_plantypes' ServiceTypes: type: object properties: service-types: type: array items: type: object properties: service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' service-type-name: type: string $$ref: '#/components/schemas/ServiceType' ServiceType: type: object properties: service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' service-type-name: type: string Features: type: object properties: features: type: array items: type: object properties: feature: type: object properties: usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' description: type: string description: The description of the feature service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' $$ref: '#/components/schemas/Feature' example: null $$ref: '#/components/schemas/Features_features' Feature: type: object properties: usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' description: type: string description: The description of the feature service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' feature-name: type: string description: The name of the feature feature-id: type: string description: The unique identifier of your feature SimUsageRecord: type: object properties: source: type: string subscription-id: type: string example: cmp-k1-subscription-000000 data: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: byte daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: byte $$ref: '#/components/schemas/SingleFeatureUsageRecord_dailyusages' $$ref: '#/components/schemas/SingleFeatureUsageRecord' sms: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: event daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: event $$ref: '#/components/schemas/SingleFeatureUsageRecordSMS_dailyusages' $$ref: '#/components/schemas/SingleFeatureUsageRecordSMS' voice: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: sec daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: sec $$ref: '#/components/schemas/SingleFeatureUsageRecordVoice_dailyusages' $$ref: '#/components/schemas/SingleFeatureUsageRecordVoice' SingleFeatureUsageRecord: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: byte daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: byte $$ref: '#/components/schemas/SingleFeatureUsageRecord_dailyusages' SingleFeatureUsageRecordSMS: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: event daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: event $$ref: '#/components/schemas/SingleFeatureUsageRecordSMS_dailyusages' SingleFeatureUsageRecordVoice: type: object properties: total-usage: type: integer example: 172769726373 unit: type: string example: sec daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: sec $$ref: '#/components/schemas/SingleFeatureUsageRecordVoice_dailyusages' 5xx_Error: type: object properties: StatusCode: type: integer Messages: type: array items: type: string ErrorMessages: type: array items: type: string UpdateCostCenter0: type: object properties: cost-center-name: type: string description: A descriptive label or title given to a cost center. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center required: - cost-center-pk - cost-center-name InputUsageRecord: required: - usage - usage-type type: object properties: usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' usage: type: integer description: Measured in bytes for data, minutes for voice and count in SMS CreateUsageRecords: type: object properties: message: type: string current-date: type: string description: YYYY:MM:DD:HH:MM:SS format: dateTime status: type: object properties: status-code: type: integer example: null $$ref: '#/components/schemas/CreateUsageRecords_status' PlanUsageRecord: type: object properties: source: type: string plan-id: type: string total-usage: type: integer unit: type: string daily-usages: type: array items: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: byte $$ref: '#/components/schemas/SingleFeatureUsageRecord_dailyusages' Requests: type: object properties: total-records: type: integer total-pages: type: integer page: type: integer records: type: array items: type: object properties: provisioning-request-id: type: string date-completed: type: string format: dateTime request-status: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string format: dateTime request-type: type: string source: type: string provisioned-by: type: string activation-profile-id: type: string example: null $$ref: '#/components/schemas/Requests_records' DiagnosticRequests: type: object properties: total-records: type: integer total-pages: type: integer page: type: integer records: type: array items: type: object properties: diagnostic-request-id: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string format: dateTime request-type: type: string date-completed: type: string format: dateTime source: type: string requested-by: type: string account-id: type: string request-status: type: string example: null $$ref: '#/components/schemas/Diagnostic_Requests_records' DiagnosticRequestsById: type: object properties: request-type: type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string example: null $$ref: '#/components/schemas/DiagnosticsRequestStatus_requesttype_subscriptions' status: type: string description: ' submitted -- Request is submitted via api and got the acknowledgement back, failed -- Request creation failed, pending -- Request is created, completed -- Request is completed ' enum: - submitted - failed - pending - completed diagnostics-request-id: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' request-type: type: string date-completed: type: string description: YYY:MM:DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' source: type: string requested-by: type: string account-id: type: string error-message: type: string description: __Allowed:__ CancelDeviceLocation example: null $$ref: '#/components/schemas/DiagnosticsRequestStatus_requesttype' CommonInputActivateProvisioningRequest: type: object properties: activate: required: - activation-state - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest_activate_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. activation-state: type: string enum: - active - test - ready activation-profile-id: type: string sku: type: string description: SKU is mandatory for VZW SKU activation service-type-info: properties: aus-ipnd-info: type: object description: IPND information is mandatory for KORE TELS2 Activation properties: title: type: string first-name: type: string last-name: type: string address: type: string description: activate a sim example: null $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest_activate' CommonInputSuspendProvisioningRequest: type: object properties: suspend: type: object required: - subscriptions properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: Suspend a SIM. $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend' CommonInputDeactivateProvisioningRequest: type: object properties: deactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: deactivate a sim example: null $$ref: '#/components/schemas/CommonInputDeactivateProvisioningRequest_deactivate' CommonPlanChangeProvisioningRequest: type: object properties: plan-feature-change: required: - activation-profile-id - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request activation-profile-id: type: string mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/CommonPlanChangeProvisioningRequest_planfeaturechange' CommonReactivateProvisioningRequest: type: object properties: reactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/CommonReactivateProvisioningRequest_reactivate' CommonTerminateProvisioningRequest: type: object properties: terminate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. force-enabled-esim-profile-termination: type: boolean description: Force termination when eSIM subscription is enabled (on an EID with many ICCIDs) example: false example: null $$ref: '#/components/schemas/CommonTerminateProvisioningRequest_terminate' InputSuspendProvisioningRequest: type: object properties: suspend: type: object required: - subscriptions properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: Suspend a SIM. $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend' InputActivateProvisioningRequest: type: object properties: activate: required: - activation-state - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation $$ref: '#/components/schemas/InputActivateProvisioningRequest_activate_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. activation-state: type: string enum: - active - test - ready activation-profile-id: type: string sku: type: string description: SKU is mandatory for VZW SKU activation service-type-info: properties: aus-ipnd-info: type: object description: IPND information is mandatory for KORE TELS2 Activation properties: title: type: string first-name: type: string last-name: type: string address: type: string description: activate a sim example: null $$ref: '#/components/schemas/InputActivateProvisioningRequest_activate' InputDeactivateProvisioningRequest: type: object properties: deactivate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: deactivate a sim example: null $$ref: '#/components/schemas/InputDeactivateProvisioningRequest_deactivate' PlanChangeProvisioningRequest: type: object properties: plan-feature-change: required: - activation-profile-id - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request activation-profile-id: type: string mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/PlanChangeProvisioningRequest_planfeaturechange' ReactivateProvisioningRequest: type: object properties: reactivate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/ReactivateProvisioningRequest_reactivate' TerminateProvisioningRequest: type: object properties: terminate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. force-enabled-esim-profile-termination: type: boolean description: Force termination when eSIM subscription is enabled (on an EID with many ICCIDs) example: false example: null $$ref: '#/components/schemas/TerminateProvisioningRequest_terminate' CreateRequest: type: object properties: status: type: string data: type: object properties: provisioning-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/CreateRequest_data' DiagnosticCreateRequest: type: object properties: status: type: string data: type: object properties: diagnostics-request-id: type: string message: type: string example: null $$ref: '#/components/schemas/DiagnosticCreateRequest_data' 400_Error: type: object properties: status: type: string errorMessage: type: string RequestStatus: type: object properties: request-type: type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string error-message: type: string example: null $$ref: '#/components/schemas/RequestStatus_requesttype_subscriptions' status: type: string description: ' submitted -- Request is submitted via api and got the acknowledgement back, failed -- Request creation failed, pending -- Request is created, completed -- Request is completed ' enum: - submitted - failed - pending - completed provisioning-request-id: type: string date-completed: type: string description: YYY:MM:DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' service-type: type: string number-of-subscriptions: type: integer date-created: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' request-type: type: string provisioned-by: type: string account-id: type: string activation-profile-id: type: string description: __Allowed:__ Activation | StateChange | Deactivation | Reactivation | PlanChange | ProfileChange example: null $$ref: '#/components/schemas/RequestStatus_requesttype' DiagnosticsRequestStatus: type: object properties: request-type: type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string error-message: type: string example: null $$ref: '#/components/schemas/RequestStatus_requesttype_subscriptions' status: type: string description: ' submitted -- Request is submitted via api and got the acknowledgement back, failed -- Request creation failed, pending -- Request is created, completed -- Request is completed ' enum: - submitted - failed - pending - completed provisioning-request-id: type: string date-completed: type: string description: YYY:MM:DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' service-type: type: string number-of-subscriptions: type: integer date-created: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' request-type: type: string provisioned-by: type: string account-id: type: string activation-profile-id: type: string description: __Allowed:__ Activation | StateChange | Deactivation | Reactivation | PlanChange | ProfileChange example: null $$ref: '#/components/schemas/RequestStatus_requesttype' Subscriptions: type: object properties: page-info-result: type: object properties: total-count: type: integer page-index: type: integer max-page-item: type: integer example: null $$ref: '#/components/schemas/Subscriptions_pageinforesult' subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription eid: type: string description: The EID of a subscription, blank means this is not an esim example: '00000000000000000000000000000000' rsp-state: type: string description: State of the profile in eSIM example: enabled product-offer: type: string description: combination of plans, features and sim format types product-offer-type: type: string description: Differentiates the product offer types bewteen the manufacturers imei: type: string description: The unique identifier of the device the SIM is connected too imsi: type: string description: The unique identifier of the subscription on the network serial: type: string description: The serial number of the device attached to the SIM model: type: string description: The model number of the device attached to the SIM msisdns: type: array items: type: object properties: msisdn: type: string description: The phone number attached to the subscription example: null $$ref: '#/components/schemas/SubscriptionDetails_msisdns' last-active-profile: type: array description: The last known profile per state of the SIM items: type: object properties: profile-id: type: integer start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveprofile' last-active-imsi-msisdn: type: array description: The last known imsi msidn per state of the SIM items: type: object properties: msisdn: type: string imsi: type: string start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveimsimsisdn' last-effective-date-of-states: type: array description: The last known effective date per state of the SIM items: type: object properties: state: type: string start-date-time-utc: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_lasteffectivedateofstates' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' states: type: array description: The state of the subscription items: type: object properties: state: type: string enum: - Stock - Active - Suspend - Suspend With Charge - Deactivated - Pending Scrap - Scrapped - Barred state-id: type: string start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_states' cost-center-id: type: string description: The unique identifier of your cost center $$ref: '#/components/schemas/cost-center-id' profiles: type: array items: type: object properties: profile-id: type: string description: The unique identifier of the feature-plan combination $$ref: '#/components/schemas/profile-id' start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_profiles' apn-data: type: array items: type: object properties: ip-address: type: string description: The address of the subscription apn-id: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_apndata' additional-fields: type: array description: A set of customer defined customer fields (key/value pairs) items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_additionalfields' $$ref: '#/components/schemas/SubscriptionDetails' SubscriptionDetails: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription eid: type: string description: The EID of a subscription, blank means this is not an esim example: '00000000000000000000000000000000' rsp-state: type: string description: State of the profile in eSIM example: enabled product-offer: type: string description: combination of plans, features and sim format types product-offer-type: type: string description: Differentiates the product offer types bewteen the manufacturers imei: type: string description: The unique identifier of the device the SIM is connected too imsi: type: string description: The unique identifier of the subscription on the network serial: type: string description: The serial number of the device attached to the SIM model: type: string description: The model number of the device attached to the SIM msisdns: type: array items: type: object properties: msisdn: type: string description: The phone number attached to the subscription example: null $$ref: '#/components/schemas/SubscriptionDetails_msisdns' last-active-profile: type: array description: The last known profile per state of the SIM items: type: object properties: profile-id: type: integer start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveprofile' last-active-imsi-msisdn: type: array description: The last known imsi msidn per state of the SIM items: type: object properties: msisdn: type: string imsi: type: string start-datetime-utc: type: string $$ref: '#/components/schemas/SubscriptionDetails_lastactiveimsimsisdn' last-effective-date-of-states: type: array description: The last known effective date per state of the SIM items: type: object properties: state: type: string start-date-time-utc: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_lasteffectivedateofstates' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' states: type: array description: The state of the subscription items: type: object properties: state: type: string enum: - Stock - Active - Suspend - Suspend With Charge - Deactivated - Pending Scrap - Scrapped - Barred state-id: type: string start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_states' cost-center-id: type: string description: The unique identifier of your cost center $$ref: '#/components/schemas/cost-center-id' profiles: type: array items: type: object properties: profile-id: type: string description: The unique identifier of the feature-plan combination $$ref: '#/components/schemas/profile-id' start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null $$ref: '#/components/schemas/SubscriptionDetails_profiles' apn-data: type: array items: type: object properties: ip-address: type: string description: The address of the subscription apn-id: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_apndata' additional-fields: type: array description: A set of customer defined customer fields (key/value pairs) items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/SubscriptionDetails_additionalfields' cost-center-id: type: string description: The unique identifier of your cost center profile-id: type: string description: The unique identifier of the feature-plan combination UpdateSubscriptionCostCenter0: type: array items: type: object properties: cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center subscription-id: type: string description: The unique identifier for the SIM required: - cost-center-pk - subscription-id 200UpdateSubscriptionCostCenter0: type: object properties: subscription-request-type: type: array items: type: string subscription-request-id: type: string subscription-request-status: type: string 400UpdateSubscriptionCostCenter0: type: object properties: subscription-request-type: type: array items: type: string subscription-request-id: type: string error: type: object properties: message: type: string status: type: string subscription-request-status: type: string UpdateSubscription: required: - subscription-request type: object properties: subscription-request: required: - subscriptions type: object properties: subscriptions: type: array items: required: - subscription-id type: object properties: subscription-id: type: string additional-fields: type: array items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest_additionalfields' example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest_subscriptions' example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest' UpdateConnectedHardware: required: - subscription-request type: object properties: subscription-request: required: - subscriptions type: object properties: subscriptions: type: array items: required: - subscription-id type: object properties: subscription-id: type: string connected-hardware: type: object properties: imei: type: string serial-number: type: string model-number: type: string example: null $$ref: '#/components/schemas/UpdateConnectedHardware_subscriptionrequest_subscriptions' example: null $$ref: '#/components/schemas/UpdateConnectedHardware_subscriptionrequest' UpdateSubscriptionSIM: required: - subscription-request type: object properties: subscription-request: required: - subscriptions type: object properties: subscriptions: type: array items: required: - destination-account-id - subscription-id type: object properties: subscription-id: type: string destination-account-id: type: string example: null $$ref: '#/components/schemas/UpdateSubscriptionSIM_subscriptionrequest_subscriptions' example: null $$ref: '#/components/schemas/UpdateSubscriptionSIM_subscriptionrequest' UpdatedSubscription: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string subscription_Error: type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' SubscriptionRequest: type: object properties: subscription-request: type: object properties: subscription-id: type: string subscription-request-type: type: string subscription-request-status: type: string enum: - Accepted (Sync) - Rejected ( Sync ) - In-Progress - Failed - Completed source: type: string total-subscriptions: type: number subscriptions: type: array items: type: object properties: subscription-request-id: type: string status: type: string error: type: string subscription-identifier: type: string subscription-identifier-value: type: string property-type: type: string subscription-request-error: type: array items: type: object properties: error-type: type: string error-code: type: string error-message: type: string example: null $$ref: '#/components/schemas/SubscriptionRequest_subscriptionrequest_subscriptionrequesterror' description: 1 - Failed and Rejected will have subscription-request-error object included in the response 2 - For validation failure, service will rollback everything, and error will be provided.--- Sample Error Message (10 Iccids failed validation will be provided)--- If 10 of 1000 failed, service will rollback everything 3 - For internal exceptions, will rollback/commit per batch (1000 iccids) example: null $$ref: '#/components/schemas/SubscriptionRequest_subscriptionrequest' Profiles: type: object properties: features: type: array items: type: object properties: feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' example: null $$ref: '#/components/schemas/Profiles_features' plans: type: array items: type: object properties: plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-type: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' example: null $$ref: '#/components/schemas/Profiles_plans' Accounts: type: object properties: account: type: array items: type: object properties: account-id: type: string account-number: type: integer account-name: type: string example: null $$ref: '#/components/schemas/Accounts_account' ActivationProfile: type: array items: type: object properties: activation-profile-id: type: string activation-profile-name: type: string description: The name of the activation profile created-date: type: string created-by: type: string $$ref: '#/components/schemas/ActivationProfile_inner' ActivationProfileDetails: type: object properties: activation-profile-id: type: string activation-profile-name: type: string description: type: string service-type-id: type: string product-offer: type: string created-date: type: string created-by: type: string plan-ids: type: array items: type: object properties: plan-id: type: string example: null $$ref: '#/components/schemas/ActivationProfileDetails_planids' feature-ids: type: array items: type: object properties: feature-id: type: string example: null $$ref: '#/components/schemas/ActivationProfileDetails_featureids' CostCenter: type: array items: type: object properties: cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-name: type: string description: A descriptive label or title given to a cost center. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center. $$ref: '#/components/schemas/CostCenter_inner' CreateCostCenter0: type: object properties: cost-center-name: type: string description: A descriptive label or title given to a cost center. required: - cost-center-name 200CreateCostCenter0: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. 400CreateCostCenter0: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. 200UpdateCostCenter0: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. 400UpdateCostCenter0: type: object properties: message: type: string cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center cost-center-name: type: string description: A descriptive label or title given to a cost center. 401CreateCostCenter0: type: object properties: code: type: string message: type: string 403CreateCostCenter0: type: object properties: code: type: string message: type: string Status: type: object properties: status: type: string Events: type: array items: type: object properties: event-id: type: string event-name: type: string event-description: type: string category: type: string event-attributes: type: array items: type: object properties: name: type: string description: type: string type: type: string actions: type: array items: type: string default-frequency: type: string frequency-attribute: type: string frequencies: type: array items: type: string $$ref: '#/components/schemas/Events_inner' Rules: type: object properties: account-id: type: string rules: type: array items: type: object properties: rule-id: type: string rule-name: type: string event-name: type: string enabled: type: boolean date-added: type: string format: dateTime date-updated: type: string format: dateTime conditions: type: array items: type: object properties: attribute-name: type: string condition-operator: type: string attribute-value: type: string example: null $$ref: '#/components/schemas/Rules_conditions' actions: type: object properties: webhook: type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/Rules_actions_webhook' email: type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/Rules_actions_email' block-usage: type: object properties: period: type: string example: null $$ref: '#/components/schemas/Rules_actions_blockusage' example: null $$ref: '#/components/schemas/Rules_actions' alert-strategy: type: object properties: batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null $$ref: '#/components/schemas/Rules_alertstrategy_batching' description: Optional:Define a batching strategy for the alerts you receive example: null $$ref: '#/components/schemas/Rules_alertstrategy' example: null $$ref: '#/components/schemas/Rules_rules' InputRule: required: - actions - conditions - enabled - event-name - rule-name type: object properties: rule-name: type: string event-name: type: string enabled: type: boolean conditions: type: array description: Individual conditions are chained with AND operator by default items: type: object properties: attribute-name: type: string condition-operator: type: string description: Possible Operator values are (==, !=, <, <=, >, >=, in, not in). attribute-value: type: string example: null $$ref: '#/components/schemas/InputRule_conditions' actions: type: object properties: webhook: required: - webhook-url type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/InputRule_actions_webhook' email: required: - to type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/InputRule_actions_email' block-usage: required: - period type: object properties: period: type: string example: null $$ref: '#/components/schemas/InputRule_actions_blockusage' example: null $$ref: '#/components/schemas/InputRule_actions' alert-strategy: type: object properties: batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null $$ref: '#/components/schemas/Rules_alertstrategy_batching' description: Optional:Define a batching strategy for the alerts you receive example: null $$ref: '#/components/schemas/Rules_alertstrategy' CreateRule: type: object properties: rule-id: type: string message: type: array items: type: string Rule_500_Error: type: object properties: rule-id: type: integer message: type: array items: type: string AlertHistory: type: object properties: page-index: type: number page-size: type: number total-records: type: number alerts: type: array items: type: object properties: id: type: string rule-id: type: string date-added: type: string format: date all-actions-complete: type: boolean actions: type: array items: anyOf: - type: object properties: type: type: string enum: - webhook event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: url: type: string access-token: type: string payload: type: object properties: alert-id: type: string alert-message-date: type: string format: date rule-id: type: string rule-name: type: string event-name: type: string account: type: string events: type: array items: type: object - type: object properties: type: type: string enum: - email event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: to: type: string format: email cc: type: string format: email bcc: type: string format: email - type: object properties: type: type: string enum: - block-Usage - unblock-usage event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: request-id: type: string subscription-id: type: string $$ref: '#/components/schemas/AlertHistoryDetails' AlertHistoryDetails: type: object properties: id: type: string rule-id: type: string date-added: type: string format: date all-actions-complete: type: boolean actions: type: array items: anyOf: - type: object properties: type: type: string enum: - webhook event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: url: type: string access-token: type: string payload: type: object properties: alert-id: type: string alert-message-date: type: string format: date rule-id: type: string rule-name: type: string event-name: type: string account: type: string events: type: array items: type: object - type: object properties: type: type: string enum: - email event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: to: type: string format: email cc: type: string format: email bcc: type: string format: email - type: object properties: type: type: string enum: - block-Usage - unblock-usage event-ids: type: array items: type: string fire-date: type: string format: date success: type: boolean details: type: object properties: request-id: type: string subscription-id: type: string Actions: type: array items: type: object properties: name: type: string description: type: string attributes: type: array items: type: object properties: name: type: string description: type: string type: type: string $$ref: '#/components/schemas/Actions_inner' accountid_provisioningrequests_body: oneOf: - type: object properties: suspend: type: object required: - subscriptions properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: Suspend a SIM. $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend' $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest' - type: object properties: activate: required: - activation-state - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest_activate_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. activation-state: type: string enum: - active - test - ready activation-profile-id: type: string sku: type: string description: SKU is mandatory for VZW SKU activation service-type-info: properties: aus-ipnd-info: type: object description: IPND information is mandatory for KORE TELS2 Activation properties: title: type: string first-name: type: string last-name: type: string address: type: string description: activate a sim example: null $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest_activate' $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest' - type: object properties: deactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: deactivate a sim example: null $$ref: '#/components/schemas/CommonInputDeactivateProvisioningRequest_deactivate' $$ref: '#/components/schemas/CommonInputDeactivateProvisioningRequest' - type: object properties: plan-feature-change: required: - activation-profile-id - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request activation-profile-id: type: string mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/CommonPlanChangeProvisioningRequest_planfeaturechange' $$ref: '#/components/schemas/CommonPlanChangeProvisioningRequest' - type: object properties: reactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null $$ref: '#/components/schemas/CommonReactivateProvisioningRequest_reactivate' $$ref: '#/components/schemas/CommonReactivateProvisioningRequest' - type: object properties: terminate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. force-enabled-esim-profile-termination: type: boolean description: Force termination when eSIM subscription is enabled (on an EID with many ICCIDs) example: false example: null $$ref: '#/components/schemas/CommonTerminateProvisioningRequest_terminate' $$ref: '#/components/schemas/CommonTerminateProvisioningRequest' accountid_diagnosticrequests_body: type: object properties: cancel-device-location: type: object required: - subscription properties: subscription: description: Only one of the properties is expected in the subscription properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription msisdn: type: string description: The phone number attached to the subscription $$ref: '#/components/schemas/InputCreateDiagnosticsRequests_subscriptions' $$ref: '#/components/schemas/InputCreateDiagnosticsRequests' example: null inline_response_400: oneOf: - type: object properties: message: type: string $$ref: '#/components/schemas/xxx_Error' - type: object properties: subscription-request-id: type: string subscription-request-type: type: array items: type: string subscription-request-status: type: string error: type: object properties: code: type: integer message: type: string status: type: string example: null $$ref: '#/components/schemas/subscription_Error_error' $$ref: '#/components/schemas/subscription_Error' PlanDetails_plan: type: object properties: plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-type-id: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' example: null PlanTypes_plantypes: type: object properties: plan-type-id: type: string plan-type-name: type: string example: null Features_features: type: object properties: feature: type: object properties: usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' description: type: string description: The description of the feature service-type-id: type: string description: The unique identifier of the service type $$ref: '#/components/schemas/service-type-id' $$ref: '#/components/schemas/Feature' example: null SingleFeatureUsageRecord_dailyusages: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: byte SingleFeatureUsageRecordSMS_dailyusages: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: event SingleFeatureUsageRecordVoice_dailyusages: type: object properties: date: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' total-usage: type: integer example: 3545683147 unit: type: string example: sec CreateUsageRecords_status: type: object properties: status-code: type: integer example: null Requests_records: type: object properties: provisioning-request-id: type: string date-completed: type: string format: dateTime request-status: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string format: dateTime request-type: type: string source: type: string provisioned-by: type: string activation-profile-id: type: string example: null Diagnostic_Requests_records: type: object properties: diagnostic-request-id: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string format: dateTime request-type: type: string date-completed: type: string format: dateTime source: type: string requested-by: type: string account-id: type: string request-status: type: string example: null CommonInputSuspendProvisioningRequest_suspend_subscriptions: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription CommonInputActivateProvisioningRequest_activate_subscriptions: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation CommonInputActivateProvisioningRequest_activate: required: - activation-state - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation $$ref: '#/components/schemas/CommonInputActivateProvisioningRequest_activate_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. activation-state: type: string enum: - active - test - ready activation-profile-id: type: string sku: type: string description: SKU is mandatory for VZW SKU activation service-type-info: properties: aus-ipnd-info: type: object description: IPND information is mandatory for KORE TELS2 Activation properties: title: type: string first-name: type: string last-name: type: string address: type: string description: activate a sim example: null CommonInputSuspendProvisioningRequest_suspend: type: object required: - subscriptions properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: Suspend a SIM. CommonInputDeactivateProvisioningRequest_deactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: deactivate a sim example: null CommonPlanChangeProvisioningRequest_planfeaturechange: required: - activation-profile-id - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request activation-profile-id: type: string mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null CommonReactivateProvisioningRequest_reactivate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null CommonTerminateProvisioningRequest_terminate: required: - subscriptions type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/CommonInputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. force-enabled-esim-profile-termination: type: boolean description: Force termination when eSIM subscription is enabled (on an EID with many ICCIDs) example: false example: null InputCreateDiagnosticsRequests: type: object required: - subscription properties: subscription: description: Only one of the properties is expected in the subscription properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription msisdn: type: string description: The phone number attached to the subscription $$ref: '#/components/schemas/InputCreateDiagnosticsRequests_subscriptions' InputCreateDiagnosticsRequests_subscriptions: description: Only one of the properties is expected in the subscription properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription msisdn: type: string description: The phone number attached to the subscription InputSuspendProvisioningRequest_suspend_subscriptions: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription InputSuspendProvisioningRequest_suspend: type: object required: - subscriptions properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: Suspend a SIM. InputActivateProvisioningRequest_activate_subscriptions: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation InputActivateProvisioningRequest_activate: required: - activation-state - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription imei: type: string description: IMEI is mandatory for VZW non SKU and APEX activation $$ref: '#/components/schemas/InputActivateProvisioningRequest_activate_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. activation-state: type: string enum: - active - test - ready activation-profile-id: type: string sku: type: string description: SKU is mandatory for VZW SKU activation service-type-info: properties: aus-ipnd-info: type: object description: IPND information is mandatory for KORE TELS2 Activation properties: title: type: string first-name: type: string last-name: type: string address: type: string description: activate a sim example: null InputDeactivateProvisioningRequest_deactivate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. description: deactivate a sim example: null PlanChangeProvisioningRequest_planfeaturechange: required: - activation-profile-id - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request activation-profile-id: type: string mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null ReactivateProvisioningRequest_reactivate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. example: null TerminateProvisioningRequest_terminate: required: - subscriptions type: object properties: subscriptions: type: array items: properties: subscription-id: type: string description: The subscription-id of the SIM iccid: type: string description: The ICCID of the subscription $$ref: '#/components/schemas/InputSuspendProvisioningRequest_suspend_subscriptions' description: Either __'subscription-id'__ or __'iccid'__ is required in the request mail-to: type: string description: Optional field that provides email notifications of all status changes for this request. To send to multiple addresses (20 maximum), add a comma (,) between each email address. force-enabled-esim-profile-termination: type: boolean description: Force termination when eSIM subscription is enabled (on an EID with many ICCIDs) example: false example: null CreateRequest_data: type: object properties: provisioning-request-id: type: string message: type: string example: null DiagnosticCreateRequest_data: type: object properties: diagnostics-request-id: type: string message: type: string example: null RequestStatus_requesttype_subscriptions: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string error-message: type: string example: null DiagnosticsRequestStatus_requesttype_subscriptions: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string example: null RequestStatus_requesttype: type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string error-message: type: string example: null $$ref: '#/components/schemas/RequestStatus_requesttype_subscriptions' status: type: string description: ' submitted -- Request is submitted via api and got the acknowledgement back, failed -- Request creation failed, pending -- Request is created, completed -- Request is completed ' enum: - submitted - failed - pending - completed provisioning-request-id: type: string date-completed: type: string description: YYY:MM:DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' service-type: type: string number-of-subscriptions: type: integer date-created: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' request-type: type: string provisioned-by: type: string account-id: type: string activation-profile-id: type: string description: __Allowed:__ Activation | StateChange | Deactivation | Reactivation | PlanChange | ProfileChange example: null DiagnosticsRequestStatus_requesttype: type: object properties: subscriptions: type: array items: type: object properties: subscription-id: type: string iccid: type: string description: The ICCID of the subscription completion-status: type: string example: null $$ref: '#/components/schemas/DiagnosticsRequestStatus_requesttype_subscriptions' status: type: string description: ' submitted -- Request is submitted via api and got the acknowledgement back, failed -- Request creation failed, pending -- Request is created, completed -- Request is completed ' enum: - submitted - failed - pending - completed diagnostics-request-id: type: string number-of-subscriptions: type: integer service-type: type: string date-created: type: string description: YYYY-MM-DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' request-type: type: string date-completed: type: string description: YYY:MM:DD:HH:MM:SS format: dateTime example: '2022-10-24T00:00:00' source: type: string requested-by: type: string account-id: type: string error-message: type: string description: __Allowed:__ CancelDeviceLocation example: null Subscriptions_pageinforesult: type: object properties: total-count: type: integer page-index: type: integer max-page-item: type: integer example: null SubscriptionDetails_msisdns: type: object properties: msisdn: type: string description: The phone number attached to the subscription example: null SubscriptionDetails_lastactiveprofile: type: object properties: profile-id: type: integer start-datetime-utc: type: string SubscriptionDetails_lastactiveimsimsisdn: type: object properties: msisdn: type: string imsi: type: string start-datetime-utc: type: string SubscriptionDetails_lasteffectivedateofstates: type: object properties: state: type: string start-date-time-utc: type: string example: null SubscriptionDetails_states: type: object properties: state: type: string enum: - Stock - Active - Suspend - Suspend With Charge - Deactivated - Pending Scrap - Scrapped - Barred state-id: type: string start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null SubscriptionDetails_profiles: type: object properties: profile-id: type: string description: The unique identifier of the feature-plan combination $$ref: '#/components/schemas/profile-id' start-datetime-utc: type: string format: date end-datetime-utc: type: string format: date is-current: type: boolean example: null SubscriptionDetails_apndata: type: object properties: ip-address: type: string description: The address of the subscription apn-id: type: string example: null SubscriptionDetails_additionalfields: type: object properties: key: type: string value: type: string example: null UpdateSubscription_subscriptionrequest_additionalfields: type: object properties: key: type: string value: type: string example: null UpdateSubscription_subscriptionrequest_subscriptions: required: - subscription-id type: object properties: subscription-id: type: string additional-fields: type: array items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest_additionalfields' example: null UpdateConnectedHardware_subscriptionrequest_subscriptions: required: - subscription-id type: object properties: subscription-id: type: string connected-hardware: type: object properties: imei: type: string serial-number: type: string model-number: type: string example: null UpdateSubscription_subscriptionrequest: required: - subscriptions type: object properties: subscriptions: type: array items: required: - subscription-id type: object properties: subscription-id: type: string additional-fields: type: array items: type: object properties: key: type: string value: type: string example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest_additionalfields' example: null $$ref: '#/components/schemas/UpdateSubscription_subscriptionrequest_subscriptions' example: null UpdateConnectedHardware_subscriptionrequest: required: - subscriptions type: object properties: subscriptions: type: array items: required: - subscription-id type: object properties: subscription-id: type: string connected-hardware: type: object properties: imei: type: string serial-number: type: string model-number: type: string example: null $$ref: '#/components/schemas/UpdateConnectedHardware_subscriptionrequest_subscriptions' example: null UpdateSubscriptionSIM_subscriptionrequest_subscriptions: required: - destination-account-id - subscription-id type: object properties: subscription-id: type: string destination-account-id: type: string example: null UpdateSubscriptionSIM_subscriptionrequest: required: - subscriptions type: object properties: subscriptions: type: array items: required: - destination-account-id - subscription-id type: object properties: subscription-id: type: string destination-account-id: type: string example: null $$ref: '#/components/schemas/UpdateSubscriptionSIM_subscriptionrequest_subscriptions' example: null subscription_Error_error: type: object properties: code: type: integer message: type: string status: type: string example: null SubscriptionRequest_subscriptionrequest_subscriptionrequesterror: type: object properties: error-type: type: string error-code: type: string error-message: type: string example: null SubscriptionRequest_subscriptionrequest: type: object properties: subscription-id: type: string subscription-request-type: type: string subscription-request-status: type: string enum: - Accepted (Sync) - Rejected ( Sync ) - In-Progress - Failed - Completed source: type: string total-subscriptions: type: number subscriptions: type: array items: type: object properties: subscription-request-id: type: string status: type: string error: type: string subscription-identifier: type: string subscription-identifier-value: type: string property-type: type: string subscription-request-error: type: array items: type: object properties: error-type: type: string error-code: type: string error-message: type: string example: null $$ref: '#/components/schemas/SubscriptionRequest_subscriptionrequest_subscriptionrequesterror' description: 1 - Failed and Rejected will have subscription-request-error object included in the response 2 - For validation failure, service will rollback everything, and error will be provided.--- Sample Error Message (10 Iccids failed validation will be provided)--- If 10 of 1000 failed, service will rollback everything 3 - For internal exceptions, will rollback/commit per batch (1000 iccids) example: null Profiles_features: type: object properties: feature-id: type: string description: The unique identifier of your feature $$ref: '#/components/schemas/feature-id' feature-name: type: string description: The name of the feature $$ref: '#/components/schemas/feature-name' example: null Profiles_plans: type: object properties: plan-id: type: string description: The unique identifier of your plan $$ref: '#/components/schemas/plan-id' plan-name: type: string description: The name of the plan $$ref: '#/components/schemas/plan-name' plan-type: type: string usage-type: type: string description: Defines the usage type enum: - DATA - SMS - VOICE $$ref: '#/components/schemas/usage-type' example: null Accounts_account: type: object properties: account-id: type: string account-number: type: integer account-name: type: string example: null ActivationProfile_inner: type: object properties: activation-profile-id: type: string activation-profile-name: type: string description: The name of the activation profile created-date: type: string created-by: type: string ActivationProfileDetails_planids: type: object properties: plan-id: type: string example: null ActivationProfileDetails_featureids: type: object properties: feature-id: type: string example: null CostCenter_inner: type: object properties: cost-center-id: type: string description: A unique identifier assigned to a specific cost center within an organization. cost-center-name: type: string description: A descriptive label or title given to a cost center. cost-center-pk: type: string description: A standardized identifier that provides a unique and permanent reference to a cost center. Events_inner: type: object properties: event-id: type: string event-name: type: string event-description: type: string category: type: string event-attributes: type: array items: type: object properties: name: type: string description: type: string type: type: string actions: type: array items: type: string default-frequency: type: string frequency-attribute: type: string frequencies: type: array items: type: string Rules_conditions: type: object properties: attribute-name: type: string condition-operator: type: string attribute-value: type: string example: null Rules_actions_webhook: type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null Rules_actions_email: type: object properties: to: type: string cc: type: string bcc: type: string example: null Rules_actions_blockusage: type: object properties: period: type: string example: null Rules_actions: type: object properties: webhook: type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/Rules_actions_webhook' email: type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/Rules_actions_email' block-usage: type: object properties: period: type: string example: null $$ref: '#/components/schemas/Rules_actions_blockusage' example: null Rules_alertstrategy_batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null Rules_alertstrategy: type: object properties: batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null $$ref: '#/components/schemas/Rules_alertstrategy_batching' description: Optional:Define a batching strategy for the alerts you receive example: null Rules_rules: type: object properties: rule-id: type: string rule-name: type: string event-name: type: string enabled: type: boolean date-added: type: string format: dateTime date-updated: type: string format: dateTime conditions: type: array items: type: object properties: attribute-name: type: string condition-operator: type: string attribute-value: type: string example: null $$ref: '#/components/schemas/Rules_conditions' actions: type: object properties: webhook: type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/Rules_actions_webhook' email: type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/Rules_actions_email' block-usage: type: object properties: period: type: string example: null $$ref: '#/components/schemas/Rules_actions_blockusage' example: null $$ref: '#/components/schemas/Rules_actions' alert-strategy: type: object properties: batching: type: object properties: type: type: string description: When hourly is specified, the alerts will be batched and sent every hour. When daily is specified, the alerts will be batched & sent at times specified for the value "times". enum: - daily - hourly times: type: array description: This is used to specify an array of times, in a 24-hour format, to send alerts with a max number of 10 times. This value is only needed only if the type value is "daily". If the type specified is hourly, this ‘time’ value is ignored. items: type: string format: hh:mm:ss example: null $$ref: '#/components/schemas/Rules_alertstrategy_batching' description: Optional:Define a batching strategy for the alerts you receive example: null $$ref: '#/components/schemas/Rules_alertstrategy' example: null InputRule_conditions: type: object properties: attribute-name: type: string condition-operator: type: string description: Possible Operator values are (==, !=, <, <=, >, >=, in, not in). attribute-value: type: string example: null InputRule_actions_webhook: required: - webhook-url type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null InputRule_actions_email: required: - to type: object properties: to: type: string cc: type: string bcc: type: string example: null InputRule_actions_blockusage: required: - period type: object properties: period: type: string example: null InputRule_actions: type: object properties: webhook: required: - webhook-url type: object properties: webhook-url: type: string access-token: type: string access-token-key: type: string example: null $$ref: '#/components/schemas/InputRule_actions_webhook' email: required: - to type: object properties: to: type: string cc: type: string bcc: type: string example: null $$ref: '#/components/schemas/InputRule_actions_email' block-usage: required: - period type: object properties: period: type: string example: null $$ref: '#/components/schemas/InputRule_actions_blockusage' example: null Actions_inner: type: object properties: name: type: string description: type: string attributes: type: array items: type: object properties: name: type: string description: type: string type: type: string 200FindsSwitchRequestByeSIMProfileSwitchRequestID0: type: object properties: esim-profile-switch-request-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the switch request activation-profile-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the activation profile switch-request-type: type: string enum: - SwitchProfile - DownloadProfile - EnableProfile - DeleteProfile description: The type of eSim operation requested switch-request-date: type: string example: '2022-11-16T07:43:02.428Z' description: Date of switch request creation switch-request-status: type: string example: Completed description: 'Current status of the switch request ' total-switch-processing: type: integer description: eSIM switches in progress total-switch-failed: type: integer description: eSIMs that failed to switch total-switch-completed: type: integer description: 'Switches completed ' total-switch-pending-network-connection: type: integer description: 'eSIMs in the request waiting for the device to come online ' total-switch-requested: type: integer description: eSIMs in the request eids: type: array items: type: object properties: eid: type: string example: '000000000000000000000000000' description: Unique identifier of the eSIM new-subscription-id: type: string example: cmp-k1-subscription-0000000000 description: Unique identifier of the subscription that has been allocated to the eSIM as part of switching old-subscription-id: type: string example: cmp-k1-subscription-0000000000 description: Unique identifier of the subscription that has previously been active on the eSIM switch-status: type: string example: Completed description: Switch status of the eSIM switch-error-message: type: string example: Error Message description: Reason for switch failure of the eSIM 400FindsSwitchRequestByeSIMProfileSwitchRequestID0: type: object properties: error-message: type: string description: Reason for failure example: error status: type: string description: Status of the response example: No records found / Invalid input CreateASwitchRequest0: type: object properties: activation-profile-id: type: string example: cmp-pp-ap-000000 description: Unique identifier of the activation profile exclude-deactivation: type: boolean example: false description: This can be set as true to keep the old subscription active skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times suspend-old-subscription: type: boolean example: false description: This can be set as true to suspend the old subscription if the suspend state is eligible sku: type: string description: The Stock Keeping Unit (SKU) number of a device type with an embedded SIM which is required for switching to VZW profile if IMEI is not provided example: VZW00000000 subscriptions: type: array items: type: object properties: eid: type: string example: '0000000000000000000000000' description: Unique identifier of the eSIM imei: type: string example: '12121212121212' description: IMEI is a 14 - 16 digit identifier of the device which is required for switching to VZW profile required: - eid description: Devices to be switched service-type-info: type: object properties: aus-ipnd-info: type: object properties: address: type: string description: Address of the user example: uniqueStr title: type: string description: Title of the user (Mr/Mrs/Ms) example: Mr/Mrs/Ms first-name: type: string description: First Name of the user example: uniqueStr last-name: type: string description: Last Name of the user example: uniqueStr description: IPND information is mandatory for activating a KORE TELS2 subscription description: Carrier specific information required for activating a subscription required: - activation-profile-id - subscriptions 200CreateASwitchRequest0: type: object properties: status: type: string example: success description: Status of request submission data: type: object properties: esim-profile-switch-request-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the request created message: type: string example: Your request has been acknowledged description: Acknowledgement message 400CreateASwitchRequest0: type: object properties: status: type: string example: error description: Status of request submission error-message: type: string example: Invalid eIds / Imei description: Reason for request failure validation-error: type: array items: type: object properties: eid: type: string example: '00000000000000000000000000000' description: Unique identifier of the rejected eSIM error-message: type: string example: Cannot be switched to the requested profile description: Reason for the rejection of the EID 200ListsAllSwitchRequests0: type: object properties: total-pages: type: integer description: Total number of pages page: type: integer description: Page number total-records: type: integer description: Total number of records records: type: array items: type: object properties: switch-request-type: type: string enum: - SwitchProfile - DownloadProfile - EnableProfile - DeleteProfile description: The type of eSim operation requested switch-request-date: type: string example: '2022-11-16T07:43:02.428Z' format: dateTime description: Date of switch request creation switch-request-status: type: string example: Pending description: Current status of switch request total-switch-processing: type: integer description: eSIM switches in progress total-switch-failed: type: integer description: eSIMs that failed to switch esim-profile-switch-request-id: type: string example: cmp-cpro-request-00000 description: Unique identifier of the switch request total-switch-completed: type: integer example: '2022-11-17T13:12:39.469Z' description: Switches completed total-switch-pending-network-connection: type: integer description: eSIMs in the request waiting for the device to come online total-switch-requested: type: integer description: eSIMs in this request activation-profile-id: type: string example: cmp-prov-ap-000000 description: Unique identifier of the activation profile 400ListsAllSwitchRequests0: type: object properties: status: type: string description: Status of the response example: error error-message: type: string description: Reason for request failure example: No records found / Invalid input RetrySwitchRequest0: type: object properties: esim-profile-switch-request-id: type: string description: Unique identifier of the switch request example: cmp-cpro-request-0000000 eids: type: array items: type: string example: '235543656577454322' description: The array of unique identifiers of the eSIM skip-session-check: type: boolean description: Used to skip in-session check for an eSIM default: 'false' required: - esim-profile-switch-request-id - eids - skip-session-check 200RetrySwitchRequest0: type: object properties: status: type: string description: Response status example: success data: type: object properties: message: type: string description: Acknowledgement message example: Request requeued successfully! retry-response: type: object properties: accepted-eids: type: array items: type: string example: '235543656577454322' description: EIDs accepted for retry rejected-eids: type: array items: type: string example: '235543656577454322' description: EIDs rejected for retry description: Details of EIDs description: Response data 400RetrySwitchRequest0: type: object properties: status: type: string description: Response status example: error data: type: object properties: message: type: string description: Error message example: Request cannot be requeued! retry-response: type: object properties: rejected-eids: type: array items: type: string example: '235543656577454322' description: EIDs rejected for retry description: Details of EIDs description: Response data 200GetSessionDetails0: type: array items: type: object properties: subscription-urn: type: string description: 'Subscription URN of the device ' session-data: type: object properties: sessions: type: array items: type: object properties: stop-time: type: string description: Session Stop Time start-time: type: string description: Session Start Time apn: type: string description: APN session-id: type: string description: Session ID description: List of sessions sort: type: array items: type: string description: Denotes the sorting order of the results (Ascending or Descending) page: type: object properties: size: type: integer description: The result is paginated, the value denotes the page size number: type: integer description: The result is paginated, the value denotes the page number description: Response Data pagination details description: Session Details iccid: type: string description: 'ICCID of the device ' msisdn: type: string description: MSISDN of the device session-count: type: integer description: Number of sessions within the given time period ( default 7 days) 400GetSessionDetails0: type: object properties: messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp 404GetSessionDetails0: type: object properties: messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp 500GetSessionDetails0: type: object properties: path: type: string description: API endpoint messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp status: type: integer description: HTTP response status code 200GetSessionStatus0: type: array items: type: object properties: subscription-id: type: string description: 'subscription-id of the device ' msisdn: type: string description: msisdn of the device iccid: type: string description: 'iccid of the device ' in-session: type: boolean description: Current Session status of the device last-updated-time: type: string description: Timestamp of the most recent Session recorded 400GetSessionStatus0: type: object properties: path: type: string description: API endpoint messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp status: type: integer description: HTTP response status code 404GetSessionStatus0: type: object properties: path: type: string description: API endpoint messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp status: type: integer description: HTTP response status code 500GetSessionStatus0: type: object properties: path: type: string description: API endpoint messages: type: array items: type: string description: Error Messages error: type: string description: HTTP Reason-Phrase timestamp: type: string format: date-time description: Response Timestamp status: type: integer description: HTTP response status code CreateADownloadProfileRequest0: type: object properties: download: type: object properties: activation-profile-id: type: string description: The unique identifier of the activation profile example: cmp-prov-ap-11111 skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times sku: type: string description: The Stock Keeping Unit (SKU) number of a device type with an embedded SIM which is required for switching to VZW profile if IMEI is not provided example: VZW00000000 subscriptions: type: array items: type: object properties: eid: type: string description: The unique identifier of the eSIM example: uniqueStr imei: type: string description: IMEI is a 14 - 16 digit identifier of the device which is required for activating a KORE VZW subscription example: '111111111111111' required: - eid description: ' ' service-type-info: type: object properties: aus-ipnd-info: type: object properties: address: type: string description: Address of the user example: uniqueStr title: type: string description: Title of the user (Mr/Mrs/Ms) example: Mr/Mrs/Ms first-name: type: string description: First Name of the user example: uniqueStr last-name: type: string description: Last Name of the user example: uniqueStr description: IPND information is mandatory for activating a KORE TELS2 subscription description: Carrier specific information required for activating a subscription required: - activation-profile-id - subscriptions description: Download profile request required: - download 200CreateADownloadProfileRequest0: type: object properties: data: type: object properties: request-id: type: string description: The unique identifier of the request created example: cmp-cpro-request-11111 message: type: string description: Acknowledgement message example: Your request has been acknowledged description: Response object status: type: string description: The status of request submission example: success 400CreateADownloadProfileRequest0: type: object properties: error-message: type: string description: Reason for request failure example: Invalid EIDs validation-error: type: array items: type: object properties: error-message: type: string description: Reason for the rejection of the EID example: uniqueStr eid: type: string description: The unique identifier of the rejected eSIM example: uniqueStr description: Error response object status: type: string description: The status of request submission example: error CreateAnEnableProfileRequest0: type: object properties: enable: type: object properties: subscriptions: type: array items: type: object properties: eid: type: string description: The unique identifier of the eSIM example: '000000000000000000000' iccid: type: string description: Unique identifier of the profile to be enabled example: '0000000000000000' required: - eid - iccid description: ' ' skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times required: - subscriptions description: Enable profile request required: - enable 200CreateAnEnableProfileRequest0: type: object properties: data: type: object properties: request-id: type: string description: The unique identifier of the request created example: cmp-cpro-request-11111 message: type: string description: Acknowledgement message example: Your request has been acknowledged description: Response object status: type: string description: The status of request submission example: success 400CreateAnEnableProfileRequest0: type: object properties: error-message: type: string description: Reason for request failure example: Invalid EIDs validation-error: type: array items: type: object properties: error-message: type: string description: Reason for the rejection of the EID example: EID not found eid: type: string description: The unique identifier of the rejected eSIM example: '000000000000000000000' description: Error response object status: type: string description: The status of request submission example: error CreateADeleteProfileRequest0: type: object properties: delete: type: object properties: subscriptions: type: array items: type: object properties: eid: type: string description: The unique identifier of the eSIM example: '0000000000000000000000000' iccid: type: string description: The unique identifier of the profile to be deleted example: '0000000000000000' required: - eid - iccid description: ' ' skip-session-check: type: boolean example: false description: Used to skip the initial in-session check for an eSIM disable-autoretry: type: boolean example: false description: Disables retry of RSP steps based on in-session event when set to true, when set to false the RSP step will be retried max 5 times required: - subscriptions description: Delete profile request required: - delete 200CreateADeleteProfileRequest0: type: object properties: data: type: object properties: request-id: type: string description: The unique identifier of the request created example: cmp-cpro-request-11111 message: type: string description: Acknowledgement message example: Your request has been acknowledged description: Response object status: type: string description: The status of request submission example: success 400CreateADeleteProfileRequest0: type: object properties: error-message: type: string description: Reason for request failure example: Invalid EIDs validation-error: type: array items: type: object properties: error-message: type: string description: Reason for the rejection of the EID example: EID not found eid: type: string description: The unique identifier of the rejected eSIM example: '0000000000000000' description: Error response object status: type: string description: The status of request submission example: error CancelSwitchRequest0: type: object properties: request-id: type: string description: Unique identifier of the request example: cmp-cpro-request-0000000 eids: type: array items: type: string description: Array of unique identifiers of the eSIM cancel-autoretry: type: boolean example: false description: Cancel any pending autoretry of RSP steps for the eSIM. Does not cancel the request required: - request-id 200CancelSwitchRequest0: type: object properties: data: type: object properties: message: type: string description: Acknowledgement message example: Request cancelled successfully! cancel-response: type: object properties: accepted-eids: type: array items: type: string description: EIDs accepted for cancel rejected-eids: type: array items: type: string description: EIDs rejected for cancel description: Details of EIDs description: Response data status: type: string description: Response status example: success 400CancelSwitchRequest0: type: object properties: data: type: object properties: message: type: string description: Error message example: Request is not eligible for cancellation cancel-response: type: object properties: accepted-eids: type: array items: type: string description: EIDs accepted for cancel rejected-eids: type: array items: type: string description: EIDs rejected for cancel description: Details of EIDs description: Response data status: type: string description: Response status example: error 200GeteSIMprofilestatus0: type: object properties: subscriptions: type: array items: type: object properties: iccid: type: string description: The ICCID of the subscription product-offer: type: string description: Combination of plans, features and sim format types state: type: string description: 'The state of the subscription. Allowed: Stock|Active|Suspend|Suspend With. Charge|Deactivated|Pending Scrap|Scrapped|Barred' profile-status: type: string description: 'Status of the eSIM profile in RSP. Allowed: ENABLED|DISABLED|CREATED' subscription-id: type: string description: Unique identifier of the subscription is-fallback: type: boolean description: True if this is the fallback profile description: List of eSIM profiles associated with the EID 400GeteSIMprofilestatus0: type: object properties: error-message: type: string description: Reason for request failure status: type: string description: ' Status of the response' 401GeteSIMprofilestatus0: type: object properties: code: type: string message: type: string 403GeteSIMprofilestatus0: type: object properties: code: type: string message: type: string 404GeteSIMprofilestatus0: type: object properties: code: type: string message: type: string 500GeteSIMprofilestatus0: type: object properties: code: type: string message: type: string securitySchemes: api_key: type: apiKey name: x-api-key in: header Auth: type: oauth2 description: token expiry is given in seconds flows: clientCredentials: tokenUrl: https://api.korewireless.com/Api/api/token scopes: {}