Prepare Change
telgea_prepare_changeCreate a signed preview to prepare costly or irreversible account changes; nothing is sent until the user explicitly approves the commit.
Instructions
Step 1 of 2 for what costs money or cannot be undone: create_user_plan, add_line, replace_sim, terminate_line, terminate_plan, delete_user, submit_port_in, discard_port_in. Returns a signed preview; nothing is sent. Requires TELGEA_ENABLE_WRITES=true on the server. Show the preview and warnings to the user and get an explicit yes before committing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| fields | No | submit_port_in: country-specific fields. | |
| msisdn | No | submit_port_in. | |
| reason | Yes | Why — kept in the audit log (and with Telgea where the endpoint takes a reason). | |
| userId | No | create_user_plan, add_line, terminate_plan, delete_user, submit_port_in. | |
| numberId | No | replace_sim, terminate_line. | |
| portInId | No | discard_port_in. | |
| deleteUser | No | terminate_line, terminate_plan: also delete the user afterwards. | |
| portInType | No | submit_port_in: type from telgea_get_port_in_requirements. | |
| countryCode | No | create_user_plan, add_line, submit_port_in. | |
| executionDate | No | submit_port_in. | |
| terminationDate | No | terminate_line, terminate_plan. Today or later. |