Catalogue API

Access to promotions


Parameters

NameDescription

org_id*required

string

(path)

organization name

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

commercial_profile_name

string

(query)

commercial profile name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/promotions/sellable?sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero'&commercial_profile_name='perfil_comercial.postpago_ventas_pos' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotion [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

commercial product identifier

commercial_profile_name

string

(query)

commercial profile name

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/commercial_products/2311/promotions?commercial_profile_name='perfil_comercial.postpago_ventas_pos'&sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotion [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

commercial product identifier

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

commercial_profile_name

string

(query)

commercial profile name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/commercial_products/2311/promotions/sellable?sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero'&commercial_profile_name='perfil_comercial.postpago_ventas_pos' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotions [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

bundled product identifier

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

commercial_profile_name

string

(query)

commercial profile name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/bundled_products/609/promotions?sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero'&commercial_profile_name='perfil_comercial.postpago_ventas_pos' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotion [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

bundled product identifier

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

commercial_profile_name

string

(query)

commercial profile name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/bundled_products/609/promotions/sellable?sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero'&commercial_profile_name='perfil_comercial.postpago_ventas_pos' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotions [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

bundled commercial product identifier

commercial_profile_name

string

(query)

commercial profile name

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/bundled_commercial_products/3009_BUNDLED_3P/promotions?commercial_profile_name='perfil_comercial.postpago_ventas_pos'&sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotion [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

bundled commercial product identifier

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

commercial_profile_name

string

(query)

commercial profile name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/bundled_commercial_products/3009_BUNDLED_3P/promotions/sellable?sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero'&commercial_profile_name='perfil_comercial.postpago_ventas_pos' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotions [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

value added service identifier

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

commercial_profile_name

string

(query)

commercial profile name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/value_added_services/VAS_14_BP_600/promotions?sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero'&commercial_profile_name='perfil_comercial.postpago_ventas_pos' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotion [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

value added service identifier

sale_type_name

SaleTypeName

(query)

sale type name

customer_type_name

CustomerTypeName

(query)

customer type name

numeration_type_name

NumerationTypeName

(query)

numeration type name

commercial_profile_name

string

(query)

commercial profile name

Enumerated Values

Property Values
sale_type_name one of [Venta, Migración, Añadir Línea, Cross Sell, Cartera]
customer_type_name one of [Nuevo, Existente]
numeration_type_name one of [Nuevo numero, Numero portado, Numero entre marcas]

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/value_added_services/VAS_14_BP_600/promotions/sellable?sale_type_name='Venta'&customer_type_name='Nuevo'&numeration_type_name='Nuevonumero'&commercial_profile_name='perfil_comercial.postpago_ventas_pos' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotions [PromotionDetail_Response]
401 Unauthorized string
404 Item not found KOGenericResponse

200 - instance of PromotionDetail_Response

Custom schema example

content_copy
 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
[
  {
    "id": "174",
    "name": "MM_DTO 3EUR DURANTE 12 MESES",
    "marketing_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "digital_channels_name": "MM_DTO 3EUR DURANTE 12 MESES",
    "invoice_name": "TARIFA MAS 10GB",
    "invoice_description": "TARIFA MAS 10GB",
    "in_catalogue_since": "2019-08-24T14:15:22Z",
    "in_catalogue_until": "2019-08-24T14:15:22Z",
    "need_promotion_code": false,
    "need_existent_MSISDN": false,
    "applicability_model": "FeeGeneration",
    "restrictions_applicability_rule": "string",
    "target_applicability_rule": "FeeSubtype",
    "fee_subtypes": "ServiceFee",
    "calculation_model": "Flat",
    "discount_type": "Fixed",
    "duration": 12,
    "keep_on_upgrade": true,
    "keep_on_downgrade": false,
    "priority": 1,
    "is_mandatory": false,
    "xsell_permit": true,
    "reduced_fee_amount": true,
    "value": 8.264463,
    "currency": "euro",
    "from": "2022-10-03T22:00:00Z",
    "to": "2080-10-03T22:00:00Z",
    "skip_first_period": false,
    "reduce_penalty_threshold": true,
    "category_name": "captación",
    "type_name": "PERMANENCIA",
    "terms": [
      {
        "id": "5138_promotion",
        "name": "12 MESES-36E",
        "type": "PermanenceContract",
        "commitment_duration": 12,
        "penalty_prorated": true,
        "value": 8.264463,
        "currency": "euro",
        "permanence_type": "MAIN",
        "transaction_type": {
          "id": "121",
          "name": "DEVOLUCION AT. AL CLIENTE",
          "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
          "is_active": true,
          "is_external": false,
          "tax_rate": "generic",
          "transaction_type": "Credit",
          "refound_transaction_type_id": "121"
        },
        "binding_type_id": 1
      }
    ],
    "transaction_type": {
      "id": "121",
      "name": "DEVOLUCION AT. AL CLIENTE",
      "description": "DEVOLUCIÓN AT. AL CLIENTE PRE",
      "is_active": true,
      "is_external": false,
      "tax_rate": "generic",
      "transaction_type": "Credit",
      "refound_transaction_type_id": "121"
    },
    "commercial_profiles": [
      {
        "id": 4,
        "name": "perfil_comercial.postpago_ventas_pos",
        "visibility_type": "POSITIVE",
        "from": "2022-10-03T22:00:00Z",
        "to": "2080-10-03T22:00:00Z"
      }
    ]
  }
]
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

401 - JsonObject

Custom schema example

content_copy
1
"Origin authentication failed."
Name Type Required Description
anonymous getPromoByComProfile_Response false none
Name Type Required Description
anonymous object false none
» terms [TermsPromotion_Response] false none
» transaction_type TransactionType false none
» commercial_profiles [CommercialProfile_Response] false none

404 - instance of KOGenericResponse

Custom schema example

content_copy
1
2
3
4
5
{
  "error": "Item not found",
  "message": "Item not found",
  "code": "0200XX"
}
Name Type Required Description
error string false none
message string false none
code string false none

Parameters

NameDescription

org_id*required

string

(path)

organization name

id*required

string

(path)

promotion identifier

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/promotions/234 \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 Promotion PromotionDetail_Response
401 Unauthorized string
404 Item not found KOGenericResponse

Parameters

NameDescription

org_id*required

string

(path)

organization name

commercial_product_id*required

string

(path)

Unique commercial_product identifier

promotion_id*required

string

(path)

promotion identifier

offset

integer(int32)

(query)

The number of elements to skip before starting to collect the result set.It can be used in combination with the limit parameter to control thepagination of the result set.

limit

integer(int32)

(query)

The number of elements to return in the result set. It can be used incombination with the offset parameter to control the pagination of theresult set.

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/commercial_products/2311/promotions/234/incompatibilities?offset='0'&limit='20' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 List of incompatible promotions PromotionIncompatibilityPaginatedList
401 Unauthorized string
404 Item not found KOGenericResponse

Parameters

NameDescription

org_id*required

string

(path)

organization name

bcp_id*required

string

(path)

bundled commercial product identifier

promotion_id*required

string

(path)

promotion identifier

offset

integer(int32)

(query)

The number of elements to skip before starting to collect the result set.It can be used in combination with the limit parameter to control thepagination of the result set.

limit

integer(int32)

(query)

The number of elements to return in the result set. It can be used incombination with the offset parameter to control the pagination of theresult set.

Request example

content_copy
1
2
3
4
5

curl -X GET https://catalogue.masstack.com/v2/orgs/masmovil/bundled_commercial_products/3009_BUNDLED_3P/promotions/234/incompatibilities?offset='0'&limit='20' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Description Schema
200 List of incompatible promotions PromotionIncompatibilityPaginatedList
401 Unauthorized string
404 Item not found KOGenericResponse

Endpoints

Commercial Products

Bundled Products

Bundled Commercial Products

Free Units Packages

Promotions

Commercial Devices

Rate Plans

Base profiles and services

Value Added Services

Provisioning Profiles

Services

Commercial Infos

Transaction types

Devices

Commercial profiles

Misc services