Rules
- 1. Overview
- 2. System Workflow
- 3. Chaining of Orders
- 4. Rule APIs
- 4.1. Rule Creation
- 4.2. Get Rule Details
- 4.3. Delete Rule Details
- 4.4. Get All Provisioned Rules Details
- 4.5. Rule State
- 4.6. Rule Priority
- 4.7. Rule Criteria
- 4.8. Constraint Name
- 4.9. Event Type
- 4.10. Allowed Constraint Name For Event
- 4.11. Action
- 4.12. Supported Action Types
- 4.13. Action Metadata
- 4.14. Order State Transition
- 4.15. Rule Valid For
1. Overview
The Order Processing Rule Engine is designed to process Events received to Order Scheduler as per the configured rules. These rules are evaluated dynamically, and actions are executed when the conditions are met. This rule engine is configurable and powerful at the same time. The engine facilitates efficient order processing by evaluating conditions, executing corresponding actions, and handling responses using a set of defined state transitions.
The engine operates using several key parameters:
-
Conditions: Event types (e.g., EUICC_INITIALIZATION_EVENT) and other condition types that must be met.
-
Actions: Actions to be executed when the conditions are satisfied.
-
ValidFor: Time duration during which a rule is considered valid.
-
State Transition Actions: A decision tree that determines the next action based on responses received of previous orders issued to the eIM.
-
Preferred Communication Mode: A configurable mode that indicates the preferred communication protocol with connection parameters with Card by eIM.
-
Campaign Mode: Campaign Mode allows rules to execute once per (tenant, rule, eid) regardless of how many events are received after execution eligible for that rule.
Rules are dynamically applied on eligible cards fulfilling criteria defined in the rule, ensuring that they are applied only to relevant cards or groups.
Once conditions are evaluated, actions are triggered, leading to the creation of orders. The engine will handle responses from the eIM and follow the appropriate state transitions until the rule processing is complete.
2. System Workflow
-
Polling Request
-
Upon receiving a polling, the Order Processing Rule Engine evaluates the relevant rule(s) based on the event type, associated metadata, and card groups.
-
If the event or request is within the ValidFor time window of a rule, and the request matches the card group association, the conditions for that rule are evaluated.
-
-
Condition Evaluation
-
Each rule contains a list of conditions that must be evaluated to true before executing the action.
-
Example Condition: For an EUICC_INITIALIZATION_EVENT, the system checks if the eUICC is in the initialization state.
-
All conditions must evaluate to true for the action to be executed.
-
-
Action Execution
-
Once all conditions are met, the corresponding action is triggered.
-
Actions and Order Generation: The engine generates an order (as specified in order types) and sends it to the eIM system for further processing. Time to send it to eIM is based on the preferred mode of transport.
-
-
State Transition Actions and eIM Response Handling
-
After sending the order to the eIM system, the engine waits for a response (success or error code). Based on the response, the system follows the configured state transition actions.
-
State Transition Actions form a decision tree where the engine evaluates the eIM response and determines the next steps:
-
Success Response: Based on the response provided by eIM it looks for configured action in rule corresponding to this response(success of failure error code) and creates corresponding order.
-
This process continues until the engine either: Receives no further eIM packages, indicating the rule’s processing is complete. Completes all the required actions for the current rule.
-
-
End of Process The Scheduler continues processing rules until all events are processed, and there is no more event to be evaluated agains any other rule. If there are multiple eligible rules, the engine will proceed with evaluating the next rule once the current rule is fully processed.
3. Chaining of Orders
The Rule gives flexibility to TAC to generate order based on response of previously processed order’s response.
The following diagram illustrates the State Chaining:
Each state represents a specific action or order that can be executed. Once the Scheduler receives a response, it finds the next action corresponding to the response code and executes creates and issues the order. Configurability is granular at the level of error code in response to order.
| Detailed description of rules with API example will be available after TAC 3.5 release. |
3.1. Rule-Linked Card Behaviour
The following rules apply specifically to cards that are linked to a Rule:
-
Events for rule-linked cards: Events are sent to Fleet Manager only through the rule flow. Events are the trigger for rule evaluation and must not be surfaced again via the getOrder or Notification channels.
Exceptions: EUICC initialisation event state sync and the re-init API may still carry events. -
State delta: A
state_updatedelta is produced only by the rule flow. See [state-update] for details. -
Fleet interaction (no rule match): When a rule is configured but no rule matches for the current event, TOS makes a getOrder call (without events) to ask Fleet for orders.
-
Offline cards: No rule evaluation is performed for offline cards. See [getOrder-api] for the full offline behaviour.
4. Rule APIs
These APIs facilitate the creation, deletion, and retrieval of comprehensive rule information.
A rule defines a complete state machine and specifies actions to execute when the predefined set of criteria are met.
4.1. Rule Creation
This POST API is used to provision a rule.
4.1.1. HTTP Request
POST /order-scheduler/v1/rules
4.1.1.2. Header Parameters
The request header content-type must be set to JSON.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
Must be |
4.1.1.3. Request Body
The request body describes the Rule details that you want to provision.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
The unique name of the rule. |
|
String |
M |
Initial state for the rule, Refer to Rule State |
|
String |
M |
Priority level for rule execution, Refer to Rule Priority |
|
List<Json> |
M |
The set of criteria which determine when the rule should be triggered, Refer to Rule Criteria |
|
Json |
M |
The primary action to execute when the rule is triggered, Refer to Action |
|
Json |
O |
State graph defining follow-up actions to execute based on outcomes, Refer to Order State Transition |
|
String |
O |
The duration in minutes for which rule execution replays should be frozen or delayed after the initial trigger. This can help prevent repeated triggering in rapid succession. If not provided, default value is 2880. Maximum value : 2147483647 |
|
Integer |
O |
Defines the number of days for which an order remains valid from the date it is created. After the specified number of days has passed, the order will be marked as expired. |
|
Json |
M |
The validity period for the rule. It may include fields like start_time and end_time, which define the timeframe during which the rule is active, Refer to Rule Valid For |
|
Boolean |
O |
Determines whether the rule operates in Campaign Mode. When set to |
|
String |
O |
Brief Description of rule |
{
"rule_name": "Smart Meter 001",
"rule_state": "ACTIVE",
"criteria": [
{
"constraint_name": "EVENT_TYPE",
"constraint_value": "EUICC_INITIALIZATION_EVENT"
},
{
"constraint_name": "EID_RANGE",
"constraint_value": "89033023425120002299999999999976-89033023425120002299999999999980"
}
],
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool",
"pool_metadata": "gsma-sgp-32"
}
}
},
"order_state_transitions": {
"success_action_flow": {
"action": {
"action_type": "UPDATE_PROFILE_V3_CONFIGURATION",
"action_metadata": {
"order_template": {
"iccid": {
"iccid_condition": "ICCID_END_WITH",
"pattern": "8847"
},
"applet_v3_polling_configuration": {
"polling_at_power_on": true,
"polling_every_number_of_power_on": 1,
"polling_at_imei_change": true,
"regular_polling_enabled": true,
"polling_period_in_hours": 1,
"polling_local_interface": "ENABLED_BY_APDU_AND_STK_MENU",
"polling_at_mcc_change": true,
"polling_at_mnc_change": true
},
"applet_v3_fallback_configuration": {
"fallback_mechanism_type": "ROUND_ROBIN_TYPE",
"normal_service_status_count": 1,
"trigger_fallback_when_eim_unreachable": true,
"trigger_rollback_when_eim_unreachable": true,
"limited_service_status_fallback_count": 1,
"limited_service_status_rollback_count": 1
}
}
}
}
},
"failure_action_flow": [
{
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool1",
"pool_metadata": "gsma-sgp-321"
}
}
},
"on_error_code": "9"
},
{
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool2",
"pool_metadata": "gsma-sgp-3213"
}
}
},
"on_error_code": "127"
}
]
},
"rule_priority": "MEDIUM",
"replay_freeze_minutes": 658452,
"description": "Smar Meters Provisioning Rule",
"validFor": {
"startTime": "2026-08-15T18:30:00Z",
"endTime": "2026-08-28T18:30:00Z"
}
}
4.1.2. HTTP Response
4.1.2.1. Success Response
| Code | Description |
|---|---|
|
Rule Created successfully! |
4.1.2.1.1. Response Body
The response body replays the details of Rule provisioned.
| Parameter Name | Data Type | Description |
|---|---|---|
|
String |
Replay the name of the rule provisioned. |
|
String |
The unique identifier generated for the rule provisioned. |
|
String |
Replay the current state for the provisioned rule. |
|
List<Json> |
Replay the set of criteria value given for the provisioned rule. |
|
Json |
Replay the primary action to perform when the provisioned rule is triggered. |
|
Json |
State graph defining follow-up actions to execute based on outcomes, Refer to Order State Transition |
|
String |
Replay the priority level for the provisioned rule. |
|
Integer |
Replay the duration value for which the provisioned rule execution replays should be frozen or delayed after the initial trigger. |
|
Integer |
The unique identifier of the initial state node in the state’s execution graph. |
|
String |
The unique identifier for the associated state chart graph for the provisioned rule. |
|
String |
Replay the validity period for the provisioned rule. |
|
Boolean |
Determines whether the rule operates in Campaign Mode. When set to |
|
Integer |
Defines the number of days for which an order remains valid from the date it is created. After the specified number of days has passed, the order will be marked as expired. |
|
String |
Brief Description of rule. |
{
"message": "Rule Created successfully!",
"tenantId": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"object": {
"rule_name": "Smart Meter 001",
"rule_id": "2ee4d503-a408-3feb-b4f9-5ba209f55e3f",
"rule_state": "ACTIVE",
"criteria": [
{
"constraint_name": "EVENT_TYPE",
"constraint_value": "EUICC_INITIALIZATION_EVENT"
},
{
"constraint_name": "EID_RANGE",
"constraint_value": "89033023425120002299999999999976-89033023425120002299999999999980"
}
],
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool",
"pool_metadata": "gsma-sgp-32"
}
}
},
"order_state_transitions": {
"success_action_flow": {
"action": {
"action_type": "UPDATE_PROFILE_V3_CONFIGURATION",
"action_metadata": {
"order_template": {
"iccid": {
"iccid_condition": "ICCID_END_WITH",
"pattern": "8847"
},
"applet_v3_polling_configuration": {
"polling_at_power_on": true,
"polling_every_number_of_power_on": 1,
"polling_at_imei_change": true,
"regular_polling_enabled": true,
"polling_period_in_hours": 1,
"polling_local_interface": "ENABLED_BY_APDU_AND_STK_MENU",
"polling_at_mcc_change": true,
"polling_at_mnc_change": true
},
"applet_v3_fallback_configuration": {
"fallback_mechanism_type": "ROUND_ROBIN_TYPE",
"normal_service_status_count": 1,
"trigger_fallback_when_eim_unreachable": true,
"trigger_rollback_when_eim_unreachable": true,
"limited_service_status_fallback_count": 1,
"limited_service_status_rollback_count": 1
}
}
}
}
},
"failure_action_flow": [
{
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool1",
"pool_metadata": "gsma-sgp-321"
}
}
},
"on_error_code": "9"
},
{
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool2",
"pool_metadata": "gsma-sgp-3213"
}
}
},
"on_error_code": "127"
}
]
},
"rule_priority": "MEDIUM",
"replay_freeze_minutes": 658452,
"create_date": "2026-08-16T02:36:40.633719954Z",
"update_date": "2026-08-16T02:36:40.633720333Z",
"root_state_id": 1,
"state_chart_id": "4fbdedd0-991b-11f1-a7d9-1f254a984498",
"order_validity_in_days": 13,
"description": "Smar Meters Provisioning Rule",
"validFor": {
"startTime": "2026-08-15T18:30:00Z",
"endTime": "2026-08-28T18:30:00Z"
}
}
}
4.1.2.2. Error Response
| Code | Description |
|---|---|
|
Validation failed : Invalid parameters fields in the request |
|
An error occurred while processing the state chart |
|
Rule details Already Exist |
|
Internal server error |
{
"code": xxxx,
"message": "xxxx",
"service_name": "order-scheduler"
}
| 1 | error code |
| 2 | error message |
4.2. Get Rule Details
This GET API is used to retrieve the details of a specific rule using its ruleId.
4.2.1. HTTP Request
GET /order-scheduler/v1/rules/{ruleId}
4.2.1.2. Path Parameters
The URI path must include the unique identifier ruleId for which you want details.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
Unique identifier of the rule to retrieve. |
4.2.2. HTTP Response
4.2.2.1. Success Response
| Code | Description |
|---|---|
|
Rule data retrieved successfully. |
4.2.2.1.1. Response Body
The response body provides the details of rule provisioned with given ruleId.
| Parameter Name | Data Type | Description |
|---|---|---|
|
String |
Name of the rule. |
|
String |
Unique identifier of the rule. |
|
String |
The current state for the provisioned rule. |
|
List<Json> |
The set of criteria value given for the provisioned rule. |
|
String |
Priority level assigned for the rule. |
|
Integer |
The duration value in minutes during which replays are frozen after the rule is triggered. |
|
Integer |
The unique identifier of the initial state node in the state’s execution graph. |
|
String |
The unique identifier for the associated state chart graph for the provisioned rule. |
|
Json |
The validity period for the provisioned rule. |
|
Boolean |
Determines whether the rule operates in Campaign Mode. When set to |
|
String |
Brief Description of rule. |
{
"message": "Rule data retrieved successfully",
"tenantId": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"object": {
"rule_name": "Smart Meter 001",
"rule_id": "2ee4d503-a408-3feb-b4f9-5ba209f55e3f",
"rule_state": "ACTIVE",
"criteria": [
{
"constraint_name": "EVENT_TYPE",
"constraint_value": "EUICC_INITIALIZATION_EVENT"
},
{
"constraint_name": "EID_RANGE",
"constraint_value": "89033023425120002299999999999976-89033023425120002299999999999980"
}
],
"rule_priority": "MEDIUM",
"replay_freeze_minutes": 658452,
"create_date": "2026-08-16T02:36:40.633Z",
"update_date": "2026-08-16T02:36:40.633Z",
"root_state_id": 1,
"state_chart_id": "4fbdedd0-991b-11f1-a7d9-1f254a984498",
"description": "Smar Meters Provisioning Rule",
"validFor": {
"startTime": "2026-08-15T18:30:00Z",
"endTime": "2026-08-28T18:30:00Z"
}
}
}
4.2.2.2. Error Response
| Code | Description |
|---|---|
|
Validation failed : Invalid parameters fields in the request |
|
Rule details Not Found |
|
Internal server error |
{
"code": xxxx,
"message": xxxx,
"service_name": "order-scheduler"
}
| 1 | error code |
| 2 | error message |
4.3. Delete Rule Details
This DELETE API is used to delete rule details.
4.3.1. HTTP Request
DELETE /order-scheduler/v1/rules/{ruleId}
4.3.1.2. Path Parameters
The URI path must include the unique identifier ruleId for which you want to delete.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
Unique identifier of the rule to delete. |
4.3.2. HTTP Response
4.3.2.1. Success Response
| Code | Description |
|---|---|
|
Rule details deleted successfully |
4.3.2.1.1. Response Body
The response body provides the details of rule provisioned with given ruleId.
| Parameter Name | Data Type | Description |
|---|---|---|
|
String |
Name of the rule. |
|
String |
Unique identifier of the rule. |
|
String |
The current state for the provisioned rule. |
|
List<Json> |
The set of criteria value given for the provisioned rule. |
|
String |
Priority level assigned for the rule. |
|
Integer |
The duration value in minutes during which replays are frozen after the rule is triggered. |
|
Integer |
The unique identifier of the initial state node in the state’s execution graph. |
|
String |
The unique identifier for the associated state chart graph for the provisioned rule. |
|
Json |
The validity period for the provisioned rule. |
|
Boolean |
Determines whether the rule operates in Campaign Mode. When set to |
|
String |
Brief Description of rule. |
{
"message": "Rule details deleted successfully",
"tenantId": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"object": {
"rule_name": "Smart Meter 001",
"rule_id": "2ee4d503-a408-3feb-b4f9-5ba209f55e3f",
"rule_state": "ACTIVE",
"criteria": [
{
"constraint_name": "EVENT_TYPE",
"constraint_value": "EUICC_INITIALIZATION_EVENT"
},
{
"constraint_name": "EID_RANGE",
"constraint_value": "89033023425120002299999999999976-89033023425120002299999999999980"
}
],
"rule_priority": "MEDIUM",
"replay_freeze_minutes": 658452,
"create_date": "2026-08-16T02:36:40.633Z",
"update_date": "2026-08-16T02:36:40.633Z",
"root_state_id": 1,
"state_chart_id": "4fbdedd0-991b-11f1-a7d9-1f254a984498",
"description": "Smar Meters Provisioning Rule",
"validFor": {
"startTime": "2026-08-15T18:30:00Z",
"endTime": "2026-08-28T18:30:00Z"
}
}
}
4.3.2.2. Error Response
| Code | Description |
|---|---|
|
Validation failed : Invalid parameters fields in the request |
|
Rule details Not Found |
|
Internal server error |
{
"code": xxxx, (1)
"message": xxxx, (2)
"service_name": "order-scheduler"
}
| 1 | error code |
| 2 | error message |
4.4. Get All Provisioned Rules Details
This GET All API is used to get the details about all the already provisioned rules.
4.4.1. HTTP Request
GET /order-scheduler/v1/rules
4.4.1.1. Query Parameters
The URI path can optionally specify the pageNumber and pageSize.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
Integer |
O |
Retrieve rule information with given pageNumber value. If not provided, default value = 1. |
|
Integer |
O |
Retrieve rule information with given pageSize value. If not provided, default value = 20. |
4.4.2. HTTP Response
4.4.2.1. Success Response
| Code | Description |
|---|---|
|
Rule data retrieved successfully |
4.4.2.1.1. Response Body
The response body provides the paginated details of all the rule provisioned.
| Parameter Name | Data Type | Description |
|---|---|---|
|
String |
Name of the rule. |
|
String |
Unique identifier of the rule. |
|
String |
The current state for the provisioned rule. |
|
List<Json> |
The set of criteria value given for the provisioned rule. |
|
String |
Priority level assigned for the rule. |
|
Integer |
The duration value in minutes during which replays are frozen after the rule is triggered. |
|
Integer |
The unique identifier of the initial state node in the state’s execution graph. |
|
String |
The unique identifier for the associated state chart graph for the provisioned rule. |
|
Json |
The validity period for the provisioned rule. |
|
PageInfo |
Pagination information. See |
| Name | Type | Description |
|---|---|---|
|
Integer |
The current page number. Starts from |
|
Integer |
The number of results returned per page. |
|
Long |
Total number of groups across all pages. |
|
Integer |
Total number of pages available. |
|
Boolean |
Is first page. |
|
Boolean |
Is last page. |
{
"message": "Rule data retrieved successfully",
"tenantId": "0bfc6752-f308-304f-8246-ed90c7f5e0bb",
"object": {
"rules": [
{
"rule_name": "RuleName",
"rule_id": "5213340d-dbcc-34c7-9293-8cf8a6a0820f",
"rule_state": "ACTIVE",
"criteria": [
{
"constraint_name": "EVENT_TYPE",
"constraint_value": "EUICC_INITIALIZATION_EVENT"
}
],
"rule_priority": "MEDIUM",
"replay_freeze_minutes": 25,
"create_date": "2025-05-18T20:29:05.640Z",
"update_date": "2025-05-18T20:29:05.640Z",
"root_state_id": 1,
"state_chart_id": "be655940-3426-11f0-afe7-4d07f106a3ec",
"validFor": {
"startTime": "2024-12-17T09:30:47Z",
"endTime": "2025-12-30T10:30:47Z"
}
},
{
"rule_name": "RuleName1",
"rule_id": "5213340d-dbcc-34c7-9293-8cf8a6a082ff",
"rule_state": "ACTIVE",
"criteria": [
{
"constraint_name": "EVENT_TYPE",
"constraint_value": "EUICC_INITIALIZATION_EVENT"
}
],
"rule_priority": "LOW",
"replay_freeze_minutes": 1125,
"create_date": "2025-05-18T20:29:05.640Z",
"update_date": "2025-05-18T20:29:05.640Z",
"root_state_id": 1,
"state_chart_id": "be655940-3426-11f0-afe7-4d07f106a3ff",
"validFor": {
"startTime": "2024-12-17T09:30:47Z",
"endTime": "2025-12-30T10:30:47Z"
}
}
],
"page_info": {
"page_number": 1,
"page_size": 20,
"total_elements": 1,
"total_pages": 1,
"first": true,
"last": true
}
}
}
4.4.2.2. Error Response
| Code | Description |
|---|---|
|
Validation failed : Invalid parameters fields in the request |
|
Rule details Not Found |
|
Internal server error |
{
"code": xxxx, (1)
"message": xxxx, (2)
"service_name": "order-scheduler"
}
| 1 | error code |
| 2 | error message |
4.5. Rule State
The Rule State indicates the current status of a provisioned rule. A rule in the ACTIVE state is eligible for triggering, while a rule in the INACTIVE state is ignored during rule evaluation.
| Possible Value | Description |
|---|---|
|
The rule is eligible for triggering if the set of criteria matches. |
|
The rule is disabled and will be ignored during rule evaluation. |
4.6. Rule Priority
The Rule Priority defines the execution precedence of a rule when multiple rules are eligible to be triggered for the same event or criteria. Rules with a higher priority are evaluated and executed before lower-priority rules.
| Possible Value | Description |
|---|---|
|
Default Priority given to rule when campaign mode is set. This is only applicable to campaign mode. |
|
The rule is considered high priority and is evaluated and triggered before other rules. |
|
The rule has a standard priority and is evaluated after high-priority rules but before low-priority ones |
|
The rule is considered low priority and is evaluated only after higher priority rules are processed. |
The rule priority does not guarantee exclusive execution. If multiple rules match with the same priority, the rule is picked based on creation time, with older rules given preference. It is advised to design and allocate priority accordingly.
4.7. Rule Criteria
The Criteria section defines the set of conditions that must be met for a rule to be triggered. These conditions act as filters and determine when and under what context a rule becomes eligible for execution.
Each rule can include one or more criteria, and all specified criteria must be satisfied for the rule to trigger.
Each criterion includes a constraint_name and a corresponding constraint_value.
4.7.1. Criteria Structure
| Field | Description |
|---|---|
|
The attribute to evaluate. Refer to Constraint Name |
|
The expected value for the constaint to match. |
{
"criteria": [
{
"constraint_name": "EVENT_TYPE",
"constraint_value": "PROFILE_ACTIVATION_EVENT"
},
{
"constraint_name": "ICCID_ENDS_WITH",
"constraint_value": "8847"
}
]
}
-
All provided criteria must match for the rule to trigger (logical AND).
-
The criteria list must contain exactly one instance of type EVENT_TYPE, but it may include multiple instances of other criteria identified by constraint_name. The rule becomes eligible only when all criteria evaluate to true.
-
The evaluation is case-sensitive
-
Invalid or unsupported constraint_name values will result in validation errors during rule creation.
-
constraint_value formats (e.g., wildcards, regex, ranges) depend on the specific constraint_name.
4.8. Constraint Name
The constraint_name is a key field within the criteria block of a rule.
It specifies the type of attribute that the rule engine will evaluate against incoming events and its attributes.
Each constraint_name is paired with a constraint_value, and all criteria in a rule are evaluated using logical AND — meaning all constraints must match for the rule to be triggered.
4.8.1. Supported Constraint Names
| Constraint Name | Description |
|---|---|
|
Matches the type of event triggering the rule. Mandatory and must appear exactly once per rule. Supported Event types : Refer to Event Type |
|
Matches ICCIDs that begin with the given prefix. |
|
Matches ICCIDs that end with the given suffix. |
|
Matches ICCID present in event must be associated to the specified profile pool name. |
|
Matches ICCID present in event must be associated with the name of the profile provider. |
|
Matches ICCID present in event must match the specific profile name. |
|
Matches the Profile pool name for the current active profile from profile list. |
|
Matches the group name associated with the device(eid). |
|
Matches ICCIDs that contain the specified substring. |
|
Matches an ICCID that exactly equals the given value. |
|
Matches Mobile Country Code from the event with the device Mobile Country Code. Specific for RPLMN_CHANGE_EVENT. |
|
Matches Mobile Network Code from the event with the device Mobile Network Code. Specific for RPLMN_CHANGE_EVENT. |
|
Supports advanced pattern matching. Typically used with regex patterns. Currently used in Custom Data for TRIG_BY_DEVICE. |
|
Matches value for SOURCE field present in event. Specific for EXTERNAL_SERVER_CUSTOM_EVENT. |
|
Matches value for CUSTOM DATA field present in event. Specific for EXTERNAL_SERVER_CUSTOM_EVENT. |
|
Check if any profile from the provided Pool Name has not been available in our profile list for that device(eid). Specific for EXTERNAL_SERVER_CUSTOM_EVENT. |
|
Check if any profile from the provided Pool Name has been available in our profile list for that device(eid). Specific for EXTERNAL_SERVER_CUSTOM_EVENT. |
|
Matches when the device EID falls within a defined range. The range must be specified using the regex pattern ^\d{32}-\d{32}$. For example: |
-
A rule must contain exactly one
constraint_nameof typeEVENT_TYPE. -
constraint_valueformat and validation logic depends on theconstraint_name. -
Unsupported or misspelled constraint names will result in a 400 - Validation Error during rule provisioning.
-
All criteria in the list must evaluate to true for the rule to trigger.
4.9. Event Type
The EVENT_TYPE is a required constraint_name in the rule criteria, and it determines the specific event that triggers the rule execution.
Only one EVENT_TYPE is allowed per rule, and it must be present.
The value of constraint_value for EVENT_TYPE must match one of the predefined types listed below.
4.9.1. Supported Event Types
| Event Type |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
The
EVENT_TYPE: ANYis a universal value that enables rule evaluation for any event type. It can be used in scenarios where no specific event is present, but rule evaluation is still required. -
If
EVENT_TYPEis missing or duplicated, rule provisioning will fail with a validation error. -
The choice of
EVENT_TYPEdefines when the rule will be considered for execution. -
Combine
EVENT_TYPEwith other criteria likeICCID_ENDS_WITHorGROUP_NAMEto create more specific and powerful rule conditions. -
Event Type
TRIGrefers to Shoulder Tap Message -
Event Type
TRIG_BY_DEVICErefers to Local Polling
Refer to the EVENT_TYPE and other criteria here : Refer to Allowed Constraint Name For Event
4.10. Allowed Constraint Name For Event
Find below the mapping of EVENT_TYPE fields with their allowed Constraint_Name fields.
| Event Type | Allowed Constraint Name |
|---|---|
|
|
|
|
|
|
|
|
|
|
4.11. Action
The Action defines the operation to be executed.
4.11.1. Action Object Structure
An action object consists of the following fields:
| Field Name | Data Type | Description |
|---|---|---|
|
String |
The type of operation to execute. Refer to Supported Action Types. |
|
Json |
The fields parameters that will be used while order creation from |
{
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "poolName",
"pool_metadata": "poolMetaData"
}
}
}
}
-
The
action_typeis required and must be one of the supported types. -
The
action_metadatafield is optional but may be required depending on theaction_type.
4.12. Supported Action Types
The action_type defines the operation that the system performs when a rule is triggered.
Each action type corresponds to an Order type and the supporting parameter fields must be provided in action_metadata.
| Action Type | Order Mapped | Supported EuiccType |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4.13. Action Metadata
Each action_type in a rule is accompanied by an action_metadata block with field order_template, which contains additional parameters required to order creation with mandatory and optional fields.
4.13.1. Action Type : DOWNLOAD_PROFILE
order_type : DOWNLOAD_PROFILE_ORDER
The DOWNLOAD_PROFILE action supports three mutually exclusive download modes:
-
Pool-based Download: Uses
pool_nameandpool_metadatato retrieve matching_id from a pre-provisioned subscription pool. -
SM-DS Discovery Download: Uses
smds_configto perform SM-DS (Subscription Manager Discovery Service) lookup to discover SM-DP+ address. -
Contact Default SMDP: Uses
contact_default_smdp.
4.13.1.1. Option 1: Pool-based Download
DOWNLOAD_PROFILE_ORDER with Pool Configuration :{
"order_template": {
"pm_id":"<UUID>", // [Mandatory]
"pool_name": "Thales-Pool", // [Optional]
"pool_metadata": "gsma-sgp-32" //[Optional]
}
}
NOTE: pm_id is mandatory. If pm_id is not provided, it will be automatically resolved using the pool_name and pool_metadata fields.
4.13.1.2. Option 2: SM-DS Discovery Download
DOWNLOAD_PROFILE_ORDER with SM-DS Configuration :{
"order_template": {
"smds_config": {
"contact_smds": true,
"smds_address": "smds.example.com"
}
}
}
4.13.1.3. Option 3: Contact default SMDP Download
DOWNLOAD_PROFILE_ORDER with SM-DS Configuration :{
"order_template": {
"smds_config": {
"contact_smds": true,
"smds_address": "smds.example.com"
}
}
}
-
PoolMetadata must be pre-provisioned.
-
SM-DS discovery:
smds_config.contact_smdsmust betrue. Thesmds_addressis optional; if omitted, the Root SM-DS address from the eUICC is used.
4.13.2. Action Type : DELETE_PROFILE / DELETE_ANY_INACTIVE_PROFILE / FORCE_DELETE_PROFILE
order_type : DELETE_PROFILE_ORDER
DELETE_PROFILE_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH / ICCID_END_WITH / MATCHES / PROFILE_POOL_NAME / ICCID_CONTAINS / ICCID_EQUALS / BOOTSTRAP_PROFILE", [Mandatory]
"pattern": "pattern", [Conditional]
"pool_name": "poolName" [Conditional]
}
}
}
-
For
Action Type : DELETE_ANY_INACTIVE_PROFILE, the parametericcidis not required, rest forDELETE_PROFILE / FORCE_DELETE_PROFILE, the parametericcidis mandatory. -
For
iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the fieldpatternismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the fieldpool_nameismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the value for fieldpool_namemust be pre-provisioned. -
For
iccid_condition : BOOTSTRAP_PROFILE, it is currently used only as part of external server event handling.
4.13.3. Action Type : ENABLE_PROFILE / ENABLE_LAST_DOWNLOADED_PROFILE
order_type : ENABLE_PROFILE_ORDER
ENABLE_PROFILE_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH / ICCID_END_WITH / MATCHES / PROFILE_POOL_NAME / ICCID_CONTAINS / ICCID_EQUALS", [Mandatory]
"pattern": "pattern", [Conditional]
"pool_name": "poolName" [Conditional]
}
}
}
-
For
Action Type : ENABLE_LAST_DOWNLOADED_PROFILE, the parametericcidis not required, rest forENABLE_PROFILE, the parametericcidis mandatory. -
For
iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the fieldpatternismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the fieldpool_nameismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the value for fieldpool_namemust be pre-provisioned.
4.13.4. Action Type : UPDATE_APPLET_CONFIGURATION
order_type : UPDATE_APPLET_CONFIGURATION_ORDER
UPDATE_APPLET_CONFIGURATION_ORDER order_template fields :{
"order_template": {
"applet_polling_configuration": {
"polling_at_power_on": true,
"polling_at_mcc_mnc_change": false,
"polling_at_imei_change": true,
"regular_polling_enabled": true,
"polling_period_in_hours": 168,
"maximum_polling_retry_number": 3,
"polling_local_interface": "ENABLED_BY_APDU_AND_STK_MENU"
},
"fallback_configuration": {
"fallback_mechanism_type": "FALLBACK_ATTRIBUTE_TYPE",
"limited_service_status_count": 10,
"normal_service_status_count": 2
},
"download_profile_parameters": {
"download_timeout_status_count": 50
}
}
}
-
For
Action Type : UPDATE_APPLET_CONFIGURATION, all fieldspolling_configuration,fallback_configurationanddownload_profile_parametersare optional but at-least one should be provided. -
For
polling_configurationfield, the value ofpolling_period_in_hoursmust lie between (0,42840), both exclusive. -
For
download_profile_parametersfield, the value ofdownload_timeout_status_countmust lie between (30,255), both exclusive.
4.13.5. Action Type : UPDATE_PROFILE_CONFIGURATION
order_type : UPDATE_PROFILE_CONFIGURATION_ORDER
UPDATE_PROFILE_CONFIGURATION_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_END_WITH",
"pattern": "8847"
},
"connection_parameters": {
"network_access_name": "internet",
"user_login": "user",
"user_password": "password"
},
"fallback_settings": {
"fallback_attribute": false,
"fallback_profile": {
"iccid_condition": "ICCID_END_WITH",
"pattern": "8846"
},
"limited_service_status_count": 15
},
"polling_configuration": {
"mute_flag": true
}
}
}
-
For
Action Type : UPDATE_PROFILE_CONFIGURATION, fieldiccidis mandatory, rest all fieldsconnection_parameters,fallback_settingsandpolling_configurationare optional but at-least one should be provided. -
For
connection_parametersfield, the value ofnetwork_access_namemust not be null. -
For
fallback_settingsfield, at-least one of thefallback_attribute,fallback_profileorlimited_service_status_countmust be provided. -
For
fallback_settingsfield,fallback_profilefield is of typeICCID.
4.13.6. Action Type : IPA_TRIGGER
order_type : IPA_TRIGGER_ORDER
No field in order_template is required.
4.13.7. Action Type : OS_PATCH
order_type : OS_PATCH_ORDER
OS_PATCH_ORDER order_template fields :{
"order_template": {
"patch_id": "1"
}
}
-
For
Action Type : OS_PATCH, fieldpatch_idis mandatory, and must have numeric value.
4.13.8. Action Type : DOWNLOAD_PROFILE_WITH_IMMEDIATE_ENABLE
order_type : DOWNLOAD_PROFILE_WITH_IMMEDIATE_ENABLE_ORDER
-
Order Template is same as DOWNLOAD_PROFILE_ORDER.
4.13.9. Action Type : UPDATE_PROFILE_FALLBACK_ATTRIBUTE
order_type : UPDATE_PROFILE_FALLBACK_ATTRIBUTE_ORDER
UPDATE_PROFILE_FALLBACK_ATTRIBUTE_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH",
"pattern": "8846"
},
"fallback_attribute": true
}
}
-
For
Action Type : UPDATE_PROFILE_FALLBACK_ATTRIBUTE, fieldiccidis mandatory iffallback_attributeis true
4.13.10. Action Type : GET_PROFILE_INFO
order_type : GET_PROFILE_INFO_ORDER
GET_PROFILE_INFO_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH",
"pattern": "897"
}
}
}
-
For
Action Type : GET_PROFILE_INFO, fieldiccidis mandatory
4.13.11. Action Type : UPDATE_PROFILE_V3_CONFIGURATION
order_type : UPDATE_PROFILE_V3_CONFIGURATION_ORDER
UPDATE_PROFILE_V3_CONFIGURATION_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH",
"pattern": "897"
},
"applet_v3_polling_configuration": {
"polling_at_power_on": true,
"regular_polling_enabled": true,
"polling_period_in_hours": 168,
"polling_every_number_of_power_on": 2,
"polling_at_mcc_change": true,
"polling_at_mnc_change": true,
"polling_at_imei_change": false,
"polling_local_interface": "ENABLED_BY_APDU_AND_STK_MENU",
"polling_after_status_count_at_power_to_pli" : 3,
"polling_after_status_count_at_power_on" : 8,
"polling_after_status_count_at_mcc_change" : 10,
"polling_after_status_count_at_mnc_change" : 2
},
"applet_v3_fallback_configuration": {
"fallback_mechanism_type": "FALLBACK_ATTRIBUTE_TYPE",
"limited_service_status_fallback_count": 2,
"limited_service_status_rollback_count": 2,
"normal_service_status_count": 2,
"trigger_fallback_when_eim_unreachable": true,
"trigger_rollback_when_eim_unreachable": false,
"trigger_fallback_when_no_service":false,
"trigger_rollback_when_no_service":false
}
}
}
-
For
Action Type : UPDATE_PROFILE_V3_CONFIGURATION, fieldiccidis mandatory -
Either
polling_configurationorfallback_configurationshould be non-empty.
4.13.12. Action Type : READ_PROFILE_V3_CONFIGURATION
order_type : READ_PROFILE_V3_CONFIGURATION_ORDER
READ_PROFILE_V3_CONFIGURATION_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH",
"pattern": "897"
}
}
}
-
For
Action Type : READ_PROFILE_V3_CONFIGURATION, fieldiccidis mandatory
4.13.13. Action Type : DELETE_PROFILE_V3_CONFIGURATION
order_type : DELETE_PROFILE_V3_CONFIGURATION_ORDER
DELETE_PROFILE_V3_CONFIGURATION_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH",
"pattern": "897"
}
}
}
-
For
Action Type : DELETE_PROFILE_V3_CONFIGURATION, fieldiccidis mandatory
4.13.14. Action Type : UPDATE_APPLET_V3_CONFIGURATION
order_type : UPDATE_APPLET_V3_CONFIGURATION_ORDER
UPDATE_APPLET_V3_CONFIGURATION_ORDER order_template fields :{
"order_template": {
"applet_v3_polling_configuration": {
"polling_at_power_on": true,
"regular_polling_enabled": true,
"polling_period_in_hours": 168,
"polling_status_count": 2,
"maximum_polling_retry_number": 3,
"polling_every_number_of_power_on": 2,
"polling_at_mcc_change": true,
"polling_at_mnc_change": true,
"polling_at_imei_change": false,
"polling_local_interface": "ENABLED_BY_APDU_AND_STK_MENU",
"polling_after_status_count_at_power_to_pli" : 3,
"polling_after_status_count_at_power_on" : 8,
"polling_after_status_count_at_mcc_change" : 10,
"polling_after_status_count_at_mnc_change" : 2
},
"applet_v3_fallback_configuration": {
"fallback_mechanism_type": "FALLBACK_ATTRIBUTE_TYPE",
"limited_service_status_fallback_count": 2,
"limited_service_status_rollback_count": 2,
"normal_service_status_count": 2,
"trigger_fallback_when_eim_unreachable": true,
"trigger_rollback_when_eim_unreachable": false,
"trigger_fallback_when_no_service":false,
"trigger_rollback_when_no_service":false
}
}
}
-
For
Action Type : UPDATE_APPLET_V3_CONFIGURATION, eitherpolling_configurationorfallback_configurationshould be non-empty
4.13.15. Action Type : READ_APPLET_V3_CONFIGURATION
order_type : READ_APPLET_V3_CONFIGURATION_ORDER
No field in order_template is required.
4.13.16. Action Type : READ_APPLET_CONFIGURATION
order_type : READ_APPLET_CONFIGURATION_ORDER
No field in order_template is required.
4.13.17. Action Type : CREATE_EIM
order_type : CREATE_EIM_ORDER
CREATE_EIM_ORDER order_template fields :{
"order_template": {
"eim_configuration_data": {
"eim_id": "1.3.6.1.4.1.31746.1.800.25",
"eim_fqdn": "eim.tacaas.ew1.mcs03.acloud.thalescloud.io",
"eim_id_type": "EIM_ID_TYPE_OID",
"counter_value": 0,
"association_token": 0,
"eim_public_key": "-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEBnTKYFsz1hiNKOAE74jzp+zQLUlt
fTFwemfhmP84FxnZRSE9sPER5vF0csgTTEgh03y4W3d4gCbTipfNF6+/jw==
-----END PUBLIC KEY-----",
"supported_protocols": [
"EIM_INJECT_COAPS"
]
}
}
}
-
For
Action Type : CREATE_EIM, fieldeim_configuration_datashould not be null. -
In
eim_configuration_data-
eim_configuration_data.eim_public_keymust be present. -
eim_configuration_data.eim_idmust not be null and its length should be less than 128. -
eim_configuration_data.eimIdTypemust not be null. -
eim_configuration_data.eimIdTypeisEIM_ID_TYPE_FQDN, then it must follow FQDN Format regex pattern. -
eim_configuration_data.eimFqdnis optional , but if it is present it must follow FQDN Format regex pattern. -
eim_configuration_data.counterValueis optional , but if it is present it must between0and8388607.
-
4.13.17.1. FQDN Format
(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)$
| Rule | Requirement |
|---|---|
Total length |
4 to 253 characters |
Structure |
At least two parts separated by dots, e.g. |
Allowed characters |
Letters ( |
Label length |
Each part between dots must be 1 to 63 characters |
Hyphens |
Allowed inside a label but not at its start or end |
Top-level domain |
Last part must contain letters only, 2 to 63 characters |
Case |
Not case-sensitive |
Not allowed |
Spaces, underscores ( |
4.13.18. Action Type : UPDATE_EIM
order_type : UPDATE_EIM_ORDER
UPDATE_EIM_ORDER order_template fields :{
"order_template": {
"eim_configuration_data": {
"eim_id": "1.3.6.1.4.1.31746.1.800.25",
"eim_fqdn": "eim.tacaas.ew1.mcs03.acloud.thalescloud.io",
"eim_id_type": "EIM_ID_TYPE_OID",
"counter_value": 52,
"association_token": 0,
"eim_public_key": "-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEBnTKYFsz1hiNKOAE74jzp+zQLUlt
fTFwemfhmP84FxnZRSE9sPER5vF0csgTTEgh03y4W3d4gCbTipfNF6+/jw==
-----END PUBLIC KEY-----",
"supported_protocols": [
"EIM_INJECT_COAPS",
"EIM_INJECT_HTTPS",
"EIM_PROPRIETARY"
]
}
}
}
-
For
Action Type : UPDATE_EIM, fieldeim_configuration_datashould not be null. -
In
eim_configuration_data-
eim_configuration_data.eim_public_keymust be present. -
eim_configuration_data.eim_idmust not be null and its length should be less than 128. -
eim_configuration_data.eimIdTypemust not be null. -
eim_configuration_data.eimIdTypeisEIM_ID_TYPE_FQDN, then it must follow FQDN Format regex pattern. -
eim_configuration_data.eimFqdnis optional , but if it is present it must follow FQDN Format regex pattern. -
eim_configuration_data.counterValueis optional , but if it is present it must between0and8388607.
-
4.13.19. Action Type : DELETE_EIM
order_type : DELETE_EIM_ORDER
DELETE_EIM_ORDER order_template fields :{
"order_template": {
"eim_id": "1.3.6.1.4.1.31746.1.800.25"
}
}
-
For
Action Type : DELETE_EIM, fieldeimIdis mandatory.
4.13.21. Action Type : DISABLE_PROFILE
order_type : DISABLE_PROFILE_ORDER
DISABLE_PROFILE_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH",
"pattern": "89330"
}
}
}
-
For
Action Type : DISABLE_PROFILE, fieldiccidis mandatory.
4.13.22. Action Type : CONFIGURE_IMMEDIATE_ENABLE
order_type : CONFIGURE_IMMEDIATE_ENABLE_ORDER
CONFIGURE_IMMEDIATE_ENABLE_ORDER order_template fields :{
"order_template": {
"immediate_enable_flag" : true,
"default_smdp_oid" : "1.3.6.1.4.1.31746",
"default_smdp_address" : "smdp.thales.com"
}
}
-
For
Action Type : CONFIGURE_IMMEDIATE_ENABLE, all fieldsimmediate_enable_flag,default_smdp_oidanddefault_smdp_addressare optional but at-least one should be provided.
4.13.23. Action Type : SET_DEFAULT_DP_ADDRESS
order_type : SET_DEFAULT_DP_ADDRESS_ORDER
SET_DEFAULT_DP_ADDRESS_ORDER order_template fields :{
"order_template": {
"default_smdp_address": "smdp.thales.com"
}
}
-
For
Action Type : SET_DEFAULT_DP_ADDRESS, fielddefault_smdp_addressmust be present and should not be blank.
4.13.25. Action Type : LIST_PROFILE
order_type : LIST_PROFILE_ORDER
LIST_PROFILE_ORDER order_template fields :{
"order_template": {
"profile_data_list": ["ICCID", "ISD_P_AID", "PROFILE_STATE"],
"search_criteria": {
"type": "LIST_PROFILE_INFO_SEARCH_BY_ICCID",
"iccid": {
"iccid_condition": "ICCID_START_WITH",
"pattern": "8933"
}
}
}
}
-
For
Action Type : LIST_PROFILE, fieldprofile_data_listandsearch_criteriaare optional. -
If
profile_data_listis present, it should not be empty.-
If
search_criteriais present, thentypemust be among these [LIST_PROFILE_INFO_SEARCH_BY_ICCID,LIST_PROFILE_INFO_SEARCH_BY_ISDP_AID,LIST_PROFILE_INFO_SEARCH_BY_PROFILE_CLASS] -
If
Search_criteria.typeisLIST_PROFILE_INFO_SEARCH_BY_ICCID, theniccidmust follow pattern structure. -
If
Search_criteria.typeisLIST_PROFILE_INFO_SEARCH_BY_ISDP_AID, thenisdp_aidmust not be blank. -
If
Search_criteria.typeisLIST_PROFILE_INFO_SEARCH_BY_PROFILE_CLASS, thenprofile_classmust not be null.
-
4.13.26. Action Type : GET_EUICC_INFO
order_type : GET_EUICC_INFO
GET_EUICC_INFO_ORDER order_template fields :{
"order_template": {
"requested_data_list": [
"DEFAULT_SMDP_ADDRESS",
"EUICC_INFO1",
"EUICC_INFO2",
"ROOT_SM_DS",
"ASSOCIATION_TOKEN",
"EUM_CERTIFICATE",
"EUICC_CERTIFICATE",
"IPA_CAPABILITIES",
"DEVICE_INFORMATION"
],
"euicc_ci_pkid": "K37697D1641EF2D78ACFBD480005DD7BED91730E"
}
}
-
For
Action Type : GET_EUICC_INFO, fieldrequested_data_listis mandatory, and must have a non-empty list of EuiccData. -
EuiccData type is one of the below values: LIST_OF_NOTIFICATIONS, DEFAULT_SMDP_ADDRESS, EUICC_PACKAGE_RESULT, EUICC_INFO1, EUICC_INFO2, ROOT_SM_DS, ASSOCIATION_TOKEN, EUM_CERTIFICATE, EUICC_CERTIFICATE, IPA_CAPABILITIES, DEVICE_INFORMATION
4.13.27. Action Type : ACTIVATE_SUBSCRIPTION
order_type : ACTIVATE_SUBSCRIPTION_ORDER
This action activates the subscription of a profile on the Connectivity Management Platform (CMP). It is supported only for SGP_32 eUICCs.
ACTIVATE_SUBSCRIPTION_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH / ICCID_END_WITH / MATCHES / PROFILE_POOL_NAME / ICCID_CONTAINS / ICCID_EQUALS", [Mandatory]
"pattern": "pattern", [Conditional]
"pool_name": "poolName" [Conditional]
}
}
}
-
For
Action Type : ACTIVATE_SUBSCRIPTION, the parametericcidis mandatory. -
For
iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the fieldpatternismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the fieldpool_nameismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the value for fieldpool_namemust be pre-provisioned. -
The profile selected must be a CMP profile.
4.13.28. Action Type : DEACTIVATE_SUBSCRIPTION
order_type : DEACTIVATE_SUBSCRIPTION_ORDER
This action deactivates the subscription of a profile on the Connectivity Management Platform (CMP). It is supported only for SGP_32 eUICCs.
DEACTIVATE_SUBSCRIPTION_ORDER order_template fields :{
"order_template": {
"iccid": {
"iccid_condition": "ICCID_START_WITH / ICCID_END_WITH / MATCHES / PROFILE_POOL_NAME / ICCID_CONTAINS / ICCID_EQUALS", [Mandatory]
"pattern": "pattern", [Conditional]
"pool_name": "poolName" [Conditional]
}
}
}
-
For
Action Type : DEACTIVATE_SUBSCRIPTION, the parametericcidis mandatory. -
For
iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the fieldpatternismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the fieldpool_nameismandatory. -
For
iccid_condition : PROFILE_POOL_NAME, the value for fieldpool_namemust be pre-provisioned. -
The profile selected must be a CMP profile.
4.14. Order State Transition
The Order State Transition represents the different set of Actions we can perform based on the previous order result status.
Each State Transition will have its own action to execute.
If you want to perform an action when the result status is Success, you define the success_action_flow.
Similarly, if you need to handle failure scenarios, you define the
failure_action_flow, where you can specify actions based on the error_code received.
This means, using state transitions, we can configure reaction of the system based on previous order results(success and failure.errorCodes).
{
"order_state_transitions": {
"success_action_flow": {
"action": {
"action_type": "UPDATE_PROFILE_V3_CONFIGURATION",
"action_metadata": {
"order_template": {
"iccid": {
"iccid_condition": "ICCID_END_WITH",
"pattern": "8847"
},
"applet_v3_polling_configuration": {
"polling_at_power_on": true,
"polling_every_number_of_power_on": 1,
"polling_at_imei_change": true,
"regular_polling_enabled": true,
"polling_period_in_hours": 1,
"polling_local_interface": "ENABLED_BY_APDU_AND_STK_MENU",
"polling_at_mcc_change": true,
"polling_at_mnc_change": true
},
"applet_v3_fallback_configuration": {
"fallback_mechanism_type": "ROUND_ROBIN_TYPE",
"normal_service_status_count": 1,
"trigger_fallback_when_eim_unreachable": true,
"trigger_rollback_when_eim_unreachable": true,
"limited_service_status_fallback_count": 1,
"limited_service_status_rollback_count": 1
}
}
}
}
},
"failure_action_flow": [
{
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool1",
"pool_metadata": "gsma-sgp-321"
}
}
},
"on_error_code": "9"
},
{
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"pool_name": "Thales-Pool2",
"pool_metadata": "gsma-sgp-3213"
}
}
},
"on_error_code": "127"
}
]
}
}
4.14.1. Action
Action defined in state transition is operation that needs to perform when a specific condition is met during the execution of a process.
Refer to Action for details.
-
Action in state_transition is a mandatory field.
4.14.2. Success Action Flow
The Success Action Flow in the state transition is an optional field used to define the operations that should be executed when the action in the state transition is successfully completed.
The field success_action_flow is itself a type of Order State Transition.
4.14.3. Failure Action Flow
The Failure Action Flow in the state transition is an optional field used to define the operations that should be executed when the action in the state transition fails.
Failure can be caused by multiple error codes or reasons, so to perform multiple actions based on the error_code, the field failure_action_flow is a list of Order State Transitions.
Each failure state transition is associated with a specific on_error_code.
on_error_code Field:
-
The value of
on_error_codedetermines which state chart graph will be executed based on the received error code.-
Specific Error Code: You can specify a particular error code. The state transition will only be executed when that specific error code is received.
-
List of Error Codes: You can specify a comma-separated list of error codes for which the same state chart should be executed.
-
General Failure (
any): If you want to execute a state chart on failure, irrespective of the error code, seton_error_codetoany.
-
-
If on_error_code is set to any and you specify specific error codes, the priority will be given to the specific error codes.
-
Failure flows can include multiple error codes, which makes it flexible for handling different error situations.
on_error_code{
"on_error_code": "5004",
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id": "##(pmId)",
"pool_name": "##(poolName)",
"pool_metadata": "##(poolMetaData)"
}
}
}
},
{
"on_error_code": "5005,5006,5007",
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id": "##(pmId)",
"pool_name": "##(poolName)",
"pool_metadata": "##(poolMetaData)"
}
}
}
},
{
"on_error_code": "any",
"action": {
"action_type": "DOWNLOAD_PROFILE",
"action_metadata": {
"order_template": {
"pm_id": "##(pmId)",
"pool_name": "##(poolName)",
"pool_metadata": "##(poolMetaData)"
}
}
}
}
4.15. Rule Valid For
The ValidFor field represents a time interval during which a rule is considered valid. It specifies the start time and end time of the validity period. Rules or entities that are linked with ValidFor are only applicable within this specified time window.
4.15.1. Fields
-
startTime: Defines the start of the validity period. The rule or entity becomes active from this moment onward. -
endTime: Defines the end of the validity period. After this time, the rule or entity is no longer valid.
valid_for{
"validFor": {
"startTime": "2026-08-15T18:30:00Z",
"endTime": "2026-08-28T18:30:00Z"
}
}
This example sets the rule or entity validity between May 19, 2025, 00:00:00 UTC and May 20, 2025, 00:00:00 UTC.
-
If
startTimeis not defined, the rule or entity may be considered valid immediately or from the moment it is created. -
If
endTimeis not defined, the rule or entity will remain valid indefinitely, until explicitly disabled or modified. -
The startTime and endTime are expressed as ISO-8601 formatted timestamps
(e.g., YYYY-MM-DDTHH:MM:SSZ).
-
Time zone: The startTime and endTime should be specified in UTC to avoid ambiguity across time zones.
-
Empty time values: If startTime or endTime are omitted or set to null, it implies that there is no time-bound limitation for the rule’s validity.
