Thales Adaptive Connect Documentation Portal

Rules

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:

  1. Conditions: Event types (e.g., EUICC_INITIALIZATION_EVENT) and other condition types that must be met.

  2. Actions: Actions to be executed when the conditions are satisfied.

  3. ValidFor: Time duration during which a rule is considered valid.

  4. State Transition Actions: A decision tree that determines the next action based on responses received of previous orders issued to the eIM.

  5. Preferred Communication Mode: A configurable mode that indicates the preferred communication protocol with connection parameters with Card by eIM.

  6. 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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:

StateChart

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_update delta 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.1. Query Parameters

None

4.1.1.2. Header Parameters

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

Parameter Name Data Type Presence Description

Content-Type

String

M

Must be application/json

4.1.1.3. Request Body

The request body describes the Rule details that you want to provision.

Parameter Name Data Type Presence Description

rule_name

String

M

The unique name of the rule.

rule_state

String

M

Initial state for the rule, Refer to Rule State

rule_priority

String

M

Priority level for rule execution, Refer to Rule Priority

criteria

List<Json>

M

The set of criteria which determine when the rule should be triggered, Refer to Rule Criteria

action

Json

M

The primary action to execute when the rule is triggered, Refer to Action

order_state_transitions

Json

O

State graph defining follow-up actions to execute based on outcomes, Refer to Order State Transition

replay_freeze_minutes

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

order_validity_in_days

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.

validFor

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

campaign_mode

Boolean

O

Determines whether the rule operates in Campaign Mode. When set to true, the rule is executed only once per (tenant, rule, eid), regardless of subsequent qualifying events.

description

String

O

Brief Description of rule

