Skip to Content
GEMMMulti-Carrier & eSIM ProfilesEnable ProfileEnable Profile

Enable Profile

POSTsubscriber-management/actions/sim360/profile/enableMulti-Carrier & eSIM ProfilesOpenAPI

Switches the active eSIM profile on a SIM360 EID to the ICCID provided. One SIM per request.

Auth Scope
urn:grt:gemm
Content-Type
application/json
Base URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1

Uses and Requirements

Mobility sends an asynchronous SubscriberService callback for the SIM in the request when the profile switch succeeds or fails.

Note

You can submit exactly one SIM per request.

HTTP Status Codes

StatusWhen
200The request was accepted. The response contains a transactionID; the profile switch is processed later and its result is sent in a SubscriberService callback.
400The 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.
401The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header.
403The 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.
429Too many requests were sent in a short period. Wait briefly and retry.
500An unexpected server error occurred.
503The system is under scheduled maintenance. Retry after the maintenance window.
504A dependent service did not respond in time. Retry the request.

Available For

  • SIM360

Headers

HeaderValue
AuthorizationBearer access-token
Content-Typeapplication/json
macnumMacnum of the top level account for your organization.

Request Body Parameters

ParameterTypeRequiredDescription
simsarray of simInfo objectsYesNOTE: You can submit one SIM per request, specified by simInfo objects.
simInfoobjectYesSIM information.
iccidstringYes19-20 digits.
eidstringYes32 digits.

Request Examples

Responses

Immediate Success Response (200 OK)

Response Fields

ParameterTypeDescription
transactionIDstringA 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

ParameterTypeDescription
requestTypestringName of the requested action. For Enable Profile, the value is EnableProfile.
transactionIDstringA 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.
simInfoobjectSIM information.
simCarrierstringCarrier of the profile that was enabled, for example TMOBILE, ATT or Verizon Wireless.
eidstring32 digits.
iccidstring19-20 digits.
msisdnstring10 digits.
resultobjectResult status object.
statusstringResult status: success or failure.
messagestringResult message.
errorsarray of error objectsList of errors.
errorCodestringError code.
errorMessagestringError message.
callbackCountintegerThe number of times this callback message has been sent.
maxCallbackThresholdintegerThe 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

ParameterTypeDescription
resultobjectResult status object.
statusstringResult status: success or failure.
errorsarray of error objectsList of errors.
errorCodestringError code.
errorMessagestringError message.

Example Async Error Message

Error Response Fields

ParameterTypeDescription
requestTypestringName of the requested action. For Enable Profile, the value is EnableProfile.
simInfoobjectSIM information.
eidstring32 digits.
iccidstring19-20 digits.
callbackCountintegerThe number of times this callback message has been sent.
maxCallbackThresholdintegerThe maximum number of times this callback message will be sent if it is not correctly acknowledged.
transactionIDstringA unique string that associates the request with the results that are sent via a callback service.
resultobjectResult status object.
statusstringResult status: success or failure.
errorsarray of error objectsList of errors.
errorCodestringError code.
errorMessagestringError message.

Code Examples

Last updated on