V1-sales
Promotions
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | true | Organization name |
| subscriptionId | path | string(uuid) | true | Subscription unique identifier |
| body | body | SalePromotionsRequest | true | ‘none’ |
Request body - instance of 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 |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Promotions response | SalePromotionsResponse |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | 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 |
| bundleId | path | string(uuid) | true | Bundle unique identifier |
| body | body | SalePromotionsRequest | true | ‘none’ |
Request body - instance of 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 |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Promotions response | SalePromotionsResponse |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | 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 |
| body | body | TerminateSubscriptionPromotionRequest | true | ‘none’ |
Request body - instance of 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 |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 202 | Accepted | Termination process started | None |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | 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 |
| bundleId | path | string(uuid) | true | Bundle unique identifier |
| body | body | TerminatePromotionInAllBundleSubscriptionsRequest | true | ‘none’ |
Request body - instance of 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 |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 202 | Accepted | Termination process started | None |
| 400 | Bad Request | Bad request | ErrorResponse |
| 403 | Forbidden | Forbidden access | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
| default | Default | Any client or server error | ErrorResponse |
Endpoints
Promotions