Select
Promotions
Promotion resource represents a promotion associated to a subscription
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name |
id | path | string | true | Subscription unique identifier |
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 | string | true | Promotion status |
activation_date | string(date-time) | false | Activation date and time, promotion is considered available for the user from this time on. Format according to ISO 8601 |
expiration_date | string(date-time) | false | End date |
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 |
Property | Values |
---|---|
status | one of [REQUESTED, ACTIVE, CANCELLED, DEACTIVATED, EXPIRED] |
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 |
---|---|---|---|---|
offset | query | integer | false | Pagination offset |
limit | query | integer | false | Pagination limit |
org | path | string | true | Organization name |
id | path | string | true | Subscription unique identifier |
activation_date | query | DateFilterEnum | false | Promotions started matching date filter. Available filters are [eq, lt, lte, gt, gte]. Format according to ISO 8601 |
expiration_date | query | DateFilterEnum | false | Promotions active or expired matching date filter. Available filters are [eq, lt, lte, gt, gte]. Format according to ISO 8601 |
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 |
id | path | string | true | Subscription unique identifier |
promotionId | path | string | 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 |
id | path | string | true | Subscription unique identifier |
promotionId | path | string | true | Promotion unique identifier |
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 |
Endpoints
Subscriptions
Bundles
Promotions
Devices
AddOns
Amazon Prime
Max
Mobile
Broadband
Landline
Orange TV
Orange TV Libre
Disney
Netflix
Credit Limits
Change Requests
Commitments