You can submit exactly one SIM per request.
Enable Profile
Switches the active eSIM profile on a SIM360 EID to the ICCID provided. One SIM per request.
Auth Scope
urn:grt:gemmContent-Type
application/jsonBase URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1Uses and Requirements
Mobility sends an asynchronous SubscriberService callback for the SIM in the request when the profile switch succeeds or fails.
Note
HTTP Status Codes
| Status | When |
|---|---|
200 | The request was accepted. The response contains a transactionID; the profile switch is processed later and its result is sent in a SubscriberService callback. |
400 | The request failed validation: sims is missing, empty or has more than one SIM, the ICCID or EID is missing or has the wrong format, the ICCID is not found or is deactivated, the SIM is not a Granite SIM360 SIM, the EID does not match the EID on record for the ICCID, the macnum header is missing or malformed, or the body is not valid JSON. |
401 | The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header. |
403 | The Enable Profile feature is not enabled for your user, your token does not have a role allowed to call this endpoint, the SIM belongs to an account you do not have access to, or the SIM's account is not under the account in the macnum header. |
429 | Too many requests were sent in a short period. Wait briefly and retry. |
500 | An unexpected server error occurred. |
503 | The system is under scheduled maintenance. Retry after the maintenance window. |
504 | A dependent service did not respond in time. Retry the request. |
Available For
- SIM360
Headers
| Header | Value |
|---|---|
Authorization | Bearer access-token |
Content-Type | application/json |
macnum | Macnum of the top level account for your organization. |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sims | array of simInfo objects | Yes | NOTE: You can submit one SIM per request, specified by simInfo objects. |
simInfo | object | Yes | SIM information. |
iccid | string | Yes | 19-20 digits. |
eid | string | Yes | 32 digits. |
Request Examples
Responses
Immediate Success Response (200 OK)
Response Fields
| Parameter | Type | Description |
|---|---|---|
transactionID | string | A unique string that associates the request with the results that are sent via a callback service. Mobility sends a separate callback for each SIM that matched the request criteria, indicating whether the operation succeeded for that SIM and containing any requested information. All callbacks have the same transactionID. |
Callback Success Response
Response Fields
| Parameter | Type | Description |
|---|---|---|
requestType | string | Name of the requested action. For Enable Profile, the value is EnableProfile. |
transactionID | string | A unique string that associates the request with the results that are sent via a callback service. Mobility sends a separate callback for each SIM that matched the request criteria, indicating whether the operation succeeded for that SIM and containing any requested information. All callbacks have the same transactionID. |
simInfo | object | SIM information. |
simCarrier | string | Carrier of the profile that was enabled, for example TMOBILE, ATT or Verizon Wireless. |
eid | string | 32 digits. |
iccid | string | 19-20 digits. |
msisdn | string | 10 digits. |
result | object | Result status object. |
status | string | Result status: success or failure. |
message | string | Result message. |
errors | array of error objects | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error message. |
callbackCount | integer | The number of times this callback message has been sent. |
maxCallbackThreshold | integer | The maximum number of times this callback message will be sent if it is not correctly acknowledged. |
Failure Responses
For a complete list of errors, see Enable Profile - Sync Error Messages and Enable Profile - Async Error Messages.
Immediate Error Message
Error Response Fields
| Parameter | Type | Description |
|---|---|---|
result | object | Result status object. |
status | string | Result status: success or failure. |
errors | array of error objects | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error message. |
Example Async Error Message
Error Response Fields
| Parameter | Type | Description |
|---|---|---|
requestType | string | Name of the requested action. For Enable Profile, the value is EnableProfile. |
simInfo | object | SIM information. |
eid | string | 32 digits. |
iccid | string | 19-20 digits. |
callbackCount | integer | The number of times this callback message has been sent. |
maxCallbackThreshold | integer | The maximum number of times this callback message will be sent if it is not correctly acknowledged. |
transactionID | string | A unique string that associates the request with the results that are sent via a callback service. |
result | object | Result status object. |
status | string | Result status: success or failure. |
errors | array of error objects | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error message. |
Code Examples
Related Links
Last updated on