V2
Promotions
Promotion resource represents a promotion associated to a subscription
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | true | Organization name |
| subscriptionId | path | string(uuid) | true | Subscription unique identifier |
| x-auth-origin-sub | header | string | false | ‘none’ |
| x-auth-origin-aud | header | string | false | ‘none’ |
| body | body | Promotion | true | Promotion input data |
Request body - instance of Promotion
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | true | Promotion ID |
| legacy_id | integer | false | Legacy promotion ID |
| catalogue_promotion_id | string | true | Catalogue promotion ID |
| commitments | [Commitment] | false | none |
| creation_date | string(date-time) | true | Promotion creation date. Format according to ISO 8601 |
| creation_system | string | true | Info about the system that requested the promotion creation. It contains the mas-stack authentication audience info. N/A if not available |
| creation_user | string | true | Info about the specific user that requested the promotion creation. N/A if not available |
| last_updated_date | string(date-time) | true | Date and time when any field of the promotion was last updated. Format according to ISO 8601 |
| status | PromotionStatus | true | none |
| activation_date | string(date-time) | false | Activation date and time the promotion is or will be available in the subscription. When provided, it is restricted to be between current billing cycle and less than a year from now. Format according to ISO 8601 |
| expiration_date | string(date-time) | false | The date and time when the promotion expires. Format according to ISO 8601. |
| deactivation_date | string(date-time) | false | Deactivation date and time, promotion is considered cancelled or inactive for the user from this time on. Format according to ISO 8601 |
| deactivation_system | string | false | Info about the system that requested the promotion deactivation. It contains the mas-stack authentication audience info when deactivation is requested by mas-stack authenticated user, N/A for legacy systems created promotions |
| deactivation_user | string | false | Info about the specific user that requested the promotion deactivation. It contains the mas-stack authentication subject info when deactivation was requested by mas-stack authenticated user, other user info for legacy systems deactivations if available or N/A otherwise |
| origin | string | false | Promotion process origin. If not provided, it will be set to EXISTING_CLIENT by default |
| Property | Values |
|---|---|
| origin | one of [MIGRATION, EXISTING_CLIENT, UNKNOWN] |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Promotion successfully added to the subscription | Promotion |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | ErrorResponse |
| 404 | Not Found | A subscription with the specified id was not found | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
| default | Default | Any client or server error | ErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | true | Organization name |
| subscriptionId | path | string(uuid) | true | Subscription unique identifier |
| offset | query | integer | false | Pagination offset |
| limit | query | integer | false | Pagination limit |
| activation_date | query | DateFilterEnum | false | Resource activation date filter. Available filters are [eq, lt, lte, gt, gte]. Format according to ISO 8601 |
| expiration_date | query | DateFilterEnum | false | Resource expiration date filter. Available filters are [eq, lt, lte, gt, gte]. Format according to ISO 8601 |
| status | query | PromotionStatusFilterEnum | false | Subscription status filter |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Promotions found for the subscription | PromotionsSet |
| 403 | Forbidden | Forbidden access | ErrorResponse |
| 404 | Not Found | A subscription with the specified id was not found | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
| default | Default | Any client or server error | ErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | true | Organization name |
| subscriptionId | path | string(uuid) | true | Subscription unique identifier |
| promotionId | path | string(uuid) | true | Promotion unique identifier |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Promotion found for the subscription | Promotion |
| 403 | Forbidden | Forbidden access | ErrorResponse |
| 404 | Not Found | A promotion with the specified id was not found | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
| default | Default | Any client or server error | ErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | true | Organization name |
| subscriptionId | path | string(uuid) | true | Subscription unique identifier |
| promotionId | path | string(uuid) | true | Promotion unique identifier |
| x-auth-origin-sub | header | string | false | ‘none’ |
| x-auth-origin-aud | header | string | false | ‘none’ |
| body | body | OperationsSet | true | Array of operations to apply to subscription promotion |
Request body - JsonObject
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | [Operation] | false | none |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Promotion |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | ErrorResponse |
| 404 | Not Found | A promotion with the specified id was not found | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
| default | Default | Any client or server error | ErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | true | Organization name |
| subscriptionId | path | string(uuid) | true | Subscription unique identifier |
| promotionId | path | string(uuid) | true | Promotion unique identifier |
| x-auth-origin-sub | header | string | false | ‘none’ |
| x-auth-origin-aud | header | string | false | ‘none’ |
| body | body | PromotionTerminationRequest | true | Promotion deactivation reason |
Request body - instance of PromotionTerminationRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| reason | string | true | Reason for the cancellation/deactivation |
| Property | Values |
|---|---|
| reason | one of [AUTOMATICALLY_REMOVED, MANUALLY_REMOVED, OTHER, PROMOTION_INCOMPATIBILITY, SUBSCRIPTION_DEACTIVATION] |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 202 | Accepted | Deactivation process started | None |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | ErrorResponse |
| 404 | Not Found | A subscription with the specified id was not found | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
| default | Default | Any client or server error | ErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | true | Organization name |
| subscriptionId | path | string(uuid) | true | Subscription unique identifier |
| promotionId | path | string(uuid) | true | Promotion unique identifier |
| x-auth-origin-sub | header | string | false | ‘none’ |
| x-auth-origin-aud | header | string | false | ‘none’ |
| body | body | PromotionTerminationRequest | true | Promotion cancellation reason |
Request body - instance of PromotionTerminationRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| reason | string | true | Reason for the cancellation/deactivation |
| Property | Values |
|---|---|
| reason | one of [AUTOMATICALLY_REMOVED, MANUALLY_REMOVED, OTHER, PROMOTION_INCOMPATIBILITY, SUBSCRIPTION_DEACTIVATION] |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 202 | Accepted | Cancellation process started | None |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | ErrorResponse |
| 404 | Not Found | A subscription with the specified id was not found | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
| default | Default | Any client or server error | ErrorResponse |
Endpoints
Subscriptions
Bundles
Promotions
Devices
AddOns
Amazon Prime
Max
Mobile
Broadband
Landline
Orange TV
Orange TV Libre
Disney
Netflix
Credit Limits
Change Requests
Commitments
DeviceInsurance
Multisim
Payment Plans
Operations