Account migrations

Access to Product migrations


Parameters

Name In Type Required Description
orgId path string true organization name
body body BundleMigrationRequest true ‘none’

Request body - instance of BundleMigrationRequest

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
  "client": {
    "attributes": {
      "document_expiration_date": "1999-01-31",
      "employment": {
        "activity_country_code": "st",
        "company": "string",
        "income": 9999999999999.99,
        "income_source": {
          "id": 999999999,
          "observations": "string"
        },
        "profession": 999999999,
        "professional_area": 999999999,
        "professional_use": true
      }
    }
  },
  "sales_info": {
    "shop_id": "string",
    "logistic": true,
    "signature_process_id": 0
  },
  "account": {
    "new_bundle_id": 0,
    "account_id": 0,
    "territory_owner": "string",
    "subscriptions": {
      "mobile_lines": [
        {
          "subscription_id": 0,
          "type": "additional",
          "product_id": 0,
          "msisdn": 12345,
          "iccid": "8934042419120320845",
          "fabrication_type_sim_id": 214748364,
          "portability_info": {
            "iccid": "8934042419120320845",
            "operator_id": 214748364,
            "operation_type": 1,
            "initial_date_operation": "1999-01-31",
            "donor_line_type": "C",
            "internal_portability": true,
            "installation_required": true,
            "donor_user": {
              "type": "existing",
              "document_type_id": 1,
              "document_value": "11111111A"
            }
          },
          "bonuses": [
            {
              "id": 0
            }
          ],
          "promotions": [
            {
              "id": 0,
              "value": "string"
            }
          ],
          "terminals": [
            {
              "id": 0,
              "financed": true,
              "imei": "string",
              "serial_number": "string"
            }
          ],
          "devices": [
            {
              "device_details": {
                "id": 0,
                "model_id": "string",
                "cession_price": 999999999.99,
                "imei": "string",
                "pending_imei": true,
                "insured_amount": 0.01,
                "category": "string",
                "logistic_required": true,
                "catalogue_id": "string",
                "amount": 0.01
              },
              "fees": {
                "upfront_fee": 999999999.99,
                "installment_plan": {
                  "commission": 999999999.99,
                  "tae": 999999999.99,
                  "tin": 999999999.99,
                  "duration": 1,
                  "monthly_fee": 999999999.99,
                  "last_installment_fee": 999999999.99,
                  "discount_final_payment_value": 999999999.99,
                  "is_promotional_renew": true
                }
              },
              "financial_details": {
                "pre_booking": {
                  "order_id": "string",
                  "authorization_id": "string",
                  "financial_entity": "string",
                  "status": "Accepted",
                  "granted_amount": 999999999,
                  "credit_line_amount": 999999999,
                  "total_client_financed_value": 999999999.99
                },
                "consents": {
                  "commercial": true,
                  "gdpr": true
                }
              },
              "campaign_id": 0,
              "terms": {
                "penalty_value": 999999999.99,
                "commitment_duration": 9999
              },
              "reservation_id": 0,
              "signature_process_id": 0,
              "signature_type": "PAPER",
              "old_subscription_terminal_id": 0
            }
          ]
        }
      ],
      "tv": {
        "product_id": 0,
        "number_associated": 12345,
        "registration_email": "string",
        "contact_phone": 12345,
        "promotions": [
          {
            "id": 0,
            "value": "string"
          }
        ],
        "terminals": [
          {
            "id": 0,
            "financed": true,
            "imei": "string",
            "serial_number": "string"
          }
        ]
      },
      "ftth": {
        "product_id": 0,
        "promotions": [
          {
            "id": 0,
            "value": "string"
          }
        ],
        "terminals": [
          {
            "id": 0,
            "financed": true,
            "imei": "string",
            "serial_number": "string"
          }
        ]
      },
      "adsl": {
        "product_id": 0,
        "promotions": [
          {
            "id": 0,
            "value": "string"
          }
        ],
        "terminals": [
          {
            "id": 0,
            "financed": true,
            "imei": "string",
            "serial_number": "string"
          }
        ]
      },
      "ott": [
        {
          "product_id": 0,
          "email": "string",
          "promotions": [
            {
              "id": 0,
              "value": "string"
            }
          ]
        }
      ]
    },
    "promotions": [
      {
        "id": 0,
        "value": "string"
      }
    ]
  }
}
Name Type Required Description
client BundleMigrationClient false none
sales_info BundleMigrationSalesInfo false none
account BundleMigrationAccount true none

Request example

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205

