You can submit exactly one SIM per request.
Cancel Order
Cancels a pending SIM360 Enable Profile order before the profile switch completes. One SIM per request.
Auth Scope
urn:grt:gemmContent-Type
application/jsonBase URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1Uses and Requirements
Use this API to cancel an Enable Profile request that is still pending. Identify the order by the transactionID returned in the response to the original Enable Profile request and the ICCID it was switching to.
- The API is synchronous. The response tells you whether the cancellation succeeded. No SubscriberService callback is sent for Cancel Order.
- After a successful cancel, the original Enable Profile request is closed as cancelled. No further Enable Profile callback is sent for the original transactionID.
- An order can be cancelled only while it is still in progress on the eSIM platform. If the profile switch has already completed, failed or been cancelled, or the eSIM platform’s order status check answers with an error, the request is rejected with
409. - Only Granite SIM360 SIMs are supported.
- The CancelOrder feature must be enabled for the calling user.
Note
HTTP Status Codes
| Status | When |
|---|---|
200 | The order was cancelled on the eSIM platform. The response contains a new transactionID and the result message. No callback is sent. |
400 | The request failed validation: transactionID is missing or not a valid GUID, sims is empty or has more than one SIM, the ICCID is missing or has the wrong format, the ICCID is not found or is deactivated, the SIM is not a Granite SIM360 SIM, 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 Cancel Order 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. |
404 | No pending Enable Profile order matches the transactionID and ICCID, or the eSIM platform does not recognise the order. |
409 | The order is no longer in a cancellable state on the eSIM platform (it has completed, failed or been cancelled), or the platform could not confirm that it is still in progress. |
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. The SIM must belong to this account or one of its sub-accounts. |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transactionID | string (GUID) | Yes | The transactionID returned by the original Enable Profile request. Must be a valid GUID of up to 36 characters. |
sims | array of simInfo objects | Yes | NOTE: Exactly one SIM per request. |
simInfo | object | Yes | SIM information. |
iccid | string | Yes | The ICCID sent in the original Enable Profile request (the profile that was being enabled). Numeric, 19-20 digits. F is allowed as the 20th character. |
Info
An EID is not needed. The EID is resolved from the pending Enable Profile order.
Request Examples
Responses
Success Response (200 OK)
Response Fields
| Parameter | Type | Description |
|---|---|---|
transactionID | string | A new transactionID that identifies this cancel request. It is different from the Enable Profile transactionID that was sent in the request. |
result | object | Result status object. |
status | string | success or failure. |
message | string | On success, the message returned by the eSIM platform, or Cancel order completed successfully. if it returns none. |
Failure Responses
For a complete list of errors, see Cancel Order - Sync Error Messages.
Immediate Error Message
Error Response Fields
| Parameter | Type | Description |
|---|---|---|
result | object | Result status object. |
status | string | success or failure. |
errors | array of error objects | List of errors. Returned on failure only. |
errorCode | string | Error code. |
errorMessage | string | Error message. |
Code Examples
Related Links
Last updated on