Example For Create Rule request body
{
    "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

201

Rule Created successfully!

4.1.2.1.1. Response Body

The response body replays the details of Rule provisioned.

Parameter Name Data Type Description

rule_name

String

Replay the name of the rule provisioned.

rule_id

String

The unique identifier generated for the rule provisioned.

rule_state

String

Replay the current state for the provisioned rule.

criteria

List<Json>

Replay the set of criteria value given for the provisioned rule.

action

Json

Replay the primary action to perform when the provisioned rule is triggered.

order_state_transitions

Json

State graph defining follow-up actions to execute based on outcomes, Refer to Order State Transition

rule_priority

String

Replay the priority level for the provisioned rule.

replay_freeze_minutes

Integer

Replay the duration value for which the provisioned rule execution replays should be frozen or delayed after the initial trigger.

root_state_id

Integer

The unique identifier of the initial state node in the state’s execution graph.

state_chart_id

String

The unique identifier for the associated state chart graph for the provisioned rule.

validFor

String

Replay the validity period for the provisioned rule.

campaign_mode

Boolean

Determines whether the rule operates in Campaign Mode. When set to true, the rule is executed only once per (tenant, rule, eid), regardless of subsequent qualifying events.

order_validity_in_days

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.

description

String

Brief Description of rule.

Example For Rule Creation response body
{
    "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

400

Validation failed : Invalid parameters fields in the request

400

An error occurred while processing the state chart

409

Rule details Already Exist

500

Internal server error

Example For Rule Creation Error case response body
{
    "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.1. Query Parameters

None

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

ruleId

String

M

Unique identifier of the rule to retrieve.

4.2.1.3. Header Parameters

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

Parameter Name Data Type Presence Description

Content-Type

String

M

Must be application/json

4.2.1.4. Request Body

None

4.2.2. HTTP Response

4.2.2.1. Success Response
Code Description

200

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

rule_name

String

Name of the rule.

rule_id

String

Unique identifier of the rule.

rule_state

String

The current state for the provisioned rule.

criteria

List<Json>

The set of criteria value given for the provisioned rule.

rule_priority

String

Priority level assigned for the rule.

replay_freeze_minutes

Integer

The duration value in minutes during which replays are frozen after the rule is triggered.

root_state_id

Integer

The unique identifier of the initial state node in the state’s execution graph.

state_chart_id

String

The unique identifier for the associated state chart graph for the provisioned rule.

validFor

Json

The validity period for the provisioned rule.

campaign_mode

Boolean

Determines whether the rule operates in Campaign Mode. When set to true, the rule is executed only once per (tenant, rule, eid), regardless of subsequent qualifying events.

description

String

Brief Description of rule.

Example For Get Rule Details response body
{
    "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

400

Validation failed : Invalid parameters fields in the request

404

Rule details Not Found

500

Internal server error

Example For Get Rule Details Error case response body
{
    "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.1. Query Parameters

None

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

ruleId

String

M

Unique identifier of the rule to delete.

4.3.1.3. Header Parameters

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

Parameter Name Data Type Presence Description

Content-Type

String

M

Must be application/json

4.3.1.4. Request Body

None

4.3.2. HTTP Response

4.3.2.1. Success Response
Code Description

200

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

rule_name

String

Name of the rule.

rule_id

String

Unique identifier of the rule.

rule_state

String

The current state for the provisioned rule.

criteria

List<Json>

The set of criteria value given for the provisioned rule.

rule_priority

String

Priority level assigned for the rule.

replay_freeze_minutes

Integer

The duration value in minutes during which replays are frozen after the rule is triggered.

root_state_id

Integer

The unique identifier of the initial state node in the state’s execution graph.

state_chart_id

String

The unique identifier for the associated state chart graph for the provisioned rule.

validFor

Json

The validity period for the provisioned rule.

campaign_mode

Boolean

Determines whether the rule operates in Campaign Mode. When set to true, the rule is executed only once per (tenant, rule, eid), regardless of subsequent qualifying events.

description

String

Brief Description of rule.

Example For Delete Rule response body
{
    "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

400

Validation failed : Invalid parameters fields in the request

404

Rule details Not Found

500

Internal server error

Example For Delete Rule Error case response body
{
    "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

page_number

Integer

O

Retrieve rule information with given pageNumber value. If not provided, default value = 1.

page_size

Integer

O

Retrieve rule information with given pageSize value. If not provided, default value = 20.

4.4.1.2. Path Parameters

None

4.4.1.3. Header Parameters

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

Parameter Name Data Type Presence Description

Content-Type

String

M

Must be application/json

4.4.1.4. Request Body

None

4.4.2. HTTP Response

4.4.2.1. Success Response
Code Description

200

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

rule_name

String

Name of the rule.

rule_id

String

Unique identifier of the rule.

rule_state

String

The current state for the provisioned rule.

criteria

List<Json>

The set of criteria value given for the provisioned rule.

rule_priority

String

Priority level assigned for the rule.

replay_freeze_minutes

Integer

The duration value in minutes during which replays are frozen after the rule is triggered.

root_state_id

Integer

The unique identifier of the initial state node in the state’s execution graph.

state_chart_id

String

The unique identifier for the associated state chart graph for the provisioned rule.

validFor

Json

The validity period for the provisioned rule.

page_info

PageInfo

Pagination information. See PageInfo fields.

PageInfo fields
Name Type Description

page_number

Integer

The current page number. Starts from 1.

page_size

Integer

The number of results returned per page.

total_elements

Long

Total number of groups across all pages.

total_pages

Integer

Total number of pages available.

first

Boolean

Is first page.

last

Boolean

Is last page.

Example For Get All Rule Details response body
{
    "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

400

Validation failed : Invalid parameters fields in the request

404

Rule details Not Found

500

Internal server error

Example For Get All Rule Details Error case response body
{
    "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

ACTIVE

The rule is eligible for triggering if the set of criteria matches.

INACTIVE

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

CAMPAIGN_MODE_PRIORITY

Default Priority given to rule when campaign mode is set. This is only applicable to campaign mode.

HIGH

The rule is considered high priority and is evaluated and triggered before other rules.

MEDIUM

The rule has a standard priority and is evaluated after high-priority rules but before low-priority ones

LOW

The rule is considered low priority and is evaluated only after higher priority rules are processed.

Usage Note:

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

constraint_name

The attribute to evaluate. Refer to Constraint Name

constraint_value

The expected value for the constaint to match.

Example For Criteria List
{
    "criteria": [
        {
            "constraint_name": "EVENT_TYPE",
            "constraint_value": "PROFILE_ACTIVATION_EVENT"
        },
        {
            "constraint_name": "ICCID_ENDS_WITH",
            "constraint_value": "8847"
        }
    ]
}
Usage Note:
  • 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

EVENT_TYPE

Matches the type of event triggering the rule. Mandatory and must appear exactly once per rule. Supported Event types : Refer to Event Type

ICCID_STARTS_WITH

Matches ICCIDs that begin with the given prefix.

ICCID_ENDS_WITH

Matches ICCIDs that end with the given suffix.

PROFILE_POOL_NAME

Matches ICCID present in event must be associated to the specified profile pool name.

PROFILE_PROVIDER_NAME

Matches ICCID present in event must be associated with the name of the profile provider.

PROFILE_NAME

Matches ICCID present in event must match the specific profile name.

ACTIVE_PROFILE_POOL_NAME

Matches the Profile pool name for the current active profile from profile list.

GROUP_NAME

Matches the group name associated with the device(eid).

ICCID_CONTAINS

Matches ICCIDs that contain the specified substring.

ICCID_EQUALS

Matches an ICCID that exactly equals the given value.

MCC_CODE

Matches Mobile Country Code from the event with the device Mobile Country Code. Specific for RPLMN_CHANGE_EVENT.

MNC_CODE

Matches Mobile Network Code from the event with the device Mobile Network Code. Specific for RPLMN_CHANGE_EVENT.

MATCHES

Supports advanced pattern matching. Typically used with regex patterns. Currently used in Custom Data for TRIG_BY_DEVICE.

EVENT_SOURCE

Matches value for SOURCE field present in event. Specific for EXTERNAL_SERVER_CUSTOM_EVENT.

EXT_EVENT_CUSTOM_DATA

Matches value for CUSTOM DATA field present in event. Specific for EXTERNAL_SERVER_CUSTOM_EVENT.

PROFILE_POOL_NAME_UNAVAILABLE

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.

PROFILE_POOL_NAME_AVAILABLE

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.

EID_RANGE

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: 89034123411091363001150000002701-89034123411091363001150000002800.

Usage Notes
  • A rule must contain exactly one constraint_name of type EVENT_TYPE.

  • constraint_value format and validation logic depends on the constraint_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

ANY

ON_EVENT

DEVICE_SWITCH_ON

TRIG_BY_DEVICE

TRIG

IMEI_CHANGE_EVENT

PROFILE_DELETION_EVENT

PROFILE_ACTIVATION_EVENT

PROFILE_INSTALLATION_EVENT

PROFILE_INSTALLATION_FAILURE_EVENT

RPLMN_CHANGE_EVENT

EUICC_INITIALIZATION_EVENT

PROFILE_FALLBACK_EVENT

PROFILE_ROLLBACK_EVENT

EXTERNAL_SERVER_CUSTOM_EVENT

Usage Notes
  • The EVENT_TYPE: ANY is 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_TYPE is missing or duplicated, rule provisioning will fail with a validation error.

  • The choice of EVENT_TYPE defines when the rule will be considered for execution.

  • Combine EVENT_TYPE with other criteria like ICCID_ENDS_WITH or GROUP_NAME to create more specific and powerful rule conditions.

  • Event Type TRIG refers to Shoulder Tap Message

  • Event Type TRIG_BY_DEVICE refers 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

ANY / IMEI_CHANGE_EVENT / EUICC_INITIALIZATION_EVENT

ACTIVE_PROFILE_POOL_NAME / GROUP_NAME / EVENT_TYPE / EID_RANGE

PROFILE_DELETION_EVENT / PROFILE_ACTIVATION_EVENT / PROFILE_INSTALLATION_EVENT / PROFILE_INSTALLATION_FAILURE_EVENT / PROFILE_ROLLBACK_EVENT / PROFILE_FALLBACK_EVENT

ICCID_STARTS_WITH / ICCID_ENDS_WITH / ICCID_CONTAINS / ICCID_EQUALS / PROFILE_POOL_NAME / PROFILE_PROVIDER_NAME / PROFILE_NAME / ACTIVE_PROFILE_POOL_NAME / GROUP_NAME / EVENT_TYPE / EID_RANGE

EXTERNAL_SERVER_CUSTOM_EVENT / PROFILE_POOL_NAME_UNAVAILABLE

ICCID_STARTS_WITH / ICCID_ENDS_WITH / ICCID_CONTAINS / ICCID_EQUALS / PROFILE_POOL_NAME / PROFILE_PROVIDER_NAME / PROFILE_NAME / ACTIVE_PROFILE_POOL_NAME / GROUP_NAME / EXT_EVENT_CUSTOM_DATA / EVENT_SOURCE / PROFILE_POOL_NAME_AVAILABLE / PROFILE_POOL_NAME_UNAVAILABLE / EVENT_TYPE / EID_RANGE

RPLMN_CHANGE_EVENT

MCC_CODE / MNC_CODE / ACTIVE_PROFILE_POOL_NAME / GROUP_NAME / EVENT_TYPE / EID_RANGE

TRIG_BY_DEVICE

EVENT_TYPE / MATCHES / EID_RANGE

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

action_type

String

The type of operation to execute. Refer to Supported Action Types.

action_metadata

Json

The fields parameters that will be used while order creation from action_type. Refer to Action Metadata

Example For Action
{
    "action": {
        "action_type": "DOWNLOAD_PROFILE",
        "action_metadata": {
            "order_template": {
                "pm_id":"3a8aa14b-09c0-3760-bf0c-93151120b014",
                "pool_name": "poolName",
                "pool_metadata": "poolMetaData"
            }
        }
    }
}
Usage Note:
  • The action_type is required and must be one of the supported types.

  • The action_metadata field is optional but may be required depending on the action_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

DOWNLOAD_PROFILE

DOWNLOAD_PROFILE_ORDER

SGP_22 & SGP_32

DELETE_PROFILE

DELETE_PROFILE_ORDER

SGP_22 & SGP_32

DELETE_ANY_INACTIVE_PROFILE

DELETE_PROFILE_ORDER

SGP_22 & SGP_32

FORCE_DELETE_PROFILE

DELETE_PROFILE_ORDER

SGP_22 & SGP_32

ENABLE_PROFILE

ENABLE_PROFILE_ORDER

SGP_22 & SGP_32

ENABLE_LAST_DOWNLOADED_PROFILE

ENABLE_PROFILE_ORDER

SGP_22 & SGP_32

UPDATE_APPLET_CONFIGURATION

UPDATE_APPLET_CONFIGURATION_ORDER

SGP_22

READ_APPLET_CONFIGURATION

READ_APPLET_CONFIGURATION_ORDER

SGP_22

UPDATE_PROFILE_CONFIGURATION

UPDATE_PROFILE_CONFIGURATION_ORDER

SGP_22 & SGP_32

DOWNLOAD_PROFILE_WITH_IMMEDIATE_ENABLE

DOWNLOAD_PROFILE_WITH_IMMEDIATE_ENABLE_ORDER

SGP_22 & SGP_32

GET_PROFILE_INFO

GET_PROFILE_INFO_ORDER

SGP_22

LIST_PROFILE_V2

LIST_PROFILE_ORDER_V2

SGP_22

UPDATE_CONNECTIVITY_CONFIGURATION

UPDATE_CONNECTIVITY_CONFIGURATION_ORDER

SGP_22

UPDATE_PROFILE_FALLBACK_ATTRIBUTE

UPDATE_PROFILE_FALLBACK_ATTRIBUTE_ORDER

SGP_32

DISABLE_PROFILE

DISABLE_PROFILE_ORDER

SGP_32

CONFIGURE_IMMEDIATE_ENABLE

CONFIGURE_IMMEDIATE_ENABLE_ORDER

SGP_32

SET_DEFAULT_DP_ADDRESS

SET_DEFAULT_DP_ADDRESS_ORDER

SGP_32

GET_RAT

GET_RAT_ORDER

SGP_32

LIST_PROFILE

LIST_PROFILE_ORDER

SGP_32

CREATE_EIM

CREATE_EIM_ORDER

SGP_32

UPDATE_EIM

UPDATE_EIM_ORDER

SGP_32

DELETE_EIM

DELETE_EIM_ORDER

SGP_32

LIST_EIM

LIST_EIM_ORDER

SGP_32

UPDATE_PROFILE_V3_CONFIGURATION

UPDATE_PROFILE_V3_CONFIGURATION_ORDER

SGP_32

READ_PROFILE_V3_CONFIGURATION

READ_PROFILE_V3_CONFIGURATION_ORDER

SGP_32

DELETE_PROFILE_V3_CONFIGURATION

DELETE_PROFILE_V3_CONFIGURATION_ORDER

SGP_32

READ_APPLET_V3_CONFIGURATION

READ_APPLET_V3_CONFIGURATION_ORDER

SGP_32

UPDATE_APPLET_V3_CONFIGURATION

UPDATE_APPLET_V3_CONFIGURATION_ORDER

SGP_32

GET_EUICC_INFO

GET_EUICC_INFO_ORDER

SGP_32

ACTIVATE_SUBSCRIPTION

ACTIVATE_SUBSCRIPTION_ORDER

SGP_32

DEACTIVATE_SUBSCRIPTION

DEACTIVATE_SUBSCRIPTION_ORDER

SGP_32

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:

  1. Pool-based Download: Uses pool_name and pool_metadata to retrieve matching_id from a pre-provisioned subscription pool.

  2. SM-DS Discovery Download: Uses smds_config to perform SM-DS (Subscription Manager Discovery Service) lookup to discover SM-DP+ address.

  3. Contact Default SMDP: Uses contact_default_smdp .

4.13.1.1. Option 1: Pool-based Download
Example For 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
Example For 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
Example For DOWNLOAD_PROFILE_ORDER with SM-DS Configuration :
{
  "order_template": {
    "smds_config": {
      "contact_smds": true,
      "smds_address": "smds.example.com"
    }
  }
}
Usage Note :
  • PoolMetadata must be pre-provisioned.

  • SM-DS discovery: smds_config.contact_smds must be true. The smds_address is 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

Example For 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]
        }
    }
}
Usage Note :
  • For Action Type : DELETE_ANY_INACTIVE_PROFILE, the parameter iccid is not required, rest for DELETE_PROFILE / FORCE_DELETE_PROFILE, the parameter iccid is mandatory.

  • For iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the field pattern is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the field pool_name is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the value for field pool_name must 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

Example For 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]
        }
    }
}
Usage Note :
  • For Action Type : ENABLE_LAST_DOWNLOADED_PROFILE, the parameter iccid is not required, rest for ENABLE_PROFILE, the parameter iccid is mandatory.

  • For iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the field pattern is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the field pool_name is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the value for field pool_name must be pre-provisioned.

4.13.4. Action Type : UPDATE_APPLET_CONFIGURATION

order_type : UPDATE_APPLET_CONFIGURATION_ORDER

Example For 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
        }
    }
}
Usage Note :
  • For Action Type : UPDATE_APPLET_CONFIGURATION, all fields polling_configuration, fallback_configuration and download_profile_parameters are optional but at-least one should be provided.

  • For polling_configuration field, the value of polling_period_in_hours must lie between (0,42840), both exclusive.

  • For download_profile_parameters field, the value of download_timeout_status_count must lie between (30,255), both exclusive.

