on 2024 Jun 26 2:46 PM
Hi All,
We're facing a problem in our SAP Subscription Billing Module tenant.
We want to resume some subscriptions that are paused, but it's not possible. This is the case:
Subscription current pausing information:
"pauseSchedule": [
{
"pauseDate": "2023-06-29T22:00:00.000Z",
"reason": "MAN"
}
],
Request to resume the subscription:
{
"metaData": {
"version": 3
},
"pauseSchedule": [
{
"pauseDate": "2023-06-28T22:00:00.000Z",
"resumeDate": "2024-06-25T22:00:00.000Z",
"reason": "MAN"
}
]
}
Also, we're including in the request headers the parameter billing-sb-dates-in-subscription-timezone
billing-sb-dates-in-subscription-timezone: true
We receive the following error:
{
"status": 400,
"type": "business_error",
"message": "The pause date '2023-06-28T20:00:00.000Z' must be at the start of the day in the time zone of the subscription. Enter the correct time or set to 'true' the header parameter 'billing-sb-dates-in-subscription-timezone'.",
"details": []
}
We're copy/pasting the date from the subscription, and we're setting the recommended header parameter. What are we missing? 😀
Thanks in advance,
BR,
Alberto.
Request clarification before answering.
Hi Alberto,
in order to avoid complex time-zone calculations on the service consumer side, you can use the parameter billing-sb-dates-in-subscription-timezone to send only local dates. Otherwise you would need to consider e.g. daylight saving time on your own.
If you set this parameter, then the dates should be in local date format.
See also the description for this parameter:
Set this parameter to true if you want to provide dates in local date-time without reference to a time zone.
The service determines the correct time zone from the field subscriptionTimeZone, and if this field is not filled, from the market time zone.
If this parameter is not set, you need to provide the dates in the UTC time zone.
Use a date yyyy-mm-dd to achieve a time stamp at midnight in the subscription time zone.
Therefore, adjust your payload accordingly (assuming the resume date should be Jun 25th 2024):
{
"metaData": {
"version": 3
},
"pauseSchedule": [
{
"pauseDate": "2023-06-28",
"resumeDate": "2024-06-25",
"reason": "MAN"
}
]
}
Best
Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.