Select
Promotions
Access to promotions
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org_id | path | string | true | Organization name |
id | path | string | true | Subscription Id |
body | body | PostPromotion | true | ‘none’ |
Request body - JsonObject
|
|
Name | Type | Required | Description |
---|---|---|---|
anonymous | Promotion | false | none |
Name | Type | Required | Description |
---|---|---|---|
anonymous | object | false | none |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Promotion creation successfully done | PostPromotionResponse |
400 | Bad Request | Invalid body | ErrorMessage |
404 | Not Found | A subscription with the specified id was not found | ErrorMessage |
409 | Conflict | Conflict with the current status | ErrorMessage |
500 | Internal Server Error | Unexpected error | ErrorMessage |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org_id | path | string | true | Organization name |
id | path | string | true | Subscription Id |
promotion_id | path | string | true | Promotion Id |
body | body | PostPromotionDeactivate | true | ‘none’ |
Request body - instance of PostPromotionDeactivate
|
|
Name | Type | Required | Description |
---|---|---|---|
deactivation_date | string(date-time) | true | promotion deactivation date (Mysim EndDate) |
user_name | string | false | user name of the user who deactivates the promotion |
status_change_reason | string | false | promotion status change reason |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | promotion deactivation successfully done | None |
400 | Bad Request | Invalid body | ErrorMessage |
404 | Not Found | A subscription or promotion with the specified id was not found | ErrorMessage |
409 | Conflict | The request could not be completed due to a conflict with the current state of the resource | ErrorMessage |
500 | Internal Server Error | Unexpected error | ErrorMessage |
400 - instance of ErrorMessage
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
errors | [ErrorMessageItem] | true | none |
Endpoints
AccountBundles
Apple Watch
Credit Limits
Devices
Fraud Requests
FreeUnitsPackages
Promotions
Segments
Subscription Commercial Products
Subscriptions
Contracts