4.13.5. Action Type : UPDATE_PROFILE_CONFIGURATION

order_type : UPDATE_PROFILE_CONFIGURATION_ORDER

Example For 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
        }
    }
}
Usage Note :
  • For Action Type : UPDATE_PROFILE_CONFIGURATION, field iccid is mandatory, rest all fields connection_parameters, fallback_settings and polling_configuration are optional but at-least one should be provided.

  • For connection_parameters field, the value of network_access_name must not be null.

  • For fallback_settings field, at-least one of the fallback_attribute, fallback_profile or limited_service_status_count must be provided.

  • For fallback_settings field, fallback_profile field is of type ICCID.

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

Example For OS_PATCH_ORDER order_template fields :
{
    "order_template": {
        "patch_id": "1"
    }
}
Usage Note :
  • For Action Type : OS_PATCH, field patch_id is mandatory, and must have numeric value.

4.13.8. Action Type : DOWNLOAD_PROFILE_WITH_IMMEDIATE_ENABLE

order_type : DOWNLOAD_PROFILE_WITH_IMMEDIATE_ENABLE_ORDER

Usage Note :
  • Order Template is same as DOWNLOAD_PROFILE_ORDER.

4.13.9. Action Type : UPDATE_PROFILE_FALLBACK_ATTRIBUTE

