V1-sales
Schemas
SalePromotionsRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| execution_mode | ExecutionMode | true | Defines whether the operation is simulated or actually performed |
| validation_id | string(uuid) | false | Identifier of the previously performed sale validation. Required only when execution mode is set to EXECUTION. This identifier expires after a limited time window, after which the sale must be validated again. |
| requested_promotions | PromotionsSet | true | List of promotions to be applied |
SalePromotionsResponse
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| validation_id | string(uuid) | true | Identifier of the previously performed sale validation. Required only when execution mode is set to EXECUTION. This identifier expires after a limited time window, after which the sale must be validated again. |
| has_incompatibilities | boolean | true | Indicates if there are any incompatibilities with the requested promotions |
| subscriptions | SaleSubscriptionPromotionSet | false | List of subscriptions affected by the sale |
SaleSubscriptionPromotionSet
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | [SaleSubscriptionPromotion] | false | none |
SaleSubscriptionPromotion
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| id | string(uuid) | false | Subscription unique identifier |
| incompatible_promotions | PromotionsSet | true | List of promotions the subscription currently has that are incompatible with the sale. When ExecutionMode is set to Execution, these promotions will be automatically cancelled or deactivated as part of the sale process |
| created_promotions | PromotionsSet | true | List of new created promotions |
SalePromotionsResponseSet
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | [SalePromotionsResponse] | false | none |
TerminateSubscriptionPromotionRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| termination_date | string(date-time) | false | Date and time when the termination should take place. Format according to ISO 8601 |
| reason | PromotionTerminationReasons | true | Reason for the termination |
TerminatePromotionInAllBundleSubscriptionsRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| termination_date | string(date-time) | false | Date and time when the termination should take place. Format according to ISO 8601 |
| reason | PromotionTerminationReasons | true | Reason for the termination |
| catalogue_promotion_id | string | true | Catalogue promotion ID to be terminated in all applicable subscriptions within the bundle |
PromotionTerminationReasons
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | string | false | Reason for the termination |
| Property | Values |
|---|---|
| anonymous | one of [AUTOMATICALLY_ADDED, AUTOMATICALLY_REMOVED, BUNDLE_SALE, MANUALLY_ADDED, MANUALLY_REMOVED, OTHER, PROMOTION_INCOMPATIBILITY, SUBSCRIPTION_ADDED_TO_BUNDLE, SUBSCRIPTION_DEACTIVATION] |
ExecutionMode
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | string | false | none |
| Property | Values |
|---|---|
| anonymous | one of [EXECUTION, VALIDATION] |
ErrorResponse
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| error | ErrorDetails | true | none |
ErrorDetails
|
|
None
PromotionsSet
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| anonymous | [Promotion] | false | none |
Promotion
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| id | string(uuid) | false | Promotion unique identifier |
| catalogue_id | string | true | Catalogue promotion ID |
| activation_date | string(date-time) | false | Promotion activation date. Format according to ISO 8601 |
| expiration_date | string(date-time) | false | Promotion expiration date. Format according to ISO 8601 |
| deactivation_date | string(date-time) | false | Promotion expiration date. Format according to ISO 8601 |