Thales Adaptive Connect Documentation Portal

Cancel Order API

The Cancel Order API is used to cancel one or more existing orders associated with a given EID. This API supports cancellation based on either a Group ID or an IoT Correlation ID. This API enables clients to cancel: A specific order identified by an IoT correlation ID, or A group of related orders identified by a group ID.

The Cancel Order is supported for SGP.22 and SGP.32 orders.
Http request
PATCH /order-scheduler/core/v1/euiccs/{eid}?iotCorrelationId={iotCorrelationId}&groupId={groupId}&forceCancel={forceCancel}

The URI path must include the eid of the eUICC for which you want to cancel the order.

Table 1. Path Parameters
Parameter Name Data Type Presence Description

eid

String

M

Unique identifier of the eUICC to provision orders.

The URI query param must include the iotCorrelationId or groupId of the order for which you want cancel.

Table 2. Query Parameters
Parameter Name Data Type Presence Description

iotCorrelationId

String

O

Unique identifier of the order request.
If you want to cancel a specific order, you must provide the iotCorrelationId.

groupId

String

O

The unique UUID string of the group registered.
If you want to cancel all orders or a group of orders, you must provide the groupId.

forceCancel

Boolean

O

To cancel In Progress order you have force cancel order option.
If you want to cancel an order regardless of whether it is in In Progress or Pending state, you must provide forceCancel along with either iotCorrelationId or groupId.

At least one of iotCorrelationId or groupId must be provided.
If both iotCorrelationId and groupId are missing, the request will be considered invalid and rejected.

The request header content-type must be set to JSON.

Table 3. Header Parameters
Parameter Name Data Type Presence Description

Content-Type

String

M

Must be application/json

Table 4. HTTP Success Response
Code Description

200

All Clear

Example For Cancel Order Request Info by groupId & iotCorrectionId & forceCancel
https://tac-api.minikube:30030/order-scheduler/core/v1/euiccs/89033023425120002299999999999976?iotCorrelationId=95c8f230-96fe-11f1-a0a6-65c6cbc1de83&groupId=9982f450-96fb-11f1-a0a6-65c6cbc1de87&forceCancel=true
Table 5. HTTP Error Response
Code Description

400

At least One of query parameters - groupId or iot_correlationId should be present

404

Order info not found for the given groupId/iotCorrelationId

406

Chart under execution, cannot be cancelled

500

Internal server error

Example For Cancel Order Request Info by groupId & iotCorrectionId & forceCancel Error case - groupId not found
{
    "code": 1019010,  (1)
    "message": "Order info not found for the given groupId",  (2)
    "details": [
        {
            "message": "Order info not found for the given groupId 9982f450-96fb-11f1-a0a6-65c6cbc1de87 and eid : 89033023425120002299999999999976"
        }
    ]
}
1 error code
2 error message