order_type : UPDATE_PROFILE_FALLBACK_ATTRIBUTE_ORDER

Example For UPDATE_PROFILE_FALLBACK_ATTRIBUTE_ORDER order_template fields :
{
  "order_template": {
        "iccid": {
            "iccid_condition": "ICCID_START_WITH",
            "pattern": "8846"
        },
        "fallback_attribute": true
    }
}
Usage Note :
  • For Action Type : UPDATE_PROFILE_FALLBACK_ATTRIBUTE, field iccid is mandatory if fallback_attribute is true

4.13.10. Action Type : GET_PROFILE_INFO

order_type : GET_PROFILE_INFO_ORDER

Example For GET_PROFILE_INFO_ORDER order_template fields :
{
  "order_template": {
        "iccid": {
            "iccid_condition": "ICCID_START_WITH",
            "pattern": "897"
        }
    }
}
Usage Note :
  • For Action Type : GET_PROFILE_INFO, field iccid is mandatory

4.13.11. Action Type : UPDATE_PROFILE_V3_CONFIGURATION

order_type : UPDATE_PROFILE_V3_CONFIGURATION_ORDER

Example For 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
        }

    }
}
Usage Note :
  • For Action Type : UPDATE_PROFILE_V3_CONFIGURATION, field iccid is mandatory

  • Either polling_configuration or fallback_configuration should be non-empty.

