Skip to Content
GEMMMulti-Carrier & eSIM ProfilesCancel OrderCancel Order

Cancel Order

POSTsubscriber-management/actions/sim360/order/cancelMulti-Carrier & eSIM ProfilesOpenAPI

Cancels a pending SIM360 Enable Profile order before the profile switch completes. 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

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

You can submit exactly one SIM per request.

HTTP Status Codes

StatusWhen
200The order was cancelled on the eSIM platform. The response contains a new transactionID and the result message. No callback is sent.
400The 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.
401The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header.
403The 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.
404No pending Enable Profile order matches the transactionID and ICCID, or the eSIM platform does not recognise the order.
409The 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.
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. The SIM must belong to this account or one of its sub-accounts.

Request Body Parameters

ParameterTypeRequiredDescription
transactionIDstring (GUID)YesThe transactionID returned by the original Enable Profile request. Must be a valid GUID of up to 36 characters.
simsarray of simInfo objectsYesNOTE: Exactly one SIM per request.
simInfoobjectYesSIM information.
iccidstringYesThe 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

ParameterTypeDescription
transactionIDstringA new transactionID that identifies this cancel request. It is different from the Enable Profile transactionID that was sent in the request.
resultobjectResult status object.
statusstringsuccess or failure.
messagestringOn 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

ParameterTypeDescription
resultobjectResult status object.
statusstringsuccess or failure.
errorsarray of error objectsList of errors. Returned on failure only.
errorCodestringError code.
errorMessagestringError message.

Code Examples

Last updated on