bearerAuth Bearer Token (JWT) | Resource | Description |
|---|---|
| Health | Health check endpoints for monitoring service availability |
| Credit Limits | Credit limit migration endpoints for subscriptions |
| Segments | Segment migration endpoints for subscriptions |
| Max Subscriptions | Max streaming subscription migration endpoints |
| Disney Subscriptions | Disney streaming subscription migration endpoints |
| Amazon Prime Subscriptions | Amazon Prime streaming subscription migration endpoints |
bearerAuth Bearer Token (JWT) | Resource | Description |
|---|---|
| Health | Health check endpoints for monitoring service availability |
| Credit Limits | Credit limit migration endpoints for subscriptions |
| Segments | Segment migration endpoints for subscriptions |
| Max Subscriptions | Max streaming subscription migration endpoints |
| Disney Subscriptions | Disney streaming subscription migration endpoints |
| Amazon Prime Subscriptions | Amazon Prime streaming subscription migration endpoints |
Returns the health status of the Subscription Creation service and its dependencies (database connectivity).
OK Service is healthy
{
"persistence": "pass",
"global": "pass"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
persistence | string
()
passfail | Database connectivity status | ||
global | string
()
passfail | Overall service health status |
Internal Server Error Service is unhealthy
{
"persistence": "fail",
"global": "fail"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
persistence | string
()
passfail | Database connectivity status | ||
global | string
()
passfail | Overall service health status |
curl -X GET 'https://subscriptions.masstack.com/v3/health' \
-H 'Accept: application/json' Returns the readiness status of the Subscription Creation service. Used by Kubernetes to determine if the service is ready to receive traffic.
OK Service is ready
{
"persistence": "pass",
"global": "pass"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
persistence | string
()
passfail | Database connectivity status | ||
global | string
()
passfail | Overall service health status |
Internal Server Error Service is not ready
{
"persistence": "fail",
"global": "fail"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
persistence | string
()
passfail | Database connectivity status | ||
global | string
()
passfail | Overall service health status |
curl -X GET 'https://subscriptions.masstack.com/v3/ready' \
-H 'Accept: application/json' Creates credit limits for a subscription identified by legacy_id. This is a migration endpoint that creates initial credit limit data.
PATH PARAMETERS
Organization name (tenant)
Legacy subscription ID (Integer from V1 database)
{
"subscription_type": "MOBILE",
"credit_limits": [
{
"credit_limit_id": "MOBILE_SUBSCRIPTION_TOTAL_CREDIT_LIMIT",
"credit_limit_value": 300,
"reason": "rfm krt migration"
}
]
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
subscription_type* | string
()
MOBILELANDLINE | Type of subscription | ||||||||||||||||||||||
credit_limits* | object[] | Array of credit limits to create | minItems: 1 | |||||||||||||||||||||
Array items:
| ||||||||||||||||||||||||
Created Credit limits created successfully
Bad Request Bad request
{
"code": "INVALID_REQUEST",
"message": "The request is invalid",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Not Found Resource not found
{
"code": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Conflict Resource already exists
{
"code": "RESOURCE_ALREADY_EXISTS",
"message": "The requested resource already exists",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X POST 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/12345/credit_limits' \
-H 'Authorization: Bearer {access-token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"subscription_type": "MOBILE",
"credit_limits": [
{
"credit_limit_id": "MOBILE_SUBSCRIPTION_TOTAL_CREDIT_LIMIT",
"credit_limit_value": 300,
"reason": "rfm krt migration"
}
]
}' Deletes subscription credit limits for a subscription identified by legacy_id. This is a rollback endpoint for credit limits migration.
PATH PARAMETERS
Organization name (tenant)
Legacy subscription ID
No Content Credit limits deleted successfully
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Not Found Resource not found
{
"code": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X DELETE 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/12345/credit_limits' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' Creates a subscription segment for a subscription identified by legacy_id. This is a migration endpoint that creates initial credit limit data.
PATH PARAMETERS
Organization name (tenant)
Legacy subscription ID
{
"segment_id": "DEVICEOFFERSEGMENT",
"segment_value": "PREMIUM",
"reason": "rfm krt"
} | Property | Type | Description | Constraints | Default |
|---|---|---|---|---|
segment_id* | string | Segment identifier (must match pattern based on subscription type - OM% for postpaid mobile, OP% for prepaid, OC% for convergent) | ||
segment_value* | string | Segment value | ||
reason* | string | Reason for segment creation |
Created Segment created successfully
Bad Request Bad request
{
"code": "INVALID_REQUEST",
"message": "The request is invalid",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Not Found Resource not found
{
"code": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Conflict Resource already exists
{
"code": "RESOURCE_ALREADY_EXISTS",
"message": "The requested resource already exists",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X POST 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/12345/segments' \
-H 'Authorization: Bearer {access-token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"segment_id": "DEVICEOFFERSEGMENT",
"segment_value": "PREMIUM",
"reason": "rfm krt"
}' Deletes subscription segment(s) for a subscription identified by legacy_id. This is a rollback endpoint for segment migration.
PATH PARAMETERS
Organization name (tenant)
Legacy subscription ID
No Content Segment deleted successfully
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X DELETE 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/12345/segments' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' Creates a Max subscription with all related entities (promotions, commitments, bundle history). This is a migration-only endpoint that bypasses fraud validation and event generation.
PATH PARAMETERS
Organization name (tenant)
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"service_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"product_id": "beam-max-svod-monthly"
}
} | Property | Type | Description | Constraints | Default | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string (uuid) | Unique identifier of the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Subscription type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status* | string
()
ACTIVEDEACTIVATEDCANCELLED | Subscription status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
activation_date | string (date-time) | Activation date and time. - Required if status is ACTIVE or DEACTIVATED - Must be null if status is CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_date | string (date-time) | Deactivation date and time. - Required if status is DEACTIVATED - Must be null if status is ACTIVE and CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_update | string (date-time) | Last status update date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_reason* | string | Reason for the last status update according to defined values. Check possible values in status table in https://developers.masstack.com/en/guides/subscriptions/lifecycle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_updated_date | string (date-time) | Date and time when any field of the subscription was last updated | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
catalogue_commercial_product_id* | string | Commercial product ID according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
legacy_account_id* | integer | Legacy account id the subscription is linked to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
account_id | string (uuid) | Unique identifier of the account | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_date* | string (date-time) | Subscription creation date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_user* | string | User who created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_system | string | System that created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_user | string | User who deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_system | string | System that deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add_ons | object[] | Ids of subscription applicable add-ons(value added services) according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
free_units_packages | object[] | Ids of free units packages according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
devices_related_info | object | Info about devices associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundle_related_info* | object | Bundle relation information for subscription migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotions | object[] | Array of promotions associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundles_history | object[] | Historical bundle changes for the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
specific_data* | object | Max subscription specific data for migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created Max subscription created successfully
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"service_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"product_id": "beam-max-svod-monthly"
}
} | Property | Type | Description | Constraints | Default | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string (uuid) | Unique identifier of the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Subscription type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status* | string
()
ACTIVEDEACTIVATEDCANCELLED | Subscription status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
activation_date | string (date-time) | Activation date and time. - Required if status is ACTIVE or DEACTIVATED - Must be null if status is CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_date | string (date-time) | Deactivation date and time. - Required if status is DEACTIVATED - Must be null if status is ACTIVE and CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_update | string (date-time) | Last status update date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_reason* | string | Reason for the last status update according to defined values. Check possible values in status table in https://developers.masstack.com/en/guides/subscriptions/lifecycle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_updated_date | string (date-time) | Date and time when any field of the subscription was last updated | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
catalogue_commercial_product_id* | string | Commercial product ID according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
legacy_account_id* | integer | Legacy account id the subscription is linked to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
account_id | string (uuid) | Unique identifier of the account | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_date* | string (date-time) | Subscription creation date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_user* | string | User who created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_system | string | System that created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_user | string | User who deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_system | string | System that deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add_ons | object[] | Ids of subscription applicable add-ons(value added services) according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
free_units_packages | object[] | Ids of free units packages according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
devices_related_info | object | Info about devices associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundle_related_info* | object | Bundle relation information for subscription migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotions | object[] | Array of promotions associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundles_history | object[] | Historical bundle changes for the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
specific_data* | object | Max subscription specific data for migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request Bad request
{
"code": "INVALID_REQUEST",
"message": "The request is invalid",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Conflict Resource already exists
{
"code": "RESOURCE_ALREADY_EXISTS",
"message": "The requested resource already exists",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X POST 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/max' \
-H 'Authorization: Bearer {access-token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"service_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"product_id": "beam-max-svod-monthly"
}
}' Deletes a migrated Max subscription and all related entities (promotions, commitments, history). This endpoint is used exclusively for migration rollback purposes.
PATH PARAMETERS
Organization name (tenant)
Subscription UUID
No Content Max subscription deleted successfully
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Not Found Resource not found
{
"code": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X DELETE 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/max/ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' Creates a Disney subscription with all related entities (promotions, commitments, bundle history). This is a migration-only endpoint that bypasses fraud validation and event generation.
PATH PARAMETERS
Organization name (tenant)
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"user_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"service_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"product_id": "beam-max-svod-monthly"
}
} | Property | Type | Description | Constraints | Default | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string (uuid) | Unique identifier of the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Subscription type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status* | string
()
ACTIVEDEACTIVATEDCANCELLED | Subscription status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
activation_date | string (date-time) | Activation date and time. - Required if status is ACTIVE or DEACTIVATED - Must be null if status is CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_date | string (date-time) | Deactivation date and time. - Required if status is DEACTIVATED - Must be null if status is ACTIVE and CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_update | string (date-time) | Last status update date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_reason* | string | Reason for the last status update according to defined values. Check possible values in status table in https://developers.masstack.com/en/guides/subscriptions/lifecycle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_updated_date | string (date-time) | Date and time when any field of the subscription was last updated | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
catalogue_commercial_product_id* | string | Commercial product ID according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
legacy_account_id* | integer | Legacy account id the subscription is linked to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
account_id | string (uuid) | Unique identifier of the account | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_date* | string (date-time) | Subscription creation date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_user* | string | User who created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_system | string | System that created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_user | string | User who deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_system | string | System that deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add_ons | object[] | Ids of subscription applicable add-ons(value added services) according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
free_units_packages | object[] | Ids of free units packages according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
devices_related_info | object | Info about devices associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundle_related_info* | object | Bundle relation information for subscription migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotions | object[] | Array of promotions associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundles_history | object[] | Historical bundle changes for the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
specific_data* | object | Disney subscription specific data for migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created Disney subscription created successfully
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"user_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"service_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"product_id": "beam-max-svod-monthly"
}
} | Property | Type | Description | Constraints | Default | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string (uuid) | Unique identifier of the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Subscription type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status* | string
()
ACTIVEDEACTIVATEDCANCELLED | Subscription status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
activation_date | string (date-time) | Activation date and time. - Required if status is ACTIVE or DEACTIVATED - Must be null if status is CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_date | string (date-time) | Deactivation date and time. - Required if status is DEACTIVATED - Must be null if status is ACTIVE and CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_update | string (date-time) | Last status update date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_reason* | string | Reason for the last status update according to defined values. Check possible values in status table in https://developers.masstack.com/en/guides/subscriptions/lifecycle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_updated_date | string (date-time) | Date and time when any field of the subscription was last updated | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
catalogue_commercial_product_id* | string | Commercial product ID according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
legacy_account_id* | integer | Legacy account id the subscription is linked to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
account_id | string (uuid) | Unique identifier of the account | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_date* | string (date-time) | Subscription creation date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_user* | string | User who created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_system | string | System that created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_user | string | User who deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_system | string | System that deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add_ons | object[] | Ids of subscription applicable add-ons(value added services) according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
free_units_packages | object[] | Ids of free units packages according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
devices_related_info | object | Info about devices associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundle_related_info* | object | Bundle relation information for subscription migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotions | object[] | Array of promotions associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundles_history | object[] | Historical bundle changes for the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
specific_data* | object | Disney subscription specific data for migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request Bad request
{
"code": "INVALID_REQUEST",
"message": "The request is invalid",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Conflict Resource already exists
{
"code": "RESOURCE_ALREADY_EXISTS",
"message": "The requested resource already exists",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X POST 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/disney' \
-H 'Authorization: Bearer {access-token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"user_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"service_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"product_id": "beam-max-svod-monthly"
}
}' Deletes a migrated Disney subscription and all related entities (promotions, commitments, history). This endpoint is used exclusively for migration rollback purposes.
PATH PARAMETERS
Organization name (tenant)
Subscription UUID
No Content Disney subscription deleted successfully
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Not Found Resource not found
{
"code": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X DELETE 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/disney/ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' Creates an Amazon Prime subscription with all related entities (promotions, commitments, bundle history). This is a migration-only endpoint that bypasses fraud validation and event generation.
PATH PARAMETERS
Organization name (tenant)
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"entitlement_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"bundle_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"tier_id": "prime_3_months_promo",
"product_id": "PRIME_3M_PROMO"
}
} | Property | Type | Description | Constraints | Default | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string (uuid) | Unique identifier of the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Subscription type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status* | string
()
ACTIVEDEACTIVATEDCANCELLED | Subscription status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
activation_date | string (date-time) | Activation date and time. - Required if status is ACTIVE or DEACTIVATED - Must be null if status is CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_date | string (date-time) | Deactivation date and time. - Required if status is DEACTIVATED - Must be null if status is ACTIVE and CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_update | string (date-time) | Last status update date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_reason* | string | Reason for the last status update according to defined values. Check possible values in status table in https://developers.masstack.com/en/guides/subscriptions/lifecycle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_updated_date | string (date-time) | Date and time when any field of the subscription was last updated | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
catalogue_commercial_product_id* | string | Commercial product ID according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
legacy_account_id* | integer | Legacy account id the subscription is linked to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
account_id | string (uuid) | Unique identifier of the account | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_date* | string (date-time) | Subscription creation date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_user* | string | User who created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_system | string | System that created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_user | string | User who deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_system | string | System that deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add_ons | object[] | Ids of subscription applicable add-ons(value added services) according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
free_units_packages | object[] | Ids of free units packages according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
devices_related_info | object | Info about devices associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundle_related_info* | object | Bundle relation information for subscription migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotions | object[] | Array of promotions associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundles_history | object[] | Historical bundle changes for the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
specific_data* | object | Amazon Prime subscription specific data for migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created Amazon Prime subscription created successfully
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"entitlement_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"bundle_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"tier_id": "prime_3_months_promo",
"product_id": "PRIME_3M_PROMO"
}
} | Property | Type | Description | Constraints | Default | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string (uuid) | Unique identifier of the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Subscription type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status* | string
()
ACTIVEDEACTIVATEDCANCELLED | Subscription status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
activation_date | string (date-time) | Activation date and time. - Required if status is ACTIVE or DEACTIVATED - Must be null if status is CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_date | string (date-time) | Deactivation date and time. - Required if status is DEACTIVATED - Must be null if status is ACTIVE and CANCELLED | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_update | string (date-time) | Last status update date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_status_reason* | string | Reason for the last status update according to defined values. Check possible values in status table in https://developers.masstack.com/en/guides/subscriptions/lifecycle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_updated_date | string (date-time) | Date and time when any field of the subscription was last updated | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
catalogue_commercial_product_id* | string | Commercial product ID according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
legacy_account_id* | integer | Legacy account id the subscription is linked to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
account_id | string (uuid) | Unique identifier of the account | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_date* | string (date-time) | Subscription creation date and time | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_user* | string | User who created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creation_system | string | System that created the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_user | string | User who deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deactivation_system | string | System that deactivated the subscription (if applicable) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add_ons | object[] | Ids of subscription applicable add-ons(value added services) according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
free_units_packages | object[] | Ids of free units packages according to catalogue definition | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
devices_related_info | object | Info about devices associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundle_related_info* | object | Bundle relation information for subscription migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotions | object[] | Array of promotions associated to the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bundles_history | object[] | Historical bundle changes for the subscription | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array items:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
specific_data* | object | Amazon Prime subscription specific data for migration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request Bad request
{
"code": "INVALID_REQUEST",
"message": "The request is invalid",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Conflict Resource already exists
{
"code": "RESOURCE_ALREADY_EXISTS",
"message": "The requested resource already exists",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X POST 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/amazon' \
-H 'Authorization: Bearer {access-token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"type": "MAX",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"last_status_update": "2023-01-01T00:00:00Z",
"last_status_reason": "SUBSCRIPTION_ADDED_TO_BUNDLE",
"last_updated_date": "2023-01-01T00:00:00Z",
"catalogue_commercial_product_id": "7125",
"legacy_account_id": 245655,
"account_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"add_ons": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_add_on_id": "124",
"creation_date": "2023-01-01T00:00:00Z",
"creation_system": "killflex.auth.masmovil.com",
"creation_user": "john.doe@masorange.es",
"last_updated_date": "2023-01-01T00:00:00Z",
"status": "CANCELLED",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2023-01-01T00:00:00Z",
"deactivation_system": "killflex.auth.masmovil.com",
"deactivation_user": "john.doe@masorange.es"
}
],
"free_units_packages": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_id": 457345,
"catalogue_free_units_packages_id": "124",
"activation_date": "2023-01-01T00:00:00Z",
"deactivation_date": "2025-01-05T03:30:15Z"
}
],
"devices_related_info": {
"devices": [
{
"id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"catalogue_commercial_device_id": "CDCVPU_150f5badaa706651e67c59061d373d7e7e",
"catalogue_device_id": "P09712MRC",
"shipping_order_id": "18395",
"pickup_order_id": "P0000001",
"serial_number": "9876543-AB-345",
"mac_address": "00-B0-D0-63-C2-26",
"acquisition_type": "BORROWED",
"commitments": [
null
]
}
],
"delivery_info": {
"delivery_type": "CUSTOMER_ADDRESS",
"dealer_code": "1234"
}
},
"bundle_related_info": {
"id": "abcf20cb-35df-4ffe-bca6-c0ed0c28cb00",
"legacy_id": 790224234,
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_XP",
"mandatory": true
},
"promotions": [
{
"catalogue_promotion_id": "1572",
"creation_date": "2023-01-01T00:00:00Z",
"creation_user": "migration.user@masmovil.com",
"creation_system": "rfm-migration-system",
"status": "ACTIVE",
"activation_date": "2023-01-01T00:00:00Z",
"expiration_date": "2025-01-05T03:30:15Z",
"deactivation_date": "2025-01-05T03:30:15Z",
"deactivation_user": "admin.user@masmovil.com",
"deactivation_system": "admin-portal",
"status_detail": "AUTOMATICALLY_REMOVED",
"commitments": [
{
"id": null,
"legacy_id": null,
"catalogue_id": null,
"expiration_date": null,
"cancellation_date": null,
"cancellation_system": null,
"cancellation_user": null,
"creation_date": null,
"creation_system": null
}
]
}
],
"bundles_history": [
{
"bundle_id": "ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39",
"legacy_bundle_id": 790224234,
"last_status_reason": "BUNDLE_MIGRATION",
"catalogue_bundled_product_id": "8342",
"catalogue_bundled_commercial_product_id": "8432_BUNDLED_3P",
"catalogue_commercial_product_id": "7125",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2025-01-05T03:30:15Z",
"mandatory": true
}
],
"specific_data": {
"entitlement_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"bundle_id": "d2af0bd9-c71b-42aa-a258-c9d9dc734bfc",
"tier_id": "prime_3_months_promo",
"product_id": "PRIME_3M_PROMO"
}
}' Deletes a migrated Amazon Prime subscription and all related entities (promotions, commitments, history). This endpoint is used exclusively for migration rollback purposes.
PATH PARAMETERS
Organization name (tenant)
Subscription UUID
No Content Amazon Prime subscription deleted successfully
Forbidden Forbidden access
{
"code": "FORBIDDEN_ORGANIZATION",
"message": "Access to organization not allowed",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Not Found Resource not found
{
"code": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
Internal Server Error Internal server error
{
"code": "DATABASE_ACCESS_ERROR",
"message": "Internal server error",
"reference": "https://developers.masstack.com/en/guides/subscriptions/errorcatalogue"
} | Property | Type | Description | Constraints | Default | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error* | object | |||||||||||||||||||||||
| ||||||||||||||||||||||||
curl -X DELETE 'https://subscriptions.masstack.com/v3/orgs/euskaltel/migrations/subscriptions/amazon/ce2f20cb-35df-4ffe-bca6-c0ed0c28cb39' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json'