4.13.12. Action Type : READ_PROFILE_V3_CONFIGURATION

order_type : READ_PROFILE_V3_CONFIGURATION_ORDER

Example For READ_PROFILE_V3_CONFIGURATION_ORDER order_template fields :
{
  "order_template": {
        "iccid": {
            "iccid_condition": "ICCID_START_WITH",
            "pattern": "897"
        }
    }
}
Usage Note :
  • For Action Type : READ_PROFILE_V3_CONFIGURATION, field iccid is mandatory

4.13.13. Action Type : DELETE_PROFILE_V3_CONFIGURATION

order_type : DELETE_PROFILE_V3_CONFIGURATION_ORDER

Example For DELETE_PROFILE_V3_CONFIGURATION_ORDER order_template fields :
{
  "order_template": {
        "iccid": {
            "iccid_condition": "ICCID_START_WITH",
            "pattern": "897"
        }
    }
}
Usage Note :
  • For Action Type : DELETE_PROFILE_V3_CONFIGURATION, field iccid is mandatory

4.13.14. Action Type : UPDATE_APPLET_V3_CONFIGURATION

order_type : UPDATE_APPLET_V3_CONFIGURATION_ORDER

Example For 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
        }
      }
}
Usage Note :
  • For Action Type : UPDATE_APPLET_V3_CONFIGURATION, either polling_configuration or fallback_configuration should 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

