Discount subscription
Endpoint can be called by:
GET /contractChanges/{id}?includeDiscountSubscriptions=All&includeContract=false
Parameter values for the includeDiscountSubscriptions
:
Parameter value | Description |
---|---|
| Contains unchanged and changed discount subscriptions |
| Contains only changed discount subscriptions |
| (Default) Contains no discount subscriptions |
{ "Id": "647dc226715e7089c55b777f", "Type": "DiscountSubscriptionChange", "Timestamp": "2023-06-05T11:08:22.7690000Z", "OrderId": "647dc2267d976744f219d4a6", "ContractId": "647dbc1a715e7089c55b7696", "ChangeDate": "2023-06-28T10:43:34.4870000Z", "NewPlanVariantId": "63e62a0d9864a09b6e4b2048", "NewPlanId": "63e62a0d9864a09b6e4b2045", "DiscountSubscriptions": [ { "Id": "647dbcea715e7089c55b76eb", "Before": { "Id": "647dbcea715e7089c55b76eb", "DiscountId": "647dbc9e715e7089c55b76c7", "StartDate": "2023-06-05T10:45:53.0000000Z", "EndDate": "2023-06-05T11:01:42.7100000Z", "Status": "Ended" }, "After": { "Id": "647dbcea715e7089c55b76eb", "DiscountId": "647dbc9e715e7089c55b76c7", "StartDate": "2023-06-05T10:45:53.0000000Z", "EndDate": "2023-06-05T11:01:42.7100000Z", "Status": "Ended" } }, { "Id": "647dc210715e7089c55b7746", "Before": { "Id": "647dc210715e7089c55b7746", "DiscountId": "63e62a0d9864a09b6e4b204d", "StartDate": "2023-06-05T10:43:34.4870000Z", "EndDate": "2023-07-05T10:43:34.4870000Z", "Status": "Active" }, "After": { "Id": "647dc210715e7089c55b7746", "DiscountId": "63e62a0d9864a09b6e4b204d", "StartDate": "2023-06-05T10:43:34.4870000Z", "EndDate": "2023-06-28T10:43:34.4870000Z", "Status": "Active" } } ] }
Response objects contains:
A complete list of discount subscriptions as a list with
Before
andAfter
states for each object,Detection of active discount subscriptions has to be done evaluating around the
Timestamp
of the contract change compared to theStartDate
orEndDate
of the DiscountSubscription as well as theStatus
.