curl -X POST https://customers.sta.masstack.com/v2/orgs/telco/signups/migration \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "x-auth-roles: API_KEY" \
 --data-raw "{
  'client': {
    'attributes': {
      'document_expiration_date': '1999-01-31',
      'employment': {
        'activity_country_code': 'st',
        'company': 'string',
        'income': 9999999999999.99,
        'income_source': {
          'id': 999999999,
          'observations': 'string'
        },
        'profession': 999999999,
        'professional_area': 999999999,
        'professional_use': true
      }
    }
  },
  'sales_info': {
    'shop_id': 'string',
    'logistic': true,
    'signature_process_id': 0
  },
  'account': {
    'new_bundle_id': 0,
    'account_id': 0,
    'territory_owner': 'string',
    'subscriptions': {
      'mobile_lines': [
        {
          'subscription_id': 0,
          'type': 'additional',
          'product_id': 0,
          'msisdn': 12345,
          'iccid': '8934042419120320845',
          'fabrication_type_sim_id': 214748364,
          'portability_info': {
            'iccid': '8934042419120320845',
            'operator_id': 214748364,
            'operation_type': 1,
            'initial_date_operation': '1999-01-31',
            'donor_line_type': 'C',
            'internal_portability': true,
            'installation_required': true,
            'donor_user': {
              'type': 'existing',
              'document_type_id': 1,
              'document_value': '11111111A'
            }
          },
          'bonuses': [
            {
              'id': 0
            }
          ],
          'promotions': [
            {
              'id': 0,
              'value': 'string'
            }
          ],
          'terminals': [
            {
              'id': 0,
              'financed': true,
              'imei': 'string',
              'serial_number': 'string'
            }
          ],
          'devices': [
            {
              'device_details': {
                'id': 0,
                'model_id': 'string',
                'cession_price': 999999999.99,
                'imei': 'string',
                'pending_imei': true,
                'insured_amount': 0.01,
                'category': 'string',
                'logistic_required': true,
                'catalogue_id': 'string',
                'amount': 0.01
              },
              'fees': {
                'upfront_fee': 999999999.99,
                'installment_plan': {
                  'commission': 999999999.99,
                  'tae': 999999999.99,
                  'tin': 999999999.99,
                  'duration': 1,
                  'monthly_fee': 999999999.99,
                  'last_installment_fee': 999999999.99,
                  'discount_final_payment_value': 999999999.99,
                  'is_promotional_renew': true
                }
              },
              'financial_details': {
                'pre_booking': {
                  'order_id': 'string',
                  'authorization_id': 'string',
                  'financial_entity': 'string',
                  'status': 'Accepted',
                  'granted_amount': 999999999,
                  'credit_line_amount': 999999999,
                  'total_client_financed_value': 999999999.99
                },
                'consents': {
                  'commercial': true,
                  'gdpr': true
                }
              },
              'campaign_id': 0,
              'terms': {
                'penalty_value': 999999999.99,
                'commitment_duration': 9999
              },
              'reservation_id': 0,
              'signature_process_id': 0,
              'signature_type': 'PAPER',
              'old_subscription_terminal_id': 0
            }
          ]
        }
      ],
      'tv': {
        'product_id': 0,
        'number_associated': 12345,
        'registration_email': 'string',
        'contact_phone': 12345,
        'promotions': [
          {
            'id': 0,
            'value': 'string'
          }
        ],
        'terminals': [
          {
            'id': 0,
            'financed': true,
            'imei': 'string',
            'serial_number': 'string'
          }
        ]
      },
      'ftth': {
        'product_id': 0,
        'promotions': [
          {
            'id': 0,
            'value': 'string'
          }
        ],
        'terminals': [
          {
            'id': 0,
            'financed': true,
            'imei': 'string',
            'serial_number': 'string'
          }
        ]
      },
      'adsl': {
        'product_id': 0,
        'promotions': [
          {
            'id': 0,
            'value': 'string'
          }
        ],
        'terminals': [
          {
            'id': 0,
            'financed': true,
            'imei': 'string',
            'serial_number': 'string'
          }
        ]
      },
      'ott': [
        {
          'product_id': 0,
          'email': 'string',
          'promotions': [
            {
              'id': 0,
              'value': 'string'
            }
          ]
        }
      ]
    },
    'promotions': [
      {
        'id': 0,
        'value': 'string'
      }
    ]
  }
}" 

Responses

Code Meaning Description Schema
200 OK Bundle migration ok BundleMigrationResponse
202 Accepted Check risk decision BundleMigrationResponse
400 Bad Request Invalid request body ErrorMessage

Endpoints

Signups

    Users

      Accounts

        Invoices

          Terms

            Payment info

              Account migrations

                Subscriptions

                  Products

                    Services

                      Bonuses

                        Promotions

                          Barrings

                            Consumption

                              Workorders

                                Penalties