Example For 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"
            ]
        }
    }
}
Usage Note :
  • For Action Type : CREATE_EIM, field eim_configuration_data should not be null.

  • In eim_configuration_data

    • eim_configuration_data.eim_public_key must be present.

    • eim_configuration_data.eim_id must not be null and its length should be less than 128.

    • eim_configuration_data.eimIdType must not be null.

    • eim_configuration_data.eimIdType is EIM_ID_TYPE_FQDN , then it must follow FQDN Format regex pattern.

    • eim_configuration_data.eimFqdn is optional , but if it is present it must follow FQDN Format regex pattern.

    • eim_configuration_data.counterValue is optional , but if it is present it must between 0 and 8388607.

4.13.17.1. FQDN Format
FQDN_REGEX pattern
(?=^.{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. example.com

Allowed characters

Letters (a-z, A-Z), digits (0-9), hyphens (-), and dots (.) as separators

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 (_), special characters, leading or trailing dot, consecutive dots, IP addresses, protocol prefixes, paths, ports

4.13.18. Action Type : UPDATE_EIM

order_type : UPDATE_EIM_ORDER

Example For 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"
            ]
        }
    }
}
Usage Note :
  • For Action Type : UPDATE_EIM, field eim_configuration_data should not be null.

  • In eim_configuration_data

    • eim_configuration_data.eim_public_key must be present.

    • eim_configuration_data.eim_id must not be null and its length should be less than 128.

    • eim_configuration_data.eimIdType must not be null.

    • eim_configuration_data.eimIdType is EIM_ID_TYPE_FQDN , then it must follow FQDN Format regex pattern.

    • eim_configuration_data.eimFqdn is optional , but if it is present it must follow FQDN Format regex pattern.

    • eim_configuration_data.counterValue is optional , but if it is present it must between 0 and 8388607.

