- Get information of a Merchant
- services.serviceHours
- availabilities
- New Merchant Update Notification
- services.serviceHours
- availabilities
- Get Merchant Status and Service Hours
- services.serviceHours
(2) The value in timePeriods should always conform to the rule: endTime > startTime.
(3) If the time spans a day after conversion to the UTC+0 time zone, it should be split into two parts.
(4) 24:00 should be transmitted as: 23:59:00.000Z.
Take Brazil's official time zone UTC-3 as an example.
If the local time is: **2024-04-07 08:00-20:00**, the format transmitted in the API should be (after converting to UTC+0):[
{
"date": "2021-04-07",
"timePeriods": {
"startTime": "11:00:00.000Z",
"endTime": "23:00:00.000Z"
}
}
][
{
"date": "2021-04-07",
"timePeriods": {
"startTime": "13:00:00.000Z",
"endTime": "23:59:00.000Z"
}
},
{
"date": "2021-04-08",
"timePeriods": {
"startTime": "00:00:00.000Z",
"endTime": "01:00:00.000Z"
}
}
][
{
"dayOfWeek": [
"MONDAY",
"TUESDAY"
],
"timePeriods": {
"startTime": "11:00:00.000Z",
"endTime": "23:00:00.000Z"
}
}
][
{
"dayOfWeek": [
"MONDAY"
],
"timePeriods": {
"startTime": "11:00:00.000Z",
"endTime": "23:59:00.000Z"
}
},
{
"dayOfWeek": [
"TUESDAY"
],
"timePeriods": {
"startTime": "00:00:00.000Z",
"endTime": "01:00:00.000Z"
}
},
{
"dayOfWeek": [
"TUESDAY"
],
"timePeriods": {
"startTime": "11:00:00.000Z",
"endTime": "23:59:00.000Z"
}
},
{
"dayOfWeek": [
"WEDNESDAY"
],
"timePeriods": {
"startTime": "00:00:00.000Z",
"endTime": "01:00:00.000Z"
}
}
]Finally merge into:
[
{
"dayOfWeek": [
"MONDAY",
"TUESDAY"
],
"timePeriods": {
"startTime": "11:00:00.000Z",
"endTime": "23:59:00.000Z"
}
},
{
"dayOfWeek": [
"TUESDAY",
"WEDNESDAY"
],
"timePeriods": {
"startTime": "00:00:00.000Z",
"endTime": "01:00:00.000Z"
}
}
]