sTN Partner APIsTN Partner API
Home
Getting Started
Guide
Home
Getting Started
Guide
  • Guide

    • Introduction
    • Supported Features
    • Authentication
    • Base URLs
    • Advanced Query Parameters
    • Error Handling
  • Getting Started

    • Introduction
    • Quick Start Guide
  • API Endpoints

    • QuerySimcard
    • QueryActivation
    • QuerySubscription
    • NewSubscription
    • CancelNewSubscription
    • SuspendSubscription
    • ResumeSubscription
    • SimSwapSubscription
    • SetServicesSubscription
    • MoveEnvironmentSubscription
    • InPortSubscription
    • ChangeInPortSubscription
    • CancelInPortSubscription
    • PortingOutSubscription
    • CancelPortingOutSubscription
    • TerminateSubscription
    • CancelTerminateSubscription
    • QueryInvoice
    • QueryCdrMonth
    • QueryCdr
    • QueryUsageSubscription

MoveEnvironmentSubscription

Overview

  • Method: POST
  • Endpoint: /api/MoveEnvironmentSubscription
  • Description: The MoveEnvironmentSubscription endpoint allows you to transfer a subscription between environments of KPN. Specifically, this endpoint handles transfers between:
    • SP16001: Regular environment
    • SP16002: Unlimited environment
POST /api/MoveEnvironmentSubscription
{
    "subscriptionId": "string",
    "phoneNumber": "string",
    "newProviderEnvironment": "string",
    "wishDate": "SO 8601 datetime",
    "referenceNumber":"string"
}

Request Body Parameters

ParameterTypeRequiredDescription
subscriptionIdStringNo *1The subscription ID associated with the subscription to be moved.
phoneNumberStringNoThe phone number associated with the subscription to be moved.
newProviderEnvironmentStringYesThe target environment code to which the subscription will be moved. Valid values are "SP16001" (Regular) or "SP16002" (Unlimited).
wishDateStringNoThe requested date and time for the move to take effect, in ISO 8601 format (YYYY-MM-DDThh:mm:ss).
referenceNumberStringNoA reference identifier for the move request, useful for tracking and identification purposes.

*1 Use either subscriptionId or phoneNumber.

Info

Moving a subscription is only allowed once every 2 months.


Response Structure

The response returns an Activation object with the following fields:

{
  "id": "string",
  "createdAt": "ISO 8601 datetime",
  "modifiedAt": "ISO 8601 datetime",
  "status": "string",
  "activationType": "string",
  "referenceNumber": "string",
  "subscriptionId": "string",
  "phoneNumber": "string",
  "activatedDate": "ISO 8601 datetime",
  "info": {}
}

Field Descriptions

ParameterTypeDescription
idStringUnique identifier for the move request.
createdAtStringTimestamp when the move request was created (ISO 8601 format).
modifiedAtStringTimestamp when the move request was last modified (ISO 8601 format).
statusStringCurrent status of the move request (e.g., "PENDING", "COMPLETED", "FAILED").
activationTypeStringType of activation - will always be "MOVEENVIRONMENT" for this endpoint.
referenceNumberStringThe reference number provided in the request, echoed back in the response.
subscriptionIdStringThe identifier of the subscription being moved.
phoneNumberStringThe phone number associated with the subscription, echoed back from the request.
activatedDateStringThe timestamp when the move was or will be activated (ISO 8601 format).
infoObjectAdditional information related to the move request (can be empty).

Usage Notes

  • If wishDate is omitted, the subscription is move as soon as possible.

Example Requests

{
    "phoneNumber": "06-123456789",
    "newProviderEnvironment": "SP16002",
    "wishDate": "2025-05-21T12:00:00",
    "referenceNumber": "Move to unlimited"
}

Response:

{
    "id": "DLO0ZpqHCcA6MJmrH",
    "createdAt": "2025-05-19T07:15:06.875+02:00",
    "modifiedAt": "2025-05-02T16:15:09.831+02:00",
    "status": "INIT",
    "activationType": "MOVEENVIRONMENT",
    "providerEnvironment": "SP16002",
    "referenceNumber": "Move to unlimited",
    "subscriptionId": "6d80v6i4mI5Fidb3B",
    "phoneNumber": "06-123456789",
    "info": {
        "newProviderEnvironment": "SP16001",
        "wishDate": "2025-05-21T12:00:00"
    }
}

Last Updated:
Contributors: Jos Harink
Prev
SetServicesSubscription
Next
InPortSubscription