4.13.19. Action Type : DELETE_EIM

order_type : DELETE_EIM_ORDER

Example For DELETE_EIM_ORDER order_template fields :
{
   "order_template": {
        "eim_id": "1.3.6.1.4.1.31746.1.800.25"
   }
}
Usage Note :
  • For Action Type : DELETE_EIM, field eimId is mandatory.

4.13.20. Action Type : LIST_EIM

order_type : LIST_EIM_ORDER

No field in order_template is required.

4.13.21. Action Type : DISABLE_PROFILE

order_type : DISABLE_PROFILE_ORDER

Example For DISABLE_PROFILE_ORDER order_template fields :
{
   "order_template": {
        "iccid": {
            "iccid_condition": "ICCID_START_WITH",
            "pattern": "89330"
        }
   }
}
Usage Note :
  • For Action Type : DISABLE_PROFILE, field iccid is mandatory.

4.13.22. Action Type : CONFIGURE_IMMEDIATE_ENABLE

order_type : CONFIGURE_IMMEDIATE_ENABLE_ORDER

Example For 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"
   }
}
Usage Note :
  • For Action Type : CONFIGURE_IMMEDIATE_ENABLE, all fields immediate_enable_flag, default_smdp_oid and default_smdp_address are optional but at-least one should be provided.

4.13.23. Action Type : SET_DEFAULT_DP_ADDRESS

order_type : SET_DEFAULT_DP_ADDRESS_ORDER

Example For SET_DEFAULT_DP_ADDRESS_ORDER order_template fields :
{
   "order_template": {
      "default_smdp_address": "smdp.thales.com"
   }
}
Usage Note :
  • For Action Type : SET_DEFAULT_DP_ADDRESS, field default_smdp_address must be present and should not be blank.

4.13.24. Action Type : GET_RAT

order_type : GET_RAT_ORDER

No field in order_template is required.

4.13.25. Action Type : LIST_PROFILE

order_type : LIST_PROFILE_ORDER

Example For 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"
          }
      }
   }
}
Usage Note :
  • For Action Type : LIST_PROFILE, field profile_data_list and search_criteria are optional.

  • If profile_data_list is present, it should not be empty.

    • If search_criteria is present, then type must 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.type is LIST_PROFILE_INFO_SEARCH_BY_ICCID, then iccid must follow pattern structure.

    • If Search_criteria.type is LIST_PROFILE_INFO_SEARCH_BY_ISDP_AID, then isdp_aid must not be blank.

    • If Search_criteria.type is LIST_PROFILE_INFO_SEARCH_BY_PROFILE_CLASS, then profile_class must not be null.

4.13.26. Action Type : GET_EUICC_INFO

order_type : GET_EUICC_INFO

Example For 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"
    }
}
Usage Note :
  • For Action Type : GET_EUICC_INFO, field requested_data_list is 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.

Example For 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]
        }
    }
}
Usage Note :
  • For Action Type : ACTIVATE_SUBSCRIPTION, the parameter iccid is mandatory.

  • For iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the field pattern is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the field pool_name is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the value for field pool_name must 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.

Example For 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]
        }
    }
}
Usage Note :
  • For Action Type : DEACTIVATE_SUBSCRIPTION, the parameter iccid is mandatory.

  • For iccid_condition : ICCID_START_WITH / ICCID_END_WITH / MATCHES / ICCID_CONTAINS / ICCID_EQUALS, the field pattern is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the field pool_name is mandatory.

  • For iccid_condition : PROFILE_POOL_NAME, the value for field pool_name must 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).

Example For Order State Transition
{
    "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.

Usage Note :
  • 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_code determines which state chart graph will be executed based on the received error code.

    1. Specific Error Code: You can specify a particular error code. The state transition will only be executed when that specific error code is received.

    2. List of Error Codes: You can specify a comma-separated list of error codes for which the same state chart should be executed.

    3. General Failure (any): If you want to execute a state chart on failure, irrespective of the error code, set on_error_code to any.

Priority Note :
  • 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.

Example For 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.

Example For 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.

Usage Note:
  • If startTime is not defined, the rule or entity may be considered valid immediately or from the moment it is created.

  • If endTime is 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).

Consideration:
  • 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.