When assigning locations and plans using rest/organization/assignLocationsAndPlans endpoint, the to date gets set in the duration field as the day before. E.g in the json below where to date is 2024-04-28 it will be set in the duration field as ['2024-02-04'.'2024-04-27')
[
{
"fromDate": "2024-02-04T11:36:42+03:00",
"jurisdiction": "544d225ab-bb0c-436f-9ad5-847b75fe7ac2",
"organization": "163776c9-4bc6-4c9c-9045-784502354b13",
"plan": "f46c08e1-33af-45b2-bef2-5d115716ec89",
"toDate": "2024-04-28T00:00:00+03:00"
}
]