Skip to main content

v2.logistics.update_operating_hours

POST /api/v2/logistics/update_operating_hours

This API is designed to allow sellers to update their operating hours. It is essential that the values provided in this API align with the restrictions retrieved from the v2.logistics.get_operating_hour_restrictions API to ensure compliance with platform requirements. This API uses overwriting updates, when updating pickup operating hours, still need to include all parts even those not needing changes.

Endpoint URL

URL: https://partner.shopeemobile.com/api/v2/logistics/update_operating_hours

Common Request Parameters

NameTypeSampleDescription
partner_idint1Partner ID is assigned upon registration is successful. Required for all requests.
timestamptimestamp1610000000This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1The token for API access, using to identify your permission to the api. Valid for multiple use and expires in 4 hours.
shop_idint600000Shopee's unique identifier for a shop. Required param for most APIs.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp, access_token, shop_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Request Parameters

NameTypeRequiredSampleDescription
regular_operating_hourobjectFalseDetails of Pickup Operating Hours / Preferred Pickup Hours: You can skip this parameter if you are not updating the Pickup Operating Hours / Preferred Pickup Hours
mondayobjectFalseOperating hours for Monday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
tuesdayobjectFalseOperating hours for Tuesday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
wednesdayobjectFalseOperating hours for Wednesday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
thursdayobjectFalseOperating hours for Thursday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
fridayobjectFalseOperating hours for Friday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
saturdayobjectFalseOperating hours for Saturday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
sundayobjectFalseOperating hours for Sunday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
public_holidayobjectFalseOperating hours for public holiday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
special_operating_hourobjectFalseDetails of Special Operating Hours : You can skip this parameter if you are not creating Special Operating Hours or if you do not have access to create Special Operating Hours
namestringTrue3.3 CampaignThe name of Special Operating Hours
start_datestringTrue2025-03-03The start date of the Special Operating Hours. The value should be within [today + 1] and [today + 365 days].
end_datestringTrue2025-03-05The end date of the Special Operating Hours. The value should be within [start_date + 30 days]
operating_hoursobject[]TrueTo specify the operating hours for each date
datestringTrue2025-03-03Date: it should be include all date from start_date until end_date
start_timestringTrue00:00Start time for operating hours on that date: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue23:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
enablebooleanTruetrueTo specify this value as False if you're not operate on that date (close)
instant_operating_hourobjectFalseDetails of Instant Operating Hours : You can skip this parameter if you are not creating/updating Instant Operating Hours or if you do not have access to create/update Instant Operating Hours
mondayobjectFalseOperating hours for Monday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
tuesdayobjectFalseOperating hours for Tuesday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
wednesdayobjectFalseOperating hours for Wednesday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
thrusdayobjectFalseOperating hours for Thursday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
fridayobjectFalseOperating hours for Friday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
saturdayobjectFalseOperating hours for Saturday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
sundayobjectFalseOperating hours for Sunday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
public_holidayobjectFalseOperating hours for public holiday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
shop_collection_operating_hourobjectFalseDetails of Shop Collection Operating Hours : You can skip this parameter if you are not creating/updating Shop Collection Operating Hours or if you do not have access to create/update Shop Collection Operating Hours
mondayobjectFalseOperating hours for Monday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
tuesdayobjectFalseOperating hours for Tuesday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
wednesdayobjectFalseOperating hours for Wednesday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
thursdayobjectFalseOperating hours for Thursday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
fridayobjectFalseOperating hours for Friday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
saturdayobjectFalseOperating hours for Saturday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
sundayobjectFalseOperating hours for Sunday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59
public_holidayobjectFalseOperating hours for Public Holiday: You can skip this information if you want to mark the day as closed.
start_timestringTrue09:00Start time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30.
end_timestringTrue18:30End time for operating hours on that day: The time should be in the format XX:YY, where YY is either 00 or 30. Except for a 24-hour, you can input a start_time of 00:00 and an end_time of 23:59

Response Parameters

NameTypeSampleDescription
errorstringerror_authIndicate error type if hit error. Empty if no error happened.
messagestringInvalid access_token.Indicate error details if hit error. Empty if no error happened.
request_idstring3dad66f43b8447d282ae6da36626c6b7The identifier for an API request for error tracking.
responseobject
result_listobject
regular_operating_hourobjectThe result of create/update regular_operating_hour.
statusstringSuccessThe system will return "Failed" if there are any validation errors. Otherwise, it will return a blank response.
fail_messagestringFail reason
special_operating_hourobjectThe result of create/update speicial_operating_hour.
statusstringSuccessThe system will return "Failed" if there are any validation errors. Otherwise, it will return a blank response.
fail_messagestringFail reason
instant_operating_hourobjectThe result of create/update instant_operating_hour.
statusstringSuccessThe system will return "Failed" if there are any validation errors. Otherwise, it will return a blank response.
fail_messagestringFail reason
shop_collection_operating_hourobjectThe result of create/update shop_collection_operating_hour.
statusstringSuccessThe system will return "Failed" if there are any validation errors. Otherwise, it will return a blank response.
fail_messagestringFail reason