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. |
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.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
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.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
O |
Unique identifier of the order request. |
|
String |
O |
The unique UUID string of the group registered. |
|
Boolean |
O |
To cancel In Progress order you have force cancel order option. |
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.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
Must be |
| Code | Description |
|---|---|
|
All Clear |
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
| Code | Description |
|---|---|
|
At least One of query parameters - groupId or iot_correlationId should be present |
|
Order info not found for the given groupId/iotCorrelationId |
|
Chart under execution, cannot be cancelled |
|
Internal server error |
{
"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 |
